mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix notplayer throwing water at newly revived players
This commit is contained in:
parent
7ba48e1d27
commit
fefaf0ed79
1 changed files with 3 additions and 10 deletions
|
@ -205,16 +205,9 @@ local function has_pheremoned(entity)
|
|||
end
|
||||
|
||||
local function has_ambrosia(entity)
|
||||
for _, ent in ipairs(EntityGetAllChildren(entity) or {}) do
|
||||
local com = EntityGetFirstComponent(ent, "GameEffectComponent")
|
||||
if com ~= nil then
|
||||
local name = ComponentGetValue2(com, "effect")
|
||||
if name == "PROTECTION_ALL" then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
local com = EntityGetFirstComponentIncludingDisabled(entity, "StatusEffectDataComponent")
|
||||
local stains = ComponentGetValue2(com, "stain_effects")
|
||||
return stains[24] ~= nil and stains[24] >= 0.15
|
||||
end
|
||||
|
||||
local function needs_douse(entity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue