Browse Source

rustfmt weapon.rs

pull/47/head
andy 3 years ago
parent
commit
d59e0691d7
  1. 63
      src/entity/item/weapon.rs

63
src/entity/item/weapon.rs

@ -1587,8 +1587,65 @@ impl Weapon {
// TODO: invert this? ie: handgun, saber, dagger etc. => false, _ => true?
pub fn is_rare_item(self) -> bool {
!matches!(self.weapon, WeaponType::Saber | WeaponType::Brand | WeaponType::Buster | WeaponType::Pallasch | WeaponType::Gladius | WeaponType::Sword | WeaponType::Gigush | WeaponType::Breaker | WeaponType::Claymore | WeaponType::Calibur | WeaponType::Dagger | WeaponType::Knife | WeaponType::Blade | WeaponType::Edge | WeaponType::Ripper | WeaponType::Partisan | WeaponType::Halbert | WeaponType::Glaive | WeaponType::Berdys | WeaponType::Gungnir | WeaponType::Slicer | WeaponType::Spinner | WeaponType::Cutter | WeaponType::Sawcer | WeaponType::Diska | WeaponType::Handgun | WeaponType::Autogun | WeaponType::Lockgun | WeaponType::Railgun | WeaponType::Raygun | WeaponType::Rifle | WeaponType::Sniper | WeaponType::Blaster | WeaponType::Beam | WeaponType::Laser | WeaponType::Mechgun | WeaponType::Assault | WeaponType::Repeater | WeaponType::Gatling | WeaponType::Vulcan | WeaponType::Shot | WeaponType::Spread | WeaponType::Cannon | WeaponType::Launcher | WeaponType::Arms | WeaponType::Cane | WeaponType::Stick | WeaponType::Mace | WeaponType::Club | WeaponType::Rod | WeaponType::Pole | WeaponType::Pillar | WeaponType::Striker | WeaponType::Wand | WeaponType::Staff | WeaponType::Baton | WeaponType::Scepter)
!matches!(
self.weapon,
WeaponType::Saber
| WeaponType::Brand
| WeaponType::Buster
| WeaponType::Pallasch
| WeaponType::Gladius
| WeaponType::Sword
| WeaponType::Gigush
| WeaponType::Breaker
| WeaponType::Claymore
| WeaponType::Calibur
| WeaponType::Dagger
| WeaponType::Knife
| WeaponType::Blade
| WeaponType::Edge
| WeaponType::Ripper
| WeaponType::Partisan
| WeaponType::Halbert
| WeaponType::Glaive
| WeaponType::Berdys
| WeaponType::Gungnir
| WeaponType::Slicer
| WeaponType::Spinner
| WeaponType::Cutter
| WeaponType::Sawcer
| WeaponType::Diska
| WeaponType::Handgun
| WeaponType::Autogun
| WeaponType::Lockgun
| WeaponType::Railgun
| WeaponType::Raygun
| WeaponType::Rifle
| WeaponType::Sniper
| WeaponType::Blaster
| WeaponType::Beam
| WeaponType::Laser
| WeaponType::Mechgun
| WeaponType::Assault
| WeaponType::Repeater
| WeaponType::Gatling
| WeaponType::Vulcan
| WeaponType::Shot
| WeaponType::Spread
| WeaponType::Cannon
| WeaponType::Launcher
| WeaponType::Arms
| WeaponType::Cane
| WeaponType::Stick
| WeaponType::Mace
| WeaponType::Club
| WeaponType::Rod
| WeaponType::Pole
| WeaponType::Pillar
| WeaponType::Striker
| WeaponType::Wand
| WeaponType::Staff
| WeaponType::Baton
| WeaponType::Scepter
)
}
}
Loading…
Cancel
Save