pub fn roll_rarity_with_minimum(
config: &GameConfig,
level_settings: &PetCasesSettingsByLevel,
min_rarity_id: PetRarityId,
rng: &mut StdRng,
) -> Result<PetRarityId>Expand description
Roll a rarity from the level’s weights, but exclude rarities below min_rarity_id.
The “order” field on PetRarity determines the ordering (higher = rarer).