|
|
@ -1450,6 +1450,7 @@ pub enum WeaponModifier { |
|
|
|
Tekked {
|
|
|
|
special: TekSpecialModifier,
|
|
|
|
percents: TekPercentModifier,
|
|
|
|
grind: i32,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
@ -1476,7 +1477,7 @@ impl Weapon { |
|
|
|
|
|
|
|
pub fn apply_modifier(&mut self, modifier: &WeaponModifier) {
|
|
|
|
match modifier {
|
|
|
|
WeaponModifier::Tekked{special, percents} => {
|
|
|
|
WeaponModifier::Tekked{special, percents, grind} => {
|
|
|
|
match special {
|
|
|
|
TekSpecialModifier::Plus => {
|
|
|
|
self.special = self.special.map(|special| {
|
|
|
@ -1512,6 +1513,7 @@ impl Weapon { |
|
|
|
attr
|
|
|
|
});
|
|
|
|
}
|
|
|
|
self.grind += grind;
|
|
|
|
self.tekked = true;
|
|
|
|
},
|
|
|
|
_ => {}
|
|
|
|