Browse Source

rustfmt unit.rs

pull/47/head
andy 3 years ago
parent
commit
b6e1fee5a4
  1. 60
      src/entity/item/unit.rs

60
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
)
}
}
Loading…
Cancel
Save