Function fast_equip_pets

Source
pub fn fast_equip_pets(ctx: &ItemIdsCtx<'_>) -> Result<Vec<Uuid>>
Expand description

Rank the roster by rarity first, then power, and return the template_ids of the top min(pets.len, Slots).

Rarity leads because that is what the player is picking for: a Legendary is the pet they pulled for and the one whose stat ceiling and facet pool are worth investing in, and a fully-levelled Common briefly out-scoring it is not a reason for quick-equip to bench it. Power (the marginal contribution this pet makes to THIS character — see [pet_power]) orders pets inside one rarity band, where it is the honest comparison.