Function eligible_facets

Source
pub fn eligible_facets(
    game_config: &GameConfig,
    equipped: &EquippedPets,
    side: WorldSide,
) -> Vec<RolledFacet>
Expand description

The eligible face set of one side: one facet per equipped pet, in slot order.

Slot order — not template order and not a set — is what makes the roll reproducible from a seed: BTreeMap<PetSlotId, Pet> iterates by slot, so two runs with the same equipped team always index the same three faces.