|
@ -32,7 +32,7 @@ impl Attribute { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
|
|
|
pub struct WeaponAttribute {
|
|
|
pub struct WeaponAttribute {
|
|
|
pub attr: Attribute,
|
|
|
pub attr: Attribute,
|
|
|
pub value: i8,
|
|
|
pub value: i8,
|
|
@ -1332,14 +1332,14 @@ impl WeaponType { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
|
|
|
pub enum TekSpecialModifier {
|
|
|
pub enum TekSpecialModifier {
|
|
|
Plus,
|
|
|
Plus,
|
|
|
Neutral,
|
|
|
Neutral,
|
|
|
Minus,
|
|
|
Minus,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
|
|
|
pub enum TekPercentModifier {
|
|
|
pub enum TekPercentModifier {
|
|
|
PlusPlus,
|
|
|
PlusPlus,
|
|
|
Plus,
|
|
|
Plus,
|
|
@ -1348,7 +1348,7 @@ pub enum TekPercentModifier { |
|
|
MinusMinus,
|
|
|
MinusMinus,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
|
|
pub enum WeaponModifier {
|
|
|
pub enum WeaponModifier {
|
|
|
AddPercents {
|
|
|
AddPercents {
|
|
|
attr: WeaponAttribute,
|
|
|
attr: WeaponAttribute,
|
|
@ -1364,7 +1364,7 @@ pub enum WeaponModifier { |
|
|
},
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
|
|
pub struct Weapon {
|
|
|
pub struct Weapon {
|
|
|
pub weapon: WeaponType,
|
|
|
pub weapon: WeaponType,
|
|
|
pub special: Option<WeaponSpecial>,
|
|
|
pub special: Option<WeaponSpecial>,
|
|
|