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

Loading…
Cancel
Save