From 3b2a7ec73d8bfb9095715a3b61fd446f62bfe6d8 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 2 Dec 2020 19:25:07 -0700 Subject: [PATCH] tekking also affects grind --- src/entity/item/weapon.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entity/item/weapon.rs b/src/entity/item/weapon.rs index 2cdfcc4..506ee72 100644 --- a/src/entity/item/weapon.rs +++ b/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; }, _ => {}