mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 23:40:18 +01:00
Fix bad hp_max of mummy
This commit is contained in:
parent
d9c4b78998
commit
5104b2a117
@ -70,6 +70,7 @@ local function mummy_update_visuals_def(self)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local MUMMY_DEF = {
|
local MUMMY_DEF = {
|
||||||
|
hp_max = mummy_hp,
|
||||||
physical = true,
|
physical = true,
|
||||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
@ -186,9 +187,6 @@ MUMMY_DEF.on_step = function(self, dtime)
|
|||||||
self.time_passed = 0
|
self.time_passed = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.object:get_hp() == 0 then
|
|
||||||
self.object:remove()
|
|
||||||
end
|
|
||||||
local def = minetest.registered_nodes[current_node.name]
|
local def = minetest.registered_nodes[current_node.name]
|
||||||
local dps = def.damage_per_second
|
local dps = def.damage_per_second
|
||||||
local dmg = 0
|
local dmg = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user