1
0
Fork 0

Baby animals don't drop XP

objects
Wuzzy 2020-12-05 23:42:33 +01:00
parent b70e58ab05
commit 9d31ddb30d
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ local check_for_death = function(self, cause, cmi_cause)
local pos = self.object:get_pos()
if mod_experience and self.hp_min and self.hp_max then
if mod_experience and self.hp_min and self.hp_max and (not self.child and self.type ~= "monster") then
mcl_experience.throw_experience(pos, math.ceil( math.random(self.hp_min,self.hp_max+5) / 5) )
end
end