Horrendous hash key gets worse -- REFACTOR THIS LATER
This commit is contained in:
parent
a5b8a7306b
commit
7795044d36
4 changed files with 56 additions and 18 deletions
|
|
@ -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 {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue