Add awards.add_defaults setting to control adding default awards.

Useful for games not based on MTG but using some of its mods.
This commit is contained in:
Beha 2020-04-04 13:46:41 -04:00
parent da3d9b3980
commit 8a34ea8055
2 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,11 @@ dofile(minetest.get_modpath("awards").."/src/api_triggers.lua")
dofile(minetest.get_modpath("awards").."/src/chat_commands.lua")
dofile(minetest.get_modpath("awards").."/src/gui.lua")
dofile(minetest.get_modpath("awards").."/src/triggers.lua")
dofile(minetest.get_modpath("awards").."/src/awards.lua")
-- Optionally add default awards.
if minetest.settings:get_bool("awards.add_defaults", true) then
dofile(minetest.get_modpath("awards").."/src/awards.lua")
end
awards.load()
minetest.register_on_shutdown(awards.save)

2
settingtypes.txt Normal file
View File

@ -0,0 +1,2 @@
# Add default achievements from the awards mod
awards.add_defaults (Add Default Achievements) bool true