|
|
@ -680,4 +680,174 @@ impl Tool { |
|
|
|
pub fn max_stack(&self) -> usize {
|
|
|
|
self.tool.max_stack()
|
|
|
|
}
|
|
|
|
|
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|