fixed transformations causing flickering due to missing table

This commit is contained in:
Wofsauge committed 2022-11-07 01:19:47 +01:00
1 parent 73b10108c3
commit 0ad3092f2b
1 file changed
+4 -1
+4 -1
View File
@@ -1710,7 +1710,10 @@ function EID:evaluateTransformationProgress(transformation)
if activesTable[tostring(eSubType)] then
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + activesTable[tostring(eSubType)]
else
local collCount = player:GetCollectibleNum(eSubType, true) - (EID.PlayerItemInteractions[i].rerollItems[tostring(eSubType)] or 0)
local collCount = player:GetCollectibleNum(eSubType, true)
if EID.PlayerItemInteractions[i].rerollItems then
collCount = collCount - (EID.PlayerItemInteractions[i].rerollItems[tostring(eSubType)] or 0)
end
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + collCount
-- Undo the Book of Virtues active item getting counted here