Added Config option to toggle Transformation progress

This commit is contained in:
Wofsauge committed 2022-03-19 02:50:55 +01:00
1 parent ef53c20396
commit e5f0b3c33e
4 files changed
+10 -1

No files matched your search

+2 -1
View File
@@ -663,11 +663,12 @@ function EID:printDescription(desc, cachedID)
if EID.Config["TransformationText"] then
local transformationName = EID:getTransformationName(transform)
if true then
if EID.Config["TransformationProgress"] then
-- TODO: call evaluate only when ItemQueue of player changes to save performance
EID:evaluateTransformationProgress(transform)
local numCollected = EID.TransformationProgress[EID:getPlayerID(EID.player)][transform]
local numMax = EID.TransformationData[transform] and EID.TransformationData[transform].NumNeeded or 3
transformationName = transformationName.." ("..numCollected.."/"..numMax..")"
transformationName = transformationName.."("..numCollected.."/"..numMax..")"
end
local iconWidth = transformSprite[3] or -1
local iconHeight = transformSprite[4] or -1