Browse Source

rustfmt mag.rs

pull/47/head
andy 4 years ago
parent
commit
c417390aeb
  1. 44
      src/entity/item/mag.rs

44
src/entity/item/mag.rs

@ -1101,7 +1101,49 @@ impl Mag {
// TODO: is this even needed? mags are not shop sellable...yet // TODO: is this even needed? mags are not shop sellable...yet
pub fn is_rare_item(self) -> bool { pub fn is_rare_item(self) -> bool {
matches!(self.mag, MagType::Pitri | MagType::Soniti | MagType::Preta | MagType::Churel | MagType::Robochao | MagType::OpaOpa | MagType::Pian | MagType::Chao | MagType::ChuChu | MagType::KapuKapu | MagType::AngelsWing | MagType::DevilsWing | MagType::Elenor | MagType::MarkIII | MagType::MasterSystem | MagType::Genesis | MagType::SegaSaturn | MagType::Dreamcast | MagType::Hamburger | MagType::PanzersTail | MagType::DevilsTail | MagType::Deva | MagType::Rati | MagType::Savitri | MagType::Rukmin | MagType::Pushan | MagType::Diwari | MagType::Sato | MagType::Bhima | MagType::Nidra | MagType::GeungSi | MagType::Tellusis | MagType::StrikerUnit | MagType::Pioneer | MagType::Puyo | MagType::Moro | MagType::Rappy | MagType::Yahoo | MagType::GaelGiel | MagType::Agastya)
matches!(
self.mag,
MagType::Pitri
| MagType::Soniti
| MagType::Preta
| MagType::Churel
| MagType::Robochao
| MagType::OpaOpa
| MagType::Pian
| MagType::Chao
| MagType::ChuChu
| MagType::KapuKapu
| MagType::AngelsWing
| MagType::DevilsWing
| MagType::Elenor
| MagType::MarkIII
| MagType::MasterSystem
| MagType::Genesis
| MagType::SegaSaturn
| MagType::Dreamcast
| MagType::Hamburger
| MagType::PanzersTail
| MagType::DevilsTail
| MagType::Deva
| MagType::Rati
| MagType::Savitri
| MagType::Rukmin
| MagType::Pushan
| MagType::Diwari
| MagType::Sato
| MagType::Bhima
| MagType::Nidra
| MagType::GeungSi
| MagType::Tellusis
| MagType::StrikerUnit
| MagType::Pioneer
| MagType::Puyo
| MagType::Moro
| MagType::Rappy
| MagType::Yahoo
| MagType::GaelGiel
| MagType::Agastya
)
} }
} }

Loading…
Cancel
Save