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