2014-12-26 21:33:18 +01:00
|
|
|
local modpath = minetest.get_modpath("currency")
|
|
|
|
|
2017-02-12 05:24:30 +01:00
|
|
|
-- internationalization boilerplate
|
|
|
|
local S, NS = dofile(modpath.."/intllib.lua")
|
|
|
|
|
|
|
|
minetest.log("info", S("Currency mod loading..."))
|
|
|
|
|
2014-12-26 21:33:18 +01:00
|
|
|
dofile(modpath.."/craftitems.lua")
|
2017-02-12 05:24:30 +01:00
|
|
|
minetest.log("info", S("[Currency] Craft_items Loaded!"))
|
2014-12-26 21:33:18 +01:00
|
|
|
dofile(modpath.."/shop.lua")
|
2017-02-12 05:24:30 +01:00
|
|
|
minetest.log("info", S("[Currency] Shop Loaded!"))
|
2014-12-26 21:33:18 +01:00
|
|
|
dofile(modpath.."/barter.lua")
|
2017-02-12 05:24:30 +01:00
|
|
|
minetest.log("info", S("[Currency] Barter Loaded!"))
|
2014-12-26 21:33:18 +01:00
|
|
|
dofile(modpath.."/safe.lua")
|
2017-02-12 05:24:30 +01:00
|
|
|
minetest.log("info", S("[Currency] Safe Loaded!"))
|
2014-12-26 21:33:18 +01:00
|
|
|
dofile(modpath.."/crafting.lua")
|
2017-02-12 05:24:30 +01:00
|
|
|
minetest.log("info", S("[Currency] Crafting Loaded!"))
|
2014-12-26 21:33:18 +01:00
|
|
|
|
|
|
|
if minetest.setting_getbool("creative_mode") then
|
2017-02-12 05:24:30 +01:00
|
|
|
minetest.log("info", S("[Currency] Creative mode in use, skipping basic income."))
|
2014-12-26 21:33:18 +01:00
|
|
|
else
|
|
|
|
dofile(modpath.."/income.lua")
|
2017-02-12 05:24:30 +01:00
|
|
|
minetest.log("info", S("[Currency] Income Loaded!"))
|
2014-12-26 21:33:18 +01:00
|
|
|
end
|