Browse Source

tekking also affects grind

pbs
jake 4 years ago
parent
commit
3b2a7ec73d
  1. 4
      src/entity/item/weapon.rs

4
src/entity/item/weapon.rs

@ -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;
},
_ => {}

Loading…
Cancel
Save