Added Tarot Cloth support for "The Stars?" modifier

This commit is contained in:
Wofsauge committed 2024-07-17 20:05:09 +02:00
1 parent 7e7e572235
commit c28018b0db
1 file changed
+4 -1
+4 -1
View File
@@ -579,7 +579,9 @@ if EID.isRepentance then
local playerID = EID:getPlayerID(player, true) local playerID = EID:getPlayerID(player, true)
local playerType = player:GetPlayerType() local playerType = player:GetPlayerType()
if EID.OldestItemIndex[playerID] and EID.RecentlyTouchedItems[playerID] then if EID.OldestItemIndex[playerID] and EID.RecentlyTouchedItems[playerID] then
local oldestItem = EID.RecentlyTouchedItems[playerID][EID.OldestItemIndex[playerID]] local repetitions = player:HasCollectible(451) and 2 or 1 -- Tarot Cloth removes 2 items
for indexOffset = 0, repetitions - 1 do
local oldestItem = EID.RecentlyTouchedItems[playerID][EID.OldestItemIndex[playerID] + indexOffset]
if oldestItem then if oldestItem then
EID:appendToDescription(descObj, "#") EID:appendToDescription(descObj, "#")
if #EID.coopAllPlayers > 1 then EID:appendToDescription(descObj, EID:GetPlayerIcon(playerType, "P" .. i .. ":") .. " ") end if #EID.coopAllPlayers > 1 then EID:appendToDescription(descObj, EID:GetPlayerIcon(playerType, "P" .. i .. ":") .. " ") end
@@ -587,6 +589,7 @@ if EID.isRepentance then
end end
end end
end end
end
return descObj return descObj
end end