Modernize (#3)

This commit is contained in:
mazes-80 2022-09-11 14:48:55 +02:00 committed by GitHub
parent b2fd9456c2
commit 21c17b27af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View File

@ -1,2 +0,0 @@
default
farming?

View File

@ -1 +0,0 @@
A loot framework. Also adds loot to dungeons.

View File

@ -66,8 +66,8 @@ end
loot.modpath = modpath
local vaults = minetest.setting_getbool("loot_vaults")
local dungeon_loot = minetest.setting_getbool("loot_dungeons")
local vaults = minetest.settings:get_bool("loot_vaults", false)
local dungeon_loot = minetest.settings:get_bool("loot_dungeons", true)
if dungeon_loot == nil then dungeon_loot = true end -- default dungeon loot to true
dofile(modpath .. "default_loot.lua")

View File

@ -1 +1,5 @@
name=loot
name=loot
depends = default
title = Loot
optional_depends = farming
description = A loot framework. Also adds loot to dungeons.