Update 'mods/mobs/api.lua'
This commit is contained in:
parent
6ee171461c
commit
37bc84a681
|
@ -125,7 +125,7 @@ local mob_class = {
|
||||||
attack_chance = 5,
|
attack_chance = 5,
|
||||||
passive = false,
|
passive = false,
|
||||||
blood_amount = 5,
|
blood_amount = 5,
|
||||||
blood_texture = "mobs_blood.png",
|
blood_texture = "blood.png",
|
||||||
shoot_offset = 0,
|
shoot_offset = 0,
|
||||||
floats = 1, -- floats in water by default
|
floats = 1, -- floats in water by default
|
||||||
replace_offset = 0,
|
replace_offset = 0,
|
||||||
|
@ -931,7 +931,7 @@ function mob_class:check_for_death(cmi_cause)
|
||||||
|
|
||||||
remove_mob(self, true)
|
remove_mob(self, true)
|
||||||
|
|
||||||
effect(pos, 20, "tnt_smoke.png")
|
effect(pos, 20, "smoke.png")
|
||||||
end
|
end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
@ -1069,7 +1069,7 @@ function mob_class:do_env_damage()
|
||||||
|
|
||||||
self.health = self.health - self.lava_damage
|
self.health = self.health - self.lava_damage
|
||||||
|
|
||||||
effect(pos, 15, "fire_basic_flame.png", 1, 5, 1, 0.2, 15, true)
|
effect(pos, 15, "fire_basic.png", 1, 5, 1, 0.2, 15, true)
|
||||||
|
|
||||||
if self:check_for_death({type = "environment", pos = pos,
|
if self:check_for_death({type = "environment", pos = pos,
|
||||||
node = self.standing_in, hot = true}) then
|
node = self.standing_in, hot = true}) then
|
||||||
|
@ -1082,7 +1082,7 @@ function mob_class:do_env_damage()
|
||||||
|
|
||||||
self.health = self.health - nodef.damage_per_second
|
self.health = self.health - nodef.damage_per_second
|
||||||
|
|
||||||
effect(pos, 5, "tnt_smoke.png")
|
effect(pos, 5, "smoke.png")
|
||||||
|
|
||||||
if self:check_for_death({type = "environment",
|
if self:check_for_death({type = "environment",
|
||||||
pos = pos, node = self.standing_in}) then
|
pos = pos, node = self.standing_in}) then
|
||||||
|
@ -1100,7 +1100,7 @@ function mob_class:do_env_damage()
|
||||||
|
|
||||||
self.health = self.health - self.light_damage
|
self.health = self.health - self.light_damage
|
||||||
|
|
||||||
effect(pos, 5, "tnt_smoke.png")
|
effect(pos, 5, "smoke.png")
|
||||||
|
|
||||||
if self:check_for_death({type = "light"}) then
|
if self:check_for_death({type = "light"}) then
|
||||||
return true
|
return true
|
||||||
|
@ -1423,7 +1423,7 @@ function mob_class:breed()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
effect(pos, 15, "tnt_smoke.png", 1, 2, 2, 15, 5)
|
effect(pos, 15, "smoke.png", 1, 2, 2, 15, 5)
|
||||||
end
|
end
|
||||||
|
|
||||||
local mob = minetest.add_entity(pos, self.name)
|
local mob = minetest.add_entity(pos, self.name)
|
||||||
|
@ -2398,7 +2398,7 @@ function mob_class:do_states(dtime)
|
||||||
|
|
||||||
entity_physics(pos, entity_damage_radius)
|
entity_physics(pos, entity_damage_radius)
|
||||||
|
|
||||||
effect(pos, 32, "tnt_smoke.png", nil, nil,
|
effect(pos, 32, "smoke.png", nil, nil,
|
||||||
node_break_radius, 1, 0)
|
node_break_radius, 1, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2666,7 +2666,7 @@ function mob_class:falling(pos)
|
||||||
|
|
||||||
self.health = self.health - floor(d - 5)
|
self.health = self.health - floor(d - 5)
|
||||||
|
|
||||||
effect(pos, 5, "tnt_smoke.png", 1, 2, 2, nil)
|
effect(pos, 5, "smoke.png", 1, 2, 2, nil)
|
||||||
|
|
||||||
if self:check_for_death({type = "fall"}) then
|
if self:check_for_death({type = "fall"}) then
|
||||||
return true
|
return true
|
||||||
|
@ -3240,7 +3240,7 @@ function mob_class:mob_expire(pos, dtime)
|
||||||
-- minetest.log("action",
|
-- minetest.log("action",
|
||||||
-- S("lifetimer expired, removed @1", self.name))
|
-- S("lifetimer expired, removed @1", self.name))
|
||||||
|
|
||||||
effect(pos, 15, "tnt_smoke.png", 2, 4, 2, 0)
|
effect(pos, 15, "smoke.png", 2, 4, 2, 0)
|
||||||
|
|
||||||
remove_mob(self, true)
|
remove_mob(self, true)
|
||||||
|
|
||||||
|
@ -4160,7 +4160,7 @@ function mobs:safe_boom(self, pos, radius)
|
||||||
|
|
||||||
entity_physics(pos, radius)
|
entity_physics(pos, radius)
|
||||||
|
|
||||||
effect(pos, 32, "tnt_smoke.png", radius * 3, radius * 5, radius, 1, 0)
|
effect(pos, 32, "smoke.png", radius * 3, radius * 5, radius, 1, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue