missions/init.lua
2018-07-31 19:30:33 +02:00

58 lines
1.2 KiB
Lua

local has_xp_redo_mod = minetest.get_modpath("xp_redo")
local has_mobs_mod = minetest.get_modpath("mobs")
local has_unified_inv = minetest.get_modpath("unified_inventory")
local MP = minetest.get_modpath("missions")
missions = {
form = {}
}
-- forms
dofile(MP.."/form.missionblock.lua")
dofile(MP.."/form.missionblock_user.lua")
dofile(MP.."/form.newstep.lua")
dofile(MP.."/form.wand.lua")
dofile(MP.."/migrate.lua")
dofile(MP.."/privs.lua")
dofile(MP.."/chat.lua")
dofile(MP.."/functions.lua")
dofile(MP.."/validate.lua")
dofile(MP.."/register.lua")
dofile(MP.."/hud.lua")
dofile(MP.."/block.lua")
dofile(MP.."/wand.lua")
if has_unified_inv then
dofile(MP.."/ui.lua")
end
-- executor
dofile(MP.."/executor.lua")
dofile(MP.."/executor.hud.lua")
-- step register
dofile(MP.."/register_step.lua")
-- step specs
dofile(MP.."/steps/waypoint.lua")
dofile(MP.."/steps/dig.lua")
dofile(MP.."/steps/build.lua")
dofile(MP.."/steps/chestput.lua")
dofile(MP.."/steps/chestreward.lua")
dofile(MP.."/steps/givereward.lua")
dofile(MP.."/steps/message.lua")
if has_xp_redo_mod then
dofile(MP.."/steps/checkxp.lua")
dofile(MP.."/steps/givexp.lua")
end
if has_mobs_mod then
dofile(MP.."/steps/spawnmob.lua")
end
print("[OK] Missions")