minertrade/init.lua

37 lines
1.3 KiB
Lua
Raw Normal View History

2022-05-12 11:32:28 -03:00
modMinerTrade = {
modName = minetest.get_current_modname(),
modPath = minetest.get_modpath(minetest.get_current_modname()),
2022-05-12 23:32:22 -03:00
save_compressed = (minetest.settings:get("minertrade.save_compressed") ~= "false"),
2022-05-12 17:03:46 -03:00
delayConstruct = 300,
bank = {
acounts = 0,
2022-05-12 23:32:22 -03:00
last_pay = 0,
2022-05-12 17:03:46 -03:00
player = { },
},
2022-05-12 23:32:22 -03:00
salary = {
enabled = (minetest.settings:get("minertrade.salary.enabled") ~= "false"),
value = tonumber(minetest.settings:get("minertrade.salary.value") or 1),
intervalcheck = tonumber(minetest.settings:get("minertrade.salary.intervalcheck") or 1),
}
2022-05-12 11:32:28 -03:00
}
2017-03-13 18:26:38 -03:00
2022-05-12 17:03:46 -03:00
--dofile(modMinerTrade.modPath.."/config.lua") -- <== Antes de carregar tudo!
2022-05-12 11:32:28 -03:00
dofile(modMinerTrade.modPath.."/translate.lua") -- <== Antes de 'api.lua'!
dofile(modMinerTrade.modPath.."/api.lua")
dofile(modMinerTrade.modPath.."/item_exchange_table.lua")
dofile(modMinerTrade.modPath.."/item_dispensing_machine.lua")
2017-03-13 18:26:38 -03:00
2022-05-12 17:03:46 -03:00
dofile(modMinerTrade.modPath.."/item_atm.lua")
2022-05-12 11:32:28 -03:00
--dofile(modMinerTrade.modPath.."/item_strongbox.lua")
--dofile(modMinerTrade.modPath.."/item_strongbox_old.lua")
2022-05-12 23:32:22 -03:00
dofile(modMinerTrade.modPath.."/item_minercash.lua")
--dofile(path.."/item_rent_door.lua")
dofile(modMinerTrade.modPath.."/api_payday.lua")
2022-05-12 11:32:28 -03:00
--dofile(modMinerTrade.modPath.."/commands.lua")
2022-05-12 23:32:22 -03:00
--if modMinerTrade.doBankLoad ~= nil then
modMinerTrade.doBankLoad()
--end
2017-03-13 18:26:38 -03:00
2022-05-12 17:03:46 -03:00
minetest.log('action',"["..modMinerTrade.modName:upper().."] Loaded!")