Function crit_streak_met

Source
pub fn crit_streak_met(streak: i64, required: i64) -> bool
Expand description

Whether a crit streak of streak satisfies “required crits in a row”.

Fires on every required-th crit (2, 4, 6 … for TR-E04) rather than resetting a counter, because one counter is shared by every socketed slot: a reset by whichever slot happened to match first would silently starve the others — TR-L01 (three in a row) would never see a third crit if TR-E04 zeroed the streak on the second. The global cooldown is what bounds the rate.