fix Demo Object Transformation bug

This commit is contained in:
Buurazu authored and GitHub committed 2022-05-25 05:40:25 -04:00
1 parent d74a6a68fd
commit d794b4fd99
1 file changed
+1 -1
+1 -1
View File
@@ -670,7 +670,7 @@ function EID:printDescription(desc, cachedID)
local playerIcon = EID:getIcon("Player"..player.SubType) ~= EID.InlineIcons["ERROR"] and "{{Player"..player.SubType.."}}" or "{{CustomTransformation}}" local playerIcon = EID:getIcon("Player"..player.SubType) ~= EID.InlineIcons["ERROR"] and "{{Player"..player.SubType.."}}" or "{{CustomTransformation}}"
transformationName = transformationName .. playerIcon transformationName = transformationName .. playerIcon
end end
local numCollected = EID.TransformationProgress[EID:getPlayerID(player)][transform] or 0 local numCollected = EID.TransformationProgress[EID:getPlayerID(player)] and EID.TransformationProgress[EID:getPlayerID(player)][transform] or 0
local numMax = EID.TransformationData[transform] and EID.TransformationData[transform].NumNeeded or 3 local numMax = EID.TransformationData[transform] and EID.TransformationData[transform].NumNeeded or 3
transformationName = transformationName.."("..numCollected.."/"..numMax..") " transformationName = transformationName.."("..numCollected.."/"..numMax..") "
end end