minertrade/init.lua

32 lines
1.1 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 17:03:46 -03:00
urlTabela = minetest.get_worldpath().."/minertrade.db64", --Extensao '.tbl' ou '.db'
delayConstruct = 300,
bank = {
acounts = 0,
player = { },
},
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")
--dofile(modMinerTrade.modPath.."/item_miner_cash.lua")
2017-03-13 18:26:38 -03:00
-- --dofile(path.."/item_rent_door.lua")
2022-05-12 11:32:28 -03:00
--dofile(modMinerTrade.modPath.."/payday.lua")
--dofile(modMinerTrade.modPath.."/commands.lua")
if modMinerTrade.doAtmLoad ~= nil then
modMinerTrade.doAtmLoad()
end
2017-03-13 18:26:38 -03:00
2022-05-12 17:03:46 -03:00
minetest.log('action',"["..modMinerTrade.modName:upper().."] Loaded!")