wowlab_engine_gamedata/game_data/
item_budget.rs1use wowlab_types::game::GearSlot;
4
5use super::game_tables::RatingMultiplierSlot;
6
7#[derive(Clone, Copy, Debug, Default, PartialEq)]
9pub struct ItemBudget {
10 pub item_level: i32,
12 pub stat: f64,
13 pub rating: f64,
15}
16
17#[must_use]
19pub const fn rating_multiplier_slot_for_gear(slot: GearSlot) -> RatingMultiplierSlot {
20 match slot {
21 GearSlot::Trinket1 | GearSlot::Trinket2 => RatingMultiplierSlot::Trinket,
22 GearSlot::Neck | GearSlot::Finger1 | GearSlot::Finger2 => RatingMultiplierSlot::Jewelry,
23 GearSlot::MainHand | GearSlot::OffHand => RatingMultiplierSlot::Weapon,
24 _ => RatingMultiplierSlot::Armor,
25 }
26}