mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
make fire less weird hopefully
This commit is contained in:
parent
82b7352d70
commit
a570730aa6
1 changed files with 6 additions and 3 deletions
|
@ -184,11 +184,14 @@ function effect_sync.apply_effects(effects, entity, perks)
|
|||
is_on_fire = true
|
||||
end
|
||||
end
|
||||
if not is_on_fire then
|
||||
local damage_model = EntityGetFirstComponentIncludingDisabled(entity, "DamageModelComponent")
|
||||
if damage_model ~= nil then
|
||||
if not is_on_fire then
|
||||
ComponentSetValue2(damage_model, "mFireProbability", 0)
|
||||
ComponentSetValue2(damage_model, "mFireFramesLeft", 0)
|
||||
else
|
||||
ComponentSetValue2(damage_model, "mFireProbability", 100)
|
||||
ComponentSetValue2(damage_model, "mFireFramesLeft", 1000)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue