revert pathchecker
This commit is contained in:
1 parent
e8bfefa9d6
commit
a015513a07
1 file changed
+13
-2
@@ -787,6 +787,17 @@ function EID:setPlayer()
|
||||
end
|
||||
end
|
||||
|
||||
-- is this needed if pathchecker uses a no reward seed?
|
||||
if REPENTANCE then
|
||||
function EID:removeWrongGuppyEyeInfo(effectEntity)
|
||||
if EID.pathCheckerEntity ~= nil and effectEntity.Parent ~= nil then
|
||||
if GetPtrHash(effectEntity.Parent) == GetPtrHash(EID.pathCheckerEntity) then
|
||||
effectEntity:Remove()
|
||||
end
|
||||
end
|
||||
end
|
||||
EID:AddCallback(ModCallbacks.MC_POST_EFFECT_UPDATE, EID.removeWrongGuppyEyeInfo, EffectVariant.PICKUP_GHOST)
|
||||
end
|
||||
---------------------------------------------------------------------------
|
||||
---------------------------On Update Function------------------------------
|
||||
|
||||
@@ -834,8 +845,8 @@ function EID:onGameUpdate()
|
||||
return
|
||||
end
|
||||
if EID.pathCheckerEntity == nil then
|
||||
-- Spawns an Ultra Greed Door and makes it invisible and intangible to act as a Pathfinding NPC that can't be rerolled and has no AI
|
||||
EID.pathCheckerEntity = game:Spawn(294, 0, EID.player.Position, nullVector, EID.player, 0, 0)
|
||||
-- Spawns the EID Helper entity with seed that doesnt spawn rewards
|
||||
EID.pathCheckerEntity = game:Spawn(17, 3169, EID.player.Position, nullVector, EID.player, 0, 4354)
|
||||
EID.pathCheckerEntity:ClearEntityFlags(EntityFlag.FLAG_APPEAR)
|
||||
EID.pathCheckerEntity:AddEntityFlags (EntityFlag.FLAG_PERSISTENT | EntityFlag.FLAG_NO_STATUS_EFFECTS | EntityFlag.FLAG_NO_SPRITE_UPDATE | EntityFlag.FLAG_HIDE_HP_BAR | EntityFlag.FLAG_NO_DEATH_TRIGGER | EntityFlag.FLAG_FRIENDLY)
|
||||
if REPENTANCE then EID.pathCheckerEntity:AddEntityFlags(EntityFlag.FLAG_NO_QUERY) end
|
||||
|
||||
Reference in new issue
Block a user