mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
dont remove infinite lifetime components on revive, looks like lto and strip work fine
This commit is contained in:
parent
9afb13b4cb
commit
62b056956a
3 changed files with 29 additions and 27 deletions
|
@ -289,8 +289,8 @@ ctx.cap.health = {
|
|||
if not EntityHasTag(child, "perk_entity") then
|
||||
local com = EntityGetFirstComponentIncludingDisabled(child, "GameEffectComponent")
|
||||
local comt = EntityGetFirstComponentIncludingDisabled(child, "LifetimeComponent")
|
||||
if (com ~= nil and ComponentGetValue2(com, "effect") ~= "EDIT_WANDS_EVERYWHERE")
|
||||
or comt ~= nil
|
||||
if (com ~= nil and ComponentGetValue2(com, "frames") ~= -1 and ComponentGetValue2(com, "frames") < 60 * 60 * 60)
|
||||
or (comt ~= nil and ComponentGetValue2(comt, "lifetime") ~= -1 and ComponentGetValue2(comt, "lifetime") < 60 * 60 * 60)
|
||||
or EntityHasTag(child, "projectile") then
|
||||
EntityKill(child)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue