Browse Source

unit modifier to star value changes

pull/65/head
andy 3 years ago
parent
commit
ab404d0cae
  1. 10
      src/entity/item/unit.rs

10
src/entity/item/unit.rs

@ -446,4 +446,14 @@ impl Unit {
| UnitType::PbIncrease
)
}
pub fn modifier_stars(&self) -> i8 {
match self.modifier {
Some(UnitModifier::PlusPlus) => 1,
Some(UnitModifier::Plus) => 1,
Some(UnitModifier::Minus) => -1,
Some(UnitModifier::MinusMinus) => -1,
_ => 0,
}
}
}
Loading…
Cancel
Save