pub enum HitCount {
Fixed(u8),
TwoToFive,
}Expand description
The number of times a Op::RepeatHits re-applies the in-flight move’s damage
(blueprint 15 §2/§3, the new game-side multi-hit construct). Gen-1 multi-hit
checks accuracy ONCE then deals the SAME computed damage N times; this enum is
the source of N. Every variant is game-agnostic — the rules crate names no
game-specific concept, only “a count, optionally drawn from one byte”.
Variants§
Fixed(u8)
A fixed number of hits (Double Kick / Bonemerang / Twineedle = Fixed(2)).
Draws NO rng.
TwoToFive
The Gen-1 two-to-five distribution (TwoToFiveAttacksEffect): draws ONE
byte and folds it 3/8·3/8·1/8·1/8 over {2,3,4,5} — bit-identical to the
legacy determine_hit_count (roll<96⇒2, <192⇒3, <224⇒4, else⇒5). The byte
is the legacy multi_hit_roll; it is the SOLE entropy of this variant, drawn
at the op’s ordinal so the stream stays a pure function of the op-list.