Fix AB+ True Co-op's icons being wack

This commit is contained in:
Buurazu authored and GitHub committed 2022-06-11 22:24:36 -04:00
1 parent c2f92a19ac
commit 827144e848
1 file changed
+3 -2
+3 -2
View File
@@ -670,9 +670,10 @@ function EID:printDescription(desc, cachedID)
EID:evaluateTransformationProgress(transform)
transformationName = transformationName .. " "
for _, player in ipairs(EID.coopAllPlayers) do
if player:GetPlayerType() ~= PlayerType.PLAYER_THESOUL_B then
local playerType = player:GetPlayerType()
if playerType ~= PlayerType.PLAYER_THESOUL_B then
if #EID.coopAllPlayers > 1 then
local playerIcon = EID:getIcon("Player"..player.SubType) ~= EID.InlineIcons["ERROR"] and "{{Player"..player.SubType.."}}" or "{{CustomTransformation}}"
local playerIcon = EID:getIcon("Player"..playerType) ~= EID.InlineIcons["ERROR"] and "{{Player"..playerType.."}}" or "{{CustomTransformation}}"
transformationName = transformationName .. playerIcon
end
local numCollected = EID.TransformationProgress[EID:getPlayerID(player)] and EID.TransformationProgress[EID:getPlayerID(player)][transform] or 0