Fix Book of Virtues being counted twice in transformation
This commit is contained in:
1 parent
c1183611ea
commit
b2a72a443d
1 file changed
+4
@@ -1528,6 +1528,10 @@ function EID:evaluateTransformationProgress(transformation)
|
|||||||
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + EID.PlayerItemInteractions[i].actives[tostring(eSubType)]
|
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + EID.PlayerItemInteractions[i].actives[tostring(eSubType)]
|
||||||
else
|
else
|
||||||
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + player:GetCollectibleNum(eSubType, true)
|
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + player:GetCollectibleNum(eSubType, true)
|
||||||
|
-- Undo the Book of Virtues active item getting counted here
|
||||||
|
if tonumber(eSubType) == 584 and player:GetActiveItem() == 584 then
|
||||||
|
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] - 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif tonumber(eVariant) == PickupVariant.PICKUP_TRINKET and player:HasTrinket(eSubType) then
|
elseif tonumber(eVariant) == PickupVariant.PICKUP_TRINKET and player:HasTrinket(eSubType) then
|
||||||
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + 1
|
EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + 1
|
||||||
|
|||||||
Reference in new issue
Block a user