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