pub(crate) fn collect_bonuses<'a>( bonus_ids: &[i32], data: &'a ItemScalingData, ) -> Vec<&'a ItemBonusFlat>