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