Browse Source

percents -> percent

pbs
jake 4 years ago
parent
commit
fb53ccd03a
  1. 6
      src/entity/item/weapon.rs

6
src/entity/item/weapon.rs

@ -1449,7 +1449,7 @@ pub enum WeaponModifier {
}, },
Tekked { Tekked {
special: TekSpecialModifier, special: TekSpecialModifier,
percents: TekPercentModifier,
percent: TekPercentModifier,
grind: i32, grind: i32,
}, },
} }
@ -1477,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, grind} => {
WeaponModifier::Tekked{special, percent, grind} => {
match special { match special {
TekSpecialModifier::Plus => { TekSpecialModifier::Plus => {
self.special = self.special.map(|special| { self.special = self.special.map(|special| {
@ -1494,7 +1494,7 @@ impl Weapon {
} }
for i in 0..3 { for i in 0..3 {
self.attrs[i] = self.attrs[i].map(|mut attr| { self.attrs[i] = self.attrs[i].map(|mut attr| {
match percents {
match percent {
TekPercentModifier::PlusPlus => { TekPercentModifier::PlusPlus => {
attr.value += 10; attr.value += 10;
}, },

Loading…
Cancel
Save