62 lines
1.4 KiB
Lua
62 lines
1.4 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 = {},
|
|
hud = {
|
|
posx = tonumber(minetest.settings:get("missions.hud.offsetx") or 0.7),
|
|
posy = tonumber(minetest.settings:get("missions.hud.offsety") or 0.2)
|
|
}
|
|
}
|
|
|
|
-- 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")
|
|
|