Pills used via Temperance? card now count towards being used

This commit is contained in:
Wofsauge committed 2024-11-17 17:26:05 +01:00
1 parent 12c40d2193
commit 0f7a7f8737
1 file changed
+2 -3
+2 -3
View File
@@ -1707,9 +1707,8 @@ function EID:OnUsePill(pillEffectID, player, useFlags)
if EID.isRepentance and useFlags ~= UseFlag.USE_NOANNOUNCER then EID:TrackWildCardEffects("5.70." .. (pillEffectID+1), player, pillColor) end if EID.isRepentance and useFlags ~= UseFlag.USE_NOANNOUNCER then EID:TrackWildCardEffects("5.70." .. (pillEffectID+1), player, pillColor) end
EID.ForceRefreshCache = true -- for transformation progress update EID.ForceRefreshCache = true -- for transformation progress update
-- for tracking used pills, ignore gold pills and noannouncer flag pills (Temperance?) -- for tracking used pills, ignore gold pills and no animation pills, since those dont show what pull you used
-- (not using a bitmask, because Placebo is mimic+noannouncer, and we want to count those) if EID.isRepentance and (pillColor % PillColor.PILL_GIANT_FLAG == PillColor.PILL_GOLD or useFlags & UseFlag.USE_NOANIM == UseFlag.USE_NOANIM) then return end
if EID.isRepentance and (pillColor % PillColor.PILL_GIANT_FLAG == PillColor.PILL_GOLD or useFlags == UseFlag.USE_NOANNOUNCER) then return end
EID.UsedPillColors[tostring(pillColor)] = true EID.UsedPillColors[tostring(pillColor)] = true
end end
EID:AddCallback(ModCallbacks.MC_USE_PILL, EID.OnUsePill) EID:AddCallback(ModCallbacks.MC_USE_PILL, EID.OnUsePill)