Changed Pathfinder helper Entity Type and flags to be more compatible with other mods
This commit is contained in:
1 parent
b62993af13
commit
6933d6beb2
2 files changed
+4
-4
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<entities anm2root="gfx/" version="5">
|
||||
<entity anm2path="nothing.anm2" baseHP="0" boss="0" champion="0" collisionDamage="0" collisionMass="0" collisionRadius="0" friction="1" id="17" name="EID_PATHCHECKER" numGridCollisionPoints="0" shadowSize="0" stageHP="0" variant="69420" shutdoors="false">
|
||||
<entity anm2path="nothing.anm2" baseHP="0" boss="0" champion="0" collisionDamage="0" collisionMass="0" collisionRadius="0" friction="1" id="500" name="EID_PATHCHECKER" numGridCollisionPoints="0" shadowSize="0" stageHP="0" variant="69420" shutdoors="false">
|
||||
<gibs amount="0" blood="0" bone="0" eye="0" gut="0" large="0" />
|
||||
</entity>
|
||||
</entities>
|
||||
@@ -224,7 +224,6 @@ function EID:printDescription(desc)
|
||||
iconType = "Card"
|
||||
elseif desc.ItemType == 5 and desc.ItemVariant == 70 then
|
||||
iconType = "Pill"
|
||||
renderID = desc.RealID
|
||||
end
|
||||
if iconType ~= nil then
|
||||
offsetX = offsetX + 14
|
||||
@@ -419,8 +418,9 @@ function EID:onGameUpdate()
|
||||
return
|
||||
end
|
||||
if EID.pathCheckerEntity == nil then
|
||||
EID.pathCheckerEntity = Isaac.Spawn(17, 69420, 0, player.Position, nullVector, nil) -- Spawns the EID Helper entity
|
||||
EID.pathCheckerEntity:AddEntityFlags (EntityFlag.FLAG_PERSISTENT)
|
||||
EID.pathCheckerEntity = Isaac.Spawn(500, 69420, 0, player.Position, nullVector, nil) -- Spawns the EID Helper entity
|
||||
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)
|
||||
EID.hasValidWalkingpath = false
|
||||
elseif not EID.pathCheckerEntity:Exists() then
|
||||
EID.pathCheckerEntity = nil
|
||||
|
||||
Reference in new issue
Block a user