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

Loading…
Cancel
Save