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