From b6e1fee5a438bbaad18e540ac6f96110e8395faf Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 21 Jun 2021 02:31:24 +0000 Subject: [PATCH] rustfmt unit.rs --- src/entity/item/unit.rs | 60 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/src/entity/item/unit.rs b/src/entity/item/unit.rs index 31becb0..cc973ed 100644 --- a/src/entity/item/unit.rs +++ b/src/entity/item/unit.rs @@ -386,6 +386,64 @@ impl Unit { } pub fn is_rare_item(self) -> bool { - matches!(self.unit, UnitType::GodPower | UnitType::GodMind | UnitType::GodArm | UnitType::GodLegs | UnitType::GodHp | UnitType::GodTp | UnitType::GodBody | UnitType::GodLuck | UnitType::HeroAbility | UnitType::GodAbility | UnitType::AllResist | UnitType::SuperResist | UnitType::PerfectResist | UnitType::HpRevival | UnitType::TpRevival | UnitType::PbAmplifier | UnitType::PbGenerate | UnitType::PbCreate | UnitType::DevilTechnique | UnitType::GodTechnique | UnitType::DevilBattle | UnitType::GodBattle | UnitType::CurePoison | UnitType::CureParalysis | UnitType::CureSlow | UnitType::CureConfuse | UnitType::CureFreeze | UnitType::CureShock | UnitType::YasakaniMagatama | UnitType::V101 | UnitType::V501 | UnitType::V502 | UnitType::V801 | UnitType::Limiter | UnitType::Adept | UnitType::SwordsmanLore | UnitType::ProofOfSwordSaint | UnitType::Smartlink | UnitType::DivineProtection | UnitType::HeavenlyBattle | UnitType::HeavenlyPower | UnitType::HeavenlyMind | UnitType::HeavenlyArms | UnitType::HeavenlyLegs | UnitType::HeavenlyBody | UnitType::HeavenlyLuck | UnitType::HeavenlyAbility | UnitType::CenturionAbility | UnitType::FriendRing | UnitType::HeavenlyHp | UnitType::HeavenlyTp | UnitType::HeavenlyResist | UnitType::HeavenlyTechnique | UnitType::HpRessurection | UnitType::TpRessurection | UnitType::PbIncrease) + matches!( + self.unit, + UnitType::GodPower + | UnitType::GodMind + | UnitType::GodArm + | UnitType::GodLegs + | UnitType::GodHp + | UnitType::GodTp + | UnitType::GodBody + | UnitType::GodLuck + | UnitType::HeroAbility + | UnitType::GodAbility + | UnitType::AllResist + | UnitType::SuperResist + | UnitType::PerfectResist + | UnitType::HpRevival + | UnitType::TpRevival + | UnitType::PbAmplifier + | UnitType::PbGenerate + | UnitType::PbCreate + | UnitType::DevilTechnique + | UnitType::GodTechnique + | UnitType::DevilBattle + | UnitType::GodBattle + | UnitType::CurePoison + | UnitType::CureParalysis + | UnitType::CureSlow + | UnitType::CureConfuse + | UnitType::CureFreeze + | UnitType::CureShock + | UnitType::YasakaniMagatama + | UnitType::V101 + | UnitType::V501 + | UnitType::V502 + | UnitType::V801 + | UnitType::Limiter + | UnitType::Adept + | UnitType::SwordsmanLore + | UnitType::ProofOfSwordSaint + | UnitType::Smartlink + | UnitType::DivineProtection + | UnitType::HeavenlyBattle + | UnitType::HeavenlyPower + | UnitType::HeavenlyMind + | UnitType::HeavenlyArms + | UnitType::HeavenlyLegs + | UnitType::HeavenlyBody + | UnitType::HeavenlyLuck + | UnitType::HeavenlyAbility + | UnitType::CenturionAbility + | UnitType::FriendRing + | UnitType::HeavenlyHp + | UnitType::HeavenlyTp + | UnitType::HeavenlyResist + | UnitType::HeavenlyTechnique + | UnitType::HpRessurection + | UnitType::TpRessurection + | UnitType::PbIncrease + ) } }