From 0ad3092f2b30e529ff95c5d1cd25c02943e6de9d Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Mon, 7 Nov 2022 01:19:47 +0100 Subject: [PATCH] fixed transformations causing flickering due to missing table --- eid_api.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 267991a2..f55af469 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -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