|
|
@ -682,11 +682,172 @@ impl Tool { |
|
|
|
}
|
|
|
|
|
|
|
|
pub fn is_rare_item(self) -> bool {
|
|
|
|
matches!(self.tool, ToolType::CellOfMag502 | ToolType::CellOfMag213 | ToolType::PartsOfRobochao | ToolType::HeartOfOpaOpa | ToolType::HeartOfPian | ToolType::HeartOfChao | ToolType::SorcerersRightArm | ToolType::SBeatsArms | ToolType::PArmsArms | ToolType::DelsabersRightArm | ToolType::BringersRightArm | ToolType::DelsabersLeftArm | ToolType::SRedsArms | ToolType::DragonsClaw | ToolType::HildebearsHead | ToolType::HildebluesHead | ToolType::PartsOfBaranz | ToolType::BelrasRightArm | ToolType::GiGuesBody | ToolType::SinowBerillsArms | ToolType::GrassAssassinsArms | ToolType::BoomasRightArm | ToolType::GoboomasRightArm | ToolType::GigoboomasRightArm | ToolType::GalGryphonsWing | ToolType::RappysWing | ToolType::CladdingOfEpsilon | ToolType::DeRolLeShell | ToolType::BerillPhoton | ToolType::ParasiticGeneFlow | ToolType::MagicStoneIritista | ToolType::BlueBlackStone | ToolType::Syncesta | ToolType::MagicWater | ToolType::ParasiticCellTypeD | ToolType::MagicRockHeartKey | ToolType::MagicRockMoola | ToolType::StarAmplifier | ToolType::BookOfHitogata | ToolType::HeartOfChuChu | ToolType::PartsOfEggBlaster | ToolType::HeartOfAngel | ToolType::HeartOfDevil | ToolType::KitOfHamburger | ToolType::PanthersSpirit | ToolType::KitOfMark3 | ToolType::KitOfMasterSystem | ToolType::KitOfGenesis | ToolType::KitOfSegaSaturn | ToolType::KitOfDreamcast | ToolType::AmplifierOfResta | ToolType::AmplifierOfAnti | ToolType::AmplifierOfShifta | ToolType::AmplifierOfDeband | ToolType::AmplifierOfFoie | ToolType::AmplifierOfGifoie | ToolType::AmplifierOfRafoie | ToolType::AmplifierOfBarta | ToolType::AmplifierOfGibarta | ToolType::AmplifierOfRabarta | ToolType::AmplifierOfZonde | ToolType::AmplifierOfGizonde | ToolType::AmplifierOfRazonde | ToolType::AmplifierOfRed | ToolType::AmplifierOfBlue | ToolType::AmplifierOfYellow | ToolType::HeartOfKapuKapu | ToolType::PhotonBooster | ToolType::Addslot | ToolType::PhotonDrop | ToolType::PhotonSphere | ToolType::PhotonCrystal | ToolType::SecretTicket | ToolType::PhotonTicket | ToolType::BookOfKatana1 | ToolType::BookOfKatana2 | ToolType::BookOfKatana3 | ToolType::WeaponsBronzeBadge | ToolType::WeaponsSilverBadge | ToolType::WeaponsGoldBadge | ToolType::WeaponsCrystalBadge | ToolType::WeaponsSteelBadge | ToolType::WeaponsAluminumBadge | ToolType::WeaponsLeatherBadge | ToolType::WeaponsBoneBadge | ToolType::LetterOfAppreciation | ToolType::ItemTicket | ToolType::ValentinesChocolate | ToolType::NewYearsCard | ToolType::ChristmasCard | ToolType::BirthdayCard | ToolType::ProofOfSonicTeam | ToolType::SpecialEventTicket | ToolType::FlowerBouquet | ToolType::Cake | ToolType::Accessories | ToolType::MrNakasBusinessCard | ToolType::Present | ToolType::Chocolate | ToolType::Candy | ToolType::Cake2 | ToolType::WeaponsSilverBadge2 | ToolType::WeaponsGoldBadge2 | ToolType::WeaponsCrystalBadge2 | ToolType::WeaponsSteelBadge2 | ToolType::WeaponsAluminumBadge2 | ToolType::WeaponsLeatherBadge2 | ToolType::WeaponsBoneBadge2 | ToolType::Bouquet | ToolType::Decoction | ToolType::ChristmasPresent | ToolType::EasterEgg | ToolType::JackOLantern | ToolType::DiskVol1WeddingMarch | ToolType::DiskVol2DayLight | ToolType::DiskVol3BurningRangers | ToolType::DiskVol4OpenYourHeart | ToolType::DiskVol5LiveLearn | ToolType::DiskVol6Nights | ToolType::DiskVol7EndingThemePianoVer | ToolType::DiskVol8HeartToHeart | ToolType::DiskVol9StrangeBlue | ToolType::DiskVol10ReunionSystem | ToolType::DiskVol11Pinnacles | ToolType::DiskVol12FightInsideTheSpaceship | ToolType::HuntersReport | ToolType::HuntersReport2 | ToolType::HuntersReport3 | ToolType::HuntersReport4 | ToolType::HuntersReport5 | ToolType::Tablet | ToolType::Unknown2 | ToolType::DragonScale | ToolType::HeavenStrikerCoat | ToolType::PioneerParts | ToolType::AmitiesMemo | ToolType::HeartOfMorolian | ToolType::RappysBeak | ToolType::YahoosEngine | ToolType::DPhotonCore | ToolType::LibertaKit | ToolType::CellOfMag0503 | ToolType::CellOfMag0504 | ToolType::CellOfMag0505 | ToolType::CellOfMag0506 | ToolType::CellOfMag0507 | ToolType::TeamPoints500 | ToolType::TeamPoints1000 | ToolType::TeamPoints5000 | ToolType::TeamPoints10000)
|
|
|
|
matches!(
|
|
|
|
self.tool,
|
|
|
|
ToolType::CellOfMag502
|
|
|
|
| ToolType::CellOfMag213
|
|
|
|
| ToolType::PartsOfRobochao
|
|
|
|
| ToolType::HeartOfOpaOpa
|
|
|
|
| ToolType::HeartOfPian
|
|
|
|
| ToolType::HeartOfChao
|
|
|
|
| ToolType::SorcerersRightArm
|
|
|
|
| ToolType::SBeatsArms
|
|
|
|
| ToolType::PArmsArms
|
|
|
|
| ToolType::DelsabersRightArm
|
|
|
|
| ToolType::BringersRightArm
|
|
|
|
| ToolType::DelsabersLeftArm
|
|
|
|
| ToolType::SRedsArms
|
|
|
|
| ToolType::DragonsClaw
|
|
|
|
| ToolType::HildebearsHead
|
|
|
|
| ToolType::HildebluesHead
|
|
|
|
| ToolType::PartsOfBaranz
|
|
|
|
| ToolType::BelrasRightArm
|
|
|
|
| ToolType::GiGuesBody
|
|
|
|
| ToolType::SinowBerillsArms
|
|
|
|
| ToolType::GrassAssassinsArms
|
|
|
|
| ToolType::BoomasRightArm
|
|
|
|
| ToolType::GoboomasRightArm
|
|
|
|
| ToolType::GigoboomasRightArm
|
|
|
|
| ToolType::GalGryphonsWing
|
|
|
|
| ToolType::RappysWing
|
|
|
|
| ToolType::CladdingOfEpsilon
|
|
|
|
| ToolType::DeRolLeShell
|
|
|
|
| ToolType::BerillPhoton
|
|
|
|
| ToolType::ParasiticGeneFlow
|
|
|
|
| ToolType::MagicStoneIritista
|
|
|
|
| ToolType::BlueBlackStone
|
|
|
|
| ToolType::Syncesta
|
|
|
|
| ToolType::MagicWater
|
|
|
|
| ToolType::ParasiticCellTypeD
|
|
|
|
| ToolType::MagicRockHeartKey
|
|
|
|
| ToolType::MagicRockMoola
|
|
|
|
| ToolType::StarAmplifier
|
|
|
|
| ToolType::BookOfHitogata
|
|
|
|
| ToolType::HeartOfChuChu
|
|
|
|
| ToolType::PartsOfEggBlaster
|
|
|
|
| ToolType::HeartOfAngel
|
|
|
|
| ToolType::HeartOfDevil
|
|
|
|
| ToolType::KitOfHamburger
|
|
|
|
| ToolType::PanthersSpirit
|
|
|
|
| ToolType::KitOfMark3
|
|
|
|
| ToolType::KitOfMasterSystem
|
|
|
|
| ToolType::KitOfGenesis
|
|
|
|
| ToolType::KitOfSegaSaturn
|
|
|
|
| ToolType::KitOfDreamcast
|
|
|
|
| ToolType::AmplifierOfResta
|
|
|
|
| ToolType::AmplifierOfAnti
|
|
|
|
| ToolType::AmplifierOfShifta
|
|
|
|
| ToolType::AmplifierOfDeband
|
|
|
|
| ToolType::AmplifierOfFoie
|
|
|
|
| ToolType::AmplifierOfGifoie
|
|
|
|
| ToolType::AmplifierOfRafoie
|
|
|
|
| ToolType::AmplifierOfBarta
|
|
|
|
| ToolType::AmplifierOfGibarta
|
|
|
|
| ToolType::AmplifierOfRabarta
|
|
|
|
| ToolType::AmplifierOfZonde
|
|
|
|
| ToolType::AmplifierOfGizonde
|
|
|
|
| ToolType::AmplifierOfRazonde
|
|
|
|
| ToolType::AmplifierOfRed
|
|
|
|
| ToolType::AmplifierOfBlue
|
|
|
|
| ToolType::AmplifierOfYellow
|
|
|
|
| ToolType::HeartOfKapuKapu
|
|
|
|
| ToolType::PhotonBooster
|
|
|
|
| ToolType::Addslot
|
|
|
|
| ToolType::PhotonDrop
|
|
|
|
| ToolType::PhotonSphere
|
|
|
|
| ToolType::PhotonCrystal
|
|
|
|
| ToolType::SecretTicket
|
|
|
|
| ToolType::PhotonTicket
|
|
|
|
| ToolType::BookOfKatana1
|
|
|
|
| ToolType::BookOfKatana2
|
|
|
|
| ToolType::BookOfKatana3
|
|
|
|
| ToolType::WeaponsBronzeBadge
|
|
|
|
| ToolType::WeaponsSilverBadge
|
|
|
|
| ToolType::WeaponsGoldBadge
|
|
|
|
| ToolType::WeaponsCrystalBadge
|
|
|
|
| ToolType::WeaponsSteelBadge
|
|
|
|
| ToolType::WeaponsAluminumBadge
|
|
|
|
| ToolType::WeaponsLeatherBadge
|
|
|
|
| ToolType::WeaponsBoneBadge
|
|
|
|
| ToolType::LetterOfAppreciation
|
|
|
|
| ToolType::ItemTicket
|
|
|
|
| ToolType::ValentinesChocolate
|
|
|
|
| ToolType::NewYearsCard
|
|
|
|
| ToolType::ChristmasCard
|
|
|
|
| ToolType::BirthdayCard
|
|
|
|
| ToolType::ProofOfSonicTeam
|
|
|
|
| ToolType::SpecialEventTicket
|
|
|
|
| ToolType::FlowerBouquet
|
|
|
|
| ToolType::Cake
|
|
|
|
| ToolType::Accessories
|
|
|
|
| ToolType::MrNakasBusinessCard
|
|
|
|
| ToolType::Present
|
|
|
|
| ToolType::Chocolate
|
|
|
|
| ToolType::Candy
|
|
|
|
| ToolType::Cake2
|
|
|
|
| ToolType::WeaponsSilverBadge2
|
|
|
|
| ToolType::WeaponsGoldBadge2
|
|
|
|
| ToolType::WeaponsCrystalBadge2
|
|
|
|
| ToolType::WeaponsSteelBadge2
|
|
|
|
| ToolType::WeaponsAluminumBadge2
|
|
|
|
| ToolType::WeaponsLeatherBadge2
|
|
|
|
| ToolType::WeaponsBoneBadge2
|
|
|
|
| ToolType::Bouquet
|
|
|
|
| ToolType::Decoction
|
|
|
|
| ToolType::ChristmasPresent
|
|
|
|
| ToolType::EasterEgg
|
|
|
|
| ToolType::JackOLantern
|
|
|
|
| ToolType::DiskVol1WeddingMarch
|
|
|
|
| ToolType::DiskVol2DayLight
|
|
|
|
| ToolType::DiskVol3BurningRangers
|
|
|
|
| ToolType::DiskVol4OpenYourHeart
|
|
|
|
| ToolType::DiskVol5LiveLearn
|
|
|
|
| ToolType::DiskVol6Nights
|
|
|
|
| ToolType::DiskVol7EndingThemePianoVer
|
|
|
|
| ToolType::DiskVol8HeartToHeart
|
|
|
|
| ToolType::DiskVol9StrangeBlue
|
|
|
|
| ToolType::DiskVol10ReunionSystem
|
|
|
|
| ToolType::DiskVol11Pinnacles
|
|
|
|
| ToolType::DiskVol12FightInsideTheSpaceship
|
|
|
|
| ToolType::HuntersReport
|
|
|
|
| ToolType::HuntersReport2
|
|
|
|
| ToolType::HuntersReport3
|
|
|
|
| ToolType::HuntersReport4
|
|
|
|
| ToolType::HuntersReport5
|
|
|
|
| ToolType::Tablet
|
|
|
|
| ToolType::Unknown2
|
|
|
|
| ToolType::DragonScale
|
|
|
|
| ToolType::HeavenStrikerCoat
|
|
|
|
| ToolType::PioneerParts
|
|
|
|
| ToolType::AmitiesMemo
|
|
|
|
| ToolType::HeartOfMorolian
|
|
|
|
| ToolType::RappysBeak
|
|
|
|
| ToolType::YahoosEngine
|
|
|
|
| ToolType::DPhotonCore
|
|
|
|
| ToolType::LibertaKit
|
|
|
|
| ToolType::CellOfMag0503
|
|
|
|
| ToolType::CellOfMag0504
|
|
|
|
| ToolType::CellOfMag0505
|
|
|
|
| ToolType::CellOfMag0506
|
|
|
|
| ToolType::CellOfMag0507
|
|
|
|
| ToolType::TeamPoints500
|
|
|
|
| ToolType::TeamPoints1000
|
|
|
|
| ToolType::TeamPoints5000
|
|
|
|
| ToolType::TeamPoints10000
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: do we actually need this function?
|
|
|
|
pub fn is_material(self) -> bool {
|
|
|
|
matches!(self.tool, ToolType::PowerMaterial | ToolType::MindMaterial | ToolType::EvadeMaterial | ToolType::HpMaterial | ToolType::TpMaterial | ToolType::DefMaterial | ToolType::LuckMaterial)
|
|
|
|
matches!(
|
|
|
|
self.tool,
|
|
|
|
ToolType::PowerMaterial
|
|
|
|
| ToolType::MindMaterial
|
|
|
|
| ToolType::EvadeMaterial
|
|
|
|
| ToolType::HpMaterial
|
|
|
|
| ToolType::TpMaterial
|
|
|
|
| ToolType::DefMaterial
|
|
|
|
| ToolType::LuckMaterial
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|