2021-08-17 15:55:45 -07:00
|
|
|
--
|
|
|
|
-- Eraz
|
|
|
|
--
|
|
|
|
|
|
|
|
eraz = {}
|
|
|
|
eraz.loots = {}
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
local S = minetest.get_translator(modname)
|
|
|
|
|
2021-08-20 16:32:07 -07:00
|
|
|
assert(loadfile(modpath .. "/settings.lua"))(modpath)
|
2021-08-17 15:55:45 -07:00
|
|
|
assert(loadfile(modpath .. "/api.lua"))(S)
|
2021-08-20 16:32:07 -07:00
|
|
|
assert(loadfile(modpath .. "/loots.lua"))(S)
|
2021-08-17 15:55:45 -07:00
|
|
|
assert(loadfile(modpath .. "/brain_merchant.lua"))()
|
|
|
|
assert(loadfile(modpath .. "/merchant.lua"))(S)
|
|
|
|
assert(loadfile(modpath .. "/cloth.lua"))(S)
|
2021-08-20 16:32:07 -07:00
|
|
|
if eraz.settings.spawn then
|
|
|
|
assert(loadfile(modpath .. "/spawn.lua"))(S)
|
|
|
|
end
|
2021-08-17 15:55:45 -07:00
|
|
|
local user_file = modpath .. "/user.lua"
|
|
|
|
if eraz.file_exists(user_file) then
|
2021-12-08 10:10:44 -08:00
|
|
|
assert(loadfile(user_file))(S)
|
2021-08-17 15:55:45 -07:00
|
|
|
end
|