tweak flame particles when burning
This commit is contained in:
parent
9dd4ac770f
commit
d5a1fce680
9
api.lua
9
api.lua
@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20200525",
|
version = "20200527",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
@ -988,6 +988,9 @@ function mob_class:do_env_damage()
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- particle appears at random mob height
|
||||||
|
pos.y = pos.y + random(self.collisionbox[2], self.collisionbox[5])
|
||||||
|
|
||||||
-- is mob light sensative, or scared of the dark :P
|
-- is mob light sensative, or scared of the dark :P
|
||||||
if self.light_damage ~= 0 then
|
if self.light_damage ~= 0 then
|
||||||
|
|
||||||
@ -1008,8 +1011,6 @@ function mob_class:do_env_damage()
|
|||||||
|
|
||||||
local nodef = minetest.registered_nodes[self.standing_in]
|
local nodef = minetest.registered_nodes[self.standing_in]
|
||||||
|
|
||||||
pos.y = pos.y + 1 -- for particle effect position
|
|
||||||
|
|
||||||
-- water
|
-- water
|
||||||
if self.water_damage and nodef.groups.water then
|
if self.water_damage and nodef.groups.water then
|
||||||
|
|
||||||
@ -1032,7 +1033,7 @@ function mob_class:do_env_damage()
|
|||||||
|
|
||||||
self.health = self.health - self.lava_damage
|
self.health = self.health - self.lava_damage
|
||||||
|
|
||||||
effect(pos, 5, "fire_basic_flame.png", nil, nil, 1, nil)
|
effect(pos, 15, "fire_basic_flame.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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user