Added Tarot Cloth support for "The Stars?" modifier
This commit is contained in:
1 parent
7e7e572235
commit
c28018b0db
1 file changed
+8
-5
@@ -579,11 +579,14 @@ 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
|
||||||
if oldestItem then
|
for indexOffset = 0, repetitions - 1 do
|
||||||
EID:appendToDescription(descObj, "#")
|
local oldestItem = EID.RecentlyTouchedItems[playerID][EID.OldestItemIndex[playerID] + indexOffset]
|
||||||
if #EID.coopAllPlayers > 1 then EID:appendToDescription(descObj, EID:GetPlayerIcon(playerType, "P" .. i .. ":") .. " ") end
|
if oldestItem then
|
||||||
EID:appendToDescription(descObj, "{{NameC" .. oldestItem .. "}}")
|
EID:appendToDescription(descObj, "#")
|
||||||
|
if #EID.coopAllPlayers > 1 then EID:appendToDescription(descObj, EID:GetPlayerIcon(playerType, "P" .. i .. ":") .. " ") end
|
||||||
|
EID:appendToDescription(descObj, "{{NameC" .. oldestItem .. "}}")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user