Horrendous hash key gets worse -- REFACTOR THIS LATER

This commit is contained in:
Llywelwyn 2023-08-13 18:43:04 +01:00
parent a5b8a7306b
commit 7795044d36
4 changed files with 56 additions and 18 deletions

View file

@ -208,6 +208,20 @@ pub struct Item {
pub value: f32, // base
}
#[derive(Debug, Serialize, Deserialize, Clone, Eq, PartialEq, Hash)]
pub enum MagicItemClass {
Common,
Uncommon,
Rare,
VeryRare,
Legendary,
}
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
pub struct MagicItem {
pub class: MagicItemClass,
}
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
pub struct EquipmentChanged {}