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