From 44a6864b89a13180f5238ad90fbb6458a194fcf0 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Wed, 13 Apr 2022 01:33:28 -0400 Subject: [PATCH] improve caching, Kid's Drawing --- eid_api.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index cd2f03ac..2b6553ae 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -1545,7 +1545,7 @@ function EID:evaluateTransformationProgress(transformation) end end 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] + player:GetTrinketMultiplier(eSubType) elseif tonumber(eVariant) == PickupVariant.PICKUP_PILL then if EID.PlayerItemInteractions[i].pills[tostring(eSubType)] then EID.TransformationProgress[i][transformation] = EID.TransformationProgress[i][transformation] + EID.PlayerItemInteractions[i].pills[tostring(eSubType)] @@ -1557,7 +1557,7 @@ function EID:evaluateTransformationProgress(transformation) end end --- Given a transformation identifier, itterate over every player and count the number of items they have which count towards that transformation +-- Given a transformation identifier, iterate over every player and count the number of items they have which count towards that transformation EID.PlayerItemInteractions = {} function EID:evaluateQueuedItems() for i = 0, game:GetNumPlayers() - 1 do @@ -1573,6 +1573,7 @@ function EID:evaluateQueuedItems() end if not player.QueuedItem.Touched and player.QueuedItem.Item and player.QueuedItem.Item.Type == ItemType.ITEM_ACTIVE then + EID.ForceRefreshCache = true local itemID = tostring(player.QueuedItem.Item.ID) if not EID.PlayerItemInteractions[i].actives[itemID] then EID.PlayerItemInteractions[i].actives[itemID] = 0