Browse Source

rustfmt shield.rs

pull/47/head
andy 3 years ago
parent
commit
e974285e4b
  1. 148
      src/entity/item/shield.rs

148
src/entity/item/shield.rs

@ -550,6 +550,152 @@ impl Shield {
} }
pub fn is_rare_item(self) -> bool { pub fn is_rare_item(self) -> bool {
matches!(self.shield, ShieldType::InvisibleGuard | ShieldType::SacredGuard | ShieldType::SPartsVer116 | ShieldType::SPartsVer201 | ShieldType::LightRelief | ShieldType::ShieldOfDelsaber | ShieldType::ForceWall | ShieldType::RangerWall | ShieldType::HunterWall | ShieldType::AttributeWall | ShieldType::SecretGear | ShieldType::CombatGear | ShieldType::ProtoRegeneGear | ShieldType::RegenerateGear | ShieldType::RegeneGearAdv | ShieldType::FlowensShield | ShieldType::CustomBarrierVerOo | ShieldType::DbsShield | ShieldType::RedRing | ShieldType::TripolicShield | ShieldType::StandstillShield | ShieldType::SafetyHeart | ShieldType::KasamiBracer | ShieldType::GodsShieldSuzaku | ShieldType::GodsShieldGenbu | ShieldType::GodsShieldByakko | ShieldType::GodsShieldSeiryu | ShieldType::HuntersShell | ShieldType::RicosGlasses | ShieldType::RicosEarring | ShieldType::BlueRing | ShieldType::Barrier2 | ShieldType::SecureFeet | ShieldType::Barrier3 | ShieldType::Barrier4 | ShieldType::Barrier5 | ShieldType::Barrier6 | ShieldType::RestaMerge | ShieldType::AntiMerge | ShieldType::ShiftaMerge | ShieldType::DebandMerge | ShieldType::FoieMerge | ShieldType::GifoieMerge | ShieldType::RafoieMerge | ShieldType::RedMerge | ShieldType::BartaMerge | ShieldType::GibartaMerge | ShieldType::RabartaMerge | ShieldType::BlueMerge | ShieldType::ZondeMerge | ShieldType::GizondeMerge | ShieldType::RazondeMerge | ShieldType::YellowMerge | ShieldType::RecoveryBarrier | ShieldType::AssistBarrier | ShieldType::RedBarrier | ShieldType::BlueBarrier | ShieldType::YellowBarrier | ShieldType::WeaponsGoldShield | ShieldType::BlackGear | ShieldType::WorksGuard | ShieldType::RagolRing | ShieldType::BlueRing2 | ShieldType::BlueRing3 | ShieldType::BlueRing4 | ShieldType::BlueRing5 | ShieldType::BlueRing6 | ShieldType::BlueRing7 | ShieldType::BlueRing8 | ShieldType::BlueRing9 | ShieldType::GreenRing | ShieldType::GreenRing2 | ShieldType::GreenRing3 | ShieldType::GreenRing4 | ShieldType::GreenRing5 | ShieldType::GreenRing6 | ShieldType::GreenRing7 | ShieldType::GreenRing8 | ShieldType::YellowRing | ShieldType::YellowRing2 | ShieldType::YellowRing3 | ShieldType::YellowRing4 | ShieldType::YellowRing5 | ShieldType::YellowRing6 | ShieldType::YellowRing7 | ShieldType::YellowRing8 | ShieldType::PurpleRing | ShieldType::PurpleRing2 | ShieldType::PurpleRing3 | ShieldType::PurpleRing4 | ShieldType::PurpleRing5 | ShieldType::PurpleRing6 | ShieldType::PurpleRing7 | ShieldType::PurpleRing8 | ShieldType::WhiteRing | ShieldType::WhiteRing2 | ShieldType::WhiteRing3 | ShieldType::WhiteRing4 | ShieldType::WhiteRing5 | ShieldType::WhiteRing6 | ShieldType::WhiteRing7 | ShieldType::WhiteRing8 | ShieldType::BlackRing | ShieldType::BlackRing2 | ShieldType::BlackRing3 | ShieldType::BlackRing4 | ShieldType::BlackRing5 | ShieldType::BlackRing6 | ShieldType::BlackRing7 | ShieldType::BlackRing8 | ShieldType::WeaponsSilverShield | ShieldType::WeaponsCopperShield | ShieldType::Gratia | ShieldType::TripolicReflector | ShieldType::StrikerPlus | ShieldType::RegenerateGearBP | ShieldType::Rupika | ShieldType::YataMirror | ShieldType::BunnyEars | ShieldType::CatEars | ShieldType::ThreeSeals | ShieldType::GodsShieldKouryu | ShieldType::DfShield | ShieldType::FromTheDepths | ShieldType::DeRolLeShield | ShieldType::HoneycombReflector | ShieldType::Epsiguard | ShieldType::AngelRing | ShieldType::UnionGuard | ShieldType::UnionGuard2 | ShieldType::UnionGuard3 | ShieldType::UnionGuard4 | ShieldType::StinkShield | ShieldType::Unknownb | ShieldType::Genpei | ShieldType::Genpei2 | ShieldType::Genpei3 | ShieldType::Genpei4 | ShieldType::Genpei5 | ShieldType::Genpei6 | ShieldType::Genpei7 | ShieldType::Genpei8 | ShieldType::Genpei9 | ShieldType::Genpei10)
matches!(
self.shield,
ShieldType::InvisibleGuard
| ShieldType::SacredGuard
| ShieldType::SPartsVer116
| ShieldType::SPartsVer201
| ShieldType::LightRelief
| ShieldType::ShieldOfDelsaber
| ShieldType::ForceWall
| ShieldType::RangerWall
| ShieldType::HunterWall
| ShieldType::AttributeWall
| ShieldType::SecretGear
| ShieldType::CombatGear
| ShieldType::ProtoRegeneGear
| ShieldType::RegenerateGear
| ShieldType::RegeneGearAdv
| ShieldType::FlowensShield
| ShieldType::CustomBarrierVerOo
| ShieldType::DbsShield
| ShieldType::RedRing
| ShieldType::TripolicShield
| ShieldType::StandstillShield
| ShieldType::SafetyHeart
| ShieldType::KasamiBracer
| ShieldType::GodsShieldSuzaku
| ShieldType::GodsShieldGenbu
| ShieldType::GodsShieldByakko
| ShieldType::GodsShieldSeiryu
| ShieldType::HuntersShell
| ShieldType::RicosGlasses
| ShieldType::RicosEarring
| ShieldType::BlueRing
| ShieldType::Barrier2
| ShieldType::SecureFeet
| ShieldType::Barrier3
| ShieldType::Barrier4
| ShieldType::Barrier5
| ShieldType::Barrier6
| ShieldType::RestaMerge
| ShieldType::AntiMerge
| ShieldType::ShiftaMerge
| ShieldType::DebandMerge
| ShieldType::FoieMerge
| ShieldType::GifoieMerge
| ShieldType::RafoieMerge
| ShieldType::RedMerge
| ShieldType::BartaMerge
| ShieldType::GibartaMerge
| ShieldType::RabartaMerge
| ShieldType::BlueMerge
| ShieldType::ZondeMerge
| ShieldType::GizondeMerge
| ShieldType::RazondeMerge
| ShieldType::YellowMerge
| ShieldType::RecoveryBarrier
| ShieldType::AssistBarrier
| ShieldType::RedBarrier
| ShieldType::BlueBarrier
| ShieldType::YellowBarrier
| ShieldType::WeaponsGoldShield
| ShieldType::BlackGear
| ShieldType::WorksGuard
| ShieldType::RagolRing
| ShieldType::BlueRing2
| ShieldType::BlueRing3
| ShieldType::BlueRing4
| ShieldType::BlueRing5
| ShieldType::BlueRing6
| ShieldType::BlueRing7
| ShieldType::BlueRing8
| ShieldType::BlueRing9
| ShieldType::GreenRing
| ShieldType::GreenRing2
| ShieldType::GreenRing3
| ShieldType::GreenRing4
| ShieldType::GreenRing5
| ShieldType::GreenRing6
| ShieldType::GreenRing7
| ShieldType::GreenRing8
| ShieldType::YellowRing
| ShieldType::YellowRing2
| ShieldType::YellowRing3
| ShieldType::YellowRing4
| ShieldType::YellowRing5
| ShieldType::YellowRing6
| ShieldType::YellowRing7
| ShieldType::YellowRing8
| ShieldType::PurpleRing
| ShieldType::PurpleRing2
| ShieldType::PurpleRing3
| ShieldType::PurpleRing4
| ShieldType::PurpleRing5
| ShieldType::PurpleRing6
| ShieldType::PurpleRing7
| ShieldType::PurpleRing8
| ShieldType::WhiteRing
| ShieldType::WhiteRing2
| ShieldType::WhiteRing3
| ShieldType::WhiteRing4
| ShieldType::WhiteRing5
| ShieldType::WhiteRing6
| ShieldType::WhiteRing7
| ShieldType::WhiteRing8
| ShieldType::BlackRing
| ShieldType::BlackRing2
| ShieldType::BlackRing3
| ShieldType::BlackRing4
| ShieldType::BlackRing5
| ShieldType::BlackRing6
| ShieldType::BlackRing7
| ShieldType::BlackRing8
| ShieldType::WeaponsSilverShield
| ShieldType::WeaponsCopperShield
| ShieldType::Gratia
| ShieldType::TripolicReflector
| ShieldType::StrikerPlus
| ShieldType::RegenerateGearBP
| ShieldType::Rupika
| ShieldType::YataMirror
| ShieldType::BunnyEars
| ShieldType::CatEars
| ShieldType::ThreeSeals
| ShieldType::GodsShieldKouryu
| ShieldType::DfShield
| ShieldType::FromTheDepths
| ShieldType::DeRolLeShield
| ShieldType::HoneycombReflector
| ShieldType::Epsiguard
| ShieldType::AngelRing
| ShieldType::UnionGuard
| ShieldType::UnionGuard2
| ShieldType::UnionGuard3
| ShieldType::UnionGuard4
| ShieldType::StinkShield
| ShieldType::Unknownb
| ShieldType::Genpei
| ShieldType::Genpei2
| ShieldType::Genpei3
| ShieldType::Genpei4
| ShieldType::Genpei5
| ShieldType::Genpei6
| ShieldType::Genpei7
| ShieldType::Genpei8
| ShieldType::Genpei9
| ShieldType::Genpei10
)
} }
} }
Loading…
Cancel
Save