petz/petz/init.lua

83 lines
3.2 KiB
Lua
Raw Normal View History

2019-03-06 04:57:23 -08:00
--
-- petz
2019-05-02 14:14:00 -07:00
-- License:GPLv3
2019-03-06 04:57:23 -08:00
--
local modname = "petz"
local modpath = minetest.get_modpath(modname)
2019-03-10 04:40:11 -07:00
local mg_name = minetest.get_mapgen_setting("mg_name")
2019-03-06 04:57:23 -08:00
-- internationalization boilerplate
local S = minetest.get_translator(minetest.get_current_modname())
2019-04-18 11:22:39 -07:00
assert(loadfile(modpath .. "/api.lua"))(modpath, S)
2019-07-08 17:40:39 -07:00
assert(loadfile(modpath .. "/mobkit.lua"))(modpath, S)
2019-05-21 13:57:07 -07:00
assert(loadfile(modpath .. "/behaviours.lua"))(modpath, S)
2019-03-06 04:57:23 -08:00
assert(loadfile(modpath .. "/settings.lua"))(modpath, S) --Load the settings
assert(loadfile(modpath .. "/nodes.lua"))(modpath, S) --Load the nodes
2019-05-20 13:41:34 -07:00
assert(loadfile(modpath .. "/items.lua"))(modpath, S) --Load the items
2019-04-20 14:58:59 -07:00
assert(loadfile(modpath .. "/food.lua"))(modpath, S) --Load the food items
2019-06-22 09:16:41 -07:00
assert(loadfile(modpath .. "/spawn.lua"))(modpath, S) --Load the spawn engine
2019-06-29 18:02:00 -07:00
assert(loadfile(modpath .. "/mount.lua"))(modpath, S) --Load the mount engine
2019-03-06 04:57:23 -08:00
if petz.settings.kitty_spawn then
assert(loadfile(modpath .. "/kitty_"..petz.settings.type_api..".lua"))(S)
end
if petz.settings.puppy_spawn then
assert(loadfile(modpath .. "/puppy_"..petz.settings.type_api..".lua"))(S)
2019-03-06 14:01:46 -08:00
end
if petz.settings.ducky_spawn then
assert(loadfile(modpath .. "/ducky_"..petz.settings.type_api..".lua"))(S)
2019-03-10 04:40:11 -07:00
end
if petz.settings.beaver_spawn then
2019-03-10 17:14:23 -07:00
assert(loadfile(modpath .. "/beaver_"..petz.settings.type_api..".lua"))(S, modpath, mg_name)
2019-03-16 04:13:05 -07:00
end
2019-03-24 04:12:25 -07:00
if petz.settings.lamb_spawn then
2019-03-16 04:13:05 -07:00
assert(loadfile(modpath .. "/lamb_"..petz.settings.type_api..".lua"))(S)
2019-03-24 04:12:25 -07:00
end
if petz.settings.lion_spawn then
assert(loadfile(modpath .. "/lion_"..petz.settings.type_api..".lua"))(S)
2019-03-31 08:54:27 -07:00
end
if petz.settings.calf_spawn then
assert(loadfile(modpath .. "/calf_"..petz.settings.type_api..".lua"))(S)
end
2019-04-12 15:17:15 -07:00
if petz.settings.panda_spawn then
assert(loadfile(modpath .. "/panda_"..petz.settings.type_api..".lua"))(S)
end
2019-04-18 11:22:39 -07:00
if petz.settings.frog_spawn then
assert(loadfile(modpath .. "/frog_"..petz.settings.type_api..".lua"))(S, modpath, mg_name)
end
2019-04-22 15:33:51 -07:00
if petz.settings.grizzly_spawn then
assert(loadfile(modpath .. "/grizzly_"..petz.settings.type_api..".lua"))(S)
end
if petz.settings.pony_spawn then
assert(loadfile(modpath .. "/pony_"..petz.settings.type_api..".lua"))(S)
2019-04-20 14:58:59 -07:00
end
2019-04-27 07:02:00 -07:00
if petz.settings.parrot_spawn then
2019-07-02 08:07:48 -07:00
--assert(loadfile(modpath .. "/parrot_"..petz.settings.type_api..".lua"))(S)
2019-04-25 11:36:24 -07:00
end
2019-04-27 07:02:00 -07:00
if petz.settings.chicken_spawn then
assert(loadfile(modpath .. "/chicken_"..petz.settings.type_api..".lua"))(S)
end
2019-04-28 15:13:23 -07:00
if petz.settings.chimp_spawn then
2019-05-02 14:14:00 -07:00
assert(loadfile(modpath .. "/chimp_"..petz.settings.type_api..".lua"))(S)
2019-04-28 15:13:23 -07:00
end
2019-05-01 14:55:40 -07:00
if petz.settings.piggy_spawn then
2019-05-02 14:14:00 -07:00
assert(loadfile(modpath .. "/piggy_"..petz.settings.type_api..".lua"))(S)
2019-04-29 13:47:48 -07:00
end
2019-05-01 14:26:37 -07:00
if petz.settings.pigeon_spawn then
2019-05-02 14:14:00 -07:00
assert(loadfile(modpath .. "/pigeon_"..petz.settings.type_api..".lua"))(S)
2019-05-01 14:22:36 -07:00
end
2019-05-08 10:53:11 -07:00
if petz.settings.turtle_spawn then
2019-05-09 13:48:23 -07:00
assert(loadfile(modpath .. "/turtle_"..petz.settings.type_api..".lua"))(S, modpath, mg_name)
end
if petz.settings.clownfish_spawn then
assert(loadfile(modpath .. "/clownfish_"..petz.settings.type_api..".lua"))(S)
2019-05-08 10:53:11 -07:00
end
2019-05-30 12:36:07 -07:00
if petz.settings.tropicalfish_spawn then
assert(loadfile(modpath .. "/tropicalfish_"..petz.settings.type_api..".lua"))(S)
end
2019-07-13 09:06:58 -07:00
if petz.settings.wolf_spawn then
assert(loadfile(modpath .. "/wolf_"..petz.settings.type_api..".lua"))(S)
end