Function roll_team_die

Source
pub fn roll_team_die(
    rng: &mut StdRng,
    faces: &[RolledFacet],
) -> Option<RolledFacet>
Expand description

Rolls the Team Die: a uniform 1-of-N pick over the incoming side’s faces.

N is three for a full team of three pets, which is the 1/3 of the design. It is deliberately not hard-coded to three: a player with one or two pets equipped still rolls, uniformly, over the faces they actually own.

Draws from the caller’s [rand::rngs::StdRng] — the fight’s own stream, seeded session_seed + logical_timestamp — so the roll is server-authoritative and reproducible. There is no manual roll, no hold, no reroll and no weight modification in v0.