Function counter_met

Source
pub fn counter_met(count: i64, period: i64) -> bool
Expand description

Whether an event counter of count satisfies “every period-th”.

Same modulo shape as crit_streak_met and for the same reason: TR-C01 (every 5th attack) and a hypothetical every-3rd trigger share one counter, so neither may zero it. What does zero it is the rule in acceptance criterion #5 — an activation lost to the global cooldown restarts the sequence, which is reset_sequence_counters’s job.