From bd8cdbb784953552f0962ba554518aaa5353b4bd Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Mon, 10 Feb 2020 00:08:00 -0500 Subject: [PATCH] PostML rarity and color system reworked. Nanoblack Reaper now has custom coloration. --- Items/Accessories/ArcanumoftheVoid.cs | 2 +- Items/Accessories/AsgardianAegis.cs | 2 +- Items/Accessories/AstralArcanum.cs | 2 +- Items/Accessories/BadgeofBravery.cs | 2 +- Items/Accessories/DarkSunRing.cs | 2 +- Items/Accessories/DeepDiver.cs | 2 +- Items/Accessories/DimensionalSoulArtifact.cs | 2 +- Items/Accessories/DraedonsHeart.cs | 2 +- Items/Accessories/DragonScales.cs | 2 +- Items/Accessories/EclipseMirror.cs | 2 +- Items/Accessories/EldritchSoulArtifact.cs | 2 +- Items/Accessories/ElementalGauntlet.cs | 2 +- Items/Accessories/ElementalQuiver.cs | 2 +- Items/Accessories/ElysianAegis.cs | 2 +- Items/Accessories/EtherealTalisman.cs | 2 +- Items/Accessories/FabledTortoiseShell.cs | 2 +- Items/Accessories/GodlySoulArtifact.cs | 2 +- Items/Accessories/GoldBurdenBreaker.cs | 2 +- Items/Accessories/HeartoftheElements.cs | 2 +- Items/Accessories/HideofAstrumDeus.cs | 2 +- Items/Accessories/MoonstoneCrown.cs | 2 +- Items/Accessories/Nanotech.cs | 2 +- Items/Accessories/ProfanedSoulArtifact.cs | 2 +- Items/Accessories/RampartofDeities.cs | 2 +- Items/Accessories/ReaperToothNecklace.cs | 2 +- Items/Accessories/Regenator.cs | 2 +- Items/Accessories/SamuraiBadge.cs | 2 +- Items/Accessories/SpectralVeil.cs | 2 +- Items/Accessories/Sponge.cs | 2 +- Items/Accessories/StatisBeltOfCurses.cs | 2 +- Items/Accessories/TheBee.cs | 2 +- Items/Accessories/TheCommunity.cs | 2 +- Items/Accessories/TheEvolution.cs | 2 +- Items/Accessories/TheTransformer.cs | 2 +- Items/Accessories/VeneratedLocket.cs | 2 +- Items/Accessories/Wings/CelestialTracers.cs | 2 +- Items/Accessories/Wings/DrewsWings.cs | 2 +- Items/Accessories/Wings/ElysianTracers.cs | 2 +- Items/Accessories/Wings/ElysianWings.cs | 2 +- Items/Accessories/Wings/InfinityBoots.cs | 2 +- Items/Accessories/YharimsInsignia.cs | 2 +- Items/Ammo/BloodRune.cs | 2 +- Items/Ammo/BloodfireArrow.cs | 2 +- Items/Ammo/ElysianArrow.cs | 2 +- Items/Ammo/HolyFireBullet.cs | 2 +- Items/Ammo/VanquisherArrow.cs | 2 +- Items/Armor/AuricTeslaBodyArmor.cs | 2 +- Items/Armor/AuricTeslaCuisses.cs | 2 +- Items/Armor/AuricTeslaHelm.cs | 2 +- Items/Armor/AuricTeslaHoodedFacemask.cs | 2 +- Items/Armor/AuricTeslaPlumedHelm.cs | 2 +- Items/Armor/AuricTeslaSpaceHelmet.cs | 2 +- Items/Armor/AuricTeslaWireHemmedVisage.cs | 2 +- Items/Armor/BloodflareBodyArmor.cs | 2 +- Items/Armor/BloodflareCuisses.cs | 2 +- Items/Armor/BloodflareHelm.cs | 2 +- Items/Armor/BloodflareHelmet.cs | 2 +- Items/Armor/BloodflareHornedHelm.cs | 2 +- Items/Armor/BloodflareHornedMask.cs | 2 +- Items/Armor/BloodflareMask.cs | 2 +- Items/Armor/DemonshadeBreastplate.cs | 2 +- Items/Armor/DemonshadeGreaves.cs | 2 +- Items/Armor/DemonshadeHelm.cs | 2 +- Items/Armor/FearmongerGreathelm.cs | 2 +- Items/Armor/FearmongerGreaves.cs | 2 +- Items/Armor/FearmongerPlateMail.cs | 2 +- Items/Armor/GodSlayerChestplate.cs | 2 +- Items/Armor/GodSlayerHelm.cs | 2 +- Items/Armor/GodSlayerHelmet.cs | 2 +- Items/Armor/GodSlayerHornedHelm.cs | 2 +- Items/Armor/GodSlayerLeggings.cs | 2 +- Items/Armor/GodSlayerMask.cs | 2 +- Items/Armor/GodSlayerVisage.cs | 2 +- Items/Armor/OmegaBlueChestplate.cs | 2 +- Items/Armor/OmegaBlueHelmet.cs | 2 +- Items/Armor/OmegaBlueLeggings.cs | 2 +- Items/Armor/SilvaArmor.cs | 2 +- Items/Armor/SilvaHelm.cs | 2 +- Items/Armor/SilvaHelmet.cs | 2 +- Items/Armor/SilvaHornedHelm.cs | 2 +- Items/Armor/SilvaLeggings.cs | 2 +- Items/Armor/SilvaMask.cs | 2 +- Items/Armor/SilvaMaskedCap.cs | 2 +- Items/Armor/TarragonBreastplate.cs | 2 +- Items/Armor/TarragonHelm.cs | 2 +- Items/Armor/TarragonHelmet.cs | 2 +- Items/Armor/TarragonHornedHelm.cs | 2 +- Items/Armor/TarragonLeggings.cs | 2 +- Items/Armor/TarragonMask.cs | 2 +- Items/Armor/TarragonVisage.cs | 2 +- Items/Armor/Vanity/ApronOfAffection.cs | 2 +- Items/CalamityGlobalItem.cs | 77 ++++++++++--------- Items/Critters/PiggyItem.cs | 2 +- .../Fishing/BrimstoneCragCatches/Bloodfin.cs | 2 +- Items/Fishing/FishingRods/EarlyBloomRod.cs | 2 +- .../Fishing/FishingRods/TheDevourerofCods.cs | 2 +- Items/LoreItems/KnowledgeBumblebirb.cs | 2 +- Items/LoreItems/KnowledgeCalamitas.cs | 2 +- Items/LoreItems/KnowledgeDevourerofGods.cs | 2 +- Items/LoreItems/KnowledgePolterghast.cs | 2 +- Items/LoreItems/KnowledgeProfanedGuardians.cs | 2 +- Items/LoreItems/KnowledgeProvidence.cs | 2 +- Items/LoreItems/KnowledgeSentinels.cs | 2 +- Items/LoreItems/KnowledgeYharon.cs | 2 +- Items/Materials/ArmoredShell.cs | 2 +- Items/Materials/AuricBar.cs | 2 +- Items/Materials/Bloodstone.cs | 2 +- Items/Materials/BloodstoneCore.cs | 2 +- Items/Materials/CalamitousEssence.cs | 2 +- Items/Materials/CosmiliteBar.cs | 2 +- Items/Materials/DarkPlasma.cs | 2 +- Items/Materials/DarksunFragment.cs | 2 +- Items/Materials/DivineGeode.cs | 2 +- Items/Materials/EffulgentFeather.cs | 2 +- Items/Materials/EndothermicEnergy.cs | 2 +- Items/Materials/HellcasterFragment.cs | 2 +- Items/Materials/NightmareFuel.cs | 2 +- Items/Materials/Phantoplasm.cs | 2 +- Items/Materials/ReaperTooth.cs | 2 +- Items/Materials/RuinousSoul.cs | 2 +- Items/Materials/ShadowspecBar.cs | 2 +- Items/Materials/TwistingNether.cs | 2 +- Items/Materials/UeliaceBar.cs | 2 +- Items/Materials/UnholyEssence.cs | 2 +- Items/Mounts/GazeOfCrysthamyr.cs | 2 +- Items/NormalityRelocator.cs | 2 +- Items/PermanentBoosters/Dragonfruit.cs | 2 +- Items/PermanentBoosters/Ectoheart.cs | 2 +- Items/PermanentBoosters/PhantomHeart.cs | 2 +- .../RedLightningContainer.cs | 2 +- Items/Pets/BloodyVein.cs | 2 +- Items/Pets/BrimstoneJewel.cs | 2 +- Items/Pets/CosmicPlushie.cs | 2 +- Items/Pets/ForgottenDragonEgg.cs | 2 +- .../CraftingStations/DraedonsForge.cs | 2 +- Items/Placeables/Ores/AuricOre.cs | 2 +- Items/Potions/Baguette.cs | 2 +- Items/Potions/OmegaHealingPotion.cs | 2 +- Items/Potions/SupremeHealingPotion.cs | 2 +- Items/Potions/SupremeManaPotion.cs | 2 +- Items/SummonItems/ChickenEgg.cs | 2 +- Items/SummonItems/CosmicWorm.cs | 2 +- Items/SummonItems/EyeofExtinction.cs | 2 +- Items/SummonItems/NecroplasmicBeacon.cs | 2 +- Items/SummonItems/ProfanedCore.cs | 2 +- Items/SummonItems/ProfanedCoreUnlimited.cs | 2 +- Items/SummonItems/ProfanedShard.cs | 2 +- Items/SummonItems/RuneofCos.cs | 2 +- Items/Tools/BlossomPickaxe.cs | 2 +- Items/Tools/CrystylCrusher.cs | 2 +- Items/Tools/GallantPickaxe.cs | 2 +- Items/Tools/Grax.cs | 2 +- Items/Weapons/Magic/AbyssShocker.cs | 2 +- Items/Weapons/Magic/AlphaRay.cs | 2 +- Items/Weapons/Magic/ApoctosisArray.cs | 2 +- Items/Weapons/Magic/Apotheosis.cs | 2 +- Items/Weapons/Magic/AsteroidStaff.cs | 2 +- Items/Weapons/Magic/AuguroftheElements.cs | 2 +- Items/Weapons/Magic/BlushieStaff.cs | 2 +- Items/Weapons/Magic/ClamorNoctus.cs | 2 +- Items/Weapons/Magic/Climax.cs | 2 +- Items/Weapons/Magic/ClothiersWrath.cs | 2 +- Items/Weapons/Magic/Cryophobia.cs | 2 +- Items/Weapons/Magic/DarkSpark.cs | 2 +- Items/Weapons/Magic/DeathhailStaff.cs | 2 +- Items/Weapons/Magic/DivineRetribution.cs | 2 +- Items/Weapons/Magic/Effervescence.cs | 2 +- Items/Weapons/Magic/EidolicWail.cs | 2 +- Items/Weapons/Magic/ElementalRay.cs | 2 +- Items/Weapons/Magic/EventHorizon.cs | 2 +- Items/Weapons/Magic/EyeofMagnus.cs | 2 +- Items/Weapons/Magic/Fabstaff.cs | 2 +- Items/Weapons/Magic/FaceMelter.cs | 2 +- Items/Weapons/Magic/FatesReveal.cs | 2 +- Items/Weapons/Magic/GammaFusillade.cs | 2 +- Items/Weapons/Magic/Genisis.cs | 2 +- Items/Weapons/Magic/GhastlyVisage.cs | 2 +- Items/Weapons/Magic/HadopelagicEcho.cs | 2 +- Items/Weapons/Magic/HeliumFlash.cs | 2 +- Items/Weapons/Magic/IceBarrage.cs | 2 +- Items/Weapons/Magic/Judgement.cs | 2 +- Items/Weapons/Magic/Keelhaul.cs | 2 +- Items/Weapons/Magic/LightGodsBrilliance.cs | 2 +- .../Magic/MadAlchemistsCocktailGlove.cs | 2 +- Items/Weapons/Magic/MagneticMeltdown.cs | 2 +- Items/Weapons/Magic/Mistlestorm.cs | 2 +- Items/Weapons/Magic/NuclearFury.cs | 2 +- Items/Weapons/Magic/PhantasmalFury.cs | 2 +- Items/Weapons/Magic/PhoenixFlameBarrage.cs | 2 +- Items/Weapons/Magic/PlasmaRifle.cs | 2 +- Items/Weapons/Magic/PrimordialAncient.cs | 2 +- Items/Weapons/Magic/PurgeGuzzler.cs | 2 +- Items/Weapons/Magic/RecitationoftheBeast.cs | 2 +- Items/Weapons/Magic/RougeSlash.cs | 2 +- Items/Weapons/Magic/SHPC.cs | 2 +- Items/Weapons/Magic/SanguineFlare.cs | 2 +- Items/Weapons/Magic/ShadowboltStaff.cs | 2 +- Items/Weapons/Magic/SoulPiercer.cs | 2 +- Items/Weapons/Magic/StratusSphere.cs | 2 +- Items/Weapons/Magic/SubsumingVortex.cs | 2 +- Items/Weapons/Magic/T1000.cs | 2 +- Items/Weapons/Magic/TheWand.cs | 2 +- Items/Weapons/Magic/ThornBlossom.cs | 2 +- Items/Weapons/Magic/Thunderstorm.cs | 2 +- Items/Weapons/Magic/UltraLiquidator.cs | 2 +- Items/Weapons/Magic/VenusianTrident.cs | 2 +- Items/Weapons/Magic/Vesuvius.cs | 2 +- Items/Weapons/Magic/Viscera.cs | 2 +- Items/Weapons/Magic/VividClarity.cs | 2 +- Items/Weapons/Magic/VoidVortex.cs | 2 +- Items/Weapons/Magic/YharimsCrystal.cs | 2 +- Items/Weapons/Melee/AccretionDiskMelee.cs | 2 +- Items/Weapons/Melee/AegisBlade.cs | 2 +- Items/Weapons/Melee/Animus.cs | 2 +- Items/Weapons/Melee/AquaticDissolution.cs | 2 +- Items/Weapons/Melee/ArkoftheCosmos.cs | 2 +- Items/Weapons/Melee/ArkoftheElements.cs | 2 +- Items/Weapons/Melee/Ataraxia.cs | 2 +- Items/Weapons/Melee/Azathoth.cs | 2 +- Items/Weapons/Melee/BansheeHook.cs | 2 +- Items/Weapons/Melee/BrinyBaron.cs | 2 +- Items/Weapons/Melee/Carnage.cs | 2 +- Items/Weapons/Melee/CorpusAvertorMelee.cs | 2 +- Items/Weapons/Melee/CosmicDischarge.cs | 2 +- Items/Weapons/Melee/CosmicShiv.cs | 2 +- Items/Weapons/Melee/CrescentMoon.cs | 2 +- Items/Weapons/Melee/Devastation.cs | 2 +- Items/Weapons/Melee/DevilsDevastation.cs | 2 +- Items/Weapons/Melee/DevilsSunrise.cs | 2 +- Items/Weapons/Melee/DivineHatchet.cs | 2 +- Items/Weapons/Melee/DraconicDestruction.cs | 2 +- Items/Weapons/Melee/DraedonsExoblade.cs | 2 +- Items/Weapons/Melee/DragonPow.cs | 2 +- Items/Weapons/Melee/DragonRage.cs | 2 +- Items/Weapons/Melee/Earth.cs | 2 +- Items/Weapons/Melee/ElementalExcalibur.cs | 2 +- Items/Weapons/Melee/ElementalShortsword.cs | 2 +- Items/Weapons/Melee/EmpyreanKnives.cs | 2 +- Items/Weapons/Melee/EradicatorMelee.cs | 2 +- Items/Weapons/Melee/EssenceFlayer.cs | 2 +- Items/Weapons/Melee/EvilSmasher.cs | 2 +- Items/Weapons/Melee/Excelsus.cs | 2 +- Items/Weapons/Melee/ExoGladius.cs | 2 +- Items/Weapons/Melee/FourSeasonsGalaxia.cs | 2 +- Items/Weapons/Melee/GaelsGreatsword.cs | 2 +- Items/Weapons/Melee/GalacticaBlade.cs | 2 +- Items/Weapons/Melee/GalaxySmasherMelee.cs | 2 +- Items/Weapons/Melee/GalileoGladius.cs | 2 +- Items/Weapons/Melee/GildedProboscis.cs | 2 +- Items/Weapons/Melee/GrandDad.cs | 2 +- Items/Weapons/Melee/GreatswordofBlah.cs | 2 +- Items/Weapons/Melee/GreatswordofJudgement.cs | 2 +- Items/Weapons/Melee/HolyCollider.cs | 2 +- Items/Weapons/Melee/InsidiousImpaler.cs | 2 +- Items/Weapons/Melee/KelvinCatalystMelee.cs | 2 +- Items/Weapons/Melee/Lacerator.cs | 2 +- Items/Weapons/Melee/LifefruitScythe.cs | 2 +- Items/Weapons/Melee/MirrorBlade.cs | 2 +- Items/Weapons/Melee/Mourningstar.cs | 2 +- Items/Weapons/Melee/Murasama.cs | 2 +- Items/Weapons/Melee/Nadir.cs | 2 +- Items/Weapons/Melee/NanoblackReaperMelee.cs | 2 +- Items/Weapons/Melee/NeptunesBounty.cs | 2 +- Items/Weapons/Melee/OmegaBiomeBlade.cs | 2 +- Items/Weapons/Melee/Oracle.cs | 2 +- Items/Weapons/Melee/PlagueKeeper.cs | 2 +- Items/Weapons/Melee/RedSun.cs | 2 +- Items/Weapons/Melee/Roxcalibur.cs | 2 +- Items/Weapons/Melee/RoyalKnivesMelee.cs | 2 +- Items/Weapons/Melee/ScourgeoftheCosmos.cs | 2 +- Items/Weapons/Melee/SolarFlare.cs | 2 +- Items/Weapons/Melee/SolsticeClaymore.cs | 2 +- Items/Weapons/Melee/SoulEdge.cs | 2 +- Items/Weapons/Melee/SpatialLance.cs | 2 +- Items/Weapons/Melee/StellarContemptMelee.cs | 2 +- Items/Weapons/Melee/StellarStriker.cs | 2 +- Items/Weapons/Melee/StreamGouge.cs | 2 +- Items/Weapons/Melee/Swordsplosion.cs | 2 +- Items/Weapons/Melee/TerrorBlade.cs | 2 +- Items/Weapons/Melee/TheBurningSky.cs | 2 +- Items/Weapons/Melee/TheEnforcer.cs | 2 +- Items/Weapons/Melee/TheLastMourning.cs | 2 +- Items/Weapons/Melee/TheMutilator.cs | 2 +- Items/Weapons/Melee/TheObliterator.cs | 2 +- ...tisTruePaladinianMageHammerofMightMelee.cs | 2 +- .../Melee/TrueTyrantYharimsUltisword.cs | 2 +- Items/Weapons/Melee/Verdant.cs | 2 +- Items/Weapons/Melee/YateveoBloom.cs | 2 +- Items/Weapons/Ranged/AMR.cs | 2 +- Items/Weapons/Ranged/AcesHigh.cs | 2 +- Items/Weapons/Ranged/Alluvion.cs | 2 +- Items/Weapons/Ranged/AngelicShotgun.cs | 2 +- Items/Weapons/Ranged/Arbalest.cs | 2 +- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- Items/Weapons/Ranged/BlissfulBombardier.cs | 2 +- Items/Weapons/Ranged/BlossomFlux.cs | 2 +- Items/Weapons/Ranged/ChickenCannon.cs | 2 +- Items/Weapons/Ranged/ClaretCannon.cs | 2 +- Items/Weapons/Ranged/CleansingBlaze.cs | 2 +- Items/Weapons/Ranged/ClockworkBow.cs | 2 +- Items/Weapons/Ranged/Contagion.cs | 2 +- Items/Weapons/Ranged/DaemonsFlame.cs | 2 +- Items/Weapons/Ranged/Deathwind.cs | 2 +- Items/Weapons/Ranged/DodusHandcannon.cs | 2 +- Items/Weapons/Ranged/DragonsBreath.cs | 2 +- Items/Weapons/Ranged/Drataliornus.cs | 2 +- Items/Weapons/Ranged/ElementalBlaster.cs | 2 +- Items/Weapons/Ranged/ElementalEruption.cs | 2 +- Items/Weapons/Ranged/FlurrystormCannon.cs | 2 +- Items/Weapons/Ranged/GoldenEagle.cs | 2 +- Items/Weapons/Ranged/HalleysInferno.cs | 2 +- Items/Weapons/Ranged/HandheldTank.cs | 2 +- Items/Weapons/Ranged/HeavenlyGale.cs | 2 +- Items/Weapons/Ranged/Hellborn.cs | 2 +- Items/Weapons/Ranged/Infinity.cs | 2 +- Items/Weapons/Ranged/Interfacer.cs | 2 +- Items/Weapons/Ranged/Karasawa.cs | 2 +- Items/Weapons/Ranged/LeadWizard.cs | 2 +- Items/Weapons/Ranged/MagnomalyCannon.cs | 2 +- Items/Weapons/Ranged/Megafleet.cs | 2 +- Items/Weapons/Ranged/Minigun.cs | 2 +- Items/Weapons/Ranged/MolecularManipulator.cs | 2 +- Items/Weapons/Ranged/NettlelineGreatbow.cs | 2 +- Items/Weapons/Ranged/Norfleet.cs | 2 +- Items/Weapons/Ranged/OnyxChainBlaster.cs | 2 +- Items/Weapons/Ranged/Onyxia.cs | 2 +- Items/Weapons/Ranged/PearlGod.cs | 2 +- Items/Weapons/Ranged/Phangasm.cs | 2 +- Items/Weapons/Ranged/Photoviscerator.cs | 2 +- Items/Weapons/Ranged/PlanetaryAnnihilation.cs | 2 +- Items/Weapons/Ranged/SDFMG.cs | 2 +- Items/Weapons/Ranged/Seadragon.cs | 2 +- Items/Weapons/Ranged/SeasSearing.cs | 2 +- Items/Weapons/Ranged/SepticSkewer.cs | 2 +- Items/Weapons/Ranged/Shredder.cs | 2 +- Items/Weapons/Ranged/Skullmasher.cs | 2 +- Items/Weapons/Ranged/SomaPrime.cs | 2 +- Items/Weapons/Ranged/Spyker.cs | 2 +- Items/Weapons/Ranged/Starfleet.cs | 2 +- Items/Weapons/Ranged/StarfleetMK2.cs | 2 +- Items/Weapons/Ranged/StormDragoon.cs | 2 +- Items/Weapons/Ranged/SulphuricAcidCannon.cs | 2 +- Items/Weapons/Ranged/Svantechnical.cs | 2 +- Items/Weapons/Ranged/TelluricGlare.cs | 2 +- Items/Weapons/Ranged/ThePack.cs | 2 +- Items/Weapons/Ranged/TheStorm.cs | 2 +- Items/Weapons/Ranged/TrueConferenceCall.cs | 2 +- Items/Weapons/Rogue/AccretionDisk.cs | 2 +- Items/Weapons/Rogue/AlphaVirus.cs | 2 +- Items/Weapons/Rogue/BloodsoakedCrasher.cs | 2 +- Items/Weapons/Rogue/Celestus.cs | 2 +- Items/Weapons/Rogue/CorpusAvertor.cs | 2 +- Items/Weapons/Rogue/CosmicKunai.cs | 2 +- Items/Weapons/Rogue/DeepSeaDumbbell.cs | 2 +- Items/Weapons/Rogue/DeificThunderbolt.cs | 2 +- Items/Weapons/Rogue/DuneHopper.cs | 2 +- Items/Weapons/Rogue/EclipsesFall.cs | 2 +- Items/Weapons/Rogue/EmpyreanKnivesThrown.cs | 2 +- Items/Weapons/Rogue/Eradicator.cs | 2 +- Items/Weapons/Rogue/ExecutionersBlade.cs | 2 +- Items/Weapons/Rogue/GalaxySmasherRogue.cs | 2 +- Items/Weapons/Rogue/GhoulishGouger.cs | 2 +- Items/Weapons/Rogue/GodsParanoia.cs | 2 +- Items/Weapons/Rogue/HellsSun.cs | 2 +- Items/Weapons/Rogue/Hypothermia.cs | 2 +- Items/Weapons/Rogue/JawsOfOblivion.cs | 2 +- Items/Weapons/Rogue/KelvinCatalyst.cs | 2 +- Items/Weapons/Rogue/LunarKunai.cs | 2 +- Items/Weapons/Rogue/Malachite.cs | 2 +- Items/Weapons/Rogue/MoltenAmputator.cs | 2 +- Items/Weapons/Rogue/NanoblackReaperRogue.cs | 2 +- Items/Weapons/Rogue/NightsGaze.cs | 2 +- Items/Weapons/Rogue/Penumbra.cs | 2 +- Items/Weapons/Rogue/PhantasmalRuin.cs | 2 +- Items/Weapons/Rogue/Plaguenade.cs | 2 +- Items/Weapons/Rogue/ProfanedPartisan.cs | 2 +- Items/Weapons/Rogue/ProfanedTrident.cs | 2 +- Items/Weapons/Rogue/Quasar.cs | 2 +- Items/Weapons/Rogue/RoyalKnives.cs | 2 +- Items/Weapons/Rogue/ScarletDevil.cs | 2 +- .../Weapons/Rogue/ScourgeoftheCosmosThrown.cs | 2 +- Items/Weapons/Rogue/ShatteredSun.cs | 2 +- Items/Weapons/Rogue/SpearofDestiny.cs | 2 +- Items/Weapons/Rogue/StellarContemptRogue.cs | 2 +- Items/Weapons/Rogue/Supernova.cs | 2 +- Items/Weapons/Rogue/SylvanSlasher.cs | 2 +- Items/Weapons/Rogue/TarragonThrowingDart.cs | 2 +- Items/Weapons/Rogue/TheReaper.cs | 2 +- Items/Weapons/Rogue/TimeBolt.cs | 2 +- ...TriactisTruePaladinianMageHammerofMight.cs | 2 +- Items/Weapons/Rogue/UtensilPoker.cs | 2 +- Items/Weapons/Rogue/Valediction.cs | 2 +- Items/Weapons/Summon/AngryChickenStaff.cs | 2 +- Items/Weapons/Summon/CalamarisLament.cs | 2 +- Items/Weapons/Summon/CosmicImmaterializer.cs | 2 +- Items/Weapons/Summon/Cosmilamp.cs | 2 +- Items/Weapons/Summon/ElementalAxe.cs | 2 +- Items/Weapons/Summon/Endogenesis.cs | 2 +- Items/Weapons/Summon/EnergyStaff.cs | 2 +- Items/Weapons/Summon/EtherealSubjugator.cs | 2 +- Items/Weapons/Summon/LanternoftheSoul.cs | 2 +- Items/Weapons/Summon/ResurrectionButterfly.cs | 2 +- Items/Weapons/Summon/Sirius.cs | 2 +- Items/Weapons/Summon/StaffoftheMechworm.cs | 2 +- Items/Weapons/Typeless/Aestheticus.cs | 2 +- Items/Weapons/Typeless/AethersWhisper.cs | 2 +- .../Typeless/FiniteUse/ElephantKiller.cs | 2 +- Utilities/CalamityUtils.cs | 23 ++++++ Utilities/Enums.cs | 14 ++++ 409 files changed, 484 insertions(+), 442 deletions(-) diff --git a/Items/Accessories/ArcanumoftheVoid.cs b/Items/Accessories/ArcanumoftheVoid.cs index b29ff067c3..37606d7116 100644 --- a/Items/Accessories/ArcanumoftheVoid.cs +++ b/Items/Accessories/ArcanumoftheVoid.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index 3b22b427fc..f48eb63d02 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 90, 0, 0); //30 gold reforge item.defense = 10; item.accessory = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/AstralArcanum.cs b/Items/Accessories/AstralArcanum.cs index b8e22e2d1e..28e8d6abaf 100644 --- a/Items/Accessories/AstralArcanum.cs +++ b/Items/Accessories/AstralArcanum.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/BadgeofBravery.cs b/Items/Accessories/BadgeofBravery.cs index 3a5210332e..fd69344781 100644 --- a/Items/Accessories/BadgeofBravery.cs +++ b/Items/Accessories/BadgeofBravery.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories item.height = 30; item.value = Item.buyPrice(0, 21, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/DarkSunRing.cs b/Items/Accessories/DarkSunRing.cs index 9323ba47f6..9d5f0c5217 100644 --- a/Items/Accessories/DarkSunRing.cs +++ b/Items/Accessories/DarkSunRing.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories item.defense = 10; item.lifeRegen = 1; item.accessory = true; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/DeepDiver.cs b/Items/Accessories/DeepDiver.cs index 3be347a7f9..9ab6e96179 100644 --- a/Items/Accessories/DeepDiver.cs +++ b/Items/Accessories/DeepDiver.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories item.rare = 2; item.defense = 2; item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/DimensionalSoulArtifact.cs b/Items/Accessories/DimensionalSoulArtifact.cs index 04c901182e..17ce7a5e50 100644 --- a/Items/Accessories/DimensionalSoulArtifact.cs +++ b/Items/Accessories/DimensionalSoulArtifact.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(1, 50, 0, 0); item.accessory = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/DraedonsHeart.cs b/Items/Accessories/DraedonsHeart.cs index 1557e30b42..251a1df228 100644 --- a/Items/Accessories/DraedonsHeart.cs +++ b/Items/Accessories/DraedonsHeart.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/DragonScales.cs b/Items/Accessories/DragonScales.cs index 6fc1e2c19d..93ea711fa1 100644 --- a/Items/Accessories/DragonScales.cs +++ b/Items/Accessories/DragonScales.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories item.height = 34; item.value = Item.buyPrice(0, 90, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; item.accessory = true; } diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs index 492bf841a3..ed17546fc9 100644 --- a/Items/Accessories/EclipseMirror.cs +++ b/Items/Accessories/EclipseMirror.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories item.width = 38; item.height = 38; item.value = Item.buyPrice(0, 22, 0, 0); - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; item.accessory = true; } diff --git a/Items/Accessories/EldritchSoulArtifact.cs b/Items/Accessories/EldritchSoulArtifact.cs index d768a519f3..a9302d4b85 100644 --- a/Items/Accessories/EldritchSoulArtifact.cs +++ b/Items/Accessories/EldritchSoulArtifact.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(1, 50, 0, 0); item.accessory = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/ElementalGauntlet.cs b/Items/Accessories/ElementalGauntlet.cs index b0a5337afd..f552474662 100644 --- a/Items/Accessories/ElementalGauntlet.cs +++ b/Items/Accessories/ElementalGauntlet.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories item.height = 38; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/ElementalQuiver.cs b/Items/Accessories/ElementalQuiver.cs index 27a6f6df32..f6d516dc2e 100644 --- a/Items/Accessories/ElementalQuiver.cs +++ b/Items/Accessories/ElementalQuiver.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/ElysianAegis.cs b/Items/Accessories/ElysianAegis.cs index 8a30fd383a..94ec1afd38 100644 --- a/Items/Accessories/ElysianAegis.cs +++ b/Items/Accessories/ElysianAegis.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories item.height = 42; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.defense = 8; item.accessory = true; } diff --git a/Items/Accessories/EtherealTalisman.cs b/Items/Accessories/EtherealTalisman.cs index f66cc4652e..f93e82b99a 100644 --- a/Items/Accessories/EtherealTalisman.cs +++ b/Items/Accessories/EtherealTalisman.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/FabledTortoiseShell.cs b/Items/Accessories/FabledTortoiseShell.cs index 92ce7145b1..c659c1a4d7 100644 --- a/Items/Accessories/FabledTortoiseShell.cs +++ b/Items/Accessories/FabledTortoiseShell.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 9, 0, 0); item.rare = 5; item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/GodlySoulArtifact.cs b/Items/Accessories/GodlySoulArtifact.cs index e72cfbbefc..cae592c6ea 100644 --- a/Items/Accessories/GodlySoulArtifact.cs +++ b/Items/Accessories/GodlySoulArtifact.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(1, 50, 0, 0); item.accessory = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/GoldBurdenBreaker.cs b/Items/Accessories/GoldBurdenBreaker.cs index 1ff71e1628..c8e69720b6 100644 --- a/Items/Accessories/GoldBurdenBreaker.cs +++ b/Items/Accessories/GoldBurdenBreaker.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 21, 0, 0); item.rare = 10; item.accessory = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index 3e22d38ca2..b13e02dcbf 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 9; item.accessory = true; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override bool CanEquipAccessory(Player player, int slot) diff --git a/Items/Accessories/HideofAstrumDeus.cs b/Items/Accessories/HideofAstrumDeus.cs index cf8bdbab22..0cacfad449 100644 --- a/Items/Accessories/HideofAstrumDeus.cs +++ b/Items/Accessories/HideofAstrumDeus.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = Item.buyPrice(0, 30, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/MoonstoneCrown.cs b/Items/Accessories/MoonstoneCrown.cs index ea4ada46c7..e049ffebc8 100644 --- a/Items/Accessories/MoonstoneCrown.cs +++ b/Items/Accessories/MoonstoneCrown.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories item.width = 46; item.height = 40; item.value = Item.buyPrice(0, 18, 0, 0); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.accessory = true; } diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index fd26b56a7c..b3cd5c5efa 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void ModifyTooltips(List list) diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index 04b430a1ef..736eca44cf 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.accessory = true; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index 32ab866e5d..a428bc8ee8 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 12; item.accessory = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/ReaperToothNecklace.cs b/Items/Accessories/ReaperToothNecklace.cs index be6516091e..b5108a2740 100644 --- a/Items/Accessories/ReaperToothNecklace.cs +++ b/Items/Accessories/ReaperToothNecklace.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 10; item.accessory = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/Regenator.cs b/Items/Accessories/Regenator.cs index 5cabaa43e1..e651a4ca1d 100644 --- a/Items/Accessories/Regenator.cs +++ b/Items/Accessories/Regenator.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories item.rare = 5; item.defense = 6; item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/SamuraiBadge.cs b/Items/Accessories/SamuraiBadge.cs index ac8f1d33d8..e695637546 100644 --- a/Items/Accessories/SamuraiBadge.cs +++ b/Items/Accessories/SamuraiBadge.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories item.height = 30; item.value = Item.buyPrice(0, 21, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/SpectralVeil.cs b/Items/Accessories/SpectralVeil.cs index f06ad15c1a..4c0495c62c 100644 --- a/Items/Accessories/SpectralVeil.cs +++ b/Items/Accessories/SpectralVeil.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories item.width = 30; item.height = 38; item.value = Item.buyPrice(1, 40, 0, 0); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.accessory = true; } diff --git a/Items/Accessories/Sponge.cs b/Items/Accessories/Sponge.cs index 534088d789..67036ef7b7 100644 --- a/Items/Accessories/Sponge.cs +++ b/Items/Accessories/Sponge.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories item.height = 20; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/StatisBeltOfCurses.cs b/Items/Accessories/StatisBeltOfCurses.cs index 0a1f8c67b3..d1c602b8aa 100644 --- a/Items/Accessories/StatisBeltOfCurses.cs +++ b/Items/Accessories/StatisBeltOfCurses.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/TheBee.cs b/Items/Accessories/TheBee.cs index bdaf347f57..e0194468d0 100644 --- a/Items/Accessories/TheBee.cs +++ b/Items/Accessories/TheBee.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 9, 0, 0); item.rare = 4; item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/TheCommunity.cs b/Items/Accessories/TheCommunity.cs index 01c5289459..f3575b1da4 100644 --- a/Items/Accessories/TheCommunity.cs +++ b/Items/Accessories/TheCommunity.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories item.height = 20; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/TheEvolution.cs b/Items/Accessories/TheEvolution.cs index 9f63b44d24..fcd2d5d966 100644 --- a/Items/Accessories/TheEvolution.cs +++ b/Items/Accessories/TheEvolution.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/TheTransformer.cs b/Items/Accessories/TheTransformer.cs index d927f16533..95b7e61d88 100644 --- a/Items/Accessories/TheTransformer.cs +++ b/Items/Accessories/TheTransformer.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 3, 0, 0); item.rare = 1; item.accessory = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/VeneratedLocket.cs b/Items/Accessories/VeneratedLocket.cs index 308e89d874..ac2db5fa4b 100644 --- a/Items/Accessories/VeneratedLocket.cs +++ b/Items/Accessories/VeneratedLocket.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories item.height = 36; item.value = Item.buyPrice(25, 0, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.accessory = true; } diff --git a/Items/Accessories/Wings/CelestialTracers.cs b/Items/Accessories/Wings/CelestialTracers.cs index 08cc95743e..085b06cd12 100644 --- a/Items/Accessories/Wings/CelestialTracers.cs +++ b/Items/Accessories/Wings/CelestialTracers.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories.Wings item.height = 32; item.value = Item.buyPrice(1, 20, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/Wings/DrewsWings.cs b/Items/Accessories/Wings/DrewsWings.cs index 00627b4f86..a29e50298f 100644 --- a/Items/Accessories/Wings/DrewsWings.cs +++ b/Items/Accessories/Wings/DrewsWings.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings item.width = 22; item.height = 20; item.value = Item.buyPrice(1, 0, 0, 0); - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.accessory = true; } diff --git a/Items/Accessories/Wings/ElysianTracers.cs b/Items/Accessories/Wings/ElysianTracers.cs index 0300928bde..ead024b476 100644 --- a/Items/Accessories/Wings/ElysianTracers.cs +++ b/Items/Accessories/Wings/ElysianTracers.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories.Wings item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/Wings/ElysianWings.cs b/Items/Accessories/Wings/ElysianWings.cs index 689ec09615..b375fa6675 100644 --- a/Items/Accessories/Wings/ElysianWings.cs +++ b/Items/Accessories/Wings/ElysianWings.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings item.height = 32; item.value = Item.buyPrice(0, 45, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.accessory = true; } diff --git a/Items/Accessories/Wings/InfinityBoots.cs b/Items/Accessories/Wings/InfinityBoots.cs index c27ffda586..c045026cbc 100644 --- a/Items/Accessories/Wings/InfinityBoots.cs +++ b/Items/Accessories/Wings/InfinityBoots.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories.Wings item.height = 32; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/YharimsInsignia.cs b/Items/Accessories/YharimsInsignia.cs index 1f7859b709..9773e7caf8 100644 --- a/Items/Accessories/YharimsInsignia.cs +++ b/Items/Accessories/YharimsInsignia.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories item.height = 38; item.value = Item.buyPrice(0, 30, 0, 0); item.accessory = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Ammo/BloodRune.cs b/Items/Ammo/BloodRune.cs index 7cfc46677a..46f31b5047 100644 --- a/Items/Ammo/BloodRune.cs +++ b/Items/Ammo/BloodRune.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Ammo item.consumable = true; item.knockBack = 10f; item.value = Item.buyPrice(0, 1, 0, 0); - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 0f; item.ammo = item.type; // CONSIDER -- Would item.type work here instead of a self reference? diff --git a/Items/Ammo/BloodfireArrow.cs b/Items/Ammo/BloodfireArrow.cs index 28010408e4..0b3b0dff61 100644 --- a/Items/Ammo/BloodfireArrow.cs +++ b/Items/Ammo/BloodfireArrow.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Ammo item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 40; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void AddRecipes() diff --git a/Items/Ammo/ElysianArrow.cs b/Items/Ammo/ElysianArrow.cs index ac8c42911f..79a77c2df2 100644 --- a/Items/Ammo/ElysianArrow.cs +++ b/Items/Ammo/ElysianArrow.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Ammo item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 40; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Ammo/HolyFireBullet.cs b/Items/Ammo/HolyFireBullet.cs index 4a1294f469..5b35aff63e 100644 --- a/Items/Ammo/HolyFireBullet.cs +++ b/Items/Ammo/HolyFireBullet.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Ammo item.knockBack = 2f; item.value = 2000; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.ammo = 97; diff --git a/Items/Ammo/VanquisherArrow.cs b/Items/Ammo/VanquisherArrow.cs index 6e1641b00f..95c10fa693 100644 --- a/Items/Ammo/VanquisherArrow.cs +++ b/Items/Ammo/VanquisherArrow.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Ammo item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 40; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Armor/AuricTeslaBodyArmor.cs b/Items/Armor/AuricTeslaBodyArmor.cs index 19afcd5528..a361970363 100644 --- a/Items/Armor/AuricTeslaBodyArmor.cs +++ b/Items/Armor/AuricTeslaBodyArmor.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(1, 44, 0, 0); item.defense = 48; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/AuricTeslaCuisses.cs b/Items/Armor/AuricTeslaCuisses.cs index 7d96ee4414..91620d0763 100644 --- a/Items/Armor/AuricTeslaCuisses.cs +++ b/Items/Armor/AuricTeslaCuisses.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(1, 8, 0, 0); item.defense = 44; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/AuricTeslaHelm.cs b/Items/Armor/AuricTeslaHelm.cs index 7c812a46bb..b229677894 100644 --- a/Items/Armor/AuricTeslaHelm.cs +++ b/Items/Armor/AuricTeslaHelm.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(1, 80, 0, 0); item.defense = 54; //132 - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/AuricTeslaHoodedFacemask.cs b/Items/Armor/AuricTeslaHoodedFacemask.cs index 3281d6edbb..68f35f6a36 100644 --- a/Items/Armor/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/AuricTeslaHoodedFacemask.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(1, 80, 0, 0); item.defense = 40; //132 - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/AuricTeslaPlumedHelm.cs b/Items/Armor/AuricTeslaPlumedHelm.cs index aad1a0cfcc..9322d9fc82 100644 --- a/Items/Armor/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/AuricTeslaPlumedHelm.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(1, 80, 0, 0); item.defense = 34; //132 - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/AuricTeslaSpaceHelmet.cs b/Items/Armor/AuricTeslaSpaceHelmet.cs index 8d9feea085..6cddb4a4d6 100644 --- a/Items/Armor/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/AuricTeslaSpaceHelmet.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(1, 80, 0, 0); item.defense = 12; //132 - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/AuricTeslaWireHemmedVisage.cs b/Items/Armor/AuricTeslaWireHemmedVisage.cs index 46499fdd37..26903c5294 100644 --- a/Items/Armor/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/AuricTeslaWireHemmedVisage.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(1, 80, 0, 0); item.defense = 24; //132 - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/BloodflareBodyArmor.cs b/Items/Armor/BloodflareBodyArmor.cs index e7080c92c4..e714271439 100644 --- a/Items/Armor/BloodflareBodyArmor.cs +++ b/Items/Armor/BloodflareBodyArmor.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 48, 0, 0); item.defense = 35; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/BloodflareCuisses.cs b/Items/Armor/BloodflareCuisses.cs index 6a5f9d7467..003c7e6a4f 100644 --- a/Items/Armor/BloodflareCuisses.cs +++ b/Items/Armor/BloodflareCuisses.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 36, 0, 0); item.defense = 29; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/BloodflareHelm.cs b/Items/Armor/BloodflareHelm.cs index 7a5c2acaaa..df49a7c161 100644 --- a/Items/Armor/BloodflareHelm.cs +++ b/Items/Armor/BloodflareHelm.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 28; //85 - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/BloodflareHelmet.cs b/Items/Armor/BloodflareHelmet.cs index 47558b21bd..be9b361942 100644 --- a/Items/Armor/BloodflareHelmet.cs +++ b/Items/Armor/BloodflareHelmet.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 16; //85 - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/BloodflareHornedHelm.cs b/Items/Armor/BloodflareHornedHelm.cs index d4217009b2..bcf2c00e06 100644 --- a/Items/Armor/BloodflareHornedHelm.cs +++ b/Items/Armor/BloodflareHornedHelm.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 34; //85 - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/BloodflareHornedMask.cs b/Items/Armor/BloodflareHornedMask.cs index 2dd346302f..ee9bdd9346 100644 --- a/Items/Armor/BloodflareHornedMask.cs +++ b/Items/Armor/BloodflareHornedMask.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 22; //85 - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/BloodflareMask.cs b/Items/Armor/BloodflareMask.cs index 48539bf563..b4fe9fafff 100644 --- a/Items/Armor/BloodflareMask.cs +++ b/Items/Armor/BloodflareMask.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 49; //85 - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/DemonshadeBreastplate.cs b/Items/Armor/DemonshadeBreastplate.cs index f4d5722eaf..6793f8828c 100644 --- a/Items/Armor/DemonshadeBreastplate.cs +++ b/Items/Armor/DemonshadeBreastplate.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(4, 0, 0, 0); item.defense = 50; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/DemonshadeGreaves.cs b/Items/Armor/DemonshadeGreaves.cs index 6d60533f33..946fe42d19 100644 --- a/Items/Armor/DemonshadeGreaves.cs +++ b/Items/Armor/DemonshadeGreaves.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(3, 0, 0, 0); item.defense = 50; //15 - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/DemonshadeHelm.cs b/Items/Armor/DemonshadeHelm.cs index 5a0f6b2309..d98ab0a0b0 100644 --- a/Items/Armor/DemonshadeHelm.cs +++ b/Items/Armor/DemonshadeHelm.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(5, 0, 0, 0); item.defense = 50; //15 - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/FearmongerGreathelm.cs b/Items/Armor/FearmongerGreathelm.cs index bd4d624dc0..39f455b176 100644 --- a/Items/Armor/FearmongerGreathelm.cs +++ b/Items/Armor/FearmongerGreathelm.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(gold: 75); item.defense = 38; // 132 total - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/FearmongerGreaves.cs b/Items/Armor/FearmongerGreaves.cs index bba444ef4c..ea17bdf2c9 100644 --- a/Items/Armor/FearmongerGreaves.cs +++ b/Items/Armor/FearmongerGreaves.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(gold: 45); item.defense = 44; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/FearmongerPlateMail.cs b/Items/Armor/FearmongerPlateMail.cs index 1f6d21769d..5d91d74ac2 100644 --- a/Items/Armor/FearmongerPlateMail.cs +++ b/Items/Armor/FearmongerPlateMail.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(gold: 60); item.defense = 50; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/GodSlayerChestplate.cs b/Items/Armor/GodSlayerChestplate.cs index bbdf29a3f6..c6056bf119 100644 --- a/Items/Armor/GodSlayerChestplate.cs +++ b/Items/Armor/GodSlayerChestplate.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 41; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/GodSlayerHelm.cs b/Items/Armor/GodSlayerHelm.cs index f08b8f5dd0..48eee14bbe 100644 --- a/Items/Armor/GodSlayerHelm.cs +++ b/Items/Armor/GodSlayerHelm.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 75, 0, 0); item.defense = 48; //96 - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/GodSlayerHelmet.cs b/Items/Armor/GodSlayerHelmet.cs index f13be8e652..9c5e10f08c 100644 --- a/Items/Armor/GodSlayerHelmet.cs +++ b/Items/Armor/GodSlayerHelmet.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 75, 0, 0); item.defense = 35; //96 - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/GodSlayerHornedHelm.cs b/Items/Armor/GodSlayerHornedHelm.cs index 77318968fb..279998cda0 100644 --- a/Items/Armor/GodSlayerHornedHelm.cs +++ b/Items/Armor/GodSlayerHornedHelm.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 75, 0, 0); item.defense = 12; //96 - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/GodSlayerLeggings.cs b/Items/Armor/GodSlayerLeggings.cs index 8c6edaeb1a..c7f5a9546b 100644 --- a/Items/Armor/GodSlayerLeggings.cs +++ b/Items/Armor/GodSlayerLeggings.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 45, 0, 0); item.defense = 35; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/GodSlayerMask.cs b/Items/Armor/GodSlayerMask.cs index 52811287f2..d6ae9cd2bd 100644 --- a/Items/Armor/GodSlayerMask.cs +++ b/Items/Armor/GodSlayerMask.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 75, 0, 0); item.defense = 29; //96 - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/GodSlayerVisage.cs b/Items/Armor/GodSlayerVisage.cs index cfc5a0ecbd..82599bd18a 100644 --- a/Items/Armor/GodSlayerVisage.cs +++ b/Items/Armor/GodSlayerVisage.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 75, 0, 0); item.defense = 21; //96 - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/OmegaBlueChestplate.cs b/Items/Armor/OmegaBlueChestplate.cs index 33572c7c3d..8bfaa408c1 100644 --- a/Items/Armor/OmegaBlueChestplate.cs +++ b/Items/Armor/OmegaBlueChestplate.cs @@ -25,7 +25,7 @@ No positive life regen"); item.value = Item.sellPrice(0, 38, 0, 0); item.rare = 10; item.defense = 28; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlueHelmet.cs index 1cbebee9cf..77e7dc027c 100644 --- a/Items/Armor/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlueHelmet.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor item.value = Item.sellPrice(0, 35, 0, 0); item.rare = 10; item.defense = 19; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/OmegaBlueLeggings.cs b/Items/Armor/OmegaBlueLeggings.cs index 6165844ea6..510dd130af 100644 --- a/Items/Armor/OmegaBlueLeggings.cs +++ b/Items/Armor/OmegaBlueLeggings.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor item.value = Item.sellPrice(0, 35, 25, 0); item.rare = 10; item.defense = 22; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/SilvaArmor.cs b/Items/Armor/SilvaArmor.cs index 39c0c4f34b..cdf8f9a50b 100644 --- a/Items/Armor/SilvaArmor.cs +++ b/Items/Armor/SilvaArmor.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 24; item.value = Item.buyPrice(0, 72, 0, 0); item.defense = 44; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/SilvaHelm.cs b/Items/Armor/SilvaHelm.cs index e35a85d533..1b445468a0 100644 --- a/Items/Armor/SilvaHelm.cs +++ b/Items/Armor/SilvaHelm.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 20; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 52; //110 - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index 78307b412f..9313d28278 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 24; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 13; //110 - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/SilvaHornedHelm.cs b/Items/Armor/SilvaHornedHelm.cs index 0c66100137..d8f36afa90 100644 --- a/Items/Armor/SilvaHornedHelm.cs +++ b/Items/Armor/SilvaHornedHelm.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 24; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 36; //110 - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/SilvaLeggings.cs b/Items/Armor/SilvaLeggings.cs index 6edf0e960c..f8ace3b468 100644 --- a/Items/Armor/SilvaLeggings.cs +++ b/Items/Armor/SilvaLeggings.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 54, 0, 0); item.defense = 39; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/SilvaMask.cs b/Items/Armor/SilvaMask.cs index 6032af0834..4d5adf3031 100644 --- a/Items/Armor/SilvaMask.cs +++ b/Items/Armor/SilvaMask.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 26; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 30; //110 - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/SilvaMaskedCap.cs b/Items/Armor/SilvaMaskedCap.cs index a254441214..9142ca31af 100644 --- a/Items/Armor/SilvaMaskedCap.cs +++ b/Items/Armor/SilvaMaskedCap.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor item.height = 22; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 21; //110 - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/TarragonBreastplate.cs b/Items/Armor/TarragonBreastplate.cs index 05cc2b896f..c6bebaa258 100644 --- a/Items/Armor/TarragonBreastplate.cs +++ b/Items/Armor/TarragonBreastplate.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor item.lifeRegen = 2; item.value = Item.buyPrice(0, 40, 0, 0); item.defense = 37; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/TarragonHelm.cs b/Items/Armor/TarragonHelm.cs index e8153546d5..9484f13214 100644 --- a/Items/Armor/TarragonHelm.cs +++ b/Items/Armor/TarragonHelm.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 50, 0, 0); item.defense = 33; //98 - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/TarragonHelmet.cs b/Items/Armor/TarragonHelmet.cs index 2e3d8b3ccf..42b57fc274 100644 --- a/Items/Armor/TarragonHelmet.cs +++ b/Items/Armor/TarragonHelmet.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 50, 0, 0); item.defense = 15; //98 - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/TarragonHornedHelm.cs b/Items/Armor/TarragonHornedHelm.cs index c24fe0787c..8f00660879 100644 --- a/Items/Armor/TarragonHornedHelm.cs +++ b/Items/Armor/TarragonHornedHelm.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 50, 0, 0); item.defense = 3; //98 - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/TarragonLeggings.cs b/Items/Armor/TarragonLeggings.cs index 364f235eed..26e53942d6 100644 --- a/Items/Armor/TarragonLeggings.cs +++ b/Items/Armor/TarragonLeggings.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 30, 0, 0); item.defense = 32; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/TarragonMask.cs b/Items/Armor/TarragonMask.cs index 518984b3a8..5fdfa0eb2c 100644 --- a/Items/Armor/TarragonMask.cs +++ b/Items/Armor/TarragonMask.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 50, 0, 0); item.defense = 10; //98 - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/TarragonVisage.cs b/Items/Armor/TarragonVisage.cs index 2fd839489e..43d4223e27 100644 --- a/Items/Armor/TarragonVisage.cs +++ b/Items/Armor/TarragonVisage.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 50, 0, 0); item.defense = 21; //98 - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/Vanity/ApronOfAffection.cs b/Items/Armor/Vanity/ApronOfAffection.cs index 1ec1d6e9af..e22f05af4b 100644 --- a/Items/Armor/Vanity/ApronOfAffection.cs +++ b/Items/Armor/Vanity/ApronOfAffection.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Vanity item.width = 18; item.height = 18; item.rare = 5; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(0, 15, 0, 0); item.vanity = true; } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 09d2bcd9f5..e257ad254f 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -55,12 +55,12 @@ namespace CalamityMod.Items public int timesUsed = 0; - public int postMoonLordRarity = 0; + public CalamityRarity customRarity = 0; #region SetDefaults public override void SetDefaults(Item item) { - if (postMoonLordRarity != 0 && item.rare != 10) + if (customRarity.IsPostML() && item.rare != 10) item.rare = 10; if (item.maxStack == 99 || item.type == ItemID.Dynamite || item.type == ItemID.StickyDynamite || @@ -341,7 +341,7 @@ namespace CalamityMod.Items "timesUsed", timesUsed }, { - "rarity", postMoonLordRarity + "rarity", (int)customRarity } }; } @@ -350,13 +350,13 @@ namespace CalamityMod.Items { rogue = tag.GetBool("rogue"); timesUsed = tag.GetInt("timesUsed"); - postMoonLordRarity = tag.GetInt("rarity"); + customRarity = (CalamityRarity)tag.GetInt("rarity"); } public override void LoadLegacy(Item item, BinaryReader reader) { int loadVersion = reader.ReadInt32(); - postMoonLordRarity = reader.ReadInt32(); + customRarity = (CalamityRarity)reader.ReadInt32(); timesUsed = reader.ReadInt32(); if (loadVersion == 0) @@ -376,7 +376,7 @@ namespace CalamityMod.Items flags[0] = rogue; writer.Write(flags); - writer.Write(postMoonLordRarity); + writer.Write((int)customRarity); writer.Write(timesUsed); } @@ -385,7 +385,7 @@ namespace CalamityMod.Items BitsByte flags = reader.ReadByte(); rogue = flags[0]; - postMoonLordRarity = reader.ReadInt32(); + customRarity = (CalamityRarity)reader.ReadInt32(); timesUsed = reader.ReadInt32(); } #endregion @@ -503,57 +503,62 @@ namespace CalamityMod.Items TooltipLine tt2 = tooltips.FirstOrDefault(x => x.Name == "ItemName" && x.mod == "Terraria"); if (tt2 != null) { - switch (postMoonLordRarity) + switch (customRarity) { - case 12: + default: + break; + case CalamityRarity.Turquoise: tt2.overrideColor = new Color(0, 255, 200); break; - case 13: + case CalamityRarity.PureGreen: tt2.overrideColor = new Color(0, 255, 0); break; - case 14: + case CalamityRarity.DarkBlue: tt2.overrideColor = new Color(43, 96, 222); break; - case 15: + case CalamityRarity.Violet: tt2.overrideColor = new Color(108, 45, 199); break; - case 16: + case CalamityRarity.Developer: tt2.overrideColor = new Color(255, 0, 255); break; - case 17: //Legendary Weapons - if (item.type == ModContent.ItemType()) - tt2.overrideColor = new Color(Main.DiscoR, 203, 103); + + case CalamityRarity.Rainbow: + tt2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); + break; + case CalamityRarity.RareVariant: + tt2.overrideColor = new Color(255, 140, 0); + break; + case CalamityRarity.Dedicated: + tt2.overrideColor = new Color(139, 0, 0); + break; + + case CalamityRarity.ItemSpecific: + // Uniquely colored developer weapons + if(item.type == ModContent.ItemType()) + tt2.overrideColor = new Color(Main.DiscoR, 100, 255); + if(item.type == ModContent.ItemType()) + tt2.overrideColor = new Color(0, 0, 255); + if (item.type == ModContent.ItemType() || item.type == ModContent.ItemType()) + tt2.overrideColor = new Color(0.34f, 0.34f + 0.66f * Main.DiscoG / 255f, 0.34f + 0.5f * Main.DiscoG / 255f); + + // Uniquely colored legendary weapons if (item.type == ModContent.ItemType() || item.type == ModContent.ItemType()) tt2.overrideColor = new Color(255, Main.DiscoG, 53); + if (item.type == ModContent.ItemType()) + tt2.overrideColor = new Color(Main.DiscoR, 203, 103); if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(53, Main.DiscoG, 255); if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(150, Main.DiscoG, 255); - if (item.type == ModContent.ItemType()) + if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(Main.DiscoR, 203, 103); + if (item.type == ModContent.ItemType()) + tt2.overrideColor = new Color(60, Main.DiscoG, 190); if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(255, Main.DiscoG, 155); if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(255, Main.DiscoG, 0); - if (item.type == ModContent.ItemType()) - tt2.overrideColor = new Color(60, Main.DiscoG, 190); - break; - case 18: //Fabstaff - tt2.overrideColor = new Color(Main.DiscoR, 100, 255); - break; - case 19: //Blushie Staff - tt2.overrideColor = new Color(0, 0, 255); - break; - case 20: //Non-Expert Rainbow - tt2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - break; - case 21: //Patreon - tt2.overrideColor = new Color(139, 0, 0); - break; - case 22: //Rare Variants - tt2.overrideColor = new Color(255, 140, 0); - break; - default: break; } } diff --git a/Items/Critters/PiggyItem.cs b/Items/Critters/PiggyItem.cs index c07b0306d3..9cb6f11ef1 100644 --- a/Items/Critters/PiggyItem.cs +++ b/Items/Critters/PiggyItem.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Critters item.height = 24; item.makeNPC = (short)ModContent.NPCType(); item.rare = 1; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } } } diff --git a/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs b/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs index b12c8fca28..7c16239701 100644 --- a/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs +++ b/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs @@ -24,7 +24,7 @@ Angiogenesis"); item.useTurn = true; item.value = Item.sellPrice(gold: 5); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.useAnimation = 17; item.useTime = 17; item.useStyle = 2; diff --git a/Items/Fishing/FishingRods/EarlyBloomRod.cs b/Items/Fishing/FishingRods/EarlyBloomRod.cs index d9839095b9..d174f6aa54 100644 --- a/Items/Fishing/FishingRods/EarlyBloomRod.cs +++ b/Items/Fishing/FishingRods/EarlyBloomRod.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.shoot = ModContent.ProjectileType(); item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Fishing/FishingRods/TheDevourerofCods.cs b/Items/Fishing/FishingRods/TheDevourerofCods.cs index cd8d2be906..e3d42bc5fd 100644 --- a/Items/Fishing/FishingRods/TheDevourerofCods.cs +++ b/Items/Fishing/FishingRods/TheDevourerofCods.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.shoot = ModContent.ProjectileType(); item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/LoreItems/KnowledgeBumblebirb.cs b/Items/LoreItems/KnowledgeBumblebirb.cs index 2227276ba1..61756c9a97 100644 --- a/Items/LoreItems/KnowledgeBumblebirb.cs +++ b/Items/LoreItems/KnowledgeBumblebirb.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/LoreItems/KnowledgeCalamitas.cs b/Items/LoreItems/KnowledgeCalamitas.cs index 1c9d02f8ff..719f437875 100644 --- a/Items/LoreItems/KnowledgeCalamitas.cs +++ b/Items/LoreItems/KnowledgeCalamitas.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool CanUseItem(Player player) diff --git a/Items/LoreItems/KnowledgeDevourerofGods.cs b/Items/LoreItems/KnowledgeDevourerofGods.cs index 26f7bcdc4e..2b5971cc69 100644 --- a/Items/LoreItems/KnowledgeDevourerofGods.cs +++ b/Items/LoreItems/KnowledgeDevourerofGods.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/LoreItems/KnowledgePolterghast.cs b/Items/LoreItems/KnowledgePolterghast.cs index a8c64fd829..1f6b02e81a 100644 --- a/Items/LoreItems/KnowledgePolterghast.cs +++ b/Items/LoreItems/KnowledgePolterghast.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/LoreItems/KnowledgeProfanedGuardians.cs b/Items/LoreItems/KnowledgeProfanedGuardians.cs index 32cb335c73..63d3d697e6 100644 --- a/Items/LoreItems/KnowledgeProfanedGuardians.cs +++ b/Items/LoreItems/KnowledgeProfanedGuardians.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/LoreItems/KnowledgeProvidence.cs b/Items/LoreItems/KnowledgeProvidence.cs index a64514bb78..1475cfdc45 100644 --- a/Items/LoreItems/KnowledgeProvidence.cs +++ b/Items/LoreItems/KnowledgeProvidence.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/LoreItems/KnowledgeSentinels.cs b/Items/LoreItems/KnowledgeSentinels.cs index d0c0094e71..594a8f89fb 100644 --- a/Items/LoreItems/KnowledgeSentinels.cs +++ b/Items/LoreItems/KnowledgeSentinels.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/LoreItems/KnowledgeYharon.cs b/Items/LoreItems/KnowledgeYharon.cs index fd48f66361..3f7d20e354 100644 --- a/Items/LoreItems/KnowledgeYharon.cs +++ b/Items/LoreItems/KnowledgeYharon.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 10; item.consumable = false; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool CanUseItem(Player player) diff --git a/Items/Materials/ArmoredShell.cs b/Items/Materials/ArmoredShell.cs index 96a45e3390..6b08a43f6a 100644 --- a/Items/Materials/ArmoredShell.cs +++ b/Items/Materials/ArmoredShell.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Materials item.height = 34; item.maxStack = 999; item.value = Item.buyPrice(0, 7, 0, 0); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } } } diff --git a/Items/Materials/AuricBar.cs b/Items/Materials/AuricBar.cs index 1a494b91d6..1720c6f3cc 100644 --- a/Items/Materials/AuricBar.cs +++ b/Items/Materials/AuricBar.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Materials item.height = 30; item.maxStack = 999; item.value = Item.sellPrice(gold: 45); - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Materials/Bloodstone.cs b/Items/Materials/Bloodstone.cs index d8586e7e11..e072b3af93 100644 --- a/Items/Materials/Bloodstone.cs +++ b/Items/Materials/Bloodstone.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.value = Item.sellPrice(silver: 60); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } } } diff --git a/Items/Materials/BloodstoneCore.cs b/Items/Materials/BloodstoneCore.cs index a171f86eda..2069eb2dea 100644 --- a/Items/Materials/BloodstoneCore.cs +++ b/Items/Materials/BloodstoneCore.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 4); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void AddRecipes() diff --git a/Items/Materials/CalamitousEssence.cs b/Items/Materials/CalamitousEssence.cs index 527dd6b4ad..9861cbf206 100644 --- a/Items/Materials/CalamitousEssence.cs +++ b/Items/Materials/CalamitousEssence.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 24); - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/CosmiliteBar.cs b/Items/Materials/CosmiliteBar.cs index accdfef1d0..bbadbc1d27 100644 --- a/Items/Materials/CosmiliteBar.cs +++ b/Items/Materials/CosmiliteBar.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Materials item.height = 24; item.maxStack = 999; item.value = Item.buyPrice(0, 7, 0, 0); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/DarkPlasma.cs b/Items/Materials/DarkPlasma.cs index 1fadc65ced..4e78240d05 100644 --- a/Items/Materials/DarkPlasma.cs +++ b/Items/Materials/DarkPlasma.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Materials item.height = 12; item.maxStack = 999; item.value = Item.buyPrice(0, 7, 0, 0); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/DarksunFragment.cs b/Items/Materials/DarksunFragment.cs index 8fdeb2b1fb..8ded44ab30 100644 --- a/Items/Materials/DarksunFragment.cs +++ b/Items/Materials/DarksunFragment.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 12); - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/DivineGeode.cs b/Items/Materials/DivineGeode.cs index 232e8b1270..ad96f4cc67 100644 --- a/Items/Materials/DivineGeode.cs +++ b/Items/Materials/DivineGeode.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.buyPrice(0, 6, 50, 0); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/EffulgentFeather.cs b/Items/Materials/EffulgentFeather.cs index c004cb6239..9b119c3217 100644 --- a/Items/Materials/EffulgentFeather.cs +++ b/Items/Materials/EffulgentFeather.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.value = Item.buyPrice(0, 6, 50, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } } } diff --git a/Items/Materials/EndothermicEnergy.cs b/Items/Materials/EndothermicEnergy.cs index 2760839b00..d8a95728ff 100644 --- a/Items/Materials/EndothermicEnergy.cs +++ b/Items/Materials/EndothermicEnergy.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 2); - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } } } diff --git a/Items/Materials/HellcasterFragment.cs b/Items/Materials/HellcasterFragment.cs index 40bf9019ec..3bc5f0a4df 100644 --- a/Items/Materials/HellcasterFragment.cs +++ b/Items/Materials/HellcasterFragment.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Materials item.height = 14; item.maxStack = 999; item.value = Item.sellPrice(gold: 16); - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } } } diff --git a/Items/Materials/NightmareFuel.cs b/Items/Materials/NightmareFuel.cs index a558c0b808..be84815272 100644 --- a/Items/Materials/NightmareFuel.cs +++ b/Items/Materials/NightmareFuel.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 2); - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } } } diff --git a/Items/Materials/Phantoplasm.cs b/Items/Materials/Phantoplasm.cs index 578c39fe7a..8b38af5d3e 100644 --- a/Items/Materials/Phantoplasm.cs +++ b/Items/Materials/Phantoplasm.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 1); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Color? GetAlpha(Color lightColor) diff --git a/Items/Materials/ReaperTooth.cs b/Items/Materials/ReaperTooth.cs index 308797634f..8cc54ed18d 100644 --- a/Items/Materials/ReaperTooth.cs +++ b/Items/Materials/ReaperTooth.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.value = Item.buyPrice(0, 7, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } } } diff --git a/Items/Materials/RuinousSoul.cs b/Items/Materials/RuinousSoul.cs index a23ff729db..218ff81623 100644 --- a/Items/Materials/RuinousSoul.cs +++ b/Items/Materials/RuinousSoul.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Materials item.height = 20; item.maxStack = 999; item.value = Item.buyPrice(0, 7, 0, 0); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } } } diff --git a/Items/Materials/ShadowspecBar.cs b/Items/Materials/ShadowspecBar.cs index 7253620433..b844b6bfda 100644 --- a/Items/Materials/ShadowspecBar.cs +++ b/Items/Materials/ShadowspecBar.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 70); - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void AddRecipes() diff --git a/Items/Materials/TwistingNether.cs b/Items/Materials/TwistingNether.cs index e3b0c4dd13..fe3b6d2032 100644 --- a/Items/Materials/TwistingNether.cs +++ b/Items/Materials/TwistingNether.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.buyPrice(0, 7, 0, 0); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/UeliaceBar.cs b/Items/Materials/UeliaceBar.cs index a1bcb010e4..13216161bd 100644 --- a/Items/Materials/UeliaceBar.cs +++ b/Items/Materials/UeliaceBar.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.sellPrice(gold: 3); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Materials/UnholyEssence.cs b/Items/Materials/UnholyEssence.cs index ba3e80f2a3..b5c93906b0 100644 --- a/Items/Materials/UnholyEssence.cs +++ b/Items/Materials/UnholyEssence.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Materials item.maxStack = 999; item.rare = 10; item.value = Item.buyPrice(0, 6, 50, 0); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Mounts/GazeOfCrysthamyr.cs b/Items/Mounts/GazeOfCrysthamyr.cs index 1210fd1e51..bc9b235121 100644 --- a/Items/Mounts/GazeOfCrysthamyr.cs +++ b/Items/Mounts/GazeOfCrysthamyr.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Mounts item.UseSound = SoundID.NPCHit56; item.noMelee = true; item.mountType = ModContent.MountType(); - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void AddRecipes() diff --git a/Items/NormalityRelocator.cs b/Items/NormalityRelocator.cs index 3516e82641..8c9da7049f 100644 --- a/Items/NormalityRelocator.cs +++ b/Items/NormalityRelocator.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items item.height = 38; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void UpdateInventory(Player player) diff --git a/Items/PermanentBoosters/Dragonfruit.cs b/Items/PermanentBoosters/Dragonfruit.cs index cd6e3cb8e3..17914681c0 100644 --- a/Items/PermanentBoosters/Dragonfruit.cs +++ b/Items/PermanentBoosters/Dragonfruit.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.PermanentBoosters item.UseSound = SoundID.Item4; item.consumable = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool CanUseItem(Player player) diff --git a/Items/PermanentBoosters/Ectoheart.cs b/Items/PermanentBoosters/Ectoheart.cs index 54bf66b627..a59a069083 100644 --- a/Items/PermanentBoosters/Ectoheart.cs +++ b/Items/PermanentBoosters/Ectoheart.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.PermanentBoosters item.UseSound = SoundID.Item122; item.consumable = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/PermanentBoosters/PhantomHeart.cs b/Items/PermanentBoosters/PhantomHeart.cs index 4fd253b791..c9cc9c6a88 100644 --- a/Items/PermanentBoosters/PhantomHeart.cs +++ b/Items/PermanentBoosters/PhantomHeart.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.PermanentBoosters item.UseSound = SoundID.Item29; item.consumable = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/PermanentBoosters/RedLightningContainer.cs b/Items/PermanentBoosters/RedLightningContainer.cs index 2563d35e6f..dc90e33d79 100644 --- a/Items/PermanentBoosters/RedLightningContainer.cs +++ b/Items/PermanentBoosters/RedLightningContainer.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.PermanentBoosters item.UseSound = SoundID.Item122; item.consumable = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/Pets/BloodyVein.cs b/Items/Pets/BloodyVein.cs index 05b628544b..77052bf7de 100644 --- a/Items/Pets/BloodyVein.cs +++ b/Items/Pets/BloodyVein.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Pets item.shoot = ModContent.ProjectileType(); item.buffType = ModContent.BuffType(); item.rare = 3; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void UseStyle(Player player) diff --git a/Items/Pets/BrimstoneJewel.cs b/Items/Pets/BrimstoneJewel.cs index a830c952e0..308955e9b7 100644 --- a/Items/Pets/BrimstoneJewel.cs +++ b/Items/Pets/BrimstoneJewel.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Pets item.shoot = ModContent.ProjectileType(); item.buffType = ModContent.BuffType(); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void UseStyle(Player player) diff --git a/Items/Pets/CosmicPlushie.cs b/Items/Pets/CosmicPlushie.cs index 65e863cc2f..7237d467e8 100644 --- a/Items/Pets/CosmicPlushie.cs +++ b/Items/Pets/CosmicPlushie.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Pets item.buffType = ModContent.BuffType(); item.rare = 10; item.UseSound = new Terraria.Audio.LegacySoundStyle(SoundID.Meowmere, 5); - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void UseStyle(Player player) diff --git a/Items/Pets/ForgottenDragonEgg.cs b/Items/Pets/ForgottenDragonEgg.cs index ff7957f225..18b569c4e2 100644 --- a/Items/Pets/ForgottenDragonEgg.cs +++ b/Items/Pets/ForgottenDragonEgg.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Pets item.shoot = ModContent.ProjectileType(); item.buffType = ModContent.BuffType(); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void UseStyle(Player player) diff --git a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs index bd31d2a451..b6f03880fe 100644 --- a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs +++ b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.value = 5000000; item.rare = 10; item.createTile = ModContent.TileType(); - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void AddRecipes() diff --git a/Items/Placeables/Ores/AuricOre.cs b/Items/Placeables/Ores/AuricOre.cs index 626d480224..4d81f817a9 100644 --- a/Items/Placeables/Ores/AuricOre.cs +++ b/Items/Placeables/Ores/AuricOre.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Ores item.height = 10; item.maxStack = 999; item.value = Item.sellPrice(gold: 2); - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } } } diff --git a/Items/Potions/Baguette.cs b/Items/Potions/Baguette.cs index edbfe127d9..aa39f03d0d 100644 --- a/Items/Potions/Baguette.cs +++ b/Items/Potions/Baguette.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Potions item.value = Item.buyPrice(0, 0, 50, 0); item.buffType = ModContent.BuffType(); item.buffTime = 18000; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void OnConsumeItem(Player player) diff --git a/Items/Potions/OmegaHealingPotion.cs b/Items/Potions/OmegaHealingPotion.cs index e4326a7100..6f7c90dc8c 100644 --- a/Items/Potions/OmegaHealingPotion.cs +++ b/Items/Potions/OmegaHealingPotion.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Potions item.potion = true; item.rare = 10; item.value = Item.buyPrice(0, 7, 0, 0); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void AddRecipes() diff --git a/Items/Potions/SupremeHealingPotion.cs b/Items/Potions/SupremeHealingPotion.cs index 1fbf4a8c2c..26739a6738 100644 --- a/Items/Potions/SupremeHealingPotion.cs +++ b/Items/Potions/SupremeHealingPotion.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Potions item.potion = true; item.rare = 10; item.value = Item.buyPrice(0, 6, 50, 0); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Potions/SupremeManaPotion.cs b/Items/Potions/SupremeManaPotion.cs index 3c103a4f8d..91a11973ff 100644 --- a/Items/Potions/SupremeManaPotion.cs +++ b/Items/Potions/SupremeManaPotion.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.consumable = true; item.rare = 10; item.value = Item.buyPrice(0, 6, 50, 0); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/SummonItems/ChickenEgg.cs b/Items/SummonItems/ChickenEgg.cs index d9bae20147..fe2cbf5f23 100644 --- a/Items/SummonItems/ChickenEgg.cs +++ b/Items/SummonItems/ChickenEgg.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems item.useTime = 45; item.useStyle = 4; item.consumable = false; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool CanUseItem(Player player) diff --git a/Items/SummonItems/CosmicWorm.cs b/Items/SummonItems/CosmicWorm.cs index d6997b5219..e20ea1ee81 100644 --- a/Items/SummonItems/CosmicWorm.cs +++ b/Items/SummonItems/CosmicWorm.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.SummonItems item.useTime = 45; item.useStyle = 4; item.consumable = false; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/SummonItems/EyeofExtinction.cs b/Items/SummonItems/EyeofExtinction.cs index c0e11c4d67..2c6a3e0910 100644 --- a/Items/SummonItems/EyeofExtinction.cs +++ b/Items/SummonItems/EyeofExtinction.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.SummonItems item.useTime = 45; item.useStyle = 4; item.consumable = false; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool CanUseItem(Player player) diff --git a/Items/SummonItems/NecroplasmicBeacon.cs b/Items/SummonItems/NecroplasmicBeacon.cs index 4cdb3d249a..4d79385faa 100644 --- a/Items/SummonItems/NecroplasmicBeacon.cs +++ b/Items/SummonItems/NecroplasmicBeacon.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.SummonItems item.useTime = 45; item.useStyle = 4; item.consumable = false; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/SummonItems/ProfanedCore.cs b/Items/SummonItems/ProfanedCore.cs index f9f2d5fda9..a5c7eff7ba 100644 --- a/Items/SummonItems/ProfanedCore.cs +++ b/Items/SummonItems/ProfanedCore.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems item.useStyle = 4; item.consumable = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/SummonItems/ProfanedCoreUnlimited.cs b/Items/SummonItems/ProfanedCoreUnlimited.cs index d945666738..e9651a26bc 100644 --- a/Items/SummonItems/ProfanedCoreUnlimited.cs +++ b/Items/SummonItems/ProfanedCoreUnlimited.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.SummonItems item.useStyle = 4; item.consumable = false; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/SummonItems/ProfanedShard.cs b/Items/SummonItems/ProfanedShard.cs index eca05b3806..2d097d7d4a 100644 --- a/Items/SummonItems/ProfanedShard.cs +++ b/Items/SummonItems/ProfanedShard.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems item.useTime = 45; item.useStyle = 4; item.consumable = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/SummonItems/RuneofCos.cs b/Items/SummonItems/RuneofCos.cs index 1462b333dd..821e4478b5 100644 --- a/Items/SummonItems/RuneofCos.cs +++ b/Items/SummonItems/RuneofCos.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 9; item.UseSound = SoundID.Item44; item.consumable = false; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/Tools/BlossomPickaxe.cs b/Items/Tools/BlossomPickaxe.cs index 9f732544e8..3443ad53ee 100644 --- a/Items/Tools/BlossomPickaxe.cs +++ b/Items/Tools/BlossomPickaxe.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Tools item.UseSound = SoundID.Item1; item.autoReuse = true; item.tileBoost += 6; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Tools/CrystylCrusher.cs b/Items/Tools/CrystylCrusher.cs index d7ebbe4821..5711f1f0e0 100644 --- a/Items/Tools/CrystylCrusher.cs +++ b/Items/Tools/CrystylCrusher.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Tools item.rare = 10; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override bool AltFunctionUse(Player player) diff --git a/Items/Tools/GallantPickaxe.cs b/Items/Tools/GallantPickaxe.cs index 16c69483b6..eb9de146b3 100644 --- a/Items/Tools/GallantPickaxe.cs +++ b/Items/Tools/GallantPickaxe.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Tools item.UseSound = SoundID.Item1; item.autoReuse = true; item.tileBoost += 4; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.useTurn = true; } diff --git a/Items/Tools/Grax.cs b/Items/Tools/Grax.cs index b8cf229731..98e60b3058 100644 --- a/Items/Tools/Grax.cs +++ b/Items/Tools/Grax.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Tools item.tileBoost += 5; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Magic/AbyssShocker.cs b/Items/Weapons/Magic/AbyssShocker.cs index c2cbffa684..cd84a9747a 100644 --- a/Items/Weapons/Magic/AbyssShocker.cs +++ b/Items/Weapons/Magic/AbyssShocker.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; item.autoReuse = true; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; } diff --git a/Items/Weapons/Magic/AlphaRay.cs b/Items/Weapons/Magic/AlphaRay.cs index dd325af122..3c7befb145 100644 --- a/Items/Weapons/Magic/AlphaRay.cs +++ b/Items/Weapons/Magic/AlphaRay.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 6f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/ApoctosisArray.cs b/Items/Weapons/Magic/ApoctosisArray.cs index e1d65900d2..73720a1bcd 100644 --- a/Items/Weapons/Magic/ApoctosisArray.cs +++ b/Items/Weapons/Magic/ApoctosisArray.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/Apotheosis.cs b/Items/Weapons/Magic/Apotheosis.cs index cc25fdd2c8..dacdd84757 100644 --- a/Items/Weapons/Magic/Apotheosis.cs +++ b/Items/Weapons/Magic/Apotheosis.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Magic/AsteroidStaff.cs b/Items/Weapons/Magic/AsteroidStaff.cs index 61f597b376..0e4360f634 100644 --- a/Items/Weapons/Magic/AsteroidStaff.cs +++ b/Items/Weapons/Magic/AsteroidStaff.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/AuguroftheElements.cs b/Items/Weapons/Magic/AuguroftheElements.cs index d603e751c8..84d647227d 100644 --- a/Items/Weapons/Magic/AuguroftheElements.cs +++ b/Items/Weapons/Magic/AuguroftheElements.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Magic/BlushieStaff.cs b/Items/Weapons/Magic/BlushieStaff.cs index 5b95198ba7..1c2b386333 100644 --- a/Items/Weapons/Magic/BlushieStaff.cs +++ b/Items/Weapons/Magic/BlushieStaff.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.shoot = ModContent.ProjectileType(); item.mana = 200; item.shootSpeed = 0f; - item.Calamity().postMoonLordRarity = 19; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override void AddRecipes() diff --git a/Items/Weapons/Magic/ClamorNoctus.cs b/Items/Weapons/Magic/ClamorNoctus.cs index 8a5d93c31e..97761b3104 100644 --- a/Items/Weapons/Magic/ClamorNoctus.cs +++ b/Items/Weapons/Magic/ClamorNoctus.cs @@ -33,7 +33,7 @@ Fires night wyverns and stars from the sky that stick to enemies and tiles and e item.knockBack = 5.2f; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.UseSound = SoundID.Item105; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/Climax.cs b/Items/Weapons/Magic/Climax.cs index 482afbcc0e..cab1773464 100644 --- a/Items/Weapons/Magic/Climax.cs +++ b/Items/Weapons/Magic/Climax.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/ClothiersWrath.cs b/Items/Weapons/Magic/ClothiersWrath.cs index 6ba7f5c339..41f19227e9 100644 --- a/Items/Weapons/Magic/ClothiersWrath.cs +++ b/Items/Weapons/Magic/ClothiersWrath.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ProjectileID.ClothiersCurse; item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Magic/Cryophobia.cs b/Items/Weapons/Magic/Cryophobia.cs index d2bf5d5c68..20b7971099 100644 --- a/Items/Weapons/Magic/Cryophobia.cs +++ b/Items/Weapons/Magic/Cryophobia.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 12f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/DarkSpark.cs b/Items/Weapons/Magic/DarkSpark.cs index c16b8b02dd..287c69df4d 100644 --- a/Items/Weapons/Magic/DarkSpark.cs +++ b/Items/Weapons/Magic/DarkSpark.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Magic/DeathhailStaff.cs b/Items/Weapons/Magic/DeathhailStaff.cs index d3720de54d..6ba9203013 100644 --- a/Items/Weapons/Magic/DeathhailStaff.cs +++ b/Items/Weapons/Magic/DeathhailStaff.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } /*public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/DivineRetribution.cs b/Items/Weapons/Magic/DivineRetribution.cs index 0ac63c9caf..8d72d86381 100644 --- a/Items/Weapons/Magic/DivineRetribution.cs +++ b/Items/Weapons/Magic/DivineRetribution.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 19f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/Effervescence.cs b/Items/Weapons/Magic/Effervescence.cs index 76d41db4f9..5976f683fd 100644 --- a/Items/Weapons/Magic/Effervescence.cs +++ b/Items/Weapons/Magic/Effervescence.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 13f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Magic/EidolicWail.cs b/Items/Weapons/Magic/EidolicWail.cs index 9323ff0770..1f0b09584b 100644 --- a/Items/Weapons/Magic/EidolicWail.cs +++ b/Items/Weapons/Magic/EidolicWail.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 5f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/ElementalRay.cs b/Items/Weapons/Magic/ElementalRay.cs index a4d73a87fa..bc61caa4a1 100644 --- a/Items/Weapons/Magic/ElementalRay.cs +++ b/Items/Weapons/Magic/ElementalRay.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/EventHorizon.cs b/Items/Weapons/Magic/EventHorizon.cs index 3ee5ffddec..63604f54e6 100644 --- a/Items/Weapons/Magic/EventHorizon.cs +++ b/Items/Weapons/Magic/EventHorizon.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.value = Item.buyPrice(1, 80, 0, 0); item.UseSound = SoundID.Item84; diff --git a/Items/Weapons/Magic/EyeofMagnus.cs b/Items/Weapons/Magic/EyeofMagnus.cs index f8358f98a2..e568c0825b 100644 --- a/Items/Weapons/Magic/EyeofMagnus.cs +++ b/Items/Weapons/Magic/EyeofMagnus.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic item.value = Item.buyPrice(0, 36, 0, 0); item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/Fabstaff.cs b/Items/Weapons/Magic/Fabstaff.cs index 0f1d7c519e..2db840dafe 100644 --- a/Items/Weapons/Magic/Fabstaff.cs +++ b/Items/Weapons/Magic/Fabstaff.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 18; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/FaceMelter.cs b/Items/Weapons/Magic/FaceMelter.cs index 48ab733ce8..e1b6bcb24f 100644 --- a/Items/Weapons/Magic/FaceMelter.cs +++ b/Items/Weapons/Magic/FaceMelter.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic item.noMelee = true; item.knockBack = 5f; item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(1, 80, 0, 0); item.shoot = ModContent.ProjectileType(); item.UseSound = SoundID.Item47; diff --git a/Items/Weapons/Magic/FatesReveal.cs b/Items/Weapons/Magic/FatesReveal.cs index 3e263576e2..8bd4fc2b5a 100644 --- a/Items/Weapons/Magic/FatesReveal.cs +++ b/Items/Weapons/Magic/FatesReveal.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } /*public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/GammaFusillade.cs b/Items/Weapons/Magic/GammaFusillade.cs index a79424b611..fa37505ae9 100644 --- a/Items/Weapons/Magic/GammaFusillade.cs +++ b/Items/Weapons/Magic/GammaFusillade.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Magic/Genisis.cs b/Items/Weapons/Magic/Genisis.cs index 364aaf662c..16c7e991e4 100644 --- a/Items/Weapons/Magic/Genisis.cs +++ b/Items/Weapons/Magic/Genisis.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 6f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/GhastlyVisage.cs b/Items/Weapons/Magic/GhastlyVisage.cs index e13007b5b3..d380e2445d 100644 --- a/Items/Weapons/Magic/GhastlyVisage.cs +++ b/Items/Weapons/Magic/GhastlyVisage.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 10; item.shootSpeed = 9f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Magic/HadopelagicEcho.cs b/Items/Weapons/Magic/HadopelagicEcho.cs index 40c2f922ce..94c1c2e386 100644 --- a/Items/Weapons/Magic/HadopelagicEcho.cs +++ b/Items/Weapons/Magic/HadopelagicEcho.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 20f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/HeliumFlash.cs b/Items/Weapons/Magic/HeliumFlash.cs index 2a229734d9..1db5e0e414 100644 --- a/Items/Weapons/Magic/HeliumFlash.cs +++ b/Items/Weapons/Magic/HeliumFlash.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.UseSound = SoundID.Item73; item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.value = Item.buyPrice(1, 80, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/IceBarrage.cs b/Items/Weapons/Magic/IceBarrage.cs index 0c6c700c0f..3c99de5b63 100644 --- a/Items/Weapons/Magic/IceBarrage.cs +++ b/Items/Weapons/Magic/IceBarrage.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic { item.width = 60; item.height = 60; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(1, 80, 0, 0); item.useStyle = ItemUseStyleID.HoldingUp; item.magic = true; diff --git a/Items/Weapons/Magic/Judgement.cs b/Items/Weapons/Magic/Judgement.cs index 5a9e4cd075..567965579c 100644 --- a/Items/Weapons/Magic/Judgement.cs +++ b/Items/Weapons/Magic/Judgement.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void AddRecipes() diff --git a/Items/Weapons/Magic/Keelhaul.cs b/Items/Weapons/Magic/Keelhaul.cs index a7ac6ad127..144ba99e79 100644 --- a/Items/Weapons/Magic/Keelhaul.cs +++ b/Items/Weapons/Magic/Keelhaul.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic item.UseSound = SoundID.Item102; item.autoReuse = true; item.rare = 8; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(0, 80, 0, 0); item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; diff --git a/Items/Weapons/Magic/LightGodsBrilliance.cs b/Items/Weapons/Magic/LightGodsBrilliance.cs index bf14f3e5fb..b25236887d 100644 --- a/Items/Weapons/Magic/LightGodsBrilliance.cs +++ b/Items/Weapons/Magic/LightGodsBrilliance.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs b/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs index 2deccd1db6..cdfdce12c8 100644 --- a/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs +++ b/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Magic/MagneticMeltdown.cs b/Items/Weapons/Magic/MagneticMeltdown.cs index e626e67307..ea9676b0bc 100644 --- a/Items/Weapons/Magic/MagneticMeltdown.cs +++ b/Items/Weapons/Magic/MagneticMeltdown.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/Mistlestorm.cs b/Items/Weapons/Magic/Mistlestorm.cs index 59da4e1e24..45ffc677e2 100644 --- a/Items/Weapons/Magic/Mistlestorm.cs +++ b/Items/Weapons/Magic/Mistlestorm.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = 336; item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/NuclearFury.cs b/Items/Weapons/Magic/NuclearFury.cs index 1627b3a751..399e34adff 100644 --- a/Items/Weapons/Magic/NuclearFury.cs +++ b/Items/Weapons/Magic/NuclearFury.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Magic/PhantasmalFury.cs b/Items/Weapons/Magic/PhantasmalFury.cs index 3657c17c42..1c9d8b894e 100644 --- a/Items/Weapons/Magic/PhantasmalFury.cs +++ b/Items/Weapons/Magic/PhantasmalFury.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/PhoenixFlameBarrage.cs b/Items/Weapons/Magic/PhoenixFlameBarrage.cs index 863a153dc4..dffa051d42 100644 --- a/Items/Weapons/Magic/PhoenixFlameBarrage.cs +++ b/Items/Weapons/Magic/PhoenixFlameBarrage.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/PlasmaRifle.cs b/Items/Weapons/Magic/PlasmaRifle.cs index f718f08fef..640c62a2c0 100644 --- a/Items/Weapons/Magic/PlasmaRifle.cs +++ b/Items/Weapons/Magic/PlasmaRifle.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 12f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/PrimordialAncient.cs b/Items/Weapons/Magic/PrimordialAncient.cs index 31b24be7a4..4460659361 100644 --- a/Items/Weapons/Magic/PrimordialAncient.cs +++ b/Items/Weapons/Magic/PrimordialAncient.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void AddRecipes() diff --git a/Items/Weapons/Magic/PurgeGuzzler.cs b/Items/Weapons/Magic/PurgeGuzzler.cs index 1b97178764..2770ccd882 100644 --- a/Items/Weapons/Magic/PurgeGuzzler.cs +++ b/Items/Weapons/Magic/PurgeGuzzler.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Magic/RecitationoftheBeast.cs b/Items/Weapons/Magic/RecitationoftheBeast.cs index 103c09491a..20e93320d7 100644 --- a/Items/Weapons/Magic/RecitationoftheBeast.cs +++ b/Items/Weapons/Magic/RecitationoftheBeast.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.magic = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Magic/RougeSlash.cs b/Items/Weapons/Magic/RougeSlash.cs index 5fa4265a31..4dafbc4b84 100644 --- a/Items/Weapons/Magic/RougeSlash.cs +++ b/Items/Weapons/Magic/RougeSlash.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Magic/SHPC.cs b/Items/Weapons/Magic/SHPC.cs index d51940c20e..4bfd67fdb4 100644 --- a/Items/Weapons/Magic/SHPC.cs +++ b/Items/Weapons/Magic/SHPC.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/SanguineFlare.cs b/Items/Weapons/Magic/SanguineFlare.cs index 3450cf95fa..5a6b9b34a6 100644 --- a/Items/Weapons/Magic/SanguineFlare.cs +++ b/Items/Weapons/Magic/SanguineFlare.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/ShadowboltStaff.cs b/Items/Weapons/Magic/ShadowboltStaff.cs index efb6ff9a26..f962f3079e 100644 --- a/Items/Weapons/Magic/ShadowboltStaff.cs +++ b/Items/Weapons/Magic/ShadowboltStaff.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/SoulPiercer.cs b/Items/Weapons/Magic/SoulPiercer.cs index a7ac01484b..96ed1f1afa 100644 --- a/Items/Weapons/Magic/SoulPiercer.cs +++ b/Items/Weapons/Magic/SoulPiercer.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } /*public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/StratusSphere.cs b/Items/Weapons/Magic/StratusSphere.cs index 0ce4793f85..5646a4c5cf 100644 --- a/Items/Weapons/Magic/StratusSphere.cs +++ b/Items/Weapons/Magic/StratusSphere.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Magic item.holdStyle = 3; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index a0cefe816a..48c8c0223f 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Magic/T1000.cs b/Items/Weapons/Magic/T1000.cs index cdaff41429..8dc4a7bd54 100644 --- a/Items/Weapons/Magic/T1000.cs +++ b/Items/Weapons/Magic/T1000.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Magic/TheWand.cs b/Items/Weapons/Magic/TheWand.cs index 83d2661686..547d8bf874 100644 --- a/Items/Weapons/Magic/TheWand.cs +++ b/Items/Weapons/Magic/TheWand.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override void AddRecipes() diff --git a/Items/Weapons/Magic/ThornBlossom.cs b/Items/Weapons/Magic/ThornBlossom.cs index b0324f41bd..5e355f0bd4 100644 --- a/Items/Weapons/Magic/ThornBlossom.cs +++ b/Items/Weapons/Magic/ThornBlossom.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/Thunderstorm.cs b/Items/Weapons/Magic/Thunderstorm.cs index d15f0fba9f..a08cdb4226 100644 --- a/Items/Weapons/Magic/Thunderstorm.cs +++ b/Items/Weapons/Magic/Thunderstorm.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shootSpeed = 6f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Magic/UltraLiquidator.cs b/Items/Weapons/Magic/UltraLiquidator.cs index 0829adfca8..9d18479c0f 100644 --- a/Items/Weapons/Magic/UltraLiquidator.cs +++ b/Items/Weapons/Magic/UltraLiquidator.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/VenusianTrident.cs b/Items/Weapons/Magic/VenusianTrident.cs index 015f95ba5c..7d5c9954a4 100644 --- a/Items/Weapons/Magic/VenusianTrident.cs +++ b/Items/Weapons/Magic/VenusianTrident.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 19f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/Vesuvius.cs b/Items/Weapons/Magic/Vesuvius.cs index f2b94fda2d..2ec0fe3b9f 100644 --- a/Items/Weapons/Magic/Vesuvius.cs +++ b/Items/Weapons/Magic/Vesuvius.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 8; item.shootSpeed = 20f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } /*public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/Viscera.cs b/Items/Weapons/Magic/Viscera.cs index 1bd3d6aae4..4dd87bf603 100644 --- a/Items/Weapons/Magic/Viscera.cs +++ b/Items/Weapons/Magic/Viscera.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index db4ea0882c..c146d8141a 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/VoidVortex.cs b/Items/Weapons/Magic/VoidVortex.cs index 414e23f45a..00f935aafc 100644 --- a/Items/Weapons/Magic/VoidVortex.cs +++ b/Items/Weapons/Magic/VoidVortex.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Magic/YharimsCrystal.cs b/Items/Weapons/Magic/YharimsCrystal.cs index 1d4d62a045..7018d3c5e3 100644 --- a/Items/Weapons/Magic/YharimsCrystal.cs +++ b/Items/Weapons/Magic/YharimsCrystal.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Melee/AccretionDiskMelee.cs b/Items/Weapons/Melee/AccretionDiskMelee.cs index 2a6454d494..23206b8a26 100644 --- a/Items/Weapons/Melee/AccretionDiskMelee.cs +++ b/Items/Weapons/Melee/AccretionDiskMelee.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/AegisBlade.cs b/Items/Weapons/Melee/AegisBlade.cs index 81a4cc0b98..8bf4f7a002 100644 --- a/Items/Weapons/Melee/AegisBlade.cs +++ b/Items/Weapons/Melee/AegisBlade.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 7; item.value = Item.buyPrice(0, 60, 0, 0); item.shootSpeed = 14f; - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Melee/Animus.cs b/Items/Weapons/Melee/Animus.cs index 7680ae8e12..65fe9f4017 100644 --- a/Items/Weapons/Melee/Animus.cs +++ b/Items/Weapons/Melee/Animus.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 90; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/AquaticDissolution.cs b/Items/Weapons/Melee/AquaticDissolution.cs index 2c9c3276d1..bf5b6b75bd 100644 --- a/Items/Weapons/Melee/AquaticDissolution.cs +++ b/Items/Weapons/Melee/AquaticDissolution.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index bd303d1850..e1868b7bbc 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 3a1e796519..00def45e96 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/Ataraxia.cs b/Items/Weapons/Melee/Ataraxia.cs index ccabb4c859..9a234701a6 100644 --- a/Items/Weapons/Melee/Ataraxia.cs +++ b/Items/Weapons/Melee/Ataraxia.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(2, 50, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/Azathoth.cs b/Items/Weapons/Melee/Azathoth.cs index e97ea6e976..396e32b38c 100644 --- a/Items/Weapons/Melee/Azathoth.cs +++ b/Items/Weapons/Melee/Azathoth.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.autoReuse = true; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; item.value = Item.buyPrice(platinum: 5); } diff --git a/Items/Weapons/Melee/BansheeHook.cs b/Items/Weapons/Melee/BansheeHook.cs index b894196a64..13a98989bd 100644 --- a/Items/Weapons/Melee/BansheeHook.cs +++ b/Items/Weapons/Melee/BansheeHook.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 42f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/BrinyBaron.cs b/Items/Weapons/Melee/BrinyBaron.cs index 28d03a855d..7c09cf78f8 100644 --- a/Items/Weapons/Melee/BrinyBaron.cs +++ b/Items/Weapons/Melee/BrinyBaron.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.shootSpeed = 4f; - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Melee/Carnage.cs b/Items/Weapons/Melee/Carnage.cs index 1db5ec56e0..0eeedbbc78 100644 --- a/Items/Weapons/Melee/Carnage.cs +++ b/Items/Weapons/Melee/Carnage.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 60; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void MeleeEffects(Player player, Rectangle hitbox) diff --git a/Items/Weapons/Melee/CorpusAvertorMelee.cs b/Items/Weapons/Melee/CorpusAvertorMelee.cs index c5b418bcbe..f5834482e5 100644 --- a/Items/Weapons/Melee/CorpusAvertorMelee.cs +++ b/Items/Weapons/Melee/CorpusAvertorMelee.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.autoReuse = true; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; item.melee = true; diff --git a/Items/Weapons/Melee/CosmicDischarge.cs b/Items/Weapons/Melee/CosmicDischarge.cs index 3494d933fc..55ba0008b4 100644 --- a/Items/Weapons/Melee/CosmicDischarge.cs +++ b/Items/Weapons/Melee/CosmicDischarge.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index 245eafb9bb..23d006204a 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.value = Item.buyPrice(2, 50, 0, 0); //50 gold - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/CrescentMoon.cs b/Items/Weapons/Melee/CrescentMoon.cs index abfda3b4ac..3b266c61d3 100644 --- a/Items/Weapons/Melee/CrescentMoon.cs +++ b/Items/Weapons/Melee/CrescentMoon.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item82; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); } diff --git a/Items/Weapons/Melee/Devastation.cs b/Items/Weapons/Melee/Devastation.cs index 69f4abb2e8..3cb846c756 100644 --- a/Items/Weapons/Melee/Devastation.cs +++ b/Items/Weapons/Melee/Devastation.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 1d7b431444..f451606dfd 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/DevilsSunrise.cs b/Items/Weapons/Melee/DevilsSunrise.cs index 17fb94b0f2..e0efd6d5f8 100644 --- a/Items/Weapons/Melee/DevilsSunrise.cs +++ b/Items/Weapons/Melee/DevilsSunrise.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useStyle = 5; item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(1, 40, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/DivineHatchet.cs b/Items/Weapons/Melee/DivineHatchet.cs index 6e9c8ceb16..6025795649 100644 --- a/Items/Weapons/Melee/DivineHatchet.cs +++ b/Items/Weapons/Melee/DivineHatchet.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 8; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/DraconicDestruction.cs b/Items/Weapons/Melee/DraconicDestruction.cs index 2b79e568ce..518573389f 100644 --- a/Items/Weapons/Melee/DraconicDestruction.cs +++ b/Items/Weapons/Melee/DraconicDestruction.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/DraedonsExoblade.cs b/Items/Weapons/Melee/DraedonsExoblade.cs index 5c030c2254..1a3cfb9645 100644 --- a/Items/Weapons/Melee/DraedonsExoblade.cs +++ b/Items/Weapons/Melee/DraedonsExoblade.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 19f; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } // Gains 100% of missing health as base damage. diff --git a/Items/Weapons/Melee/DragonPow.cs b/Items/Weapons/Melee/DragonPow.cs index 2c44d10259..44ebd976f8 100644 --- a/Items/Weapons/Melee/DragonPow.cs +++ b/Items/Weapons/Melee/DragonPow.cs @@ -44,7 +44,7 @@ Summons a barrage of petals and waterfalls on enemy hits"); item.channel = true; item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(2, 50, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/DragonRage.cs b/Items/Weapons/Melee/DragonRage.cs index be5d405b96..185870139a 100644 --- a/Items/Weapons/Melee/DragonRage.cs +++ b/Items/Weapons/Melee/DragonRage.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/Earth.cs b/Items/Weapons/Melee/Earth.cs index e2f02a163f..38858f734f 100644 --- a/Items/Weapons/Melee/Earth.cs +++ b/Items/Weapons/Melee/Earth.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 104; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) diff --git a/Items/Weapons/Melee/ElementalExcalibur.cs b/Items/Weapons/Melee/ElementalExcalibur.cs index 374ab4b289..3ef670429d 100644 --- a/Items/Weapons/Melee/ElementalExcalibur.cs +++ b/Items/Weapons/Melee/ElementalExcalibur.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 20; + item.Calamity().customRarity = CalamityRarity.Rainbow; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/ElementalShortsword.cs b/Items/Weapons/Melee/ElementalShortsword.cs index a4d070a65f..bdaadec96f 100644 --- a/Items/Weapons/Melee/ElementalShortsword.cs +++ b/Items/Weapons/Melee/ElementalShortsword.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shootSpeed = 14f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index eaf40852c1..f5cc62ba2d 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/EradicatorMelee.cs b/Items/Weapons/Melee/EradicatorMelee.cs index 6af744e9ee..3814e11695 100644 --- a/Items/Weapons/Melee/EradicatorMelee.cs +++ b/Items/Weapons/Melee/EradicatorMelee.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/EssenceFlayer.cs b/Items/Weapons/Melee/EssenceFlayer.cs index 14caa4b5f8..8618e64136 100644 --- a/Items/Weapons/Melee/EssenceFlayer.cs +++ b/Items/Weapons/Melee/EssenceFlayer.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 21f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/EvilSmasher.cs b/Items/Weapons/Melee/EvilSmasher.cs index 814da94ee5..a9a000ac7c 100644 --- a/Items/Weapons/Melee/EvilSmasher.cs +++ b/Items/Weapons/Melee/EvilSmasher.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 62; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) diff --git a/Items/Weapons/Melee/Excelsus.cs b/Items/Weapons/Melee/Excelsus.cs index 3e51834081..0e785ce60d 100644 --- a/Items/Weapons/Melee/Excelsus.cs +++ b/Items/Weapons/Melee/Excelsus.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/ExoGladius.cs b/Items/Weapons/Melee/ExoGladius.cs index 474f7ad5c8..e32d982c30 100644 --- a/Items/Weapons/Melee/ExoGladius.cs +++ b/Items/Weapons/Melee/ExoGladius.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 19f; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index 9d441bab48..830f7104b8 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/GaelsGreatsword.cs b/Items/Weapons/Melee/GaelsGreatsword.cs index ca62f42184..f59dd97945 100644 --- a/Items/Weapons/Melee/GaelsGreatsword.cs +++ b/Items/Weapons/Melee/GaelsGreatsword.cs @@ -64,7 +64,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; item.useStyle = ItemUseStyleID.SwingThrow; } public override void HoldItem(Player player) diff --git a/Items/Weapons/Melee/GalacticaBlade.cs b/Items/Weapons/Melee/GalacticaBlade.cs index 114a3b0bb9..0dea32d88c 100644 --- a/Items/Weapons/Melee/GalacticaBlade.cs +++ b/Items/Weapons/Melee/GalacticaBlade.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 23f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/GalaxySmasherMelee.cs b/Items/Weapons/Melee/GalaxySmasherMelee.cs index bf2fa405c6..9f4639f092 100644 --- a/Items/Weapons/Melee/GalaxySmasherMelee.cs +++ b/Items/Weapons/Melee/GalaxySmasherMelee.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.value = Item.buyPrice(1, 80, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs index 830c1d236e..d0238f7842 100644 --- a/Items/Weapons/Melee/GalileoGladius.cs +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shootSpeed = 14f; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/GildedProboscis.cs b/Items/Weapons/Melee/GildedProboscis.cs index 4da7a61e8d..39fc2f0643 100644 --- a/Items/Weapons/Melee/GildedProboscis.cs +++ b/Items/Weapons/Melee/GildedProboscis.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Melee/GrandDad.cs b/Items/Weapons/Melee/GrandDad.cs index 7d05d25190..3ea14221fb 100644 --- a/Items/Weapons/Melee/GrandDad.cs +++ b/Items/Weapons/Melee/GrandDad.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 124; item.value = Item.buyPrice(1, 0, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) diff --git a/Items/Weapons/Melee/GreatswordofBlah.cs b/Items/Weapons/Melee/GreatswordofBlah.cs index 134891cf55..3babc4354b 100644 --- a/Items/Weapons/Melee/GreatswordofBlah.cs +++ b/Items/Weapons/Melee/GreatswordofBlah.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/GreatswordofJudgement.cs b/Items/Weapons/Melee/GreatswordofJudgement.cs index 7439bde456..a08668dd40 100644 --- a/Items/Weapons/Melee/GreatswordofJudgement.cs +++ b/Items/Weapons/Melee/GreatswordofJudgement.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/HolyCollider.cs b/Items/Weapons/Melee/HolyCollider.cs index 921384f93e..39ec83b7dd 100644 --- a/Items/Weapons/Melee/HolyCollider.cs +++ b/Items/Weapons/Melee/HolyCollider.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.shootSpeed = 10f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) diff --git a/Items/Weapons/Melee/InsidiousImpaler.cs b/Items/Weapons/Melee/InsidiousImpaler.cs index 7b8854e527..71ce9c1397 100644 --- a/Items/Weapons/Melee/InsidiousImpaler.cs +++ b/Items/Weapons/Melee/InsidiousImpaler.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Melee/KelvinCatalystMelee.cs b/Items/Weapons/Melee/KelvinCatalystMelee.cs index 1efdb67021..e069ce832b 100644 --- a/Items/Weapons/Melee/KelvinCatalystMelee.cs +++ b/Items/Weapons/Melee/KelvinCatalystMelee.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.melee = true; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index 0a05e4b618..5ac2723a06 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shootSpeed = 16f; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.value = Item.buyPrice(platinum: 1, gold: 40); } diff --git a/Items/Weapons/Melee/LifefruitScythe.cs b/Items/Weapons/Melee/LifefruitScythe.cs index d2211f00a8..4bd35bc74d 100644 --- a/Items/Weapons/Melee/LifefruitScythe.cs +++ b/Items/Weapons/Melee/LifefruitScythe.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/MirrorBlade.cs b/Items/Weapons/Melee/MirrorBlade.cs index b18306f645..9cba7693da 100644 --- a/Items/Weapons/Melee/MirrorBlade.cs +++ b/Items/Weapons/Melee/MirrorBlade.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shootSpeed = 9f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/Mourningstar.cs b/Items/Weapons/Melee/Mourningstar.cs index 7b352bd348..398cb93e78 100644 --- a/Items/Weapons/Melee/Mourningstar.cs +++ b/Items/Weapons/Melee/Mourningstar.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Murasama.cs b/Items/Weapons/Melee/Murasama.cs index 6292a01d8a..afb2d14bee 100644 --- a/Items/Weapons/Melee/Murasama.cs +++ b/Items/Weapons/Melee/Murasama.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index 9f6fc0a9f1..978f6640e9 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(1, 80, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/NanoblackReaperMelee.cs b/Items/Weapons/Melee/NanoblackReaperMelee.cs index 8d49a6bfa8..a5e26f0b0a 100644 --- a/Items/Weapons/Melee/NanoblackReaperMelee.cs +++ b/Items/Weapons/Melee/NanoblackReaperMelee.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item18; item.rare = 10; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; item.value = Item.buyPrice(5, 0, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/NeptunesBounty.cs b/Items/Weapons/Melee/NeptunesBounty.cs index 7de143619e..4d83db6a77 100644 --- a/Items/Weapons/Melee/NeptunesBounty.cs +++ b/Items/Weapons/Melee/NeptunesBounty.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index a227663b34..2c4bb8a4b7 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index e93b77f3f5..6388bc5410 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shootSpeed = 16f; item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(platinum: 2, gold: 50); } diff --git a/Items/Weapons/Melee/PlagueKeeper.cs b/Items/Weapons/Melee/PlagueKeeper.cs index bb2efe07f2..119f6b0746 100644 --- a/Items/Weapons/Melee/PlagueKeeper.cs +++ b/Items/Weapons/Melee/PlagueKeeper.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/RedSun.cs b/Items/Weapons/Melee/RedSun.cs index 4920ef9c58..acfbd26958 100644 --- a/Items/Weapons/Melee/RedSun.cs +++ b/Items/Weapons/Melee/RedSun.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Roxcalibur.cs b/Items/Weapons/Melee/Roxcalibur.cs index 4624070a39..2d6682b6a6 100644 --- a/Items/Weapons/Melee/Roxcalibur.cs +++ b/Items/Weapons/Melee/Roxcalibur.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/RoyalKnivesMelee.cs b/Items/Weapons/Melee/RoyalKnivesMelee.cs index e5257b8fda..b8069cf1dc 100644 --- a/Items/Weapons/Melee/RoyalKnivesMelee.cs +++ b/Items/Weapons/Melee/RoyalKnivesMelee.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.cs b/Items/Weapons/Melee/ScourgeoftheCosmos.cs index 0467808069..c32fc9e010 100644 --- a/Items/Weapons/Melee/ScourgeoftheCosmos.cs +++ b/Items/Weapons/Melee/ScourgeoftheCosmos.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/SolarFlare.cs b/Items/Weapons/Melee/SolarFlare.cs index 50db47237e..266c7959af 100644 --- a/Items/Weapons/Melee/SolarFlare.cs +++ b/Items/Weapons/Melee/SolarFlare.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shootSpeed = 16f; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.value = Item.buyPrice(platinum: 1, gold: 20); } } diff --git a/Items/Weapons/Melee/SolsticeClaymore.cs b/Items/Weapons/Melee/SolsticeClaymore.cs index f0c6822dad..5d9a48ade3 100644 --- a/Items/Weapons/Melee/SolsticeClaymore.cs +++ b/Items/Weapons/Melee/SolsticeClaymore.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/SoulEdge.cs b/Items/Weapons/Melee/SoulEdge.cs index b4919ba97f..313f6f4a40 100644 --- a/Items/Weapons/Melee/SoulEdge.cs +++ b/Items/Weapons/Melee/SoulEdge.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/SpatialLance.cs b/Items/Weapons/Melee/SpatialLance.cs index 18e6a8736f..348dfe9479 100644 --- a/Items/Weapons/Melee/SpatialLance.cs +++ b/Items/Weapons/Melee/SpatialLance.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Melee/StellarContemptMelee.cs b/Items/Weapons/Melee/StellarContemptMelee.cs index 0b1b4cd8dc..716cea5214 100644 --- a/Items/Weapons/Melee/StellarContemptMelee.cs +++ b/Items/Weapons/Melee/StellarContemptMelee.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.value = Item.buyPrice(1, 20, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/StellarStriker.cs b/Items/Weapons/Melee/StellarStriker.cs index 7ce9f1a39a..2374549080 100644 --- a/Items/Weapons/Melee/StellarStriker.cs +++ b/Items/Weapons/Melee/StellarStriker.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) diff --git a/Items/Weapons/Melee/StreamGouge.cs b/Items/Weapons/Melee/StreamGouge.cs index a2231026d5..19c411dd09 100644 --- a/Items/Weapons/Melee/StreamGouge.cs +++ b/Items/Weapons/Melee/StreamGouge.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/Swordsplosion.cs b/Items/Weapons/Melee/Swordsplosion.cs index 8e4333333d..5f1b235dfe 100644 --- a/Items/Weapons/Melee/Swordsplosion.cs +++ b/Items/Weapons/Melee/Swordsplosion.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/TerrorBlade.cs b/Items/Weapons/Melee/TerrorBlade.cs index 42a23a0a76..e3cbcf53f9 100644 --- a/Items/Weapons/Melee/TerrorBlade.cs +++ b/Items/Weapons/Melee/TerrorBlade.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/TheBurningSky.cs b/Items/Weapons/Melee/TheBurningSky.cs index ebcfea6001..3c7e3163a9 100644 --- a/Items/Weapons/Melee/TheBurningSky.cs +++ b/Items/Weapons/Melee/TheBurningSky.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 35f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/TheEnforcer.cs b/Items/Weapons/Melee/TheEnforcer.cs index e044a95778..ed3ab18a5b 100644 --- a/Items/Weapons/Melee/TheEnforcer.cs +++ b/Items/Weapons/Melee/TheEnforcer.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Melee/TheLastMourning.cs b/Items/Weapons/Melee/TheLastMourning.cs index e5d460d631..d0815c3c7c 100644 --- a/Items/Weapons/Melee/TheLastMourning.cs +++ b/Items/Weapons/Melee/TheLastMourning.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(1, 40, 0, 0); } diff --git a/Items/Weapons/Melee/TheMutilator.cs b/Items/Weapons/Melee/TheMutilator.cs index 47f85a49a2..1041483cad 100644 --- a/Items/Weapons/Melee/TheMutilator.cs +++ b/Items/Weapons/Melee/TheMutilator.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.shootSpeed = 10f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index 6856c66a74..147e967a08 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee item.shootSpeed = 16f; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.value = Item.buyPrice(platinum: 1, gold: 40); } } diff --git a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs index fe458efd1a..2bfb276451 100644 --- a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs +++ b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs b/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs index 150bc0af71..d93736f308 100644 --- a/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs +++ b/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/Verdant.cs b/Items/Weapons/Melee/Verdant.cs index de168b5159..730ac72254 100644 --- a/Items/Weapons/Melee/Verdant.cs +++ b/Items/Weapons/Melee/Verdant.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.autoReuse = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.value = Item.buyPrice(platinum: 1, gold: 20); } diff --git a/Items/Weapons/Melee/YateveoBloom.cs b/Items/Weapons/Melee/YateveoBloom.cs index 22a1649246..4851938639 100644 --- a/Items/Weapons/Melee/YateveoBloom.cs +++ b/Items/Weapons/Melee/YateveoBloom.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item1; item.rare = 2; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.value = Item.buyPrice(0, 2, 0, 0); item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/AMR.cs b/Items/Weapons/Ranged/AMR.cs index e46b9a1b51..fab41ac3ce 100644 --- a/Items/Weapons/Ranged/AMR.cs +++ b/Items/Weapons/Ranged/AMR.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/AcesHigh.cs b/Items/Weapons/Ranged/AcesHigh.cs index dc79f6efb2..8cfe3189e9 100644 --- a/Items/Weapons/Ranged/AcesHigh.cs +++ b/Items/Weapons/Ranged/AcesHigh.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Alluvion.cs b/Items/Weapons/Ranged/Alluvion.cs index 448268b588..e7422b617a 100644 --- a/Items/Weapons/Ranged/Alluvion.cs +++ b/Items/Weapons/Ranged/Alluvion.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 1; item.shootSpeed = 17f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index a01e5cb60e..f5cf3a8766 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -38,7 +38,7 @@ Fighting 'til the war's won"); item.rare = 10; item.value = Item.buyPrice(1, 20, 0, 0); - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shootSpeed = BulletSpeed; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/Arbalest.cs b/Items/Weapons/Ranged/Arbalest.cs index 46141c8dcb..dbb5d98e0b 100644 --- a/Items/Weapons/Ranged/Arbalest.cs +++ b/Items/Weapons/Ranged/Arbalest.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 10f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index c09bc0a264..7bc4a3bd7e 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void AddRecipes() diff --git a/Items/Weapons/Ranged/BlissfulBombardier.cs b/Items/Weapons/Ranged/BlissfulBombardier.cs index ae3b43c26c..713d9aa80b 100644 --- a/Items/Weapons/Ranged/BlissfulBombardier.cs +++ b/Items/Weapons/Ranged/BlissfulBombardier.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); item.useAmmo = 771; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/BlossomFlux.cs b/Items/Weapons/Ranged/BlossomFlux.cs index 5315af2db9..0fdd171705 100644 --- a/Items/Weapons/Ranged/BlossomFlux.cs +++ b/Items/Weapons/Ranged/BlossomFlux.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Ranged/ChickenCannon.cs b/Items/Weapons/Ranged/ChickenCannon.cs index 6a89ba593b..eaf9543241 100644 --- a/Items/Weapons/Ranged/ChickenCannon.cs +++ b/Items/Weapons/Ranged/ChickenCannon.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); item.useAmmo = 771; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/ClaretCannon.cs b/Items/Weapons/Ranged/ClaretCannon.cs index 0b2f0dbb5b..9c24bfb9e2 100644 --- a/Items/Weapons/Ranged/ClaretCannon.cs +++ b/Items/Weapons/Ranged/ClaretCannon.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/CleansingBlaze.cs b/Items/Weapons/Ranged/CleansingBlaze.cs index 7677d818b9..79cb7ae596 100644 --- a/Items/Weapons/Ranged/CleansingBlaze.cs +++ b/Items/Weapons/Ranged/CleansingBlaze.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.useAmmo = 23; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Ranged/ClockworkBow.cs b/Items/Weapons/Ranged/ClockworkBow.cs index 29eca1822c..41bf9ce578 100644 --- a/Items/Weapons/Ranged/ClockworkBow.cs +++ b/Items/Weapons/Ranged/ClockworkBow.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 30f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Ranged/Contagion.cs b/Items/Weapons/Ranged/Contagion.cs index 26308fdef4..645ba6085d 100644 --- a/Items/Weapons/Ranged/Contagion.cs +++ b/Items/Weapons/Ranged/Contagion.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Ranged/DaemonsFlame.cs b/Items/Weapons/Ranged/DaemonsFlame.cs index c9cd86b2db..65ec6f5800 100644 --- a/Items/Weapons/Ranged/DaemonsFlame.cs +++ b/Items/Weapons/Ranged/DaemonsFlame.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Ranged/Deathwind.cs b/Items/Weapons/Ranged/Deathwind.cs index 607bd17aa1..9b04611136 100644 --- a/Items/Weapons/Ranged/Deathwind.cs +++ b/Items/Weapons/Ranged/Deathwind.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Ranged/DodusHandcannon.cs b/Items/Weapons/Ranged/DodusHandcannon.cs index 7323a9c23e..439445107c 100644 --- a/Items/Weapons/Ranged/DodusHandcannon.cs +++ b/Items/Weapons/Ranged/DodusHandcannon.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LargeWeaponFire"); diff --git a/Items/Weapons/Ranged/DragonsBreath.cs b/Items/Weapons/Ranged/DragonsBreath.cs index 0efe260b0d..75d25cade5 100644 --- a/Items/Weapons/Ranged/DragonsBreath.cs +++ b/Items/Weapons/Ranged/DragonsBreath.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Drataliornus.cs b/Items/Weapons/Ranged/Drataliornus.cs index c8bd9ed6a4..02bd7dd445 100644 --- a/Items/Weapons/Ranged/Drataliornus.cs +++ b/Items/Weapons/Ranged/Drataliornus.cs @@ -45,7 +45,7 @@ Right click to fire two devastating barrages of five empowered fireballs. item.useTurn = false; item.useAmmo = AmmoID.Arrow; item.autoReuse = true; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Ranged/ElementalBlaster.cs b/Items/Weapons/Ranged/ElementalBlaster.cs index d439cb6d28..6f962e4f9b 100644 --- a/Items/Weapons/Ranged/ElementalBlaster.cs +++ b/Items/Weapons/Ranged/ElementalBlaster.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/ElementalEruption.cs b/Items/Weapons/Ranged/ElementalEruption.cs index 2059db310d..1c11f4e444 100644 --- a/Items/Weapons/Ranged/ElementalEruption.cs +++ b/Items/Weapons/Ranged/ElementalEruption.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.useAmmo = 23; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/FlurrystormCannon.cs b/Items/Weapons/Ranged/FlurrystormCannon.cs index 5fe7621314..4966c4dadc 100644 --- a/Items/Weapons/Ranged/FlurrystormCannon.cs +++ b/Items/Weapons/Ranged/FlurrystormCannon.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.useAmmo = AmmoID.Snowball; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shootSpeed = 18f; } diff --git a/Items/Weapons/Ranged/GoldenEagle.cs b/Items/Weapons/Ranged/GoldenEagle.cs index 80a2024543..80fbac4ef2 100644 --- a/Items/Weapons/Ranged/GoldenEagle.cs +++ b/Items/Weapons/Ranged/GoldenEagle.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 20f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/HalleysInferno.cs b/Items/Weapons/Ranged/HalleysInferno.cs index 1674654ff2..9520c9fdc6 100644 --- a/Items/Weapons/Ranged/HalleysInferno.cs +++ b/Items/Weapons/Ranged/HalleysInferno.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item34; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14.6f; diff --git a/Items/Weapons/Ranged/HandheldTank.cs b/Items/Weapons/Ranged/HandheldTank.cs index e43c4a81c7..4e1c3032dd 100644 --- a/Items/Weapons/Ranged/HandheldTank.cs +++ b/Items/Weapons/Ranged/HandheldTank.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index 6aa03a8d8d..6a8baa626c 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 1; item.shootSpeed = 17f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Ranged/Hellborn.cs b/Items/Weapons/Ranged/Hellborn.cs index 4da4264576..8193f63878 100644 --- a/Items/Weapons/Ranged/Hellborn.cs +++ b/Items/Weapons/Ranged/Hellborn.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 14f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Ranged/Infinity.cs b/Items/Weapons/Ranged/Infinity.cs index 5a1b797703..a7d55b5804 100644 --- a/Items/Weapons/Ranged/Infinity.cs +++ b/Items/Weapons/Ranged/Infinity.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Interfacer.cs b/Items/Weapons/Ranged/Interfacer.cs index 88084ea48f..f709664990 100644 --- a/Items/Weapons/Ranged/Interfacer.cs +++ b/Items/Weapons/Ranged/Interfacer.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 13f; item.shoot = 10; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Karasawa.cs b/Items/Weapons/Ranged/Karasawa.cs index 65ddb16335..3b285c3522 100644 --- a/Items/Weapons/Ranged/Karasawa.cs +++ b/Items/Weapons/Ranged/Karasawa.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; diff --git a/Items/Weapons/Ranged/LeadWizard.cs b/Items/Weapons/Ranged/LeadWizard.cs index fa42d96fdb..dcaa615f70 100644 --- a/Items/Weapons/Ranged/LeadWizard.cs +++ b/Items/Weapons/Ranged/LeadWizard.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 20f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/MagnomalyCannon.cs b/Items/Weapons/Ranged/MagnomalyCannon.cs index edd77f00ab..1ce9908c0b 100644 --- a/Items/Weapons/Ranged/MagnomalyCannon.cs +++ b/Items/Weapons/Ranged/MagnomalyCannon.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.useAmmo = 771; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Megafleet.cs b/Items/Weapons/Ranged/Megafleet.cs index 5644d6ef22..bc000c72d3 100644 --- a/Items/Weapons/Ranged/Megafleet.cs +++ b/Items/Weapons/Ranged/Megafleet.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 18f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Minigun.cs b/Items/Weapons/Ranged/Minigun.cs index bc4422ad56..e5f29a1062 100644 --- a/Items/Weapons/Ranged/Minigun.cs +++ b/Items/Weapons/Ranged/Minigun.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 22f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/MolecularManipulator.cs b/Items/Weapons/Ranged/MolecularManipulator.cs index 4c2bfbbc23..cfc0c3929e 100644 --- a/Items/Weapons/Ranged/MolecularManipulator.cs +++ b/Items/Weapons/Ranged/MolecularManipulator.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.autoReuse = true; item.shootSpeed = 25f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/NettlelineGreatbow.cs b/Items/Weapons/Ranged/NettlelineGreatbow.cs index 20d930686c..4d81612587 100644 --- a/Items/Weapons/Ranged/NettlelineGreatbow.cs +++ b/Items/Weapons/Ranged/NettlelineGreatbow.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 16f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index 75c5d72542..ee010d0502 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTurn = false; item.useAmmo = 75; item.autoReuse = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Ranged/OnyxChainBlaster.cs b/Items/Weapons/Ranged/OnyxChainBlaster.cs index 79d0f8293a..1d91ff0cac 100644 --- a/Items/Weapons/Ranged/OnyxChainBlaster.cs +++ b/Items/Weapons/Ranged/OnyxChainBlaster.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 24f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Onyxia.cs b/Items/Weapons/Ranged/Onyxia.cs index 92bc722f6b..3e569dbea9 100644 --- a/Items/Weapons/Ranged/Onyxia.cs +++ b/Items/Weapons/Ranged/Onyxia.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 28f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/PearlGod.cs b/Items/Weapons/Ranged/PearlGod.cs index a4e228fdc4..9a7dafaf4a 100644 --- a/Items/Weapons/Ranged/PearlGod.cs +++ b/Items/Weapons/Ranged/PearlGod.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 24f; item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Phangasm.cs b/Items/Weapons/Ranged/Phangasm.cs index af13c501d6..59667ebada 100644 --- a/Items/Weapons/Ranged/Phangasm.cs +++ b/Items/Weapons/Ranged/Phangasm.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Ranged/Photoviscerator.cs b/Items/Weapons/Ranged/Photoviscerator.cs index 3b26f500c5..22fd5e59b7 100644 --- a/Items/Weapons/Ranged/Photoviscerator.cs +++ b/Items/Weapons/Ranged/Photoviscerator.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.useAmmo = 23; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs index b699dd4f3e..fe4b128171 100644 --- a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs +++ b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/SDFMG.cs b/Items/Weapons/Ranged/SDFMG.cs index 39e2ef6cfc..2828158778 100644 --- a/Items/Weapons/Ranged/SDFMG.cs +++ b/Items/Weapons/Ranged/SDFMG.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 16f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 8a81c6e6d9..2834b9a04d 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 16f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/SeasSearing.cs b/Items/Weapons/Ranged/SeasSearing.cs index 8ab876dfba..4da8202ed2 100644 --- a/Items/Weapons/Ranged/SeasSearing.cs +++ b/Items/Weapons/Ranged/SeasSearing.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.knockBack = 5f; item.rare = 5; item.value = Item.buyPrice(0, 36, 0, 0); - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; item.UseSound = SoundID.Item11; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/SepticSkewer.cs b/Items/Weapons/Ranged/SepticSkewer.cs index a3d08f52ac..62b6b11b5c 100644 --- a/Items/Weapons/Ranged/SepticSkewer.cs +++ b/Items/Weapons/Ranged/SepticSkewer.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.knockBack = 7.5f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.UseSound = SoundID.Item10; item.autoReuse = true; item.shootSpeed = 25f; diff --git a/Items/Weapons/Ranged/Shredder.cs b/Items/Weapons/Ranged/Shredder.cs index 75d7f8891a..1ed0c63fd8 100644 --- a/Items/Weapons/Ranged/Shredder.cs +++ b/Items/Weapons/Ranged/Shredder.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Skullmasher.cs b/Items/Weapons/Ranged/Skullmasher.cs index 17ccb25930..7208b6c37b 100644 --- a/Items/Weapons/Ranged/Skullmasher.cs +++ b/Items/Weapons/Ranged/Skullmasher.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/SomaPrime.cs b/Items/Weapons/Ranged/SomaPrime.cs index 196e15b089..b9131ab884 100644 --- a/Items/Weapons/Ranged/SomaPrime.cs +++ b/Items/Weapons/Ranged/SomaPrime.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Spyker.cs b/Items/Weapons/Ranged/Spyker.cs index 9cd282e254..4cba9ae60c 100644 --- a/Items/Weapons/Ranged/Spyker.cs +++ b/Items/Weapons/Ranged/Spyker.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 9f; item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Starfleet.cs b/Items/Weapons/Ranged/Starfleet.cs index 65f59c3e34..bc079179e5 100644 --- a/Items/Weapons/Ranged/Starfleet.cs +++ b/Items/Weapons/Ranged/Starfleet.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 75; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/StarfleetMK2.cs b/Items/Weapons/Ranged/StarfleetMK2.cs index 30d3ed7685..e00d679049 100644 --- a/Items/Weapons/Ranged/StarfleetMK2.cs +++ b/Items/Weapons/Ranged/StarfleetMK2.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTurn = false; item.useAmmo = 75; item.autoReuse = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Ranged/StormDragoon.cs b/Items/Weapons/Ranged/StormDragoon.cs index 050aa4e27b..1678fb6ea7 100644 --- a/Items/Weapons/Ranged/StormDragoon.cs +++ b/Items/Weapons/Ranged/StormDragoon.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = 10; item.shootSpeed = 18f; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/SulphuricAcidCannon.cs b/Items/Weapons/Ranged/SulphuricAcidCannon.cs index 57a4e63954..aba0c12e73 100644 --- a/Items/Weapons/Ranged/SulphuricAcidCannon.cs +++ b/Items/Weapons/Ranged/SulphuricAcidCannon.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item95; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/Svantechnical.cs b/Items/Weapons/Ranged/Svantechnical.cs index 428427e1a6..c5e1ca1859 100644 --- a/Items/Weapons/Ranged/Svantechnical.cs +++ b/Items/Weapons/Ranged/Svantechnical.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 12f; item.shoot = 10; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Ranged/TelluricGlare.cs b/Items/Weapons/Ranged/TelluricGlare.cs index 2db3e8a18e..e85901230c 100644 --- a/Items/Weapons/Ranged/TelluricGlare.cs +++ b/Items/Weapons/Ranged/TelluricGlare.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Ranged/ThePack.cs b/Items/Weapons/Ranged/ThePack.cs index 13f769d45a..ee0a5f47b7 100644 --- a/Items/Weapons/Ranged/ThePack.cs +++ b/Items/Weapons/Ranged/ThePack.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.knockBack = 7.5f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.UseSound = SoundID.Item11; item.autoReuse = true; item.shootSpeed = 24f; diff --git a/Items/Weapons/Ranged/TheStorm.cs b/Items/Weapons/Ranged/TheStorm.cs index a68c24eadc..2c043519d2 100644 --- a/Items/Weapons/Ranged/TheStorm.cs +++ b/Items/Weapons/Ranged/TheStorm.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; item.useAmmo = 40; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Ranged/TrueConferenceCall.cs b/Items/Weapons/Ranged/TrueConferenceCall.cs index 014adcfe3f..e4251e1b61 100644 --- a/Items/Weapons/Ranged/TrueConferenceCall.cs +++ b/Items/Weapons/Ranged/TrueConferenceCall.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.shootSpeed = 18f; item.shoot = 10; item.useAmmo = 97; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Rogue/AccretionDisk.cs b/Items/Weapons/Rogue/AccretionDisk.cs index 5b4d03feb7..3dd455302b 100644 --- a/Items/Weapons/Rogue/AccretionDisk.cs +++ b/Items/Weapons/Rogue/AccretionDisk.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Rogue/AlphaVirus.cs b/Items/Weapons/Rogue/AlphaVirus.cs index 5022651efa..a2563c0223 100644 --- a/Items/Weapons/Rogue/AlphaVirus.cs +++ b/Items/Weapons/Rogue/AlphaVirus.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 4f; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.Calamity().rogue = true; } diff --git a/Items/Weapons/Rogue/BloodsoakedCrasher.cs b/Items/Weapons/Rogue/BloodsoakedCrasher.cs index b58d020088..9d6ce42eb2 100644 --- a/Items/Weapons/Rogue/BloodsoakedCrasher.cs +++ b/Items/Weapons/Rogue/BloodsoakedCrasher.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 64; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/Celestus.cs b/Items/Weapons/Rogue/Celestus.cs index e9b432db50..ca16629db8 100644 --- a/Items/Weapons/Rogue/Celestus.cs +++ b/Items/Weapons/Rogue/Celestus.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/CorpusAvertor.cs b/Items/Weapons/Rogue/CorpusAvertor.cs index f263e96016..855a99e517 100644 --- a/Items/Weapons/Rogue/CorpusAvertor.cs +++ b/Items/Weapons/Rogue/CorpusAvertor.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.autoReuse = true; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/CosmicKunai.cs b/Items/Weapons/Rogue/CosmicKunai.cs index 209019b84d..a65566c3af 100644 --- a/Items/Weapons/Rogue/CosmicKunai.cs +++ b/Items/Weapons/Rogue/CosmicKunai.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shootSpeed = 28f; item.rare = 9; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/DeepSeaDumbbell.cs b/Items/Weapons/Rogue/DeepSeaDumbbell.cs index 38d0bfd739..e0814e9fd0 100644 --- a/Items/Weapons/Rogue/DeepSeaDumbbell.cs +++ b/Items/Weapons/Rogue/DeepSeaDumbbell.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Rogue/DeificThunderbolt.cs b/Items/Weapons/Rogue/DeificThunderbolt.cs index 695b34079d..4f00ffbd32 100644 --- a/Items/Weapons/Rogue/DeificThunderbolt.cs +++ b/Items/Weapons/Rogue/DeificThunderbolt.cs @@ -34,7 +34,7 @@ Stealth strikes summon more lightning and travel faster"); item.useTime = 21; item.useAnimation = 21; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.Calamity().rogue = true; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/DuneHopper.cs b/Items/Weapons/Rogue/DuneHopper.cs index 2b85dea96b..20070dd84d 100644 --- a/Items/Weapons/Rogue/DuneHopper.cs +++ b/Items/Weapons/Rogue/DuneHopper.cs @@ -33,7 +33,7 @@ Stealth strikes throws three high speed spears"); item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/EclipsesFall.cs b/Items/Weapons/Rogue/EclipsesFall.cs index aedb9b1a8a..0560ff53b1 100644 --- a/Items/Weapons/Rogue/EclipsesFall.cs +++ b/Items/Weapons/Rogue/EclipsesFall.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 72; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs b/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs index 9c5fdb960c..0aca0a195b 100644 --- a/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs +++ b/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/Eradicator.cs b/Items/Weapons/Rogue/Eradicator.cs index 25eddf7d29..64310e3584 100644 --- a/Items/Weapons/Rogue/Eradicator.cs +++ b/Items/Weapons/Rogue/Eradicator.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index 269c8b34a1..72fe50b415 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 26f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Rogue/GalaxySmasherRogue.cs b/Items/Weapons/Rogue/GalaxySmasherRogue.cs index 9ccadbd91d..8230867646 100644 --- a/Items/Weapons/Rogue/GalaxySmasherRogue.cs +++ b/Items/Weapons/Rogue/GalaxySmasherRogue.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.value = Item.buyPrice(1, 80, 0, 0); item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/GhoulishGouger.cs b/Items/Weapons/Rogue/GhoulishGouger.cs index 50fc0240ae..ec28b21cf0 100644 --- a/Items/Weapons/Rogue/GhoulishGouger.cs +++ b/Items/Weapons/Rogue/GhoulishGouger.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Rogue/GodsParanoia.cs b/Items/Weapons/Rogue/GodsParanoia.cs index 17b9e96216..b684ccd42a 100644 --- a/Items/Weapons/Rogue/GodsParanoia.cs +++ b/Items/Weapons/Rogue/GodsParanoia.cs @@ -38,7 +38,7 @@ Right click to delete all existing spiky balls"); item.knockBack = knockBack; item.value = Item.buyPrice(0, 18, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.UseSound = SoundID.Item1; item.autoReuse = true; item.maxStack = 10; diff --git a/Items/Weapons/Rogue/HellsSun.cs b/Items/Weapons/Rogue/HellsSun.cs index 051015b9d6..02572281ba 100644 --- a/Items/Weapons/Rogue/HellsSun.cs +++ b/Items/Weapons/Rogue/HellsSun.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.knockBack = knockBack; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12;; + item.Calamity().customRarity = CalamityRarity.Turquoise;; item.UseSound = SoundID.Item1; item.autoReuse = true; item.maxStack = 10; diff --git a/Items/Weapons/Rogue/Hypothermia.cs b/Items/Weapons/Rogue/Hypothermia.cs index 5b39ecbc66..9755c7b594 100644 --- a/Items/Weapons/Rogue/Hypothermia.cs +++ b/Items/Weapons/Rogue/Hypothermia.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.Calamity().rogue = true; } diff --git a/Items/Weapons/Rogue/JawsOfOblivion.cs b/Items/Weapons/Rogue/JawsOfOblivion.cs index b36ae5e430..cf59053e0c 100644 --- a/Items/Weapons/Rogue/JawsOfOblivion.cs +++ b/Items/Weapons/Rogue/JawsOfOblivion.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.Calamity().rogue = true; } diff --git a/Items/Weapons/Rogue/KelvinCatalyst.cs b/Items/Weapons/Rogue/KelvinCatalyst.cs index 76077d81f2..ab79e1d97b 100644 --- a/Items/Weapons/Rogue/KelvinCatalyst.cs +++ b/Items/Weapons/Rogue/KelvinCatalyst.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/LunarKunai.cs b/Items/Weapons/Rogue/LunarKunai.cs index 6d0ade36c0..a3b0f827c8 100644 --- a/Items/Weapons/Rogue/LunarKunai.cs +++ b/Items/Weapons/Rogue/LunarKunai.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 22f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.Calamity().rogue = true; } diff --git a/Items/Weapons/Rogue/Malachite.cs b/Items/Weapons/Rogue/Malachite.cs index c8749b2d9b..d7a1285cf9 100644 --- a/Items/Weapons/Rogue/Malachite.cs +++ b/Items/Weapons/Rogue/Malachite.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 17; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Rogue/MoltenAmputator.cs b/Items/Weapons/Rogue/MoltenAmputator.cs index 05443b3cb8..7b3cd734cb 100644 --- a/Items/Weapons/Rogue/MoltenAmputator.cs +++ b/Items/Weapons/Rogue/MoltenAmputator.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/NanoblackReaperRogue.cs b/Items/Weapons/Rogue/NanoblackReaperRogue.cs index 3af840fbb6..a4234a6dd9 100644 --- a/Items/Weapons/Rogue/NanoblackReaperRogue.cs +++ b/Items/Weapons/Rogue/NanoblackReaperRogue.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.UseSound = SoundID.Item18; item.rare = 10; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; item.value = Item.buyPrice(5, 0, 0, 0); item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/NightsGaze.cs b/Items/Weapons/Rogue/NightsGaze.cs index 0c6de3cb11..88cb5fe336 100644 --- a/Items/Weapons/Rogue/NightsGaze.cs +++ b/Items/Weapons/Rogue/NightsGaze.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.Calamity().rogue = true; } diff --git a/Items/Weapons/Rogue/Penumbra.cs b/Items/Weapons/Rogue/Penumbra.cs index 4f153d8685..aaadd0afd8 100644 --- a/Items/Weapons/Rogue/Penumbra.cs +++ b/Items/Weapons/Rogue/Penumbra.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = ShootSpeed; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; item.Calamity().rogue = true; } diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index aef6824c7a..7b6882864b 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -33,7 +33,7 @@ Stealth strikes summon ghost clones instead of lost souls"); item.useAnimation = 25; item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; item.Calamity().rogue = true; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/Plaguenade.cs b/Items/Weapons/Rogue/Plaguenade.cs index 3e6be11d3b..b181d4091a 100644 --- a/Items/Weapons/Rogue/Plaguenade.cs +++ b/Items/Weapons/Rogue/Plaguenade.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/ProfanedPartisan.cs b/Items/Weapons/Rogue/ProfanedPartisan.cs index b55426104b..6bb3d09553 100644 --- a/Items/Weapons/Rogue/ProfanedPartisan.cs +++ b/Items/Weapons/Rogue/ProfanedPartisan.cs @@ -33,7 +33,7 @@ Stealth strikes spawn smaller spears to fly along side it"); item.useAnimation = 15; item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.Calamity().rogue = true; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/ProfanedTrident.cs b/Items/Weapons/Rogue/ProfanedTrident.cs index b7481dff91..8e96469cc2 100644 --- a/Items/Weapons/Rogue/ProfanedTrident.cs +++ b/Items/Weapons/Rogue/ProfanedTrident.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } } } diff --git a/Items/Weapons/Rogue/Quasar.cs b/Items/Weapons/Rogue/Quasar.cs index 0835d99ffe..cf4e42f337 100644 --- a/Items/Weapons/Rogue/Quasar.cs +++ b/Items/Weapons/Rogue/Quasar.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/RoyalKnives.cs b/Items/Weapons/Rogue/RoyalKnives.cs index 191204a525..6784809e99 100644 --- a/Items/Weapons/Rogue/RoyalKnives.cs +++ b/Items/Weapons/Rogue/RoyalKnives.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/ScarletDevil.cs b/Items/Weapons/Rogue/ScarletDevil.cs index b49d7a4cfd..03e4534a45 100644 --- a/Items/Weapons/Rogue/ScarletDevil.cs +++ b/Items/Weapons/Rogue/ScarletDevil.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void AddRecipes() diff --git a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs index 601b5fd819..59bc5a1478 100644 --- a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs +++ b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/ShatteredSun.cs b/Items/Weapons/Rogue/ShatteredSun.cs index f4648891f5..ec10eaa50e 100644 --- a/Items/Weapons/Rogue/ShatteredSun.cs +++ b/Items/Weapons/Rogue/ShatteredSun.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Rogue/SpearofDestiny.cs b/Items/Weapons/Rogue/SpearofDestiny.cs index 6e5858bdcb..dff97777b8 100644 --- a/Items/Weapons/Rogue/SpearofDestiny.cs +++ b/Items/Weapons/Rogue/SpearofDestiny.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/StellarContemptRogue.cs b/Items/Weapons/Rogue/StellarContemptRogue.cs index dc08796548..8e410b1a3e 100644 --- a/Items/Weapons/Rogue/StellarContemptRogue.cs +++ b/Items/Weapons/Rogue/StellarContemptRogue.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.value = Item.buyPrice(1, 20, 0, 0); item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/Supernova.cs b/Items/Weapons/Rogue/Supernova.cs index 2c94805a36..8dcf7f12dd 100644 --- a/Items/Weapons/Rogue/Supernova.cs +++ b/Items/Weapons/Rogue/Supernova.cs @@ -36,7 +36,7 @@ Stealth strikes release energy as they fly"); item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/SylvanSlasher.cs b/Items/Weapons/Rogue/SylvanSlasher.cs index ed2e940fce..9a8288fc70 100644 --- a/Items/Weapons/Rogue/SylvanSlasher.cs +++ b/Items/Weapons/Rogue/SylvanSlasher.cs @@ -31,7 +31,7 @@ Does not consume stealth and cannot stealth strike"); item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/TarragonThrowingDart.cs b/Items/Weapons/Rogue/TarragonThrowingDart.cs index 0ca22238bd..52b172f6d0 100644 --- a/Items/Weapons/Rogue/TarragonThrowingDart.cs +++ b/Items/Weapons/Rogue/TarragonThrowingDart.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override void AddRecipes() diff --git a/Items/Weapons/Rogue/TheReaper.cs b/Items/Weapons/Rogue/TheReaper.cs index e018e76f0c..61f9ae178d 100644 --- a/Items/Weapons/Rogue/TheReaper.cs +++ b/Items/Weapons/Rogue/TheReaper.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Rogue/TimeBolt.cs b/Items/Weapons/Rogue/TimeBolt.cs index 893fdfbb66..59b043c2e8 100644 --- a/Items/Weapons/Rogue/TimeBolt.cs +++ b/Items/Weapons/Rogue/TimeBolt.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.autoReuse = true; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs b/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs index 3dd5cd56dc..355add4068 100644 --- a/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs +++ b/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override void AddRecipes() diff --git a/Items/Weapons/Rogue/UtensilPoker.cs b/Items/Weapons/Rogue/UtensilPoker.cs index 5085b6c294..5f99306e89 100644 --- a/Items/Weapons/Rogue/UtensilPoker.cs +++ b/Items/Weapons/Rogue/UtensilPoker.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.autoReuse = true; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/Rogue/Valediction.cs b/Items/Weapons/Rogue/Valediction.cs index ca55ccbf5b..f0143e8a4f 100644 --- a/Items/Weapons/Rogue/Valediction.cs +++ b/Items/Weapons/Rogue/Valediction.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } } } diff --git a/Items/Weapons/Summon/AngryChickenStaff.cs b/Items/Weapons/Summon/AngryChickenStaff.cs index 5016213d30..6481587612 100644 --- a/Items/Weapons/Summon/AngryChickenStaff.cs +++ b/Items/Weapons/Summon/AngryChickenStaff.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; - item.Calamity().postMoonLordRarity = 14; + item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Summon/CalamarisLament.cs b/Items/Weapons/Summon/CalamarisLament.cs index 3949587b15..8783771ec2 100644 --- a/Items/Weapons/Summon/CalamarisLament.cs +++ b/Items/Weapons/Summon/CalamarisLament.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Summon/CosmicImmaterializer.cs b/Items/Weapons/Summon/CosmicImmaterializer.cs index f731aec02d..9eabdb1c34 100644 --- a/Items/Weapons/Summon/CosmicImmaterializer.cs +++ b/Items/Weapons/Summon/CosmicImmaterializer.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; - item.Calamity().postMoonLordRarity = 15; + item.Calamity().customRarity = CalamityRarity.Violet; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Summon/Cosmilamp.cs b/Items/Weapons/Summon/Cosmilamp.cs index 9b743ab5ad..393ad9abcd 100644 --- a/Items/Weapons/Summon/Cosmilamp.cs +++ b/Items/Weapons/Summon/Cosmilamp.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Summon/ElementalAxe.cs b/Items/Weapons/Summon/ElementalAxe.cs index 3d59fee0b2..1b504cf6aa 100644 --- a/Items/Weapons/Summon/ElementalAxe.cs +++ b/Items/Weapons/Summon/ElementalAxe.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Summon item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Summon/Endogenesis.cs b/Items/Weapons/Summon/Endogenesis.cs index 0a471991ba..3923b580aa 100644 --- a/Items/Weapons/Summon/Endogenesis.cs +++ b/Items/Weapons/Summon/Endogenesis.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shootSpeed = 10f; item.value = Item.buyPrice(5, 0, 0, 0); - item.Calamity().postMoonLordRarity = 16; + item.Calamity().customRarity = CalamityRarity.Developer; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Summon/EnergyStaff.cs b/Items/Weapons/Summon/EnergyStaff.cs index 25b98ad581..314d352683 100644 --- a/Items/Weapons/Summon/EnergyStaff.cs +++ b/Items/Weapons/Summon/EnergyStaff.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Summon item.rare = 10; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Summon/EtherealSubjugator.cs b/Items/Weapons/Summon/EtherealSubjugator.cs index f210c9cfa9..1c53125c41 100644 --- a/Items/Weapons/Summon/EtherealSubjugator.cs +++ b/Items/Weapons/Summon/EtherealSubjugator.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) diff --git a/Items/Weapons/Summon/LanternoftheSoul.cs b/Items/Weapons/Summon/LanternoftheSoul.cs index 812ea0b3e1..9b58254857 100644 --- a/Items/Weapons/Summon/LanternoftheSoul.cs +++ b/Items/Weapons/Summon/LanternoftheSoul.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Summon item.rare = 10; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 22; + item.Calamity().customRarity = CalamityRarity.RareVariant; item.UseSound = SoundID.Item44; } diff --git a/Items/Weapons/Summon/ResurrectionButterfly.cs b/Items/Weapons/Summon/ResurrectionButterfly.cs index 525759ba0d..36ca363c5c 100644 --- a/Items/Weapons/Summon/ResurrectionButterfly.cs +++ b/Items/Weapons/Summon/ResurrectionButterfly.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Summon item.knockBack = 1f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; item.UseSound = SoundID.Item44; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/Sirius.cs b/Items/Weapons/Summon/Sirius.cs index 90b73a7005..ce2f94bc25 100644 --- a/Items/Weapons/Summon/Sirius.cs +++ b/Items/Weapons/Summon/Sirius.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Summon item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override void HoldItem(Player player) diff --git a/Items/Weapons/Summon/StaffoftheMechworm.cs b/Items/Weapons/Summon/StaffoftheMechworm.cs index 6fad1cc5eb..f2b7a04d87 100644 --- a/Items/Weapons/Summon/StaffoftheMechworm.cs +++ b/Items/Weapons/Summon/StaffoftheMechworm.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Typeless/Aestheticus.cs b/Items/Weapons/Typeless/Aestheticus.cs index a76b05e9a9..19f795a72b 100644 --- a/Items/Weapons/Typeless/Aestheticus.cs +++ b/Items/Weapons/Typeless/Aestheticus.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.value = Item.buyPrice(0, 4, 0, 0); item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; - item.Calamity().postMoonLordRarity = 21; + item.Calamity().customRarity = CalamityRarity.Dedicated; } public override Vector2? HoldoutOrigin() diff --git a/Items/Weapons/Typeless/AethersWhisper.cs b/Items/Weapons/Typeless/AethersWhisper.cs index fdbef74b9c..803413a8ad 100644 --- a/Items/Weapons/Typeless/AethersWhisper.cs +++ b/Items/Weapons/Typeless/AethersWhisper.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.autoReuse = true; item.shootSpeed = 12f; item.shoot = ModContent.ProjectileType(); - item.Calamity().postMoonLordRarity = 13; + item.Calamity().customRarity = CalamityRarity.PureGreen; } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs b/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs index 3889edb674..ce4a92d54b 100644 --- a/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs +++ b/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse item.shootSpeed = 12f; item.shoot = ModContent.ProjectileType(); item.useAmmo = ModContent.ItemType(); - item.Calamity().postMoonLordRarity = 12; + item.Calamity().customRarity = CalamityRarity.Turquoise; if (CalamityPlayer.areThereAnyDamnBosses) { item.Calamity().timesUsed = 3; diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index f52e0b4ffe..f4654b7855 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -37,6 +37,16 @@ namespace CalamityMod { public static class CalamityUtils { + public static readonly CalamityRarity[] postMLRarities = + { + CalamityRarity.Turquoise, + CalamityRarity.PureGreen, + CalamityRarity.DarkBlue, + CalamityRarity.Violet, + CalamityRarity.Developer, + CalamityRarity.Rainbow + }; + #region Object Extensions public static CalamityPlayer Calamity(this Player player) => player.GetModPlayer(); public static CalamityGlobalNPC Calamity(this NPC npc) => npc.GetGlobalNPC(); @@ -172,6 +182,19 @@ namespace CalamityMod #endregion #region Item Utilities + public static bool IsPostML(this CalamityRarity calrare) + { + return calrare != CalamityRarity.NoEffect; + // TODO -- separate out whether an item is post-ML from its custom rarity. + // This is necessary because there are pre-ML rare variants, legendary weapons and dedicated items. + /* + for(int i = 0; i < postMLRarities.Length; ++i) + if (postMLRarities[i] == calrare) + return true; + return false; + */ + } + public static Rectangle FixSwingHitbox(float hitboxWidth, float hitboxHeight) { Player player = Main.player[Main.myPlayer]; diff --git a/Utilities/Enums.cs b/Utilities/Enums.cs index ebea6267a6..4401d332ab 100644 --- a/Utilities/Enums.cs +++ b/Utilities/Enums.cs @@ -7,4 +7,18 @@ Crimson, Hallow } + + public enum CalamityRarity + { + ItemSpecific = -1, + NoEffect = 0, + Turquoise = 12, + PureGreen = 13, + DarkBlue = 14, + Violet = 15, + Developer = 16, + Rainbow = 30, + RareVariant = 31, + Dedicated = 32 + } }