2016-04-15 07:01:56 -07:00
|
|
|
|
|
|
|
local path = minetest.get_modpath("mobs_npc")
|
|
|
|
|
2016-06-11 02:54:30 -07:00
|
|
|
-- Intllib
|
|
|
|
local S
|
|
|
|
if minetest.get_modpath("intllib") then
|
2018-01-10 16:01:11 -08:00
|
|
|
S = intllib.make_gettext_pair()
|
2016-06-11 02:54:30 -07:00
|
|
|
else
|
|
|
|
S = function(s, a, ...)
|
|
|
|
if a == nil then
|
|
|
|
return s
|
|
|
|
end
|
|
|
|
a = {a, ...}
|
|
|
|
return s:gsub("(@?)@(%(?)(%d+)(%)?)",
|
|
|
|
function(e, o, n, c)
|
|
|
|
if e == ""then
|
|
|
|
return a[tonumber(n)] .. (o == "" and c or "")
|
|
|
|
else
|
|
|
|
return "@" .. o .. n .. c
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
mobs.intllib = S
|
|
|
|
|
2016-04-15 07:01:56 -07:00
|
|
|
-- NPC
|
2017-12-13 05:40:02 -08:00
|
|
|
-- dofile(path .. "/npc.lua") -- TenPlus1
|
|
|
|
-- dofile(path .. "/trader.lua")
|
|
|
|
-- dofile(path .. "/igor.lua")
|
|
|
|
dofile(path.."/snow_golem.lua")
|
2016-04-15 07:01:56 -07:00
|
|
|
|
2017-12-13 05:40:02 -08:00
|
|
|
-- dofile(path .. "/lucky_block.lua")
|
2016-12-01 10:43:03 -08:00
|
|
|
|
2016-06-11 02:54:30 -07:00
|
|
|
print (S("[MOD] Mobs Redo 'NPCs' loaded"))
|