cleaner follow report

This commit is contained in:
Tai @ Flex 2016-08-21 16:57:19 +01:00
parent f1d5a8dcaf
commit c2507b352c

View File

@ -13,6 +13,16 @@ function damagerate(hp)
return math.ceil(hp/10) return math.ceil(hp/10)
end end
function getfollows(followt)
if type(followt) == "string" then return followt; end
local followstring = ""
for _,s in pairs(followt) do
followstring = followstring .. " " .. s
end
return followstring
end
function captivate(mobname,modset) function captivate(mobname,modset)
local mobe = minetest.registered_entities[mobname] local mobe = minetest.registered_entities[mobname]
if not mobe then if not mobe then
@ -60,7 +70,7 @@ function captivate(mobname,modset)
handchance..", ".. handchance..", "..
netchance..", ".. netchance..", "..
lassochance.."). It follows: ".. lassochance.."). It follows: "..
dump(self.follow) getfollows(self.follow)
) )
mobs:capture_mob(self, clicker, handchance, netchance, lassochance, override, replacement) mobs:capture_mob(self, clicker, handchance, netchance, lassochance, override, replacement)