From fb53ccd03abe498e087f91ae11cbeaa5e50a757c Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 3 Dec 2020 14:57:00 -0700 Subject: [PATCH] percents -> percent --- src/entity/item/weapon.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entity/item/weapon.rs b/src/entity/item/weapon.rs index 506ee72..ba7090d 100644 --- a/src/entity/item/weapon.rs +++ b/src/entity/item/weapon.rs @@ -1449,7 +1449,7 @@ pub enum WeaponModifier { }, Tekked { special: TekSpecialModifier, - percents: TekPercentModifier, + percent: TekPercentModifier, grind: i32, }, } @@ -1477,7 +1477,7 @@ impl Weapon { pub fn apply_modifier(&mut self, modifier: &WeaponModifier) { match modifier { - WeaponModifier::Tekked{special, percents, grind} => { + WeaponModifier::Tekked{special, percent, grind} => { match special { TekSpecialModifier::Plus => { self.special = self.special.map(|special| { @@ -1494,7 +1494,7 @@ impl Weapon { } for i in 0..3 { self.attrs[i] = self.attrs[i].map(|mut attr| { - match percents { + match percent { TekPercentModifier::PlusPlus => { attr.value += 10; },