Fixed option to disable certain object descriptions and improved dice-room effect detection
This commit is contained in:
1 parent
c015c5a265
commit
896e028d5a
2 files changed
+17
-19
No files matched your search
@@ -313,13 +313,8 @@ local function onRender(t)
|
||||
end
|
||||
|
||||
local closest = nil
|
||||
local closestDice = nil
|
||||
local dist = 10000
|
||||
for i, entity in ipairs(Isaac.GetRoomEntities()) do
|
||||
if Game():GetRoom():GetType() == RoomType.ROOM_DICE and entity.Type == 1000 and entity.Variant == 76 then
|
||||
closestDice = entity
|
||||
end
|
||||
|
||||
if EID:hasDescription(entity) then
|
||||
local diff = entity.Position:__sub(player.Position)
|
||||
if diff:Length() < dist then
|
||||
@@ -333,12 +328,6 @@ local function onRender(t)
|
||||
if Game():GetRoom():GetType() == RoomType.ROOM_SACRIFICE and EID.Config["DisplaySacrificeInfo"] then
|
||||
EID:printDescription(EID:getDescriptionObj(-999, -1, EID.sacrificeCounter))
|
||||
end
|
||||
if
|
||||
Game():GetRoom():GetType() == RoomType.ROOM_DICE and EID.Config["DisplayDiceInfo"] and type(closestDice) ~= type(nil)
|
||||
then
|
||||
EID:printDescription(EID:getDescriptionObj(-999, -2, closestDice.SubType + 1))
|
||||
EID:renderIndicator(closestDice)
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
@@ -365,6 +354,11 @@ local function onRender(t)
|
||||
EID:printDescription(origDesc)
|
||||
return
|
||||
end
|
||||
|
||||
if closest.Type == 1000 and closest.Variant == 76 then
|
||||
EID:printDescription(EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType+1))
|
||||
return
|
||||
end
|
||||
|
||||
if closest.Variant == PickupVariant.PICKUP_TRINKET then
|
||||
--Handle Trinkets
|
||||
|
||||
Reference in new issue
Block a user