Fixed indicators for Crane Game descriptions

This commit is contained in:
Wofsauge committed 2021-12-16 22:12:29 +01:00
1 parent c0121ce90f
commit ceb1837550
1 file changed
+9 -1
+9 -1
View File
@@ -413,8 +413,12 @@ function EID:renderIndicator(entity)
entityPos = entityPos + entity:GetData()["EID_RenderOffset"]
end
-- Move highlights a bit to fit onto the alt Item layout of Flip / Tainted Laz
if REPENTANCE and entity.Variant == 100 and EID.player:HasCollectible(CollectibleType.COLLECTIBLE_FLIP) then
if REPENTANCE then
if entity.Variant == 100 and EID.player:HasCollectible(CollectibleType.COLLECTIBLE_FLIP) then
entityPos = entityPos + Vector(2.5,2.5)
elseif entity.Type == 6 and entity.Variant == 16 then
entityPos = entityPos + Vector(0,-5)
end
end
local sprite = entity:GetSprite()
if REPENTANCE then
@@ -488,6 +492,8 @@ end
function EID:renderEntity(entity, sprite, position)
if entity.Type == 5 and entity.Variant == 100 then
sprite:RenderLayer(1, position, nullVector, nullVector)
elseif entity.Type == 6 and entity.Variant == 16 then -- Crane Game
sprite:RenderLayer(2, position, nullVector, nullVector)
else
sprite:Render(position, nullVector, nullVector)
end
@@ -575,6 +581,7 @@ function EID:onGameUpdate()
table.insert(curPositions, {entity, entity.Position})
end
if REPENTANCE and EID.CraneItemType ~= nil then
for _, crane in ipairs(Isaac.FindByType(6, 16, -1, true, false)) do
if EID.CraneItemType[tostring(crane.InitSeed)] then
if crane:GetSprite():IsPlaying("Prize") then
@@ -582,6 +589,7 @@ function EID:onGameUpdate()
end
end
end
end
if not EID.Config["DisplayObstructedCardInfo"] or not EID.Config["DisplayObstructedPillInfo"] or not EID.Config["DisplayObstructedSoulstoneInfo"] then
if EID.lastDescriptionEntity == nil or (EID.Config["DisableObstructionOnFlight"] and EID.player.CanFly) then