From 9158c2f2f0bb700aa73cae37dc201670dfffc8b7 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 15 Oct 2019 21:32:19 -0400 Subject: [PATCH] 2013 errors and Drat flames literally don't exist --- Backgrounds/AstralDesertSurfaceBGStyle.cs | 2 +- Backgrounds/AstralSnowSurfaceBGStyle.cs | 2 +- Backgrounds/AstralSurfaceBGStyle.cs | 2 +- Backgrounds/AstralUndergroundBGStyle.cs | 2 +- Backgrounds/SulphurSeaSurfaceBGStyle.cs | 2 +- Buffs/Amidias/AmidiasBlessing.cs | 4 +- Buffs/Amidias/HermitCrab.cs | 6 +- Buffs/Amidias/SnapClamDebuff.cs | 4 +- Buffs/CalamityGlobalBuff.cs | 4 +- Buffs/DoTDebuffs/AbyssalFlames.cs | 4 +- Buffs/DoTDebuffs/AstralInfectionDebuff.cs | 4 +- Buffs/DoTDebuffs/BrimstoneFlames.cs | 4 +- Buffs/DoTDebuffs/BurningBlood.cs | 4 +- Buffs/DoTDebuffs/CrushDepth.cs | 4 +- Buffs/DoTDebuffs/DemonFlames.cs | 4 +- Buffs/DoTDebuffs/GodSlayerInferno.cs | 4 +- .../{HolyLight.cs => HolyFlames.cs} | 6 +- .../{HolyLight.png => HolyFlames.png} | Bin Buffs/DoTDebuffs/HolyInferno.cs | 4 +- Buffs/DoTDebuffs/LethalLavaBurn.cs | 4 +- Buffs/DoTDebuffs/Nightwither.cs | 4 +- Buffs/DoTDebuffs/Plague.cs | 4 +- Buffs/DoTDebuffs/Shadowflame.cs | 4 +- Buffs/DoTDebuffs/Shred.cs | 4 +- Buffs/DoTDebuffs/VulnerabilityHex.cs | 4 +- Buffs/Fabsol/BloodyMary.cs | 4 +- Buffs/Fabsol/BlueSpeedCandle.cs | 4 +- Buffs/Fabsol/CaribbeanRum.cs | 4 +- Buffs/Fabsol/CinnamonRoll.cs | 4 +- Buffs/Fabsol/Everclear.cs | 4 +- Buffs/Fabsol/EvergreenGin.cs | 4 +- Buffs/Fabsol/FabsolVodka.cs | 4 +- Buffs/Fabsol/Fireball.cs | 4 +- Buffs/Fabsol/GrapeBeer.cs | 4 +- Buffs/Fabsol/Margarita.cs | 4 +- Buffs/Fabsol/Moonshine.cs | 4 +- Buffs/Fabsol/MoscowMule.cs | 4 +- Buffs/Fabsol/PinkHealthCandle.cs | 4 +- Buffs/Fabsol/PurpleDefenseCandle.cs | 4 +- Buffs/Fabsol/RedWine.cs | 4 +- Buffs/Fabsol/Rum.cs | 4 +- Buffs/Fabsol/Screwdriver.cs | 4 +- Buffs/Fabsol/StarBeamRye.cs | 4 +- Buffs/Fabsol/Tequila.cs | 4 +- Buffs/Fabsol/TequilaSunrise.cs | 4 +- Buffs/Fabsol/Trippy.cs | 4 +- Buffs/Fabsol/Vodka.cs | 4 +- Buffs/Fabsol/Whiskey.cs | 4 +- Buffs/Fabsol/WhiteWine.cs | 4 +- Buffs/Fabsol/YellowDamageCandle.cs | 4 +- Buffs/MountBuffs/{Fab.cs => AlicornBuff.cs} | 8 +- Buffs/MountBuffs/{Fab.png => AlicornBuff.png} | Bin Buffs/MountBuffs/BrimstoneMount.cs | 6 +- Buffs/MountBuffs/GazeOfCrysthamyrBuff.cs | 6 +- Buffs/MountBuffs/SquishyBeanBuff.cs | 6 +- Buffs/Permafrost/ConcoctionCooldown.cs | 4 +- Buffs/Permafrost/Encased.cs | 4 +- Buffs/Permafrost/{Popo.cs => PopoBuff.cs} | 6 +- Buffs/Permafrost/{Popo.png => PopoBuff.png} | Bin .../{PopoNoseless.cs => PopoNoselessBuff.cs} | 6 +- ...{PopoNoseless.png => PopoNoselessBuff.png} | Bin Buffs/PetBuffs/AkatoYharonBuff.cs | 8 +- Buffs/PetBuffs/AstrophageBuff.cs | 8 +- Buffs/PetBuffs/BearBuff.cs | 8 +- Buffs/PetBuffs/BloodBound.cs | 8 +- Buffs/PetBuffs/BrimlingBuff.cs | 8 +- Buffs/PetBuffs/ChibiiBuff.cs | 8 +- Buffs/PetBuffs/DannyDevito.cs | 8 +- Buffs/PetBuffs/Fox.cs | 8 +- Buffs/PetBuffs/Kendra.cs | 8 +- Buffs/PetBuffs/Levi.cs | 8 +- Buffs/PetBuffs/StrangeOrb.cs | 13 +- Buffs/PetBuffs/ThirdSageBuff.cs | 8 +- Buffs/PotionBuffs/AbyssalWeapon.cs | 4 +- Buffs/PotionBuffs/AnechoicCoating.cs | 4 +- Buffs/PotionBuffs/ArmorCrumbling.cs | 4 +- Buffs/PotionBuffs/ArmorShattering.cs | 4 +- Buffs/PotionBuffs/AstralInjectionBuff.cs | 4 +- Buffs/PotionBuffs/BoundingBuff.cs | 4 +- Buffs/PotionBuffs/Cadence.cs | 4 +- Buffs/PotionBuffs/CalciumBuff.cs | 4 +- Buffs/PotionBuffs/CeaselessHunger.cs | 4 +- Buffs/PotionBuffs/DraconicSurgeBuff.cs | 4 +- Buffs/PotionBuffs/GravityNormalizerBuff.cs | 4 +- Buffs/PotionBuffs/HolyWrathBuff.cs | 4 +- Buffs/PotionBuffs/Invincible.cs | 4 +- Buffs/PotionBuffs/Omniscience.cs | 4 +- Buffs/PotionBuffs/PenumbraBuff.cs | 4 +- Buffs/PotionBuffs/PhotosynthesisBuff.cs | 4 +- Buffs/PotionBuffs/ProfanedRageBuff.cs | 4 +- Buffs/PotionBuffs/Soaring.cs | 4 +- Buffs/PotionBuffs/TitanScale.cs | 4 +- Buffs/PotionBuffs/TriumphBuff.cs | 4 +- Buffs/PotionBuffs/YharimPower.cs | 4 +- Buffs/PotionBuffs/Zen.cs | 4 +- Buffs/PotionBuffs/Zerg.cs | 4 +- Buffs/Shrines/ChiBuff.cs | 4 +- Buffs/Shrines/CorruptionEffigyBuff.cs | 4 +- Buffs/Shrines/CrimsonEffigyBuff.cs | 4 +- Buffs/Shrines/GladiatorSwords.cs | 6 +- Buffs/Shrines/OnyxExcavatorBuff.cs | 6 +- Buffs/Shrines/TundraLeashBuff.cs | 8 +- Buffs/StatBuffs/AbyssalDivingSuitBuff.cs | 4 +- Buffs/StatBuffs/AbyssalDivingSuitPlates.cs | 4 +- Buffs/StatBuffs/AdrenalineMode.cs | 4 +- Buffs/StatBuffs/Afflicted.cs | 4 +- Buffs/StatBuffs/ChaosCandle.cs | 4 +- Buffs/StatBuffs/CosmicFreeze.cs | 4 +- Buffs/StatBuffs/GodSlayerCooldown.cs | 4 +- Buffs/StatBuffs/GraxDefense.cs | 4 +- Buffs/StatBuffs/HeartAttack.cs | 4 +- Buffs/StatBuffs/IceShieldBuff.cs | 4 +- Buffs/StatBuffs/Molten.cs | 4 +- Buffs/StatBuffs/Mushy.cs | 4 +- Buffs/StatBuffs/PolarisBuff.cs | 4 +- Buffs/StatBuffs/RageMode.cs | 4 +- Buffs/StatBuffs/ReaverRage.cs | 4 +- Buffs/StatBuffs/ScarfMeleeBoost.cs | 4 +- Buffs/StatBuffs/ShellBoost.cs | 4 +- Buffs/StatBuffs/SilvaRevival.cs | 4 +- Buffs/StatBuffs/SirenBobs.cs | 6 +- Buffs/StatBuffs/SirenBobsAlt.cs | 6 +- Buffs/StatBuffs/SirenWaterSpeed.cs | 4 +- Buffs/StatBuffs/TarraLifeRegen.cs | 4 +- Buffs/StatBuffs/TranquilityCandle.cs | 4 +- Buffs/StatBuffs/TyrantsFury.cs | 4 +- Buffs/StatBuffs/XerocRage.cs | 4 +- Buffs/StatBuffs/XerocWrath.cs | 4 +- .../AbyssalDivingSuitPlatesBroken.cs | 4 +- Buffs/StatDebuffs/AbyssalMirrorCooldown.cs | 4 +- Buffs/StatDebuffs/ArmorCrunch.cs | 4 +- Buffs/StatDebuffs/BurntOut.cs | 4 +- Buffs/StatDebuffs/EclipseMirrorCooldown.cs | 4 +- Buffs/StatDebuffs/Enraged.cs | 4 +- Buffs/StatDebuffs/ExoFreeze.cs | 4 +- Buffs/StatDebuffs/ExtremeGrav.cs | 4 +- Buffs/StatDebuffs/ExtremeGravity.cs | 4 +- Buffs/StatDebuffs/FishAlert.cs | 4 +- Buffs/StatDebuffs/GlacialState.cs | 4 +- Buffs/StatDebuffs/Horror.cs | 4 +- Buffs/StatDebuffs/IceShieldBrokenBuff.cs | 4 +- Buffs/StatDebuffs/InkBombCooldown.cs | 4 +- Buffs/StatDebuffs/Irradiated.cs | 4 +- Buffs/StatDebuffs/MarkedforDeath.cs | 4 +- Buffs/StatDebuffs/ScarfCooldown.cs | 4 +- Buffs/StatDebuffs/SilvaStun.cs | 4 +- Buffs/StatDebuffs/TemporalSadness.cs | 4 +- Buffs/StatDebuffs/TimeSlow.cs | 4 +- Buffs/StatDebuffs/WarCleave.cs | 4 +- Buffs/StatDebuffs/Warped.cs | 4 +- Buffs/StatDebuffs/WeakPetrification.cs | 4 +- Buffs/StatDebuffs/WhisperingDeath.cs | 4 +- Buffs/SummonBuffs/AquaticStar.cs | 6 +- Buffs/SummonBuffs/BlackHawkBuff.cs | 6 +- Buffs/SummonBuffs/BloodClot.cs | 6 +- Buffs/SummonBuffs/BrimstoneWaifu.cs | 6 +- Buffs/SummonBuffs/BrittleStar.cs | 6 +- Buffs/SummonBuffs/Calamari.cs | 6 +- Buffs/SummonBuffs/CalamitasEyes.cs | 6 +- Buffs/SummonBuffs/ChaosSpirit.cs | 6 +- Buffs/SummonBuffs/CloudyWaifu.cs | 6 +- Buffs/SummonBuffs/Corroslime.cs | 6 +- Buffs/SummonBuffs/CosmicEnergy.cs | 6 +- Buffs/SummonBuffs/Cosmilamp.cs | 6 +- Buffs/SummonBuffs/Crimslime.cs | 6 +- Buffs/SummonBuffs/DaedalusCrystal.cs | 6 +- Buffs/SummonBuffs/DankCreeper.cs | 6 +- Buffs/SummonBuffs/ElementalAxe.cs | 6 +- Buffs/SummonBuffs/FungalClump.cs | 9 +- Buffs/SummonBuffs/GuardianDefense.cs | 6 +- Buffs/SummonBuffs/GuardianHealer.cs | 6 +- Buffs/SummonBuffs/GuardianOffense.cs | 6 +- Buffs/SummonBuffs/Herring.cs | 6 +- Buffs/SummonBuffs/HotE.cs | 4 +- Buffs/SummonBuffs/IceClasper.cs | 6 +- Buffs/SummonBuffs/Mechworm.cs | 6 +- Buffs/SummonBuffs/Phantom.cs | 6 +- Buffs/SummonBuffs/ReaverOrb.cs | 6 +- Buffs/SummonBuffs/RedDevil.cs | 6 +- .../SummonBuffs/ResurrectionButterflyBuff.cs | 6 +- Buffs/SummonBuffs/Sandnado.cs | 6 +- ...rewsSandyWaifu.cs => SandyHealingWaifu.cs} | 9 +- ...wsSandyWaifu.png => SandyHealingWaifu.png} | Bin Buffs/SummonBuffs/SandyWaifu.cs | 6 +- Buffs/SummonBuffs/SilvaCrystal.cs | 6 +- Buffs/SummonBuffs/SlimeGod.cs | 8 +- Buffs/SummonBuffs/SolarSpirit.cs | 6 +- Buffs/SummonBuffs/SolarSpiritGod.cs | 6 +- Buffs/SummonBuffs/SpiritGeneratorAtkBuff.cs | 4 +- Buffs/SummonBuffs/SpiritGeneratorDefBuff.cs | 4 +- Buffs/SummonBuffs/SpiritGeneratorRegenBuff.cs | 4 +- Buffs/SummonBuffs/Urchin.cs | 9 +- Buffs/SummonBuffs/Valkyrie.cs | 9 +- .../{SirenLure.cs => WaterWaifu.cs} | 9 +- .../{SirenLure.png => WaterWaifu.png} | Bin .../{AngryChicken.cs => YharonKindleBuff.cs} | 9 +- ...{AngryChicken.png => YharonKindleBuff.png} | Bin Buffs/SunkenSea/Clamity.cs | 4 +- Buffs/SunkenSea/PearlAura.cs | 4 +- Buffs/SunkenSea/Shellfish.cs | 9 +- Buffs/SunkenSea/ShellfishEating.cs | 4 +- CalPlayer/CalamityPlayer.cs | 614 +++++++++--------- CalPlayer/CalamityPlayerLifeRegen.cs | 7 +- CalamityMod.cs | 37 +- Config.cs | 2 +- Dusts/AstralBasic.cs | 2 +- Dusts/AstralBlue.cs | 2 +- Dusts/AstralChunk.cs | 2 +- Dusts/AstralEnemy.cs | 2 +- Dusts/AstralOrange.cs | 2 +- Dusts/BrimstoneFlame.cs | 2 +- Dusts/FurnitureDusts/BloomTileGold.cs | 2 +- Dusts/FurnitureDusts/BloomTileLeaves.cs | 2 +- Dusts/FurnitureDusts/OccultTileCloth.cs | 2 +- Dusts/FurnitureDusts/ProfanedTileRock.cs | 2 +- Dusts/FurnitureDusts/SilvaTileGold.cs | 2 +- Dusts/HBSparkle.cs | 2 +- Dusts/HolyFlame.cs | 4 +- Dusts/OMGWTHSparkle.cs | 2 +- Gores/AstralWaterDroplet.cs | 2 +- Items/AbyssItems/AbyssalAmulet.cs | 4 +- Items/AbyssItems/AbyssalDivingGear.cs | 4 +- Items/AbyssItems/AlluringBait.cs | 4 +- Items/AbyssItems/AnechoicCoating.cs | 6 +- Items/AbyssItems/AnechoicPlating.cs | 4 +- Items/AbyssItems/CloakingGland.cs | 4 +- Items/AbyssItems/DepthCells.cs | 4 +- Items/AbyssItems/DepthCharm.cs | 4 +- Items/AbyssItems/IronBoots.cs | 4 +- Items/AbyssItems/LumenousAmulet.cs | 4 +- Items/AbyssItems/ReaperTooth.cs | 4 +- Items/AbyssItems/ReaperToothNecklace.cs | 4 +- Items/AbyssItems/StrangeOrb.cs | 8 +- Items/AbyssItems/SunkenStew.cs | 4 +- Items/AbyssItems/TorrentialTear.cs | 4 +- Items/Accessories/AbyssalMirror.cs | 4 +- Items/Accessories/AlchemicalFlask.cs | 6 +- Items/Accessories/AmalgamatedBrain.cs | 6 +- Items/Accessories/AmbrosialAmpoule.cs | 4 +- Items/Accessories/AmidiasSpark.cs | 4 +- Items/Accessories/AncientFossil.cs | 4 +- Items/Accessories/AngelTreads.cs | 4 +- Items/Accessories/ArcanumoftheVoid.cs | 4 +- Items/Accessories/ArchaicPowder.cs | 4 +- Items/Accessories/AsgardianAegis.cs | 10 +- Items/Accessories/AsgardsValor.cs | 10 +- Items/Accessories/AstralArcanum.cs | 6 +- Items/Accessories/AstralBulwark.cs | 6 +- Items/Accessories/BadgeofBravery.cs | 6 +- Items/Accessories/BloodflareCore.cs | 4 +- Items/Accessories/BloodyWormScarf.cs | 4 +- Items/Accessories/BurdenBreaker.cs | 4 +- Items/Accessories/CelestialJewel.cs | 4 +- Items/Accessories/ChaosAmulet.cs | 4 +- Items/Accessories/CheatTestThing.cs | 4 +- Items/Accessories/CoinofDeceit.cs | 4 +- Items/Accessories/CoreOfTheBloodGod.cs | 4 +- Items/Accessories/CorruptFlask.cs | 4 +- Items/Accessories/CounterScarf.cs | 4 +- Items/Accessories/CrawCarapace.cs | 4 +- Items/Accessories/CrimsonFlask.cs | 4 +- Items/Accessories/CrownJewel.cs | 4 +- Items/Accessories/DaedalusEmblem.cs | 4 +- Items/Accessories/DarkGodsSheath.cs | 12 +- Items/Accessories/DarkSunRing.cs | 4 +- Items/Accessories/DeificAmulet.cs | 4 +- Items/Accessories/DimensionalSoulArtifact.cs | 4 +- Items/Accessories/DraedonsHeart.cs | 6 +- Items/Accessories/DragonScales.cs | 4 +- Items/Accessories/EclipseMirror.cs | 4 +- Items/Accessories/EldritchSoulArtifact.cs | 4 +- Items/Accessories/ElementalGauntlet.cs | 4 +- Items/Accessories/ElementalQuiver.cs | 4 +- Items/Accessories/EtherealTalisman.cs | 4 +- Items/Accessories/EyeoftheStorm.cs | 12 +- Items/Accessories/FeatherCrown.cs | 8 +- Items/Accessories/FrigidBulwark.cs | 4 +- Items/Accessories/FrostBarrier.cs | 4 +- Items/Accessories/FrostFlare.cs | 4 +- Items/Accessories/FungalCarapace.cs | 4 +- Items/Accessories/GiantShell.cs | 4 +- Items/Accessories/GiantTortoiseShell.cs | 4 +- Items/Accessories/GloveOfPrecicion.cs | 5 +- Items/Accessories/GloveOfRecklessness.cs | 5 +- Items/Accessories/GodlySoulArtifact.cs | 4 +- Items/Accessories/GoldBurdenBreaker.cs | 4 +- Items/Accessories/GrandGelatin.cs | 4 +- Items/Accessories/HarpyRing.cs | 4 +- Items/Accessories/HeartofDarkness.cs | 4 +- Items/Accessories/HeartoftheElements.cs | 44 +- Items/Accessories/HoneyDew.cs | 4 +- Items/Accessories/InkBomb.cs | 4 +- Items/Accessories/Laudanum.cs | 6 +- Items/Accessories/LeadCore.cs | 6 +- Items/Accessories/LifeJelly.cs | 4 +- Items/Accessories/LivingDew.cs | 4 +- Items/Accessories/MagicLevelMeter.cs | 4 +- Items/Accessories/ManaJelly.cs | 4 +- Items/Accessories/MeleeLevelMeter.cs | 4 +- Items/Accessories/MirageMirror.cs | 4 +- Items/Accessories/MomentumCapacitor.cs | 5 +- Items/Accessories/MoonstoneCrown.cs | 8 +- Items/Accessories/Nanotech.cs | 4 +- Items/Accessories/NecklaceofVexation.cs | 4 +- Items/Accessories/OldDie.cs | 4 +- Items/Accessories/OrnateShield.cs | 4 +- Items/Accessories/PlagueHive.cs | 8 +- Items/Accessories/PsychoticAmulet.cs | 4 +- Items/Accessories/RadiantOoze.cs | 4 +- Items/Accessories/RaidersTalisman.cs | 4 +- Items/Accessories/RampartofDeities.cs | 4 +- Items/Accessories/RangedLevelMeter.cs | 4 +- Items/Accessories/RareVariants/DeepDiver.cs | 4 +- .../RareVariants/FabledTortoiseShell.cs | 4 +- .../RareVariants/HideofAstrumDeus.cs | 6 +- Items/Accessories/RareVariants/Regenator.cs | 4 +- .../Accessories/RareVariants/SamuraiBadge.cs | 4 +- Items/Accessories/RareVariants/TheBee.cs | 4 +- .../Accessories/RareVariants/TheEvolution.cs | 4 +- .../RareVariants/TheTransformer.cs | 4 +- Items/Accessories/RogueEmblem.cs | 4 +- Items/Accessories/RogueLevelMeter.cs | 4 +- Items/Accessories/RuinMedallion.cs | 10 +- Items/Accessories/SeaShell.cs | 4 +- Items/Accessories/ShieldoftheOcean.cs | 4 +- Items/Accessories/SigilofCalamitas.cs | 4 +- Items/Accessories/SilencingSheath.cs | 4 +- Items/Accessories/SpiritGenerator.cs | 4 +- Items/Accessories/Sponge.cs | 4 +- Items/Accessories/StatisBeltOfCurses.cs | 4 +- Items/Accessories/StatisBlessing.cs | 4 +- Items/Accessories/StatisCurse.cs | 4 +- Items/Accessories/StatisNinjaBelt.cs | 4 +- Items/Accessories/StressPills.cs | 4 +- Items/Accessories/SummonLevelMeter.cs | 4 +- .../SupremeBaitTackleBoxFishingStation.cs | 4 +- Items/Accessories/TheAbsorber.cs | 4 +- Items/Accessories/TheAmalgam.cs | 18 +- Items/Accessories/TheCommunity.cs | 4 +- Items/Accessories/TheFirstShadowflame.cs | 4 +- Items/Accessories/VitalJelly.cs | 4 +- Items/Accessories/VoidofExtinction.cs | 8 +- Items/Accessories/WifeinaBottle.cs | 12 +- Items/Accessories/WifeinaBottlewithBoobs.cs | 12 +- Items/Accessories/Wings/AureateWings.cs | 12 +- Items/Accessories/Wings/CelestialTracers.cs | 4 +- Items/Accessories/Wings/DiscordianWings.cs | 12 +- Items/Accessories/Wings/DrewsWings.cs | 4 +- Items/Accessories/Wings/ElysianTracers.cs | 4 +- Items/Accessories/Wings/HadarianWings.cs | 8 +- Items/Accessories/Wings/InfinityBoots.cs | 4 +- Items/Accessories/Wings/MOAB.cs | 4 +- Items/Accessories/Wings/SkylineWings.cs | 4 +- Items/Accessories/Wings/StarlightWings.cs | 12 +- Items/Accessories/Wings/TarragonWings.cs | 12 +- Items/Accessories/Wings/XerocWings.cs | 6 +- Items/Accessories/YharimsInsignia.cs | 4 +- Items/Amidias/AmidiasTrident.cs | 6 +- Items/Amidias/CoralCannon.cs | 8 +- Items/Amidias/MagicalConch.cs | 8 +- Items/Amidias/Shellshooter.cs | 8 +- Items/Amidias/UrchinFlail.cs | 6 +- Items/Amidias/Waywasher.cs | 8 +- Items/Ammo/AstralSolution.cs | 6 +- Items/AquaticScourge/AquaticEmblem.cs | 4 +- Items/AquaticScourge/AquaticScourgeBag.cs | 23 +- Items/AquaticScourge/Seafood.cs | 8 +- Items/Armor/AbyssalDivingSuit.cs | 4 +- Items/Armor/AerospecBreastplate.cs | 4 +- Items/Armor/AerospecHat.cs | 6 +- Items/Armor/AerospecHeadgear.cs | 6 +- Items/Armor/AerospecHelm.cs | 6 +- Items/Armor/AerospecHelmet.cs | 14 +- Items/Armor/AerospecHood.cs | 6 +- Items/Armor/AerospecLeggings.cs | 4 +- Items/Armor/AstralBreastplate.cs | 4 +- Items/Armor/AstralHelm.cs | 6 +- Items/Armor/AstralLeggings.cs | 4 +- Items/Armor/AstrumDeusMask.cs | 4 +- Items/Armor/AtaxiaArmor.cs | 4 +- Items/Armor/AtaxiaHeadgear.cs | 6 +- Items/Armor/AtaxiaHelm.cs | 6 +- Items/Armor/AtaxiaHelmet.cs | 14 +- Items/Armor/AtaxiaHood.cs | 6 +- Items/Armor/AtaxiaMask.cs | 6 +- Items/Armor/AtaxiaSubligar.cs | 4 +- Items/Armor/AureusMask.cs | 4 +- Items/Armor/AuricTeslaBodyArmor.cs | 4 +- Items/Armor/AuricTeslaCuisses.cs | 4 +- Items/Armor/AuricTeslaHelm.cs | 6 +- Items/Armor/AuricTeslaHoodedFacemask.cs | 6 +- Items/Armor/AuricTeslaPlumedHelm.cs | 6 +- Items/Armor/AuricTeslaSpaceHelmet.cs | 40 +- Items/Armor/AuricTeslaWireHemmedVisage.cs | 6 +- Items/Armor/BloodflareBodyArmor.cs | 4 +- Items/Armor/BloodflareCuisses.cs | 4 +- Items/Armor/BloodflareHelm.cs | 6 +- Items/Armor/BloodflareHelmet.cs | 6 +- Items/Armor/BloodflareHornedHelm.cs | 6 +- Items/Armor/BloodflareHornedMask.cs | 6 +- Items/Armor/BloodflareMask.cs | 6 +- Items/Armor/CalamitasMask.cs | 4 +- Items/Armor/CrabulonMask.cs | 4 +- Items/Armor/CryogenMask.cs | 4 +- Items/Armor/DaedalusBreastplate.cs | 4 +- Items/Armor/DaedalusHat.cs | 6 +- Items/Armor/DaedalusHeadgear.cs | 14 +- Items/Armor/DaedalusHelm.cs | 6 +- Items/Armor/DaedalusHelmet.cs | 6 +- Items/Armor/DaedalusLeggings.cs | 4 +- Items/Armor/DaedalusVisor.cs | 6 +- Items/Armor/DemonshadeBreastplate.cs | 4 +- Items/Armor/DemonshadeGreaves.cs | 4 +- Items/Armor/DemonshadeHelm.cs | 14 +- Items/Armor/DesertScourgeMask.cs | 4 +- Items/Armor/DevourerofGodsMask.cs | 4 +- Items/Armor/GodSlayerChestplate.cs | 4 +- Items/Armor/GodSlayerHelm.cs | 6 +- Items/Armor/GodSlayerHelmet.cs | 6 +- Items/Armor/GodSlayerHornedHelm.cs | 32 +- Items/Armor/GodSlayerLeggings.cs | 4 +- Items/Armor/GodSlayerMask.cs | 6 +- Items/Armor/GodSlayerVisage.cs | 6 +- Items/Armor/HiveMindMask.cs | 4 +- Items/Armor/LeviathanMask.cs | 4 +- Items/Armor/MolluskShelleggings.cs | 8 +- Items/Armor/MolluskShellmet.cs | 18 +- Items/Armor/MolluskShellplate.cs | 8 +- Items/Armor/OmegaBlueChestplate.cs | 12 +- Items/Armor/OmegaBlueHelmet.cs | 14 +- Items/Armor/OmegaBlueLeggings.cs | 12 +- Items/Armor/PerforatorMask.cs | 4 +- Items/Armor/PlaguebringerGoliathMask.cs | 4 +- Items/Armor/ProvidenceMask.cs | 4 +- Items/Armor/ReaverCap.cs | 6 +- Items/Armor/ReaverCuisses.cs | 4 +- Items/Armor/ReaverHelm.cs | 6 +- Items/Armor/ReaverHelmet.cs | 14 +- Items/Armor/ReaverMask.cs | 6 +- Items/Armor/ReaverScaleMail.cs | 4 +- Items/Armor/ReaverVisage.cs | 6 +- Items/Armor/ShroomiteVisage.cs | 4 +- Items/Armor/SilvaArmor.cs | 4 +- Items/Armor/SilvaHelm.cs | 6 +- Items/Armor/SilvaHelmet.cs | 14 +- Items/Armor/SilvaHornedHelm.cs | 6 +- Items/Armor/SilvaLeggings.cs | 4 +- Items/Armor/SilvaMask.cs | 6 +- Items/Armor/SilvaMaskedCap.cs | 6 +- Items/Armor/SirensHeart.cs | 4 +- Items/Armor/SirensHeartAlt.cs | 4 +- Items/Armor/SlimeGodMask.cs | 4 +- Items/Armor/SlimeGodMask2.cs | 4 +- Items/Armor/StatigelArmor.cs | 4 +- Items/Armor/StatigelCap.cs | 6 +- Items/Armor/StatigelGreaves.cs | 4 +- Items/Armor/StatigelHeadgear.cs | 6 +- Items/Armor/StatigelHelm.cs | 6 +- Items/Armor/StatigelHood.cs | 18 +- Items/Armor/StatigelMask.cs | 6 +- Items/Armor/TarragonBreastplate.cs | 4 +- Items/Armor/TarragonHelm.cs | 6 +- Items/Armor/TarragonHelmet.cs | 6 +- Items/Armor/TarragonHornedHelm.cs | 6 +- Items/Armor/TarragonLeggings.cs | 4 +- Items/Armor/TarragonMask.cs | 6 +- Items/Armor/TarragonVisage.cs | 6 +- Items/Armor/VictideBreastplate.cs | 4 +- Items/Armor/VictideHeadgear.cs | 6 +- Items/Armor/VictideHelm.cs | 6 +- Items/Armor/VictideHelmet.cs | 14 +- Items/Armor/VictideLeggings.cs | 4 +- Items/Armor/VictideMask.cs | 6 +- Items/Armor/VictideVisage.cs | 6 +- Items/Armor/WulfrumArmor.cs | 4 +- Items/Armor/WulfrumHeadgear.cs | 6 +- Items/Armor/WulfrumHelm.cs | 6 +- Items/Armor/WulfrumHelmet.cs | 6 +- Items/Armor/WulfrumHood.cs | 6 +- Items/Armor/WulfrumLeggings.cs | 4 +- Items/Armor/WulfrumMask.cs | 6 +- Items/Armor/XerocCuisses.cs | 4 +- Items/Armor/XerocMask.cs | 6 +- Items/Armor/XerocPlateMail.cs | 4 +- Items/Armor/YharonMask.cs | 4 +- Items/Astrageldon/AstrageldonBag.cs | 19 +- Items/Astrageldon/AstralChunk.cs | 8 +- Items/Astrageldon/AstralJelly.cs | 4 +- Items/AstrumDeus/AstrumDeusBag.cs | 19 +- Items/AstrumDeus/Starcore.cs | 10 +- Items/BrimstoneKey.cs | 2 +- Items/BrimstoneWaifu/Abaddon.cs | 6 +- Items/BrimstoneWaifu/BrimstoneWaifuBag.cs | 25 +- Items/BrimstoneWaifu/CharredIdol.cs | 8 +- Items/BrimstoneWaifu/Gehenna.cs | 6 +- Items/BrimstoneWaifu/RoseStone.cs | 12 +- Items/Bumblefuck/BirbPheromones.cs | 8 +- Items/Bumblefuck/BumblebirbBag.cs | 15 +- Items/Bumblefuck/EffulgentFeather.cs | 4 +- Items/Calamitas/BlightedEyeball.cs | 11 +- Items/Calamitas/CalamitasBag.cs | 29 +- Items/Calamitas/CalamityDust.cs | 4 +- Items/Calamitas/CalamityRing.cs | 7 +- Items/Calamitas/ChaosStone.cs | 4 +- .../AccretionDisk.cs | 6 +- .../AdamantiteThrowingAxe.cs | 6 +- .../BallisticPoisonBomb.cs | 6 +- .../BlastBarrel.cs | 4 +- .../BlazingStar.cs | 8 +- .../BloodsoakedCrasher.cs | 12 +- .../BouncingEyeball.cs | 8 +- .../BrackishFlask.cs | 6 +- .../CalamityCustomThrowingDamage/Brimblade.cs | 6 +- .../CalamityDamageItem.cs | 4 +- .../CelestialReaper.cs | 6 +- .../CalamityCustomThrowingDamage/Celestus.cs | 6 +- .../CalamityCustomThrowingDamage/Cinquedea.cs | 6 +- .../CobaltKunai.cs | 6 +- .../ConsecratedWater.cs | 8 +- .../CosmicKunai.cs | 4 +- .../CraniumSmasher.cs | 8 +- .../CrushsawCrasher.cs | 6 +- .../CrystalPiercer.cs | 6 +- .../Crystalline.cs | 6 +- .../CursedDagger.cs | 4 +- .../DuststormInABottle.cs | 6 +- .../EclipsesFall.cs | 12 +- .../EmpyreanKnivesThrown.cs | 6 +- .../EnchantedAxe.cs | 14 +- .../Eradicator.cs | 4 +- .../ExecutionersBlade.cs | 6 +- .../FeatherKnife.cs | 6 +- .../FlameScythe.cs | 6 +- .../FrostyFlare.cs | 4 +- .../GacruxianMollusk.cs | 6 +- .../GalaxySmasherRogue.cs | 6 +- Items/CalamityCustomThrowingDamage/GelDart.cs | 6 +- .../GhoulishGouger.cs | 4 +- Items/CalamityCustomThrowingDamage/Glaive.cs | 4 +- .../HeavenfallenStardisk.cs | 4 +- Items/CalamityCustomThrowingDamage/IceStar.cs | 6 +- .../Icebreaker.cs | 6 +- .../IchorSpear.cs | 4 +- .../IronFrancisca.cs | 6 +- Items/CalamityCustomThrowingDamage/Kylie.cs | 6 +- .../LeadTomahawk.cs | 6 +- .../CalamityCustomThrowingDamage/Lionfish.cs | 4 +- .../CalamityCustomThrowingDamage/Malachite.cs | 8 +- .../MangroveChakram.cs | 6 +- .../MeteorFist.cs | 6 +- .../MoltenAmputator.cs | 4 +- .../MonkeyDarts.cs | 8 +- .../CalamityCustomThrowingDamage/Mycoroot.cs | 4 +- .../MythrilKnife.cs | 6 +- .../NanoblackReaperRogue.cs | 6 +- .../OrichalcumSpikedGemstone.cs | 6 +- .../PalladiumJavelin.cs | 6 +- .../Patreon/CorpusAvertor.cs | 4 +- .../Patreon/DeepSeaDumbbell.cs | 4 +- .../Patreon/KelvinCatalyst.cs | 6 +- .../Patreon/Plaguenade.cs | 6 +- .../Patreon/TimeBolt.cs | 6 +- .../Prismalline.cs | 6 +- .../ProfanedTrident.cs | 4 +- .../Pwnagehammer.cs | 6 +- .../RadiantStar.cs | 6 +- .../RareVariants/DuneHopper.cs | 4 +- .../RareVariants/Quasar.cs | 4 +- .../RareVariants/SpearofDestiny.cs | 6 +- .../RareVariants/TheReaper.cs | 4 +- Items/CalamityCustomThrowingDamage/RotBall.cs | 6 +- .../RoyalKnives.cs | 8 +- .../SandDollar.cs | 4 +- .../ScarletDevil.cs | 6 +- .../ScourgeoftheCosmosThrown.cs | 6 +- .../ScourgeoftheDesert.cs | 4 +- .../ScourgeoftheSeas.cs | 6 +- .../SeafoamBomb.cs | 6 +- .../SeashellBoomerang.cs | 6 +- .../ShatteredSun.cs | 6 +- .../CalamityCustomThrowingDamage/SlickCane.cs | 8 +- .../CalamityCustomThrowingDamage/SnapClam.cs | 4 +- .../SpearofPaleolith.cs | 6 +- .../StellarContemptRogue.cs | 6 +- .../StellarKnife.cs | 4 +- .../StormfrontRazor.cs | 10 +- .../TarragonThrowingDart.cs | 6 +- .../ThrowingBrick.cs | 8 +- .../TitaniumShuriken.cs | 6 +- .../CalamityCustomThrowingDamage/ToothBall.cs | 6 +- ...TriactisTruePaladinianMageHammerofMight.cs | 6 +- .../TruePaladinsHammer.cs | 6 +- .../UrchinStinger.cs | 4 +- .../UtensilPoker.cs | 18 +- .../Valediction.cs | 4 +- .../WulfrumKnife.cs | 6 +- .../XerocPitchfork.cs | 6 +- Items/CalamityGlobalItem.cs | 100 +-- Items/Crabulon/CrabulonBag.cs | 21 +- Items/Crabulon/DecapoditaSprout.cs | 8 +- Items/Crabulon/FungalClump.cs | 12 +- Items/Cryogen/CryoBar.cs | 4 +- Items/Cryogen/CryoKey.cs | 8 +- Items/Cryogen/CryoStone.cs | 4 +- Items/Cryogen/CryogenBag.cs | 35 +- Items/Cryogen/SoulofCryogen.cs | 4 +- Items/DesertScourge/AeroStone.cs | 4 +- Items/DesertScourge/DesertScourgeBag.cs | 29 +- Items/DesertScourge/DriedSeafood.cs | 12 +- Items/DesertScourge/OceanCrest.cs | 4 +- Items/DevourerMunsters/ArmoredShell.cs | 4 +- Items/DevourerMunsters/DarkPlasma.cs | 4 +- Items/DevourerMunsters/RuneofCos.cs | 16 +- Items/DevourerMunsters/TwistingNether.cs | 4 +- Items/DifficultyItems/Armageddon.cs | 8 +- Items/DifficultyItems/Death.cs | 8 +- Items/DifficultyItems/DefiledRune.cs | 8 +- Items/DifficultyItems/IronHeart.cs | 4 +- Items/DifficultyItems/MLGRune.cs | 4 +- Items/DifficultyItems/Revenge.cs | 8 +- Items/FabsolStuff/BloodyMary.cs | 6 +- Items/FabsolStuff/BlueCandle.cs | 6 +- Items/FabsolStuff/CaribbeanRum.cs | 6 +- Items/FabsolStuff/CinnamonRoll.cs | 6 +- Items/FabsolStuff/Everclear.cs | 6 +- Items/FabsolStuff/EvergreenGin.cs | 6 +- Items/FabsolStuff/FabsolsVodka.cs | 6 +- Items/FabsolStuff/Fireball.cs | 6 +- Items/FabsolStuff/GrapeBeer.cs | 6 +- Items/FabsolStuff/Margarita.cs | 8 +- Items/FabsolStuff/Moonshine.cs | 6 +- Items/FabsolStuff/MoscowMule.cs | 6 +- Items/FabsolStuff/OddMushroom.cs | 6 +- Items/FabsolStuff/PinkCandle.cs | 6 +- Items/FabsolStuff/PurpleCandle.cs | 6 +- Items/FabsolStuff/RedWine.cs | 6 +- Items/FabsolStuff/Rum.cs | 6 +- Items/FabsolStuff/Screwdriver.cs | 6 +- Items/FabsolStuff/StarBeamRye.cs | 6 +- Items/FabsolStuff/Tequila.cs | 6 +- Items/FabsolStuff/TequilaSunrise.cs | 6 +- Items/FabsolStuff/Vodka.cs | 6 +- Items/FabsolStuff/Whiskey.cs | 6 +- Items/FabsolStuff/WhiteWine.cs | 8 +- Items/FabsolStuff/YellowCandle.cs | 6 +- Items/Fishing/ArcturusAstroidean.cs | 4 +- Items/Fishing/AstralCrate.cs | 36 +- Items/Fishing/AstrophageItem.cs | 8 +- Items/Fishing/PolarisParrotfish.cs | 11 +- Items/Fishing/ProcyonidPrawn.cs | 4 +- Items/Fishing/TwinklingPollox.cs | 4 +- Items/Fishing/UrsaSergeant.cs | 6 +- Items/GreatSandShark/GrandScale.cs | 4 +- Items/GreatSandShark/SandstormsCore.cs | 8 +- Items/HiveMind/HiveMindBag.cs | 27 +- Items/HiveMind/RottenBrain.cs | 6 +- Items/HiveMind/Teratoma.cs | 8 +- Items/HiveMind/TrueShadowScale.cs | 4 +- Items/Leviathan/EnchantedPearl.cs | 4 +- Items/Leviathan/IOU.cs | 4 +- Items/Leviathan/LeviathanAmbergris.cs | 6 +- Items/Leviathan/LeviathanBag.cs | 29 +- Items/LoreItems/KnowledgeAquaticScourge.cs | 4 +- Items/LoreItems/KnowledgeAstralInfection.cs | 4 +- Items/LoreItems/KnowledgeAstrumAureus.cs | 4 +- Items/LoreItems/KnowledgeAstrumDeus.cs | 4 +- Items/LoreItems/KnowledgeBloodMoon.cs | 4 +- Items/LoreItems/KnowledgeBrainofCthulhu.cs | 4 +- Items/LoreItems/KnowledgeBrimstoneCrag.cs | 4 +- .../LoreItems/KnowledgeBrimstoneElemental.cs | 4 +- Items/LoreItems/KnowledgeBumblebirb.cs | 4 +- Items/LoreItems/KnowledgeCalamitas.cs | 4 +- Items/LoreItems/KnowledgeCalamitasClone.cs | 4 +- Items/LoreItems/KnowledgeCorruption.cs | 4 +- Items/LoreItems/KnowledgeCrabulon.cs | 6 +- Items/LoreItems/KnowledgeCrimson.cs | 4 +- Items/LoreItems/KnowledgeCryogen.cs | 4 +- Items/LoreItems/KnowledgeDesertScourge.cs | 4 +- Items/LoreItems/KnowledgeDestroyer.cs | 4 +- Items/LoreItems/KnowledgeDevourerofGods.cs | 4 +- Items/LoreItems/KnowledgeDukeFishron.cs | 4 +- Items/LoreItems/KnowledgeEaterofWorlds.cs | 4 +- Items/LoreItems/KnowledgeEyeofCthulhu.cs | 4 +- Items/LoreItems/KnowledgeGolem.cs | 4 +- Items/LoreItems/KnowledgeHiveMind.cs | 4 +- Items/LoreItems/KnowledgeLeviathanandSiren.cs | 4 +- Items/LoreItems/KnowledgeLunaticCultist.cs | 4 +- Items/LoreItems/KnowledgeMechs.cs | 4 +- Items/LoreItems/KnowledgeMoonLord.cs | 4 +- Items/LoreItems/KnowledgeOcean.cs | 4 +- Items/LoreItems/KnowledgePerforators.cs | 4 +- .../KnowledgePlaguebringerGoliath.cs | 4 +- Items/LoreItems/KnowledgePlantera.cs | 4 +- Items/LoreItems/KnowledgePolterghast.cs | 4 +- Items/LoreItems/KnowledgeProfanedGuardians.cs | 4 +- Items/LoreItems/KnowledgeProvidence.cs | 4 +- Items/LoreItems/KnowledgeQueenBee.cs | 4 +- Items/LoreItems/KnowledgeRavager.cs | 4 +- Items/LoreItems/KnowledgeSentinels.cs | 4 +- Items/LoreItems/KnowledgeSkeletron.cs | 4 +- Items/LoreItems/KnowledgeSkeletronPrime.cs | 4 +- Items/LoreItems/KnowledgeSlimeGod.cs | 4 +- Items/LoreItems/KnowledgeSulphurSea.cs | 4 +- Items/LoreItems/KnowledgeTwins.cs | 4 +- Items/LoreItems/KnowledgeUnderworld.cs | 4 +- Items/LoreItems/KnowledgeWallofFlesh.cs | 4 +- Items/LoreItems/KnowledgeYharon.cs | 4 +- Items/Materials/AerialiteBar.cs | 4 +- Items/Materials/AncientBoneDust.cs | 4 +- Items/Materials/BarofLife.cs | 4 +- Items/Materials/BeetleJuice.cs | 4 +- Items/Materials/BlightedLens.cs | 4 +- Items/Materials/BloodOrb.cs | 4 +- Items/Materials/BloodlettingEssence.cs | 4 +- Items/Materials/Bloodstone.cs | 4 +- Items/Materials/BloodstoneCore.cs | 4 +- Items/Materials/CalamitousEssence.cs | 4 +- Items/Materials/CoreofCalamity.cs | 4 +- Items/Materials/CoreofChaos.cs | 4 +- Items/Materials/CoreofCinder.cs | 4 +- Items/Materials/CoreofEleum.cs | 4 +- Items/Materials/CruptixBar.cs | 4 +- Items/Materials/DarksunFragment.cs | 4 +- Items/Materials/DemonicBoneAsh.cs | 4 +- Items/Materials/DesertFeather.cs | 4 +- Items/Materials/DraedonBar.cs | 4 +- Items/Materials/EbonianGel.cs | 4 +- Items/Materials/Ectoblood.cs | 4 +- Items/Materials/EndothermicEnergy.cs | 4 +- Items/Materials/EssenceofChaos.cs | 4 +- Items/Materials/EssenceofCinder.cs | 4 +- Items/Materials/EssenceofEleum.cs | 4 +- Items/Materials/FetidEssence.cs | 4 +- Items/Materials/GalacticaSingularity.cs | 4 +- Items/Materials/GypsyPowder.cs | 4 +- Items/Materials/HadarianMembrane.cs | 4 +- Items/Materials/HellcasterFragment.cs | 4 +- Items/Materials/LivingShard.cs | 4 +- Items/Materials/Lumenite.cs | 6 +- Items/Materials/ManeaterBulb.cs | 4 +- Items/Materials/MeldBlob.cs | 4 +- Items/Materials/MeldiateBar.cs | 4 +- Items/Materials/MurkyPaste.cs | 4 +- Items/Materials/MurkySludge.cs | 4 +- Items/Materials/NightmareFuel.cs | 4 +- Items/Materials/Phantoplasm.cs | 4 +- Items/Materials/ShadowspecBar.cs | 4 +- Items/Materials/Stardust.cs | 4 +- Items/Materials/StormlionMandible.cs | 4 +- Items/Materials/TrapperBulb.cs | 4 +- Items/Materials/UeliaceBar.cs | 4 +- Items/Materials/UnholyCore.cs | 4 +- Items/Materials/VerstaltiteBar.cs | 4 +- Items/Materials/VictideBar.cs | 4 +- Items/Materials/VictoryShard.cs | 4 +- Items/Materials/WulfrumShard.cs | 4 +- Items/Mounts/{Fab.cs => AlicornMount.cs} | 10 +- .../{FabExtra.png => AlicornMountExtra.png} | Bin .../{Fab_Back.png => AlicornMount_Back.png} | Bin .../{Fab_Front.png => AlicornMount_Front.png} | Bin .../Mounts/{AngryDog.cs => AngryDogMount.cs} | 11 +- ...gryDog_Back.png => AngryDogMount_Back.png} | Bin ...yDog_Front.png => AngryDogMount_Front.png} | Bin Items/Mounts/Brimrose.cs | 6 +- Items/Mounts/Crysthamyr.cs | 6 +- Items/Mounts/Fabsol.cs | 6 +- Items/Mounts/OnyxExcavator.cs | 14 +- Items/Mounts/PhuppersChair.cs | 6 +- Items/Mounts/SquishyBean.cs | 6 +- Items/Mounts/SquishyBeanMount.cs | 6 +- Items/Patreon/AngelicShotgun.cs | 16 +- Items/Patreon/ApronOfAffection.cs | 4 +- Items/Patreon/Ataraxia.cs | 12 +- Items/Patreon/BloodyVein.cs | 8 +- Items/Patreon/CorpusAvertorMelee.cs | 6 +- Items/Patreon/DarkSpark.cs | 8 +- Items/Patreon/DevilsSunrise.cs | 10 +- Items/Patreon/DivineRetribution.cs | 6 +- Items/Patreon/DodusHandcannon.cs | 4 +- Items/Patreon/DragonPow.cs | 6 +- Items/Patreon/FaceMelter.cs | 12 +- Items/Patreon/ForgottenDragonEgg.cs | 8 +- Items/Patreon/GazeOfCrysthamyr.cs | 6 +- Items/Patreon/HandheldTank.cs | 8 +- Items/Patreon/Karasawa.cs | 8 +- Items/Patreon/Keelhaul.cs | 6 +- Items/Patreon/KelvinCatalystMelee.cs | 6 +- Items/Patreon/LightGodsBrilliance.cs | 8 +- Items/Patreon/MadAlchemistsCocktailGlove.cs | 16 +- Items/Patreon/Nadir.cs | 6 +- Items/Patreon/NormalityRelocator.cs | 4 +- Items/Patreon/Oracle.cs | 6 +- Items/Patreon/ProfanedSoulArtifact.cs | 4 +- Items/Patreon/ResurrectionButterfly.cs | 10 +- Items/Patreon/Roxcalibur.cs | 14 +- Items/Patreon/TheLastMourning.cs | 6 +- Items/Patreon/ThePack.cs | 8 +- Items/Patreon/YateveoBloom.cs | 10 +- Items/Perforator/BloodSample.cs | 4 +- Items/Perforator/BloodyWormFood.cs | 8 +- Items/Perforator/BloodyWormTooth.cs | 4 +- Items/Perforator/PerforatorBag.cs | 31 +- Items/Permafrost/AbsoluteZero.cs | 10 +- Items/Permafrost/ArcticBearPaw.cs | 6 +- Items/Permafrost/ColdheartIcicle.cs | 6 +- Items/Permafrost/CryogenicStaff.cs | 6 +- Items/Permafrost/DeliciousMeat.cs | 4 +- Items/Permafrost/EnchantedMetal.cs | 4 +- Items/Permafrost/EternalBlizzard.cs | 8 +- Items/Permafrost/FrostbiteBlaster.cs | 4 +- Items/Permafrost/IcicleArrow.cs | 6 +- Items/Permafrost/IcicleTrident.cs | 6 +- Items/Permafrost/IcyBullet.cs | 6 +- Items/Permafrost/PermafrostsConcoction.cs | 4 +- Items/Permafrost/Popo.cs | 4 +- Items/Permafrost/WintersFury.cs | 10 +- Items/PermanentBoosters/BloodOrange.cs | 4 +- Items/PermanentBoosters/CometShard.cs | 4 +- Items/PermanentBoosters/Dragonfruit.cs | 4 +- Items/PermanentBoosters/Ectoheart.cs | 4 +- Items/PermanentBoosters/Elderberry.cs | 4 +- Items/PermanentBoosters/ElectrolyteGelPack.cs | 4 +- Items/PermanentBoosters/EtherealCore.cs | 4 +- Items/PermanentBoosters/InfernalBlood.cs | 4 +- Items/PermanentBoosters/MLGRune2.cs | 4 +- Items/PermanentBoosters/MiracleFruit.cs | 4 +- Items/PermanentBoosters/MushroomPlasmaRoot.cs | 4 +- Items/PermanentBoosters/PhantomHeart.cs | 4 +- .../RedLightningContainer.cs | 4 +- Items/PermanentBoosters/StarlightFuelCell.cs | 4 +- Items/Pets/BearEye.cs | 8 +- Items/Pets/CharredRelic.cs | 8 +- Items/Pets/CosmicPlushie.cs | 8 +- Items/Pets/FoxDrive.cs | 8 +- Items/Pets/IbarakiBox.cs | 8 +- Items/Pets/Levi.cs | 8 +- Items/Pets/RomajedaOrchid.cs | 8 +- Items/Pets/TrashmanTrashcan.cs | 8 +- Items/Placeables/AbyssGravel.cs | 6 +- Items/Placeables/AerialiteBrick.cs | 6 +- Items/Placeables/AerialiteBrickWall.cs | 8 +- Items/Placeables/AerialiteOre.cs | 6 +- Items/Placeables/AstrageldonTrophy.cs | 6 +- Items/Placeables/AstralBar.cs | 8 +- Items/Placeables/AstralBrick.cs | 6 +- Items/Placeables/AstralBrickWall.cs | 8 +- Items/Placeables/AstralChest.cs | 6 +- Items/Placeables/AstralDirt.cs | 8 +- Items/Placeables/AstralDirtWall.cs | 8 +- Items/Placeables/AstralGrassWall.cs | 6 +- Items/Placeables/AstralIce.cs | 8 +- Items/Placeables/AstralIceWall.cs | 8 +- Items/Placeables/AstralMonolith.cs | 6 +- Items/Placeables/AstralMonolithWall.cs | 6 +- Items/Placeables/AstralOre.cs | 6 +- Items/Placeables/AstralSand.cs | 6 +- Items/Placeables/AstralSandstone.cs | 8 +- Items/Placeables/AstralSandstoneWall.cs | 8 +- Items/Placeables/AstralStone.cs | 8 +- Items/Placeables/AstralStoneWall.cs | 8 +- Items/Placeables/AstrumDeusTrophy.cs | 6 +- Items/Placeables/AuricOre.cs | 6 +- Items/Placeables/Banners/AeroSlimeBanner.cs | 6 +- .../Placeables/Banners/AmberCrawlerBanner.cs | 6 +- .../Banners/AmethystCrawlerBanner.cs | 6 +- Items/Placeables/Banners/AngryDogBanner.cs | 6 +- .../Banners/AquaticAberrationBanner.cs | 6 +- .../Banners/AquaticParasiteBanner.cs | 6 +- .../Placeables/Banners/AquaticSeekerBanner.cs | 6 +- .../Placeables/Banners/AquaticUrchinBanner.cs | 6 +- Items/Placeables/Banners/AriesBanner.cs | 6 +- .../Placeables/Banners/ArmoredDiggerBanner.cs | 6 +- Items/Placeables/Banners/AstralProbeBanner.cs | 6 +- Items/Placeables/Banners/AstralSlimeBanner.cs | 6 +- .../Placeables/Banners/AstralachneaBanner.cs | 6 +- Items/Placeables/Banners/AtlasBanner.cs | 6 +- Items/Placeables/Banners/BOHLDOHRBanner.cs | 6 +- .../Placeables/Banners/BigSightseerBanner.cs | 6 +- Items/Placeables/Banners/BlightedEyeBanner.cs | 6 +- .../Placeables/Banners/BlindedAnglerBanner.cs | 6 +- Items/Placeables/Banners/BloatfishBanner.cs | 6 +- Items/Placeables/Banners/BloomSlimeBanner.cs | 6 +- Items/Placeables/Banners/BobbitWormBanner.cs | 6 +- .../Placeables/Banners/BoxJellyfishBanner.cs | 6 +- Items/Placeables/Banners/CalamityEyeBanner.cs | 6 +- Items/Placeables/Banners/CatfishBanner.cs | 6 +- .../Placeables/Banners/ChaoticPufferBanner.cs | 6 +- .../Placeables/Banners/CharredSlimeBanner.cs | 6 +- Items/Placeables/Banners/ClamBanner.cs | 6 +- .../Banners/CloudElementalBanner.cs | 6 +- Items/Placeables/Banners/CnidrionBanner.cs | 6 +- .../Placeables/Banners/ColossalSquidBanner.cs | 6 +- .../Banners/CosmicElementalBanner.cs | 6 +- .../Banners/CrimulanBlightSlimeBanner.cs | 6 +- Items/Placeables/Banners/CryoSlimeBanner.cs | 6 +- Items/Placeables/Banners/CryonBanner.cs | 6 +- .../Banners/CrystalCrawlerBanner.cs | 6 +- .../Banners/CultistAssassinBanner.cs | 6 +- Items/Placeables/Banners/CuttlefishBanner.cs | 6 +- .../Placeables/Banners/DespairStoneBanner.cs | 6 +- Items/Placeables/Banners/DevilFishBanner.cs | 6 +- .../Banners/DiamondCrawlerBanner.cs | 6 +- .../Banners/EarthElementalBanner.cs | 6 +- .../Banners/EbonianBlightSlimeBanner.cs | 6 +- Items/Placeables/Banners/EidolistBanner.cs | 6 +- .../Banners/EidolonWyrmJuvenileBanner.cs | 6 +- .../Banners/EmeraldCrawlerBanner.cs | 6 +- .../Placeables/Banners/EutrophicRayBanner.cs | 6 +- Items/Placeables/Banners/FlounderBanner.cs | 6 +- Items/Placeables/Banners/FrogfishBanner.cs | 6 +- .../Placeables/Banners/FusionFeederBanner.cs | 6 +- Items/Placeables/Banners/GhostBellBanner.cs | 6 +- .../Banners/GhostBellSmallBanner.cs | 6 +- Items/Placeables/Banners/GiantClamBanner.cs | 6 +- Items/Placeables/Banners/GiantSquidBanner.cs | 6 +- Items/Placeables/Banners/GnasherBanner.cs | 6 +- .../Banners/GreatSandSharkBanner.cs | 6 +- Items/Placeables/Banners/GulperEelBanner.cs | 6 +- Items/Placeables/Banners/HadarianBanner.cs | 6 +- Items/Placeables/Banners/HeatSpiritBanner.cs | 6 +- Items/Placeables/Banners/HiveBanner.cs | 6 +- Items/Placeables/Banners/IceClasperBanner.cs | 6 +- .../Banners/ImpiousImmolatorBanner.cs | 6 +- .../Banners/IrradiatedSlimeBanner.cs | 6 +- Items/Placeables/Banners/LaserfishBanner.cs | 6 +- .../Banners/LuminousCorvinaBanner.cs | 6 +- Items/Placeables/Banners/MantisBanner.cs | 6 +- .../Placeables/Banners/MantisShrimpBanner.cs | 6 +- Items/Placeables/Banners/MaulerBanner.cs | 6 +- Items/Placeables/Banners/MelterBanner.cs | 6 +- Items/Placeables/Banners/MirageJellyBanner.cs | 6 +- Items/Placeables/Banners/MorayEelBanner.cs | 6 +- Items/Placeables/Banners/NovaBanner.cs | 6 +- Items/Placeables/Banners/OarfishBanner.cs | 6 +- .../Banners/OverloadedSoldierBanner.cs | 6 +- Items/Placeables/Banners/ParaseaBanner.cs | 6 +- .../Banners/PerennialSlimeBanner.cs | 6 +- .../Banners/PestilentSlimeBanner.cs | 6 +- .../Placeables/Banners/PhantomDebrisBanner.cs | 6 +- .../Placeables/Banners/PhantomSpiritBanner.cs | 6 +- Items/Placeables/Banners/PiggyBanner.cs | 6 +- Items/Placeables/Banners/PitbullBanner.cs | 6 +- .../Placeables/Banners/PlagueChargerBanner.cs | 6 +- .../Placeables/Banners/PlaguebringerBanner.cs | 6 +- Items/Placeables/Banners/PlagueshellBanner.cs | 6 +- Items/Placeables/Banners/PrismTurtleBanner.cs | 6 +- .../Banners/ProfanedEnergyBanner.cs | 6 +- Items/Placeables/Banners/ReaperSharkBanner.cs | 6 +- Items/Placeables/Banners/RubyCrawlerBanner.cs | 6 +- .../Placeables/Banners/SandTortoiseBanner.cs | 6 +- .../Banners/SapphireCrawlerBanner.cs | 6 +- Items/Placeables/Banners/ScornEaterBanner.cs | 6 +- Items/Placeables/Banners/ScryllarBanner.cs | 6 +- Items/Placeables/Banners/SeaFloatyBanner.cs | 6 +- Items/Placeables/Banners/SeaMinnowBanner.cs | 6 +- Items/Placeables/Banners/SeaSerpentBanner.cs | 6 +- Items/Placeables/Banners/SeaUrchinBanner.cs | 6 +- .../Banners/ShockstormShuttleBanner.cs | 6 +- .../Banners/SmallSightseerBanner.cs | 6 +- Items/Placeables/Banners/SoulSluperBanner.cs | 6 +- .../Placeables/Banners/StellarCulexBanner.cs | 6 +- Items/Placeables/Banners/StormlionBanner.cs | 6 +- Items/Placeables/Banners/SunBatBanner.cs | 6 +- Items/Placeables/Banners/SunskaterBanner.cs | 6 +- .../Placeables/Banners/TopazCrawlerBanner.cs | 6 +- Items/Placeables/Banners/ToxicMinnowBanner.cs | 6 +- Items/Placeables/Banners/TrasherBanner.cs | 6 +- Items/Placeables/Banners/ViperfishBanner.cs | 6 +- Items/Placeables/Banners/VirulingBanner.cs | 6 +- .../Placeables/Banners/WulfrumDroneBanner.cs | 6 +- .../Placeables/Banners/WulfrumSlimeBanner.cs | 6 +- Items/Placeables/BlueBrickWallUnsafe.cs | 4 +- Items/Placeables/BlueSlabWallUnsafe.cs | 4 +- Items/Placeables/BlueTiledWallUnsafe.cs | 4 +- Items/Placeables/BrimstoneElementalTrophy.cs | 6 +- Items/Placeables/BrimstoneSlag.cs | 6 +- Items/Placeables/BrimstoneSlagWall.cs | 6 +- Items/Placeables/BumblebirbTrophy.cs | 6 +- Items/Placeables/CalamitasTrophy.cs | 6 +- Items/Placeables/CataclysmTrophy.cs | 6 +- Items/Placeables/CatastropheTrophy.cs | 6 +- Items/Placeables/CeaselessVoidTrophy.cs | 6 +- Items/Placeables/ChaosCandle.cs | 6 +- Items/Placeables/ChaoticBrick.cs | 6 +- Items/Placeables/ChaoticBrickWall.cs | 6 +- Items/Placeables/ChaoticOre.cs | 6 +- Items/Placeables/CharredOre.cs | 6 +- Items/Placeables/Cinderplate.cs | 6 +- Items/Placeables/CinderplateWall.cs | 6 +- Items/Placeables/CrabulonTrophy.cs | 6 +- Items/Placeables/CryogenTrophy.cs | 6 +- Items/Placeables/CryonicBrick.cs | 6 +- Items/Placeables/CryonicBrickWall.cs | 8 +- Items/Placeables/CryonicOre.cs | 6 +- Items/Placeables/DesertScourgeTrophy.cs | 6 +- Items/Placeables/DevourerofGodsTrophy.cs | 6 +- Items/Placeables/DraedonsForge.cs | 6 +- Items/Placeables/EutrophicSand.cs | 6 +- Items/Placeables/EutrophicSandWall.cs | 6 +- Items/Placeables/EutrophicSandWallSafe.cs | 6 +- Items/Placeables/ExodiumClusterOre.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssBath.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssBed.cs | 6 +- .../FurnitureAbyss/AbyssBookcase.cs | 6 +- .../FurnitureAbyss/AbyssCandelabra.cs | 6 +- .../Placeables/FurnitureAbyss/AbyssCandle.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssChair.cs | 6 +- .../FurnitureAbyss/AbyssChandelier.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssChest.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssClock.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssDoor.cs | 6 +- .../Placeables/FurnitureAbyss/AbyssDresser.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssLamp.cs | 6 +- .../Placeables/FurnitureAbyss/AbyssLantern.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssPiano.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssSink.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssSofa.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssTable.cs | 6 +- Items/Placeables/FurnitureAbyss/AbyssTorch.cs | 8 +- .../FurnitureAbyss/AbyssWorkbench.cs | 6 +- .../FurnitureAbyss/SmoothAbyssGravel.cs | 6 +- .../SmoothAbyssGravelPlatform.cs | 6 +- .../FurnitureAbyss/SmoothAbyssGravelWall.cs | 6 +- .../FurnitureAncient/AncientAltar.cs | 6 +- .../FurnitureAncient/AncientBasin.cs | 6 +- .../FurnitureAncient/AncientBath.cs | 6 +- .../Placeables/FurnitureAncient/AncientBed.cs | 6 +- .../FurnitureAncient/AncientBookcase.cs | 6 +- .../FurnitureAncient/AncientChair.cs | 6 +- .../FurnitureAncient/AncientChandelier.cs | 6 +- .../FurnitureAncient/AncientDoor.cs | 6 +- .../FurnitureAncient/AncientDresser.cs | 6 +- .../FurnitureAncient/AncientLamp.cs | 6 +- .../FurnitureAncient/AncientLantern.cs | 6 +- .../FurnitureAncient/AncientMonolith.cs | 6 +- .../FurnitureAncient/AncientPiano.cs | 6 +- .../FurnitureAncient/AncientSink.cs | 6 +- .../FurnitureAncient/AncientSofa.cs | 6 +- .../FurnitureAncient/AncientTable.cs | 6 +- .../FurnitureAncient/AncientWorkbench.cs | 6 +- Items/Placeables/FurnitureAshen/AshenAltar.cs | 6 +- Items/Placeables/FurnitureAshen/AshenBasin.cs | 6 +- Items/Placeables/FurnitureAshen/AshenBath.cs | 6 +- Items/Placeables/FurnitureAshen/AshenBed.cs | 6 +- .../FurnitureAshen/AshenBookcase.cs | 6 +- .../FurnitureAshen/AshenCandelabra.cs | 6 +- .../Placeables/FurnitureAshen/AshenCandle.cs | 6 +- Items/Placeables/FurnitureAshen/AshenChair.cs | 6 +- .../FurnitureAshen/AshenChandelier.cs | 6 +- Items/Placeables/FurnitureAshen/AshenChest.cs | 6 +- Items/Placeables/FurnitureAshen/AshenDoor.cs | 6 +- .../Placeables/FurnitureAshen/AshenDresser.cs | 6 +- Items/Placeables/FurnitureAshen/AshenLamp.cs | 6 +- .../Placeables/FurnitureAshen/AshenLantern.cs | 6 +- .../FurnitureAshen/AshenMonolith.cs | 6 +- Items/Placeables/FurnitureAshen/AshenPiano.cs | 6 +- .../FurnitureAshen/AshenPlatform.cs | 6 +- Items/Placeables/FurnitureAshen/AshenSink.cs | 6 +- Items/Placeables/FurnitureAshen/AshenSlab.cs | 6 +- .../FurnitureAshen/AshenSlabWall.cs | 6 +- Items/Placeables/FurnitureAshen/AshenSofa.cs | 6 +- Items/Placeables/FurnitureAshen/AshenTable.cs | 6 +- .../FurnitureAshen/AshenWorkbench.cs | 6 +- .../FurnitureAshen/SmoothBrimstoneSlag.cs | 6 +- .../FurnitureAshen/SmoothBrimstoneSlagWall.cs | 6 +- .../FurnitureBotanic/BotanicBathtub.cs | 6 +- .../Placeables/FurnitureBotanic/BotanicBed.cs | 6 +- .../FurnitureBotanic/BotanicBench.cs | 6 +- .../FurnitureBotanic/BotanicBookcase.cs | 6 +- .../FurnitureBotanic/BotanicCandelabra.cs | 6 +- .../FurnitureBotanic/BotanicCandle.cs | 6 +- .../FurnitureBotanic/BotanicChair.cs | 6 +- .../FurnitureBotanic/BotanicChandelier.cs | 6 +- .../FurnitureBotanic/BotanicChest.cs | 6 +- .../FurnitureBotanic/BotanicClock.cs | 6 +- .../FurnitureBotanic/BotanicDoor.cs | 6 +- .../FurnitureBotanic/BotanicDresser.cs | 6 +- .../FurnitureBotanic/BotanicLamp.cs | 6 +- .../FurnitureBotanic/BotanicLantern.cs | 6 +- .../FurnitureBotanic/BotanicPiano.cs | 6 +- .../FurnitureBotanic/BotanicPlanter.cs | 6 +- .../FurnitureBotanic/BotanicPlatform.cs | 6 +- .../FurnitureBotanic/BotanicSink.cs | 6 +- .../FurnitureBotanic/BotanicTable.cs | 6 +- .../FurnitureBotanic/BotanicWorkBench.cs | 6 +- .../FurnitureCosmilite/CosmiliteBath.cs | 6 +- .../FurnitureCosmilite/CosmiliteBed.cs | 6 +- .../FurnitureCosmilite/CosmiliteBookcase.cs | 6 +- .../FurnitureCosmilite/CosmiliteBrick.cs | 6 +- .../FurnitureCosmilite/CosmiliteBrickWall.cs | 6 +- .../FurnitureCosmilite/CosmiliteCandelabra.cs | 6 +- .../FurnitureCosmilite/CosmiliteCandle.cs | 6 +- .../FurnitureCosmilite/CosmiliteChair.cs | 6 +- .../FurnitureCosmilite/CosmiliteChandelier.cs | 6 +- .../FurnitureCosmilite/CosmiliteChest.cs | 6 +- .../FurnitureCosmilite/CosmiliteClock.cs | 6 +- .../FurnitureCosmilite/CosmiliteDoor.cs | 6 +- .../FurnitureCosmilite/CosmiliteDresser.cs | 6 +- .../FurnitureCosmilite/CosmiliteLamp.cs | 6 +- .../FurnitureCosmilite/CosmiliteLantern.cs | 6 +- .../FurnitureCosmilite/CosmilitePiano.cs | 6 +- .../FurnitureCosmilite/CosmilitePlatform.cs | 6 +- .../FurnitureCosmilite/CosmiliteSconce.cs | 6 +- .../FurnitureCosmilite/CosmiliteSink.cs | 6 +- .../FurnitureCosmilite/CosmiliteSofa.cs | 6 +- .../FurnitureCosmilite/CosmiliteTable.cs | 6 +- .../FurnitureCosmilite/CosmiliteWorkbench.cs | 6 +- .../FurnitureEutrophic/EutrophicBathtub.cs | 8 +- .../FurnitureEutrophic/EutrophicBed.cs | 8 +- .../FurnitureEutrophic/EutrophicBench.cs | 8 +- .../FurnitureEutrophic/EutrophicBookcase.cs | 8 +- .../FurnitureEutrophic/EutrophicCandelabra.cs | 10 +- .../FurnitureEutrophic/EutrophicCandle.cs | 10 +- .../FurnitureEutrophic/EutrophicChair.cs | 8 +- .../FurnitureEutrophic/EutrophicChandelier.cs | 12 +- .../FurnitureEutrophic/EutrophicChest.cs | 10 +- .../FurnitureEutrophic/EutrophicClock.cs | 12 +- .../FurnitureEutrophic/EutrophicCrafting.cs | 12 +- .../FurnitureEutrophic/EutrophicDoor.cs | 8 +- .../FurnitureEutrophic/EutrophicDresser.cs | 8 +- .../FurnitureEutrophic/EutrophicLamp.cs | 10 +- .../FurnitureEutrophic/EutrophicLantern.cs | 10 +- .../FurnitureEutrophic/EutrophicPiano.cs | 8 +- .../FurnitureEutrophic/EutrophicPlatform.cs | 8 +- .../FurnitureEutrophic/EutrophicSink.cs | 8 +- .../FurnitureEutrophic/EutrophicTable.cs | 8 +- .../FurnitureEutrophic/EutrophicWorkBench.cs | 8 +- .../FurnitureEutrophic/SmoothNavystone.cs | 8 +- .../FurnitureEutrophic/SmoothNavystoneWall.cs | 8 +- .../FurnitureOccult/OccultBathtub.cs | 6 +- Items/Placeables/FurnitureOccult/OccultBed.cs | 6 +- .../FurnitureOccult/OccultBookcase.cs | 6 +- .../FurnitureOccult/OccultCandelabra.cs | 8 +- .../FurnitureOccult/OccultCandle.cs | 8 +- .../Placeables/FurnitureOccult/OccultChair.cs | 6 +- .../FurnitureOccult/OccultChandelier.cs | 8 +- .../Placeables/FurnitureOccult/OccultChest.cs | 8 +- .../Placeables/FurnitureOccult/OccultClock.cs | 8 +- .../Placeables/FurnitureOccult/OccultDoor.cs | 6 +- .../FurnitureOccult/OccultDresser.cs | 6 +- .../Placeables/FurnitureOccult/OccultLamp.cs | 8 +- .../FurnitureOccult/OccultLantern.cs | 8 +- .../Placeables/FurnitureOccult/OccultPiano.cs | 6 +- .../FurnitureOccult/OccultPlatform.cs | 6 +- .../Placeables/FurnitureOccult/OccultSink.cs | 6 +- .../Placeables/FurnitureOccult/OccultSofa.cs | 6 +- .../Placeables/FurnitureOccult/OccultStone.cs | 12 +- .../FurnitureOccult/OccultStoneWall.cs | 6 +- .../Placeables/FurnitureOccult/OccultTable.cs | 6 +- .../FurnitureOccult/OccultWorkBench.cs | 6 +- .../FurniturePlaguedPlate/PlagueInfuser.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlate.cs | 6 +- .../PlaguedPlateBasin.cs | 6 +- .../PlaguedPlateBathtub.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateBed.cs | 6 +- .../PlaguedPlateBookcase.cs | 6 +- .../PlaguedPlateCandelabra.cs | 6 +- .../PlaguedPlateCandle.cs | 6 +- .../PlaguedPlateChair.cs | 6 +- .../PlaguedPlateChandelier.cs | 6 +- .../PlaguedPlateChest.cs | 6 +- .../PlaguedPlateClock.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateDoor.cs | 6 +- .../PlaguedPlateDresser.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateLamp.cs | 6 +- .../PlaguedPlateLantern.cs | 6 +- .../PlaguedPlatePiano.cs | 6 +- .../PlaguedPlatePlatform.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateSink.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateSofa.cs | 6 +- .../PlaguedPlateTable.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateWall.cs | 6 +- .../PlaguedPlateWorkbench.cs | 6 +- .../FurnitureProfaned/ProfanedBasin.cs | 6 +- .../FurnitureProfaned/ProfanedBath.cs | 6 +- .../FurnitureProfaned/ProfanedBed.cs | 6 +- .../FurnitureProfaned/ProfanedBench.cs | 6 +- .../FurnitureProfaned/ProfanedBookcase.cs | 6 +- .../FurnitureProfaned/ProfanedCandelabra.cs | 6 +- .../FurnitureProfaned/ProfanedCandle.cs | 6 +- .../FurnitureProfaned/ProfanedChair.cs | 6 +- .../FurnitureProfaned/ProfanedChandelier.cs | 6 +- .../FurnitureProfaned/ProfanedChest.cs | 6 +- .../FurnitureProfaned/ProfanedClock.cs | 6 +- .../FurnitureProfaned/ProfanedCrystal.cs | 6 +- .../FurnitureProfaned/ProfanedCrystalWall.cs | 6 +- .../FurnitureProfaned/ProfanedDoor.cs | 6 +- .../FurnitureProfaned/ProfanedDresser.cs | 6 +- .../FurnitureProfaned/ProfanedLamp.cs | 6 +- .../FurnitureProfaned/ProfanedLantern.cs | 6 +- .../FurnitureProfaned/ProfanedPiano.cs | 6 +- .../FurnitureProfaned/ProfanedPlatform.cs | 6 +- .../FurnitureProfaned/ProfanedRock.cs | 6 +- .../FurnitureProfaned/ProfanedRockWall.cs | 6 +- .../FurnitureProfaned/ProfanedSink.cs | 6 +- .../FurnitureProfaned/ProfanedSlab.cs | 6 +- .../FurnitureProfaned/ProfanedSlabWall.cs | 6 +- .../FurnitureProfaned/ProfanedTable.cs | 6 +- .../FurnitureProfaned/ProfanedWorkbench.cs | 6 +- .../FurnitureProfaned/RunicProfanedBrick.cs | 6 +- .../RunicProfanedBrickWall.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaBasin.cs | 6 +- .../Placeables/FurnitureSilva/SilvaBathtub.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaBed.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaBench.cs | 6 +- .../FurnitureSilva/SilvaBookcase.cs | 6 +- .../FurnitureSilva/SilvaCandelabra.cs | 8 +- .../Placeables/FurnitureSilva/SilvaCandle.cs | 8 +- Items/Placeables/FurnitureSilva/SilvaChair.cs | 6 +- .../FurnitureSilva/SilvaChandelier.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaChest.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaClock.cs | 6 +- .../Placeables/FurnitureSilva/SilvaCrystal.cs | 26 +- Items/Placeables/FurnitureSilva/SilvaDoor.cs | 6 +- .../Placeables/FurnitureSilva/SilvaDresser.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaLamp.cs | 8 +- .../Placeables/FurnitureSilva/SilvaLantern.cs | 8 +- Items/Placeables/FurnitureSilva/SilvaPiano.cs | 6 +- .../FurnitureSilva/SilvaPlatform.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaSink.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaTable.cs | 6 +- Items/Placeables/FurnitureSilva/SilvaWall.cs | 6 +- .../FurnitureSilva/SilvaWorkBench.cs | 6 +- .../FurnitureStatigel/StaticRefiner.cs | 6 +- .../FurnitureStatigel/StatigelBath.cs | 6 +- .../FurnitureStatigel/StatigelBed.cs | 6 +- .../FurnitureStatigel/StatigelBlock.cs | 6 +- .../FurnitureStatigel/StatigelBookcase.cs | 6 +- .../FurnitureStatigel/StatigelCandelabra.cs | 6 +- .../FurnitureStatigel/StatigelCandle.cs | 6 +- .../FurnitureStatigel/StatigelChair.cs | 6 +- .../FurnitureStatigel/StatigelChandelier.cs | 6 +- .../FurnitureStatigel/StatigelChest.cs | 6 +- .../FurnitureStatigel/StatigelClock.cs | 6 +- .../FurnitureStatigel/StatigelDoor.cs | 6 +- .../FurnitureStatigel/StatigelDresser.cs | 6 +- .../FurnitureStatigel/StatigelLamp.cs | 6 +- .../FurnitureStatigel/StatigelLantern.cs | 6 +- .../FurnitureStatigel/StatigelPiano.cs | 6 +- .../FurnitureStatigel/StatigelPlatform.cs | 6 +- .../FurnitureStatigel/StatigelSink.cs | 6 +- .../FurnitureStatigel/StatigelSofa.cs | 6 +- .../FurnitureStatigel/StatigelTable.cs | 6 +- .../FurnitureStatigel/StatigelWall.cs | 6 +- .../FurnitureStatigel/StatigelWorkbench.cs | 6 +- .../FurnitureStratus/StratusBathtub.cs | 6 +- .../Placeables/FurnitureStratus/StratusBed.cs | 6 +- .../FurnitureStratus/StratusBookcase.cs | 6 +- .../FurnitureStratus/StratusBricks.cs | 6 +- .../FurnitureStratus/StratusCandelabra.cs | 6 +- .../FurnitureStratus/StratusCandle.cs | 6 +- .../FurnitureStratus/StratusChair.cs | 6 +- .../FurnitureStratus/StratusChandelier.cs | 6 +- .../FurnitureStratus/StratusChest.cs | 6 +- .../FurnitureStratus/StratusClock.cs | 6 +- .../FurnitureStratus/StratusDoor.cs | 6 +- .../FurnitureStratus/StratusDresser.cs | 6 +- .../FurnitureStratus/StratusLamp.cs | 6 +- .../FurnitureStratus/StratusLantern.cs | 6 +- .../FurnitureStratus/StratusPiano.cs | 6 +- .../FurnitureStratus/StratusPlatform.cs | 6 +- .../FurnitureStratus/StratusSink.cs | 6 +- .../FurnitureStratus/StratusSofa.cs | 6 +- .../FurnitureStratus/StratusTable.cs | 6 +- .../FurnitureStratus/StratusWall.cs | 6 +- .../FurnitureStratus/StratusWorkbench.cs | 6 +- .../FurnitureVoid/SmoothVoidstone.cs | 6 +- .../FurnitureVoid/SmoothVoidstonePlatform.cs | 6 +- .../FurnitureVoid/SmoothVoidstoneWall.cs | 6 +- Items/Placeables/FurnitureVoid/VoidBath.cs | 6 +- Items/Placeables/FurnitureVoid/VoidBed.cs | 6 +- .../Placeables/FurnitureVoid/VoidBookcase.cs | 6 +- .../FurnitureVoid/VoidCandelabra.cs | 6 +- Items/Placeables/FurnitureVoid/VoidCandle.cs | 6 +- Items/Placeables/FurnitureVoid/VoidChair.cs | 6 +- .../FurnitureVoid/VoidChandelier.cs | 6 +- Items/Placeables/FurnitureVoid/VoidChest.cs | 6 +- Items/Placeables/FurnitureVoid/VoidClock.cs | 6 +- .../Placeables/FurnitureVoid/VoidCondenser.cs | 6 +- Items/Placeables/FurnitureVoid/VoidDoor.cs | 6 +- Items/Placeables/FurnitureVoid/VoidDresser.cs | 6 +- Items/Placeables/FurnitureVoid/VoidLamp.cs | 6 +- Items/Placeables/FurnitureVoid/VoidLantern.cs | 6 +- Items/Placeables/FurnitureVoid/VoidPiano.cs | 6 +- Items/Placeables/FurnitureVoid/VoidSink.cs | 6 +- Items/Placeables/FurnitureVoid/VoidSofa.cs | 6 +- Items/Placeables/FurnitureVoid/VoidTable.cs | 6 +- .../Placeables/FurnitureVoid/VoidWorkbench.cs | 6 +- .../Placeables/FurnitureVoid/VoidstoneSlab.cs | 6 +- .../FurnitureVoid/VoidstoneSlabWall.cs | 6 +- Items/Placeables/GreenBrickWallUnsafe.cs | 4 +- Items/Placeables/GreenSlabWallUnsafe.cs | 4 +- Items/Placeables/GreenTiledWallUnsafe.cs | 4 +- Items/Placeables/HardenedAstralSand.cs | 8 +- Items/Placeables/HardenedAstralSandWall.cs | 8 +- Items/Placeables/HiveMindTrophy.cs | 6 +- Items/Placeables/LeviathanTrophy.cs | 6 +- Items/Placeables/Navystone.cs | 8 +- Items/Placeables/NavystoneWall.cs | 6 +- Items/Placeables/NavystoneWallSafe.cs | 6 +- Items/Placeables/PerennialBrick.cs | 6 +- Items/Placeables/PerennialBrickWall.cs | 8 +- Items/Placeables/PerennialOre.cs | 6 +- Items/Placeables/PerforatorTrophy.cs | 6 +- Items/Placeables/PinkBrickWallUnsafe.cs | 4 +- Items/Placeables/PinkSlabWallUnsafe.cs | 4 +- Items/Placeables/PinkTiledWallUnsafe.cs | 4 +- .../Placeables/PlaguebringerGoliathTrophy.cs | 6 +- Items/Placeables/PlantyMush.cs | 6 +- Items/Placeables/PolterghastTrophy.cs | 6 +- Items/Placeables/PrismShard.cs | 6 +- Items/Placeables/ProvidenceTrophy.cs | 6 +- Items/Placeables/RavagerTrophy.cs | 6 +- Items/Placeables/SeaPrism.cs | 6 +- Items/Placeables/SignusTrophy.cs | 6 +- Items/Placeables/SlimeGodTrophy.cs | 6 +- Items/Placeables/SulphurousSand.cs | 6 +- Items/Placeables/Tenebris.cs | 6 +- Items/Placeables/TranquilityCandle.cs | 6 +- Items/Placeables/UelibloomBrick.cs | 6 +- Items/Placeables/UelibloomBrickWall.cs | 8 +- Items/Placeables/UelibloomOre.cs | 6 +- Items/Placeables/Voidstone.cs | 6 +- Items/Placeables/VoidstoneWall.cs | 6 +- Items/Placeables/WeaverTrophy.cs | 6 +- Items/Placeables/YharonTrophy.cs | 6 +- Items/PlaguebringerGoliath/Abomination.cs | 8 +- Items/PlaguebringerGoliath/BloomStone.cs | 4 +- .../PlaguebringerGoliath/PlagueCellCluster.cs | 4 +- .../PlaguebringerGoliathBag.cs | 33 +- Items/PlaguebringerGoliath/ToxicHeart.cs | 6 +- Items/Polterghast/Affliction.cs | 6 +- Items/Polterghast/NecroplasmicBeacon.cs | 8 +- Items/Polterghast/PolterghastBag.cs | 27 +- Items/Polterghast/RuinousSoul.cs | 4 +- Items/Potions/AstralInjection.cs | 6 +- Items/Potions/BoundingPotion.cs | 6 +- Items/Potions/CadencePotion.cs | 6 +- Items/Potions/CalamitasBrew.cs | 6 +- Items/Potions/CalciumPotion.cs | 6 +- Items/Potions/CeaselessHungerPotion.cs | 6 +- Items/Potions/CrumblingPotion.cs | 6 +- Items/Potions/DraconicElixir.cs | 6 +- Items/Potions/GravityNormalizerPotion.cs | 6 +- Items/Potions/HolyWrathPotion.cs | 6 +- Items/Potions/OmegaHealingPotion.cs | 4 +- Items/Potions/PenumbraPotion.cs | 6 +- Items/Potions/PhotosynthesisPotion.cs | 6 +- Items/Potions/PotionofOmniscience.cs | 6 +- Items/Potions/ProfanedRagePotion.cs | 6 +- Items/Potions/PurifiedJam.cs | 6 +- Items/Potions/RevivifyPotion.cs | 4 +- Items/Potions/ShatteringPotion.cs | 6 +- Items/Potions/SoaringPotion.cs | 6 +- Items/Potions/SupremeHealingPotion.cs | 4 +- Items/Potions/SupremeManaPotion.cs | 4 +- Items/Potions/TitanScalePotion.cs | 6 +- Items/Potions/TriumphPotion.cs | 6 +- Items/Potions/YharimsStimulants.cs | 6 +- Items/Potions/ZenPotion.cs | 6 +- Items/Potions/ZergPotion.cs | 6 +- Items/ProfanedGuardian/ProfanedShard.cs | 8 +- Items/Providence/DivineGeode.cs | 4 +- Items/Providence/ElysianAegis.cs | 4 +- Items/Providence/ElysianWings.cs | 4 +- Items/Providence/ProfanedCore.cs | 8 +- Items/Providence/ProfanedCoreUnlimited.cs | 8 +- Items/Providence/ProvidenceBag.cs | 29 +- Items/Providence/UnholyEssence.cs | 4 +- Items/Rock.cs | 2 +- Items/Scavenger/AncientMedallion.cs | 8 +- Items/Scavenger/BloodPact.cs | 4 +- Items/Scavenger/FleshTotem.cs | 4 +- Items/Scavenger/RavagerBag.cs | 45 +- Items/ShrineItems/CorruptionEffigy.cs | 6 +- Items/ShrineItems/CrimsonEffigy.cs | 6 +- Items/ShrineItems/FungalSymbiote.cs | 4 +- Items/ShrineItems/GladiatorsLocket.cs | 14 +- Items/ShrineItems/LuxorsGift.cs | 4 +- Items/ShrineItems/OnyxExcavatorKey.cs | 6 +- Items/ShrineItems/TrinketofChi.cs | 4 +- Items/ShrineItems/TundraLeash.cs | 6 +- Items/ShrineItems/UnstablePrism.cs | 4 +- Items/SlimeGod/ManaOverloader.cs | 4 +- Items/SlimeGod/OverloadedSludge.cs | 14 +- Items/SlimeGod/PurifiedGel.cs | 4 +- Items/SlimeGod/SlimeGodBag.cs | 29 +- Items/StarterBag.cs | 10 +- Items/SummonsAndClimateChange/AridArtifact.cs | 5 +- Items/SummonsAndClimateChange/BloodIdol.cs | 4 +- Items/SummonsAndClimateChange/BossRush.cs | 4 +- Items/SummonsAndClimateChange/BulbofDoom.cs | 4 +- Items/SummonsAndClimateChange/Cosmolight.cs | 4 +- Items/SummonsAndClimateChange/Daylight.cs | 4 +- .../SummonsAndClimateChange/DraedonsRemote.cs | 4 +- .../SummonsAndClimateChange/EidolonTablet.cs | 4 +- Items/SummonsAndClimateChange/Moonlight.cs | 4 +- Items/SummonsAndClimateChange/OldPowerCell.cs | 4 +- Items/SunkenSea/AmidiasPendant.cs | 10 +- Items/SunkenSea/GiantPearl.cs | 4 +- Items/SunkenSea/MolluskHusk.cs | 4 +- Items/SuperDummy.cs | 6 +- Items/SupremeCalamitas/EyeofExtinction.cs | 10 +- Items/TheDevourerofGods/CosmicWorm.cs | 8 +- Items/TheDevourerofGods/CosmiliteBar.cs | 4 +- Items/TheDevourerofGods/DevourerofGodsBag.cs | 39 +- Items/TheDevourerofGods/NebulousCore.cs | 10 +- Items/Tools/AbyssalWarhammer.cs | 4 +- Items/Tools/AerialHamaxe.cs | 4 +- Items/Tools/AstralHamaxe.cs | 8 +- Items/Tools/AstralPickaxe.cs | 8 +- Items/Tools/BeastialPickaxe.cs | 4 +- Items/Tools/BerserkerWaraxe.cs | 4 +- Items/Tools/BlossomPickaxe.cs | 4 +- Items/Tools/ChaoswarpedSlashaxe.cs | 4 +- Items/Tools/CrystylCrusher.cs | 6 +- Items/Tools/FellerofEvergreens.cs | 4 +- Items/Tools/FlamebeakHampick.cs | 4 +- Items/Tools/GallantPickaxe.cs | 4 +- Items/Tools/Gelpick.cs | 4 +- Items/Tools/GreatbayPickaxe.cs | 4 +- Items/Tools/MarniteObliterator.cs | 6 +- Items/Tools/ReefclawHamaxe.cs | 4 +- Items/Tools/ShardlightPickaxe.cs | 4 +- Items/Tools/SkyfringePickaxe.cs | 4 +- Items/Tools/WulfrumAxe.cs | 4 +- Items/Tools/WulfrumHammer.cs | 4 +- Items/Tools/WulfrumPickaxe.cs | 4 +- Items/Weapons/AMR.cs | 6 +- Items/Weapons/AbyssBlade.cs | 8 +- Items/Weapons/AbyssWeapons/Archerfish.cs | 8 +- Items/Weapons/AbyssWeapons/BallOFugu.cs | 6 +- Items/Weapons/AbyssWeapons/BlackAnurian.cs | 8 +- Items/Weapons/AbyssWeapons/CalamarisLament.cs | 6 +- Items/Weapons/AbyssWeapons/DreadmineStaff.cs | 6 +- Items/Weapons/AbyssWeapons/EidolicWail.cs | 6 +- Items/Weapons/AbyssWeapons/FlakKraken.cs | 8 +- Items/Weapons/AbyssWeapons/HalibutCannon.cs | 4 +- Items/Weapons/AbyssWeapons/HerringStaff.cs | 6 +- Items/Weapons/AbyssWeapons/SoulEdge.cs | 8 +- .../AbyssWeapons/SulphuricAcidCannon.cs | 6 +- Items/Weapons/AbyssWeapons/TyphonsGreed.cs | 6 +- .../AbyssWeapons/UndinesRetribution.cs | 6 +- Items/Weapons/AccelerationBullet.cs | 6 +- Items/Weapons/AccretionDiskMelee.cs | 6 +- Items/Weapons/AcidBullet.cs | 6 +- Items/Weapons/AegisBlade.cs | 10 +- Items/Weapons/Aeries.cs | 8 +- Items/Weapons/AethersWhisper.cs | 6 +- Items/Weapons/Aftershock.cs | 8 +- Items/Weapons/AirSpinner.cs | 6 +- Items/Weapons/Alluvion.cs | 8 +- Items/Weapons/AlphaRay.cs | 8 +- Items/Weapons/AnarchyBlade.cs | 8 +- Items/Weapons/AncientCrusher.cs | 6 +- Items/Weapons/AncientIceChunk.cs | 6 +- Items/Weapons/AncientShiv.cs | 6 +- Items/Weapons/Animosity.cs | 4 +- Items/Weapons/Animus.cs | 6 +- Items/Weapons/ApoctosisArray.cs | 6 +- Items/Weapons/Apotheosis.cs | 6 +- Items/Weapons/AquaticDissolution.cs | 6 +- Items/Weapons/AquaticScourge/Barinautical.cs | 6 +- Items/Weapons/AquaticScourge/DeepseaStaff.cs | 6 +- Items/Weapons/AquaticScourge/Downpour.cs | 6 +- .../AquaticScourge/SubmarineShocker.cs | 6 +- Items/Weapons/ArchAmaryllis.cs | 6 +- Items/Weapons/ArcticArrow.cs | 6 +- Items/Weapons/ArkoftheAncients.cs | 10 +- Items/Weapons/ArkoftheCosmos.cs | 16 +- Items/Weapons/ArkoftheElements.cs | 24 +- Items/Weapons/ArterialAssault.cs | 8 +- Items/Weapons/AsteroidStaff.cs | 6 +- Items/Weapons/Astrageldon/Nebulash.cs | 6 +- Items/Weapons/Astral/AstralBlade.cs | 8 +- Items/Weapons/Astral/AstralBlaster.cs | 8 +- Items/Weapons/Astral/AstralPike.cs | 6 +- Items/Weapons/Astral/AstralRepeater.cs | 4 +- Items/Weapons/Astral/AstralScythe.cs | 8 +- Items/Weapons/Astral/AstralStaff.cs | 6 +- Items/Weapons/Astral/AstralachneaStaff.cs | 8 +- Items/Weapons/Astral/HivePod.cs | 6 +- Items/Weapons/Astral/StellarCannon.cs | 6 +- Items/Weapons/Astral/TitanArm.cs | 6 +- Items/Weapons/AstrealDefeat.cs | 8 +- Items/Weapons/AstrumDeus/Starfall.cs | 6 +- Items/Weapons/AuguroftheElements.cs | 6 +- Items/Weapons/Azathoth.cs | 6 +- Items/Weapons/BalefulHarvester.cs | 6 +- Items/Weapons/BarracudaGun.cs | 6 +- Items/Weapons/BiomeBlade.cs | 6 +- Items/Weapons/BlackHawkRemote.cs | 6 +- Items/Weapons/BladecrestOathsword.cs | 6 +- Items/Weapons/BladedgeGreatbow.cs | 4 +- Items/Weapons/BladeofEnmity.cs | 6 +- Items/Weapons/BloodfireArrow.cs | 6 +- Items/Weapons/BloodyEdge.cs | 4 +- Items/Weapons/BlossomFlux.cs | 10 +- Items/Weapons/BlushieStaff.cs | 6 +- Items/Weapons/Brimlash.cs | 8 +- Items/Weapons/BrimlashBuster.cs | 8 +- Items/Weapons/BrimroseStaff.cs | 6 +- Items/Weapons/BrimstoneFury.cs | 8 +- Items/Weapons/BrimstoneWaifu/Brimlance.cs | 6 +- .../BrimstoneWaifu/SeethingDischarge.cs | 8 +- Items/Weapons/BrinyBaron.cs | 10 +- Items/Weapons/Bumblebirb/GildedProboscis.cs | 6 +- Items/Weapons/Bumblebirb/GoldenEagle.cs | 4 +- Items/Weapons/Bumblebirb/RougeSlash.cs | 12 +- Items/Weapons/BurningSea.cs | 6 +- Items/Weapons/BurntSienna.cs | 10 +- Items/Weapons/Butcher.cs | 8 +- Items/Weapons/Calamitas/BlightedEyeStaff.cs | 12 +- .../Calamitas/BrimstoneFlameblaster.cs | 6 +- .../Calamitas/BrimstoneFlamesprayer.cs | 6 +- Items/Weapons/Calamitas/CalamitasInferno.cs | 6 +- Items/Weapons/Calamitas/TheEyeofCalamitas.cs | 6 +- Items/Weapons/CarnageRay.cs | 6 +- Items/Weapons/CatastropheClaymore.cs | 12 +- Items/Weapons/CausticEdge.cs | 4 +- Items/Weapons/CelestialClaymore.cs | 12 +- Items/Weapons/Chaotrix.cs | 6 +- Items/Weapons/ChargedDartRifle.cs | 10 +- Items/Weapons/ClaretCannon.cs | 8 +- Items/Weapons/CleansingBlaze.cs | 6 +- Items/Weapons/Climax.cs | 6 +- Items/Weapons/ClockGatlignum.cs | 4 +- Items/Weapons/ClockworkBow.cs | 4 +- Items/Weapons/Cnidarian.cs | 6 +- Items/Weapons/CometQuasher.cs | 4 +- Items/Weapons/ConferenceCall.cs | 4 +- Items/Weapons/Contagion.cs | 8 +- Items/Weapons/CoralSpout.cs | 6 +- Items/Weapons/CosmicBolter.cs | 8 +- Items/Weapons/CosmicDischarge.cs | 6 +- Items/Weapons/CosmicImmaterializer.cs | 8 +- Items/Weapons/CosmicRainbow.cs | 4 +- Items/Weapons/Cosmilamp.cs | 8 +- Items/Weapons/Crabulon/Fungicide.cs | 8 +- Items/Weapons/Crabulon/HyphaeRod.cs | 4 +- Items/Weapons/Crabulon/MycelialClaws.cs | 4 +- Items/Weapons/Cryogen/Avalanche.cs | 6 +- Items/Weapons/Cryogen/BittercoldStaff.cs | 8 +- Items/Weapons/Cryogen/EffluviumBow.cs | 8 +- Items/Weapons/Cryogen/GlacialCrusher.cs | 8 +- Items/Weapons/Cryogen/SnowstormStaff.cs | 6 +- Items/Weapons/CrystalBlade.cs | 6 +- Items/Weapons/CrystalFlareStaff.cs | 6 +- Items/Weapons/CursedCapper.cs | 4 +- Items/Weapons/DarkechoGreatbow.cs | 4 +- Items/Weapons/DarklightGreatsword.cs | 6 +- Items/Weapons/DeathValley.cs | 6 +- Items/Weapons/DemonicPitchfork.cs | 6 +- Items/Weapons/DepthBlade.cs | 6 +- .../Weapons/DesertScourge/AquaticDischarge.cs | 6 +- Items/Weapons/DesertScourge/Barinade.cs | 6 +- Items/Weapons/DesertScourge/SeaboundStaff.cs | 6 +- Items/Weapons/DesertScourge/StormSpray.cs | 6 +- Items/Weapons/Devastation.cs | 18 +- Items/Weapons/DevilsDevastation.cs | 12 +- .../Weapons/DevourerofGods/DeathhailStaff.cs | 6 +- Items/Weapons/DevourerofGods/Deathwind.cs | 8 +- .../Weapons/DevourerofGods/EradicatorMelee.cs | 6 +- Items/Weapons/DevourerofGods/Excelsus.cs | 14 +- .../DevourerofGods/StaffoftheMechworm.cs | 22 +- .../Weapons/DevourerofGods/TheObliterator.cs | 6 +- Items/Weapons/DraconicDestruction.cs | 6 +- Items/Weapons/DraedonsExoblade.cs | 22 +- Items/Weapons/Drataliornus.cs | 10 +- Items/Weapons/Dualpoon.cs | 6 +- Items/Weapons/Earth.cs | 6 +- Items/Weapons/EarthenPike.cs | 6 +- Items/Weapons/Effervescence.cs | 6 +- Items/Weapons/ElementalAxe.cs | 6 +- Items/Weapons/ElementalBlaster.cs | 6 +- Items/Weapons/ElementalEruption.cs | 6 +- Items/Weapons/ElementalExcalibur.cs | 16 +- Items/Weapons/ElementalRay.cs | 6 +- Items/Weapons/ElementalShortsword.cs | 14 +- Items/Weapons/ElysianArrow.cs | 6 +- Items/Weapons/EmpyreanKnives.cs | 6 +- Items/Weapons/EnergyStaff.cs | 6 +- Items/Weapons/EnhancedNanoRound.cs | 6 +- Items/Weapons/EssenceFlayer.cs | 8 +- Items/Weapons/EvergladeSpray.cs | 6 +- Items/Weapons/ExcaliburShortsword.cs | 4 +- Items/Weapons/ExsanguinationLance.cs | 6 +- Items/Weapons/Fabstaff.cs | 6 +- Items/Weapons/FeralthornClaymore.cs | 4 +- Items/Weapons/FiniteUse/Bazooka.cs | 8 +- Items/Weapons/FiniteUse/ElephantKiller.cs | 8 +- Items/Weapons/FiniteUse/ExplosiveShells.cs | 8 +- Items/Weapons/FiniteUse/GrenadeRounds.cs | 8 +- Items/Weapons/FiniteUse/Hydra.cs | 8 +- Items/Weapons/FiniteUse/LightningHawk.cs | 8 +- Items/Weapons/FiniteUse/Magnum.cs | 8 +- Items/Weapons/FiniteUse/MagnumRounds.cs | 8 +- Items/Weapons/FirestormCannon.cs | 4 +- Items/Weapons/FlameScytheMelee.cs | 6 +- Items/Weapons/FlameburstShortsword.cs | 6 +- Items/Weapons/FlareBolt.cs | 6 +- Items/Weapons/FlarefrostBlade.cs | 6 +- Items/Weapons/FlarewingBow.cs | 6 +- Items/Weapons/FlashBullet.cs | 6 +- Items/Weapons/Floodtide.cs | 4 +- Items/Weapons/ForbiddenOathblade.cs | 6 +- Items/Weapons/ForbiddenSun.cs | 6 +- Items/Weapons/ForsakenSaber.cs | 6 +- Items/Weapons/FourSeasonsGalaxia.cs | 6 +- Items/Weapons/FrigidflashBolt.cs | 6 +- Items/Weapons/FrostBolt.cs | 6 +- Items/Weapons/FrostsparkBullet.cs | 6 +- Items/Weapons/FulgurationHalberd.cs | 10 +- Items/Weapons/GalacticaBlade.cs | 8 +- Items/Weapons/GalaxySmasherMelee.cs | 6 +- Items/Weapons/Galeforce.cs | 6 +- Items/Weapons/GammaFusillade.cs | 6 +- Items/Weapons/Genisis.cs | 6 +- Items/Weapons/GleamingMagnolia.cs | 6 +- Items/Weapons/GoldenGun.cs | 6 +- Items/Weapons/GoldplumeSpear.cs | 6 +- Items/Weapons/GrandGuardian.cs | 18 +- Items/Weapons/Grax.cs | 6 +- .../GreatSandShark/SandSharknadoStaff.cs | 6 +- Items/Weapons/GreatSandShark/Sandstorm.cs | 8 +- Items/Weapons/GreatSandShark/ShiftingSands.cs | 6 +- Items/Weapons/GreatSandShark/Tumbleweed.cs | 6 +- Items/Weapons/GreatbowofTurmoil.cs | 4 +- Items/Weapons/GreatswordofBlah.cs | 6 +- Items/Weapons/GreatswordofJudgement.cs | 6 +- Items/Weapons/HalleysInferno.cs | 10 +- Items/Weapons/HarvestStaff.cs | 6 +- Items/Weapons/HeartRapier.cs | 6 +- Items/Weapons/HeavenlyGale.cs | 12 +- Items/Weapons/HeliumFlash.cs | 6 +- Items/Weapons/HellBurst.cs | 6 +- Items/Weapons/HellfireFlamberge.cs | 12 +- Items/Weapons/HellionFlowerSpear.cs | 6 +- Items/Weapons/Hellkite.cs | 4 +- Items/Weapons/HellwingStaff.cs | 8 +- Items/Weapons/Helstorm.cs | 4 +- Items/Weapons/HiveMind/DankStaff.cs | 6 +- Items/Weapons/HiveMind/LeechingDagger.cs | 6 +- Items/Weapons/HiveMind/PerfectDark.cs | 6 +- Items/Weapons/HiveMind/ShaderainStaff.cs | 8 +- Items/Weapons/HiveMind/Shadethrower.cs | 6 +- Items/Weapons/HiveMind/ShadowdropStaff.cs | 8 +- Items/Weapons/HolidayHalberd.cs | 8 +- Items/Weapons/HolyFireBullet.cs | 6 +- Items/Weapons/HyperiusBullet.cs | 6 +- Items/Weapons/IcicleStaff.cs | 8 +- Items/Weapons/Impaler.cs | 10 +- Items/Weapons/InfernaCutter.cs | 8 +- Items/Weapons/InfernalRift.cs | 6 +- Items/Weapons/Interfacer.cs | 4 +- Items/Weapons/IonBlaster.cs | 6 +- Items/Weapons/Judgement.cs | 6 +- Items/Weapons/Lacerator.cs | 6 +- Items/Weapons/Lazhar.cs | 6 +- Items/Weapons/Leviathan/Atlantis.cs | 6 +- Items/Weapons/Leviathan/Greentide.cs | 6 +- Items/Weapons/Leviathan/Leviatitan.cs | 10 +- Items/Weapons/Leviathan/LureofEnthrallment.cs | 12 +- Items/Weapons/Leviathan/SirensSong.cs | 6 +- Items/Weapons/LifefruitScythe.cs | 6 +- Items/Weapons/Lucrecia.cs | 6 +- Items/Weapons/LunarianBow.cs | 8 +- Items/Weapons/LunicEye.cs | 6 +- Items/Weapons/MagnaCannon.cs | 6 +- Items/Weapons/MagnaStriker.cs | 10 +- Items/Weapons/MagneticMeltdown.cs | 6 +- Items/Weapons/MajesticGuard.cs | 4 +- Items/Weapons/ManaRose.cs | 6 +- Items/Weapons/MandibleBow.cs | 4 +- Items/Weapons/MandibleClaws.cs | 4 +- Items/Weapons/MangroveChakramMelee.cs | 6 +- Items/Weapons/MantisClaws.cs | 6 +- Items/Weapons/Mariana.cs | 6 +- Items/Weapons/MarkedMagnum.cs | 6 +- Items/Weapons/MarniteRifleSpear.cs | 4 +- Items/Weapons/MarniteSpear.cs | 6 +- Items/Weapons/Megafleet.cs | 6 +- Items/Weapons/Megalodon.cs | 4 +- Items/Weapons/Meowthrower.cs | 10 +- Items/Weapons/MineralMortar.cs | 8 +- Items/Weapons/Minigun.cs | 4 +- Items/Weapons/MirrorBlade.cs | 6 +- Items/Weapons/Mistlestorm.cs | 4 +- Items/Weapons/MolecularManipulator.cs | 8 +- Items/Weapons/Monsoon.cs | 6 +- Items/Weapons/MortarRound.cs | 6 +- Items/Weapons/Mourningstar.cs | 6 +- Items/Weapons/Murasama.cs | 6 +- Items/Weapons/NanoblackReaperMelee.cs | 6 +- Items/Weapons/NapalmArrow.cs | 6 +- Items/Weapons/Needler.cs | 8 +- Items/Weapons/NeptunesBounty.cs | 8 +- Items/Weapons/NettlelineGreatbow.cs | 4 +- Items/Weapons/NightsRay.cs | 6 +- Items/Weapons/NightsStabber.cs | 6 +- Items/Weapons/NuclearFury.cs | 6 +- Items/Weapons/NullificationRifle.cs | 8 +- Items/Weapons/OldLordOathsword.cs | 4 +- Items/Weapons/OmegaBiomeBlade.cs | 8 +- Items/Weapons/Omniblade.cs | 7 +- Items/Weapons/OnyxChainBlaster.cs | 4 +- Items/Weapons/Onyxia.cs | 4 +- Items/Weapons/OpalStriker.cs | 8 +- Items/Weapons/P90.cs | 4 +- Items/Weapons/PaintballBlaster.cs | 4 +- Items/Weapons/Perforators/Aorta.cs | 6 +- Items/Weapons/Perforators/BloodBath.cs | 6 +- Items/Weapons/Perforators/BloodClotStaff.cs | 6 +- Items/Weapons/Perforators/BloodyRupture.cs | 6 +- Items/Weapons/Perforators/Eviscerator.cs | 8 +- Items/Weapons/Perforators/SausageMaker.cs | 6 +- Items/Weapons/Perforators/VeinBurster.cs | 6 +- Items/Weapons/Phangasm.cs | 8 +- Items/Weapons/PhantasmalFury.cs | 6 +- Items/Weapons/PhoenixBlade.cs | 10 +- Items/Weapons/Photoviscerator.cs | 6 +- Items/Weapons/PlagueKeeper.cs | 8 +- Items/Weapons/Plaguebringer/DiseasedPike.cs | 6 +- Items/Weapons/Plaguebringer/Malevolence.cs | 8 +- .../Weapons/Plaguebringer/MepheticSprayer.cs | 6 +- .../Weapons/Plaguebringer/PestilentDefiler.cs | 8 +- Items/Weapons/Plaguebringer/PlagueStaff.cs | 8 +- Items/Weapons/Plaguebringer/TheHive.cs | 14 +- .../Weapons/Plaguebringer/ThePlaguebringer.cs | 6 +- Items/Weapons/Plaguebringer/VirulentKatana.cs | 8 +- Items/Weapons/PlanetaryAnnihilation.cs | 8 +- Items/Weapons/PlasmaRifle.cs | 10 +- Items/Weapons/PlasmaRod.cs | 6 +- Items/Weapons/Polterghast/BansheeHook.cs | 8 +- Items/Weapons/Polterghast/DaemonsFlame.cs | 8 +- .../Weapons/Polterghast/EtherealSubjugator.cs | 6 +- Items/Weapons/Polterghast/FatesReveal.cs | 6 +- Items/Weapons/Polterghast/GhastlyVisage.cs | 8 +- Items/Weapons/Polterghast/TerrorBlade.cs | 6 +- Items/Weapons/PrimordialAncient.cs | 6 +- Items/Weapons/PrimordialEarth.cs | 6 +- Items/Weapons/ProfanedSword.cs | 12 +- Items/Weapons/ProporsePistol.cs | 8 +- .../Weapons/Providence/BlissfulBombardier.cs | 8 +- Items/Weapons/Providence/HolyCollider.cs | 8 +- Items/Weapons/Providence/PurgeGuzzler.cs | 6 +- Items/Weapons/Providence/SolarFlare.cs | 6 +- Items/Weapons/Providence/TelluricGlare.cs | 8 +- Items/Weapons/Pumpler.cs | 4 +- Items/Weapons/Purge.cs | 8 +- Items/Weapons/PurityAxe.cs | 4 +- Items/Weapons/PwnagehammerMelee.cs | 6 +- Items/Weapons/Quagmire.cs | 6 +- Items/Weapons/RaidersGlory.cs | 4 +- Items/Weapons/RareVariants/Arbalest.cs | 4 +- Items/Weapons/RareVariants/Carnage.cs | 6 +- Items/Weapons/RareVariants/ClothiersWrath.cs | 4 +- Items/Weapons/RareVariants/Cryophobia.cs | 6 +- Items/Weapons/RareVariants/EvilSmasher.cs | 6 +- Items/Weapons/RareVariants/EyeofMagnus.cs | 6 +- Items/Weapons/RareVariants/GrandDad.cs | 4 +- Items/Weapons/RareVariants/Hellborn.cs | 4 +- Items/Weapons/RareVariants/Infinity.cs | 8 +- Items/Weapons/RareVariants/LeadWizard.cs | 4 +- Items/Weapons/RareVariants/Norfleet.cs | 8 +- Items/Weapons/RareVariants/PearlGod.cs | 10 +- Items/Weapons/RareVariants/Skullmasher.cs | 6 +- Items/Weapons/RareVariants/Swordsplosion.cs | 22 +- Items/Weapons/RareVariants/ThornBlossom.cs | 6 +- Items/Weapons/RareVariants/Thunderstorm.cs | 6 +- .../RareVariants/TrueConferenceCall.cs | 4 +- Items/Weapons/RareVariants/VoidVortex.cs | 6 +- Items/Weapons/Ravager/Hematemesis.cs | 6 +- Items/Weapons/Ravager/RealmRavager.cs | 8 +- Items/Weapons/Ravager/SpikecragStaff.cs | 6 +- Items/Weapons/Ravager/UltimusCleaver.cs | 6 +- Items/Weapons/RedSun.cs | 10 +- Items/Weapons/RedtideSword.cs | 6 +- Items/Weapons/RelicofRuin.cs | 6 +- Items/Weapons/RoyalKnivesMelee.cs | 8 +- Items/Weapons/RubberMortarRound.cs | 6 +- Items/Weapons/SDFMG.cs | 6 +- Items/Weapons/SHPC.cs | 10 +- Items/Weapons/SanguineFlare.cs | 6 +- Items/Weapons/Scorpion.cs | 10 +- Items/Weapons/ScourgeoftheCosmos.cs | 6 +- Items/Weapons/Seabow.cs | 6 +- Items/Weapons/Seadragon.cs | 6 +- Items/Weapons/SeashellBoomerangMelee.cs | 6 +- Items/Weapons/ShadecrystalTome.cs | 6 +- Items/Weapons/ShadowboltStaff.cs | 6 +- Items/Weapons/Shimmerspark.cs | 6 +- Items/Weapons/Shredder.cs | 6 +- Items/Weapons/Shroomer.cs | 6 +- Items/Weapons/SkyGlaze.cs | 6 +- Items/Weapons/SlagMagnum.cs | 8 +- Items/Weapons/SlimeGod/AbyssalTome.cs | 6 +- Items/Weapons/SlimeGod/CorroslimeStaff.cs | 6 +- .../Weapons/SlimeGod/CorruptedCrusherBlade.cs | 4 +- Items/Weapons/SlimeGod/CrimslimeStaff.cs | 6 +- Items/Weapons/SlimeGod/CrimsonCrusherBlade.cs | 4 +- Items/Weapons/SlimeGod/EldritchTome.cs | 8 +- Items/Weapons/SlimeGod/GeliticBlade.cs | 6 +- Items/Weapons/SlimeGod/Goobow.cs | 4 +- Items/Weapons/SlimeGod/GunkShot.cs | 4 +- Items/Weapons/SlimeGod/OverloadedBlaster.cs | 6 +- Items/Weapons/SlimeGod/TheGodsGambit.cs | 6 +- Items/Weapons/SolsticeClaymore.cs | 8 +- Items/Weapons/SomaPrime.cs | 8 +- Items/Weapons/SoulHarvester.cs | 10 +- Items/Weapons/SoulPiercer.cs | 6 +- Items/Weapons/SparkSpreader.cs | 6 +- Items/Weapons/SpatialLance.cs | 6 +- Items/Weapons/SpectralstormCannon.cs | 4 +- Items/Weapons/SpectreRifle.cs | 4 +- Items/Weapons/SporeKnife.cs | 4 +- Items/Weapons/Spyker.cs | 8 +- Items/Weapons/StarCannonEX.cs | 6 +- Items/Weapons/StardustStaff.cs | 10 +- Items/Weapons/Starfleet.cs | 6 +- Items/Weapons/StarfleetMK2.cs | 8 +- Items/Weapons/StarnightLance.cs | 6 +- Items/Weapons/StellarContemptMelee.cs | 6 +- Items/Weapons/StellarStriker.cs | 4 +- Items/Weapons/StormDragoon.cs | 4 +- Items/Weapons/StormRuler.cs | 6 +- Items/Weapons/StormSaber.cs | 6 +- Items/Weapons/StormSurge.cs | 6 +- Items/Weapons/StreamGouge.cs | 6 +- Items/Weapons/SubsumingVortex.cs | 6 +- Items/Weapons/SunGodStaff.cs | 8 +- Items/Weapons/SunSpiritStaff.cs | 8 +- Items/Weapons/SunkenSea/AquamarineStaff.cs | 6 +- Items/Weapons/SunkenSea/AquashardShotgun.cs | 6 +- Items/Weapons/SunkenSea/ClamCrusher.cs | 6 +- Items/Weapons/SunkenSea/ClamorRifle.cs | 8 +- Items/Weapons/SunkenSea/EutrophicScimitar.cs | 6 +- Items/Weapons/SunkenSea/EutrophicShank.cs | 6 +- Items/Weapons/SunkenSea/Poseidon.cs | 6 +- Items/Weapons/SunkenSea/SeashineSword.cs | 6 +- Items/Weapons/SunkenSea/Serpentine.cs | 16 +- Items/Weapons/SunkenSea/ShellfishStaff.cs | 6 +- Items/Weapons/SunkenSea/Whirlpool.cs | 6 +- Items/Weapons/SuperballBullet.cs | 6 +- Items/Weapons/Svantechnical.cs | 4 +- Items/Weapons/T1000.cs | 8 +- Items/Weapons/TeardropCleaver.cs | 6 +- Items/Weapons/TearsofHeaven.cs | 6 +- Items/Weapons/TemporalFloeSword.cs | 8 +- Items/Weapons/TerraArrow.cs | 6 +- Items/Weapons/TerraBullet.cs | 6 +- Items/Weapons/TerraEdge.cs | 6 +- Items/Weapons/TerraFlameburster.cs | 6 +- Items/Weapons/TerraLance.cs | 6 +- Items/Weapons/TerraRay.cs | 6 +- Items/Weapons/TerraShiv.cs | 6 +- Items/Weapons/Terracotta.cs | 12 +- Items/Weapons/Terratomere.cs | 8 +- Items/Weapons/TheBallista.cs | 8 +- Items/Weapons/TheEmpyrean.cs | 6 +- Items/Weapons/TheEnforcer.cs | 8 +- Items/Weapons/TheMutilator.cs | 4 +- Items/Weapons/TheStorm.cs | 12 +- Items/Weapons/TheSwarmer.cs | 4 +- Items/Weapons/TheWand.cs | 6 +- Items/Weapons/TitaniumRailgun.cs | 8 +- Items/Weapons/TomeofFates.cs | 10 +- Items/Weapons/Tradewinds.cs | 6 +- ...tisTruePaladinianMageHammerofMightMelee.cs | 6 +- Items/Weapons/Trinity.cs | 4 +- Items/Weapons/Triploon.cs | 6 +- Items/Weapons/TrueArkoftheAncients.cs | 14 +- Items/Weapons/TrueBiomeBlade.cs | 6 +- Items/Weapons/TrueBloodyEdge.cs | 6 +- Items/Weapons/TrueCausticEdge.cs | 6 +- Items/Weapons/TrueExcaliburShortsword.cs | 6 +- Items/Weapons/TrueForbiddenOathblade.cs | 6 +- Items/Weapons/TrueNightsStabber.cs | 6 +- Items/Weapons/TruePaladinsHammerMelee.cs | 6 +- Items/Weapons/TrueTyrantYharimsUltisword.cs | 18 +- Items/Weapons/TyrantYharimsUltisword.cs | 8 +- Items/Weapons/UltraLiquidator.cs | 6 +- Items/Weapons/UrchinSpear.cs | 6 +- Items/Weapons/VanquisherArrow.cs | 6 +- Items/Weapons/Vehemenc.cs | 8 +- Items/Weapons/VenusianTrident.cs | 6 +- Items/Weapons/Verdant.cs | 6 +- Items/Weapons/VeriumBullet.cs | 6 +- Items/Weapons/Vesuvius.cs | 6 +- Items/Weapons/Viscera.cs | 6 +- Items/Weapons/VividClarity.cs | 8 +- Items/Weapons/Vortexpopper.cs | 4 +- Items/Weapons/Waraxe.cs | 6 +- Items/Weapons/Warblade.cs | 6 +- Items/Weapons/WindBlade.cs | 6 +- Items/Weapons/Wingman.cs | 4 +- Items/Weapons/WrathoftheAncients.cs | 8 +- Items/Weapons/WulfrumBlade.cs | 4 +- Items/Weapons/WulfrumBow.cs | 4 +- Items/Weapons/WulfrumStaff.cs | 6 +- Items/Weapons/XerocsGreatsword.cs | 6 +- Items/Weapons/YharimsCrystal.cs | 8 +- Items/Weapons/Yharon/AngryChickenStaff.cs | 6 +- Items/Weapons/Yharon/ChickenCannon.cs | 8 +- Items/Weapons/Yharon/DragonRage.cs | 6 +- Items/Weapons/Yharon/DragonsBreath.cs | 6 +- Items/Weapons/Yharon/PhoenixFlameBarrage.cs | 6 +- Items/Weapons/Yharon/TheBurningSky.cs | 8 +- Items/Weapons/YinYo.cs | 6 +- Items/Weapons/Zapper.cs | 4 +- Items/Yharon/ChickenEgg.cs | 8 +- Items/Yharon/YharimsGift.cs | 8 +- Items/Yharon/YharonBag.cs | 29 +- Localization/CalamityLocalization.cs | 2 +- MiscModSupport/ModCalls.cs | 2 +- MiscModSupport/WeakReferenceSupport.cs | 52 +- NPCs/AbyssNPCs/AquaticParasite.cs | 6 +- NPCs/AbyssNPCs/AquaticScourgeBody.cs | 8 +- NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs | 8 +- NPCs/AbyssNPCs/AquaticScourgeHead.cs | 62 +- NPCs/AbyssNPCs/AquaticScourgeTail.cs | 9 +- NPCs/AbyssNPCs/AquaticSeekerBody.cs | 10 +- NPCs/AbyssNPCs/AquaticSeekerHead.cs | 16 +- NPCs/AbyssNPCs/AquaticSeekerTail.cs | 10 +- NPCs/AbyssNPCs/AquaticUrchin.cs | 10 +- NPCs/AbyssNPCs/Bloatfish.cs | 20 +- NPCs/AbyssNPCs/BobbitWormHead.cs | 20 +- NPCs/AbyssNPCs/BobbitWormSegment.cs | 10 +- NPCs/AbyssNPCs/BoxJellyfish.cs | 8 +- NPCs/AbyssNPCs/Catfish.cs | 6 +- NPCs/AbyssNPCs/ChaoticPuffer.cs | 16 +- NPCs/AbyssNPCs/ColossalSquid.cs | 24 +- NPCs/AbyssNPCs/Cuttlefish.cs | 16 +- NPCs/AbyssNPCs/DevilFish.cs | 26 +- NPCs/AbyssNPCs/EidolonWyrmBody.cs | 12 +- NPCs/AbyssNPCs/EidolonWyrmBodyAlt.cs | 12 +- NPCs/AbyssNPCs/EidolonWyrmBodyAltHuge.cs | 12 +- NPCs/AbyssNPCs/EidolonWyrmBodyHuge.cs | 12 +- NPCs/AbyssNPCs/EidolonWyrmHead.cs | 38 +- NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs | 32 +- NPCs/AbyssNPCs/EidolonWyrmTail.cs | 8 +- NPCs/AbyssNPCs/EidolonWyrmTailHuge.cs | 8 +- NPCs/AbyssNPCs/Flounder.cs | 10 +- NPCs/AbyssNPCs/Frogfish.cs | 10 +- NPCs/AbyssNPCs/GiantSquid.cs | 22 +- NPCs/AbyssNPCs/Gnasher.cs | 6 +- NPCs/AbyssNPCs/GulperEelBody.cs | 12 +- NPCs/AbyssNPCs/GulperEelBodyAlt.cs | 12 +- NPCs/AbyssNPCs/GulperEelHead.cs | 34 +- NPCs/AbyssNPCs/GulperEelTail.cs | 12 +- NPCs/AbyssNPCs/Laserfish.cs | 12 +- NPCs/AbyssNPCs/LuminousCorvina.cs | 22 +- NPCs/AbyssNPCs/MantisShrimp.cs | 8 +- NPCs/AbyssNPCs/Mauler.cs | 20 +- NPCs/AbyssNPCs/MirageJelly.cs | 26 +- NPCs/AbyssNPCs/MorayEel.cs | 8 +- NPCs/AbyssNPCs/OarfishBody.cs | 10 +- NPCs/AbyssNPCs/OarfishHead.cs | 26 +- NPCs/AbyssNPCs/OarfishTail.cs | 10 +- NPCs/AbyssNPCs/Reaper.cs | 36 +- NPCs/AbyssNPCs/SeaUrchin.cs | 8 +- NPCs/AbyssNPCs/ToxicMinnow.cs | 18 +- NPCs/AbyssNPCs/Trasher.cs | 8 +- NPCs/AbyssNPCs/Viperfish.cs | 22 +- NPCs/Astrageldon/Astrageldon.cs | 44 +- NPCs/Astrageldon/AstrageldonSlime.cs | 16 +- NPCs/AstralBiomeNPCs/Aries.cs | 18 +- NPCs/AstralBiomeNPCs/AstralProbe.cs | 12 +- NPCs/AstralBiomeNPCs/AstralSlime.cs | 14 +- NPCs/AstralBiomeNPCs/AstralachneaGround.cs | 20 +- NPCs/AstralBiomeNPCs/AstralachneaWall.cs | 24 +- NPCs/AstralBiomeNPCs/Atlas.cs | 16 +- NPCs/AstralBiomeNPCs/BigSightseer.cs | 28 +- NPCs/AstralBiomeNPCs/FusionFeeder.cs | 16 +- NPCs/AstralBiomeNPCs/Hadarian.cs | 26 +- NPCs/AstralBiomeNPCs/Hive.cs | 20 +- NPCs/AstralBiomeNPCs/Hiveling.cs | 10 +- NPCs/AstralBiomeNPCs/Mantis.cs | 18 +- NPCs/AstralBiomeNPCs/Nova.cs | 20 +- NPCs/AstralBiomeNPCs/SmallSightseer.cs | 16 +- NPCs/AstralBiomeNPCs/StellarCulex.cs | 16 +- NPCs/AstralBiomeNPCs/Twinkler.cs | 12 +- NPCs/AstrumDeus/AstrumDeusBody.cs | 26 +- NPCs/AstrumDeus/AstrumDeusBodySpectral.cs | 26 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 32 +- NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs | 54 +- NPCs/AstrumDeus/AstrumDeusProbe.cs | 16 +- NPCs/AstrumDeus/AstrumDeusProbe2.cs | 16 +- NPCs/AstrumDeus/AstrumDeusProbe3.cs | 14 +- NPCs/AstrumDeus/AstrumDeusTail.cs | 20 +- NPCs/AstrumDeus/AstrumDeusTailSpectral.cs | 20 +- NPCs/BrimstoneWaifu/Brimling.cs | 28 +- NPCs/BrimstoneWaifu/BrimstoneElemental.cs | 62 +- NPCs/Bumblefuck/Bumblefuck.cs | 44 +- NPCs/Bumblefuck/Bumblefuck2.cs | 9 +- NPCs/Calamitas/CalScreenShaderData.cs | 4 +- NPCs/Calamitas/CalSky.cs | 4 +- NPCs/Calamitas/Calamitas.cs | 36 +- NPCs/Calamitas/CalamitasRun.cs | 44 +- NPCs/Calamitas/CalamitasRun2.cs | 40 +- NPCs/Calamitas/CalamitasRun3.cs | 70 +- NPCs/Calamitas/LifeSeeker.cs | 6 +- NPCs/Calamitas/SoulSeeker.cs | 12 +- NPCs/CalamityAI.cs | 22 +- NPCs/CalamityBiomeNPCs/CultistAssassin.cs | 12 +- NPCs/CalamityBiomeNPCs/DespairStone.cs | 12 +- NPCs/CalamityBiomeNPCs/Scryllar.cs | 12 +- NPCs/CalamityBiomeNPCs/ScryllarRage.cs | 14 +- NPCs/CalamityBiomeNPCs/SoulSlurper.cs | 14 +- NPCs/CalamityGlobalAI.cs | 20 +- NPCs/CalamityGlobalNPC.cs | 429 ++++++------ NPCs/CalamityGlobalNPCLoot.cs | 316 ++++----- NPCs/CeaselessVoid/CeaselessVoid.cs | 28 +- NPCs/CeaselessVoid/DarkEnergy.cs | 6 +- NPCs/CeaselessVoid/DarkEnergy2.cs | 6 +- NPCs/CeaselessVoid/DarkEnergy3.cs | 6 +- NPCs/CosmicWraith/CosmicLantern.cs | 6 +- NPCs/CosmicWraith/CosmicWraith.cs | 50 +- NPCs/CosmicWraith/SignusBomb.cs | 4 +- NPCs/Crabulon/CrabShroom.cs | 4 +- NPCs/Crabulon/CrabulonIdle.cs | 34 +- NPCs/Cryogen/Cryocore.cs | 4 +- NPCs/Cryogen/Cryocore2.cs | 4 +- NPCs/Cryogen/Cryogen.cs | 102 +-- NPCs/Cryogen/CryogenIce.cs | 12 +- NPCs/Cryogen/IceMass.cs | 4 +- NPCs/DesertScourge/DesertScourgeBody.cs | 10 +- NPCs/DesertScourge/DesertScourgeBodySmall.cs | 6 +- NPCs/DesertScourge/DesertScourgeHead.cs | 40 +- NPCs/DesertScourge/DesertScourgeHeadSmall.cs | 8 +- NPCs/DesertScourge/DesertScourgeTail.cs | 4 +- NPCs/DesertScourge/DesertScourgeTailSmall.cs | 6 +- NPCs/DesertScourge/DriedSeekerBody.cs | 4 +- NPCs/DesertScourge/DriedSeekerHead.cs | 8 +- NPCs/DesertScourge/DriedSeekerTail.cs | 4 +- NPCs/GreatSandShark/GreatSandShark.cs | 32 +- NPCs/HiveMind/DankCreeper.cs | 8 +- NPCs/HiveMind/DarkHeart.cs | 6 +- NPCs/HiveMind/HiveBlob.cs | 6 +- NPCs/HiveMind/HiveBlob2.cs | 6 +- NPCs/HiveMind/HiveCyst.cs | 10 +- NPCs/HiveMind/HiveMind.cs | 24 +- NPCs/HiveMind/HiveMindP2.cs | 54 +- NPCs/Leviathan/AquaticAberration.cs | 8 +- NPCs/Leviathan/LevScreenShaderData.cs | 4 +- NPCs/Leviathan/LevSky.cs | 4 +- NPCs/Leviathan/Leviathan.cs | 62 +- NPCs/Leviathan/LeviathanStart.cs | 14 +- NPCs/Leviathan/Parasea.cs | 6 +- NPCs/Leviathan/Siren.cs | 50 +- NPCs/Leviathan/SirenClone.cs | 6 +- NPCs/Leviathan/SirenIce.cs | 8 +- NPCs/NormalNPCs/AeroSlime.cs | 8 +- NPCs/NormalNPCs/AngryDog.cs | 8 +- NPCs/NormalNPCs/ArmoredDiggerBody.cs | 8 +- NPCs/NormalNPCs/ArmoredDiggerHead.cs | 20 +- NPCs/NormalNPCs/ArmoredDiggerTail.cs | 8 +- NPCs/NormalNPCs/BlightedEye.cs | 8 +- NPCs/NormalNPCs/BloomSlime.cs | 8 +- NPCs/NormalNPCs/Bohldohr.cs | 8 +- NPCs/NormalNPCs/CalamityEye.cs | 10 +- NPCs/NormalNPCs/CharredSlime.cs | 8 +- NPCs/NormalNPCs/Cnidrion.cs | 20 +- NPCs/NormalNPCs/CosmicElemental.cs | 8 +- NPCs/NormalNPCs/CrawlerAmber.cs | 6 +- NPCs/NormalNPCs/CrawlerAmethyst.cs | 6 +- NPCs/NormalNPCs/CrawlerCrystal.cs | 8 +- NPCs/NormalNPCs/CrawlerDiamond.cs | 6 +- NPCs/NormalNPCs/CrawlerEmerald.cs | 6 +- NPCs/NormalNPCs/CrawlerRuby.cs | 6 +- NPCs/NormalNPCs/CrawlerSapphire.cs | 6 +- NPCs/NormalNPCs/CrawlerTopaz.cs | 6 +- NPCs/NormalNPCs/CrimulanBlightSlime.cs | 10 +- NPCs/NormalNPCs/CryoSlime.cs | 12 +- NPCs/NormalNPCs/Cryon.cs | 10 +- NPCs/NormalNPCs/EbonianBlightSlime.cs | 8 +- NPCs/NormalNPCs/Eidolist.cs | 12 +- NPCs/NormalNPCs/FearlessGoldfishWarrior.cs | 6 +- NPCs/NormalNPCs/HeatSpirit.cs | 10 +- NPCs/NormalNPCs/Horse.cs | 18 +- NPCs/NormalNPCs/IceClasper.cs | 14 +- NPCs/NormalNPCs/ImpiousImmolator.cs | 14 +- NPCs/NormalNPCs/IrradiatedSlime.cs | 8 +- NPCs/NormalNPCs/KingSlimeJewel.cs | 4 +- NPCs/NormalNPCs/OverloadedSoldier.cs | 12 +- NPCs/NormalNPCs/PerennialSlime.cs | 12 +- NPCs/NormalNPCs/PhantomDebris.cs | 12 +- NPCs/NormalNPCs/PhantomSpirit.cs | 10 +- NPCs/NormalNPCs/PhantomSpiritL.cs | 14 +- NPCs/NormalNPCs/PhantomSpiritM.cs | 12 +- NPCs/NormalNPCs/PhantomSpiritS.cs | 12 +- NPCs/NormalNPCs/Piggy.cs | 6 +- NPCs/NormalNPCs/Pitbull.cs | 6 +- NPCs/NormalNPCs/PlagueBee.cs | 20 +- NPCs/NormalNPCs/PlagueBeeLarge.cs | 18 +- NPCs/NormalNPCs/PlaguedDerpling.cs | 16 +- NPCs/NormalNPCs/PlaguedFlyingFox.cs | 16 +- NPCs/NormalNPCs/PlaguedJungleSlime.cs | 20 +- NPCs/NormalNPCs/PlaguedTortoise.cs | 16 +- NPCs/NormalNPCs/ProfanedEnergyBody.cs | 10 +- NPCs/NormalNPCs/ProfanedEnergyLantern.cs | 6 +- NPCs/NormalNPCs/SandTortoise.cs | 6 +- NPCs/NormalNPCs/ScornEater.cs | 8 +- NPCs/NormalNPCs/ShockstormShuttle.cs | 8 +- NPCs/NormalNPCs/StormlionCharger.cs | 8 +- NPCs/NormalNPCs/SunBat.cs | 10 +- NPCs/NormalNPCs/Sunskater.cs | 10 +- NPCs/NormalNPCs/SuperDummy.cs | 4 +- NPCs/NormalNPCs/ThiccWaifu.cs | 20 +- NPCs/NormalNPCs/WulfrumDrone.cs | 10 +- NPCs/NormalNPCs/WulfrumSlime.cs | 10 +- NPCs/Perforator/PerforatorBodyLarge.cs | 12 +- NPCs/Perforator/PerforatorBodyMedium.cs | 12 +- NPCs/Perforator/PerforatorBodySmall.cs | 12 +- NPCs/Perforator/PerforatorCyst.cs | 10 +- NPCs/Perforator/PerforatorHeadLarge.cs | 18 +- NPCs/Perforator/PerforatorHeadMedium.cs | 18 +- NPCs/Perforator/PerforatorHeadSmall.cs | 18 +- NPCs/Perforator/PerforatorHive.cs | 50 +- NPCs/Perforator/PerforatorTailLarge.cs | 10 +- NPCs/Perforator/PerforatorTailMedium.cs | 10 +- NPCs/Perforator/PerforatorTailSmall.cs | 10 +- .../PbGScreenShaderData.cs | 4 +- NPCs/PlaguebringerGoliath/PbGSky.cs | 4 +- NPCs/PlaguebringerGoliath/PlagueBeeG.cs | 12 +- NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs | 12 +- .../PlagueHomingMissile.cs | 12 +- NPCs/PlaguebringerGoliath/PlagueMine.cs | 4 +- .../PlaguebringerGoliath.cs | 90 +-- NPCs/PlaguebringerShade/PlaguebringerShade.cs | 40 +- NPCs/Polterghast/PhantomFuckYou.cs | 6 +- NPCs/Polterghast/PolterPhantom.cs | 18 +- NPCs/Polterghast/Polterghast.cs | 74 +-- NPCs/Polterghast/PolterghastHook.cs | 8 +- .../ProfanedGuardianBoss.cs | 34 +- .../ProfanedGuardianBoss2.cs | 22 +- .../ProfanedGuardianBoss3.cs | 22 +- NPCs/Providence/ProvScreenShaderData.cs | 4 +- NPCs/Providence/ProvSky.cs | 4 +- NPCs/Providence/ProvSpawnDefense.cs | 20 +- NPCs/Providence/ProvSpawnHealer.cs | 20 +- NPCs/Providence/ProvSpawnOffense.cs | 24 +- NPCs/Providence/Providence.cs | 88 +-- NPCs/Scavenger/FlamePillar.cs | 6 +- NPCs/Scavenger/RockPillar.cs | 4 +- NPCs/Scavenger/ScavengerBody.cs | 98 +-- NPCs/Scavenger/ScavengerClawLeft.cs | 24 +- NPCs/Scavenger/ScavengerClawRight.cs | 24 +- NPCs/Scavenger/ScavengerHead.cs | 26 +- NPCs/Scavenger/ScavengerHead2.cs | 8 +- NPCs/Scavenger/ScavengerLegLeft.cs | 20 +- NPCs/Scavenger/ScavengerLegRight.cs | 20 +- NPCs/SlimeGod/SlimeGod.cs | 28 +- NPCs/SlimeGod/SlimeGodCore.cs | 58 +- NPCs/SlimeGod/SlimeGodRun.cs | 30 +- NPCs/SlimeGod/SlimeGodRunSplit.cs | 28 +- NPCs/SlimeGod/SlimeGodSplit.cs | 26 +- NPCs/SlimeGod/SlimeSpawnCorrupt.cs | 6 +- NPCs/SlimeGod/SlimeSpawnCorrupt2.cs | 4 +- NPCs/SlimeGod/SlimeSpawnCrimson.cs | 4 +- NPCs/SlimeGod/SlimeSpawnCrimson2.cs | 8 +- NPCs/StormWeaver/StasisProbe.cs | 4 +- NPCs/StormWeaver/StasisProbeNaked.cs | 4 +- NPCs/StormWeaver/StormWeaverBody.cs | 8 +- NPCs/StormWeaver/StormWeaverBodyNaked.cs | 8 +- NPCs/StormWeaver/StormWeaverHead.cs | 10 +- NPCs/StormWeaver/StormWeaverHeadNaked.cs | 26 +- NPCs/StormWeaver/StormWeaverTail.cs | 4 +- NPCs/StormWeaver/StormWeaverTailNaked.cs | 4 +- NPCs/SunkenSeaNPCs/BlindedAngler.cs | 10 +- NPCs/SunkenSeaNPCs/Clam.cs | 10 +- NPCs/SunkenSeaNPCs/EutrophicRay.cs | 8 +- NPCs/SunkenSeaNPCs/GhostBell.cs | 6 +- NPCs/SunkenSeaNPCs/GhostBellSmall.cs | 6 +- NPCs/SunkenSeaNPCs/GiantClam.cs | 40 +- NPCs/SunkenSeaNPCs/PrismTurtle.cs | 8 +- NPCs/SunkenSeaNPCs/SeaFloaty.cs | 6 +- NPCs/SunkenSeaNPCs/SeaMinnow.cs | 6 +- NPCs/SunkenSeaNPCs/SeaSerpent1.cs | 20 +- NPCs/SunkenSeaNPCs/SeaSerpent2.cs | 10 +- NPCs/SunkenSeaNPCs/SeaSerpent3.cs | 10 +- NPCs/SunkenSeaNPCs/SeaSerpent4.cs | 10 +- NPCs/SunkenSeaNPCs/SeaSerpent5.cs | 10 +- NPCs/SupremeCalamitas/SCalScreenShaderData.cs | 4 +- NPCs/SupremeCalamitas/SCalSky.cs | 4 +- NPCs/SupremeCalamitas/SCalWormBody.cs | 4 +- NPCs/SupremeCalamitas/SCalWormBodyWeak.cs | 12 +- NPCs/SupremeCalamitas/SCalWormHead.cs | 12 +- NPCs/SupremeCalamitas/SCalWormHeart.cs | 6 +- NPCs/SupremeCalamitas/SCalWormTail.cs | 4 +- NPCs/SupremeCalamitas/SoulSeekerSupreme.cs | 8 +- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 180 ++--- NPCs/SupremeCalamitas/SupremeCataclysm.cs | 14 +- NPCs/SupremeCalamitas/SupremeCatastrophe.cs | 14 +- NPCs/TheDevourerofGods/DevourerofGodsBody.cs | 10 +- NPCs/TheDevourerofGods/DevourerofGodsBody2.cs | 6 +- NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs | 8 +- NPCs/TheDevourerofGods/DevourerofGodsHead.cs | 22 +- NPCs/TheDevourerofGods/DevourerofGodsHead2.cs | 12 +- NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs | 76 +-- NPCs/TheDevourerofGods/DevourerofGodsTail.cs | 8 +- NPCs/TheDevourerofGods/DevourerofGodsTail2.cs | 6 +- NPCs/TheDevourerofGods/DevourerofGodsTailS.cs | 11 +- .../TheDevourerofGods/DoGSCreenShaderDataS.cs | 4 +- NPCs/TheDevourerofGods/DoGScreenShaderData.cs | 4 +- NPCs/TheDevourerofGods/DoGSky.cs | 4 +- NPCs/TheDevourerofGods/DoGSkyS.cs | 4 +- NPCs/TownNPCs/Bandit.cs | 46 +- NPCs/TownNPCs/DILF.cs | 38 +- NPCs/TownNPCs/FAP.cs | 60 +- NPCs/TownNPCs/SEAHOE.cs | 26 +- NPCs/Yharon/DetonatingFlare.cs | 4 +- NPCs/Yharon/DetonatingFlare2.cs | 6 +- NPCs/Yharon/YScreenShader.cs | 4 +- NPCs/Yharon/YSky.cs | 4 +- NPCs/Yharon/Yharon.cs | 118 ++-- Projectiles/Amidias/AmidiasTridentProj.cs | 6 +- Projectiles/Amidias/AmidiasWhirlpool.cs | 4 +- Projectiles/Amidias/BigCoral.cs | 6 +- Projectiles/Amidias/HermitCrab.cs | 10 +- Projectiles/Amidias/SandDollarProj.cs | 4 +- Projectiles/Amidias/Shell.cs | 4 +- Projectiles/Amidias/SmallCoral.cs | 4 +- Projectiles/Amidias/SnapClamProj.cs | 6 +- Projectiles/Amidias/UrchinBall.cs | 6 +- Projectiles/Amidias/UrchinBallSpike.cs | 4 +- Projectiles/Amidias/WaywasherProj.cs | 4 +- Projectiles/Astral/AstralCannonProjectile.cs | 12 +- Projectiles/Astral/AstralScytheProjectile.cs | 8 +- Projectiles/Astral/AstralachneaFang.cs | 12 +- Projectiles/Astral/HeavenfallenEnergy.cs | 10 +- Projectiles/Astral/HeavenfallenStardisk.cs | 18 +- Projectiles/Astral/Hive.cs | 6 +- Projectiles/Astral/Hiveling.cs | 10 +- Projectiles/Astral/Quasar.cs | 12 +- Projectiles/Astral/Quasar2.cs | 8 +- Projectiles/Astral/RadiantExplosion.cs | 12 +- Projectiles/Astral/RadiantStar.cs | 12 +- Projectiles/Astral/RadiantStar2.cs | 8 +- Projectiles/Astral/StellarKnife.cs | 8 +- Projectiles/Boss/AbyssBallVolley.cs | 4 +- Projectiles/Boss/AbyssBallVolley2.cs | 4 +- Projectiles/Boss/AbyssMine.cs | 4 +- Projectiles/Boss/AbyssMine2.cs | 4 +- Projectiles/Boss/AstralFlame.cs | 12 +- Projectiles/Boss/AstralLaser.cs | 6 +- Projectiles/Boss/AstralShot2.cs | 6 +- Projectiles/Boss/BigFlare.cs | 6 +- Projectiles/Boss/BigFlare2.cs | 6 +- Projectiles/Boss/BloodClot.cs | 6 +- Projectiles/Boss/BloodGeyser.cs | 6 +- Projectiles/Boss/BrimstoneBall.cs | 6 +- Projectiles/Boss/BrimstoneBarrage.cs | 8 +- Projectiles/Boss/BrimstoneFire.cs | 6 +- Projectiles/Boss/BrimstoneFireblast.cs | 12 +- Projectiles/Boss/BrimstoneGigaBlast.cs | 12 +- Projectiles/Boss/BrimstoneHellblast.cs | 8 +- Projectiles/Boss/BrimstoneHellblast2.cs | 8 +- Projectiles/Boss/BrimstoneHellfireball.cs | 8 +- Projectiles/Boss/BrimstoneLaser.cs | 8 +- Projectiles/Boss/BrimstoneLaserSplit.cs | 6 +- Projectiles/Boss/BrimstoneMonster.cs | 8 +- Projectiles/Boss/BrimstoneWave.cs | 8 +- Projectiles/Boss/CosmicFlameBurst.cs | 4 +- Projectiles/Boss/DarkEnergyBall.cs | 4 +- Projectiles/Boss/DestroyerHomingLaser.cs | 4 +- Projectiles/Boss/DeusMine.cs | 10 +- Projectiles/Boss/DoGBeam.cs | 4 +- Projectiles/Boss/DoGBeamPortal.cs | 8 +- Projectiles/Boss/DoGDeath.cs | 6 +- Projectiles/Boss/DoGFire.cs | 6 +- Projectiles/Boss/DoGNebulaShot.cs | 4 +- Projectiles/Boss/EssenceDust.cs | 4 +- Projectiles/Boss/Flare.cs | 6 +- Projectiles/Boss/FlareBomb.cs | 4 +- Projectiles/Boss/FlareDust.cs | 4 +- Projectiles/Boss/FlareDust2.cs | 4 +- Projectiles/Boss/Flarenado.cs | 4 +- Projectiles/Boss/FrostMist.cs | 4 +- Projectiles/Boss/GreatSandBlast.cs | 4 +- Projectiles/Boss/HealOrbProv.cs | 4 +- Projectiles/Boss/HellfireExplosion.cs | 6 +- Projectiles/Boss/HiveBombGoliath.cs | 6 +- Projectiles/Boss/HolyBlast.cs | 10 +- Projectiles/Boss/HolyBomb.cs | 8 +- Projectiles/Boss/HolyBurnOrb.cs | 6 +- Projectiles/Boss/HolyFire.cs | 14 +- Projectiles/Boss/HolyFire2.cs | 6 +- Projectiles/Boss/HolyFlare.cs | 6 +- Projectiles/Boss/HolyLight.cs | 4 +- Projectiles/Boss/HolyShot.cs | 6 +- Projectiles/Boss/HolySpear.cs | 6 +- Projectiles/Boss/IceBlast.cs | 4 +- Projectiles/Boss/IceBomb.cs | 10 +- Projectiles/Boss/IceRain.cs | 4 +- Projectiles/Boss/IchorShot.cs | 4 +- Projectiles/Boss/Infernado.cs | 4 +- Projectiles/Boss/Infernado2.cs | 4 +- Projectiles/Boss/InfernadoRevenge.cs | 4 +- Projectiles/Boss/LeviathanBomb.cs | 4 +- Projectiles/Boss/MoltenBlast.cs | 8 +- Projectiles/Boss/MoltenBlob.cs | 6 +- Projectiles/Boss/MushBomb.cs | 4 +- Projectiles/Boss/MushBombFall.cs | 4 +- Projectiles/Boss/Mushmash.cs | 4 +- Projectiles/Boss/PhantomBlast.cs | 4 +- Projectiles/Boss/PhantomBlast2.cs | 4 +- Projectiles/Boss/PhantomGhostShot.cs | 4 +- Projectiles/Boss/PhantomHookShot.cs | 4 +- Projectiles/Boss/PhantomMine.cs | 4 +- Projectiles/Boss/PhantomShot.cs | 4 +- Projectiles/Boss/PhantomShot2.cs | 4 +- Projectiles/Boss/PlagueExplosion.cs | 6 +- Projectiles/Boss/PlagueStingerGoliath.cs | 6 +- Projectiles/Boss/PlagueStingerGoliathV2.cs | 8 +- Projectiles/Boss/ProfanedSpear.cs | 6 +- Projectiles/Boss/ProvidenceCrystal.cs | 8 +- Projectiles/Boss/ProvidenceCrystalShard.cs | 4 +- Projectiles/Boss/ProvidenceHolyRay.cs | 8 +- Projectiles/Boss/RavagerFlame.cs | 4 +- Projectiles/Boss/RedLightningFeather.cs | 4 +- Projectiles/Boss/SandBlast.cs | 4 +- Projectiles/Boss/SandPoisonCloud.cs | 4 +- Projectiles/Boss/SandTooth.cs | 4 +- Projectiles/Boss/ScavengerLaser.cs | 4 +- Projectiles/Boss/ScavengerNuke.cs | 4 +- Projectiles/Boss/ShadeNimbusHostile.cs | 6 +- Projectiles/Boss/ShaderainHostile.cs | 4 +- Projectiles/Boss/Shadowflame.cs | 12 +- Projectiles/Boss/Shadowflamethrower.cs | 10 +- Projectiles/Boss/SignusScythe.cs | 6 +- Projectiles/Boss/SirenSong.cs | 4 +- Projectiles/Boss/SkyFlare.cs | 8 +- Projectiles/Boss/SkyFlareRevenge.cs | 6 +- Projectiles/Boss/SporeGasPlantera.cs | 4 +- Projectiles/Boss/VileClot.cs | 4 +- Projectiles/Boss/WaterSpear.cs | 4 +- Projectiles/Boss/YharonFireball.cs | 8 +- Projectiles/Boss/YharonFireball2.cs | 4 +- Projectiles/CalamityGlobalProjectile.cs | 76 +-- Projectiles/Enemy/AstralShot.cs | 4 +- Projectiles/Enemy/CrimsonSpike.cs | 4 +- Projectiles/Enemy/EarthRockBig.cs | 4 +- Projectiles/Enemy/EarthRockSmall.cs | 4 +- Projectiles/Enemy/FlameBurstHostile.cs | 4 +- Projectiles/Enemy/HorsWaterBlast.cs | 4 +- Projectiles/Enemy/InkBomb.cs | 6 +- Projectiles/Enemy/InkPoisonCloud.cs | 4 +- Projectiles/Enemy/InkPoisonCloud2.cs | 4 +- Projectiles/Enemy/InkPoisonCloud3.cs | 4 +- Projectiles/Enemy/LavaChunk.cs | 4 +- Projectiles/Enemy/MantisRing.cs | 10 +- Projectiles/Enemy/PufferExplosion.cs | 4 +- Projectiles/Enemy/StormMarkHostile.cs | 6 +- Projectiles/Enemy/SulphuricAcidCannon.cs | 4 +- Projectiles/Enemy/SulphuricAcidMist.cs | 4 +- Projectiles/Enemy/TornadoHostile.cs | 4 +- Projectiles/Enemy/ToxicMinnowCloud.cs | 4 +- Projectiles/Healing/AtaxiaHealOrb.cs | 4 +- Projectiles/Healing/AuricOrb.cs | 4 +- Projectiles/Healing/BurntSienna.cs | 4 +- Projectiles/Healing/CactusHealOrb.cs | 4 +- Projectiles/Healing/EarthHealOrb.cs | 4 +- Projectiles/Healing/EssenceFlame.cs | 4 +- Projectiles/Healing/Exoheal.cs | 4 +- Projectiles/Healing/FungalHeal.cs | 4 +- Projectiles/Healing/GodSlayerHealOrb.cs | 4 +- Projectiles/Healing/PhoenixHeal.cs | 4 +- Projectiles/Healing/RainHeal.cs | 4 +- Projectiles/Healing/RoyalHeal.cs | 4 +- Projectiles/Healing/SilvaOrb.cs | 4 +- Projectiles/Healing/Terracotta.cs | 4 +- Projectiles/Healing/TransfusionTrail.cs | 4 +- Projectiles/Healing/XerocHealOrb.cs | 4 +- Projectiles/Magic/AbyssBall.cs | 4 +- Projectiles/Magic/AetherBeam.cs | 8 +- Projectiles/Magic/Ancient.cs | 6 +- Projectiles/Magic/Ancient2.cs | 4 +- Projectiles/Magic/ApothChloro.cs | 8 +- Projectiles/Magic/ApothJaws.cs | 14 +- Projectiles/Magic/ApothMark.cs | 16 +- Projectiles/Magic/Asteroid.cs | 4 +- Projectiles/Magic/AsteroidMolten.cs | 6 +- Projectiles/Magic/AstralCrystal.cs | 18 +- .../Magic/AstralCrystalInvisibleExplosion.cs | 6 +- Projectiles/Magic/AstralStarMagic.cs | 16 +- Projectiles/Magic/AtlantisSpear.cs | 8 +- Projectiles/Magic/AtlantisSpear2.cs | 4 +- Projectiles/Magic/AuraRain.cs | 4 +- Projectiles/Magic/BeamingBolt.cs | 8 +- Projectiles/Magic/BeamingBolt2.cs | 4 +- Projectiles/Magic/BigBeamofDeath.cs | 6 +- Projectiles/Magic/BigBeamofDeath2.cs | 4 +- Projectiles/Magic/BlackAnurian.cs | 4 +- Projectiles/Magic/BlackAnurianPlankton.cs | 4 +- Projectiles/Magic/BloodBeam.cs | 4 +- Projectiles/Magic/BloodBlast.cs | 4 +- Projectiles/Magic/BloodBolt.cs | 4 +- Projectiles/Magic/BloodOrb.cs | 6 +- Projectiles/Magic/BloodRay.cs | 6 +- Projectiles/Magic/BlueBubble.cs | 4 +- Projectiles/Magic/BlushieStaffProj.cs | 4 +- Projectiles/Magic/BrimstoneBeam.cs | 8 +- Projectiles/Magic/BrimstoneBeam2.cs | 8 +- Projectiles/Magic/BrimstoneBeam3.cs | 8 +- Projectiles/Magic/BrimstoneBeam4.cs | 8 +- Projectiles/Magic/BrimstoneBeam5.cs | 6 +- Projectiles/Magic/BrimstoneFireball.cs | 8 +- .../Magic/BrimstoneHellfireballFriendly.cs | 8 +- .../Magic/BrimstoneHellfireballFriendly2.cs | 8 +- Projectiles/Magic/BrimstoneHomer.cs | 6 +- Projectiles/Magic/BrimstoneTentacle.cs | 6 +- Projectiles/Magic/Climax.cs | 6 +- Projectiles/Magic/Climax2.cs | 6 +- Projectiles/Magic/ClimaxBeam.cs | 4 +- Projectiles/Magic/CoralSpike.cs | 4 +- Projectiles/Magic/CosmicTentacle.cs | 4 +- Projectiles/Magic/CryoBlast.cs | 6 +- Projectiles/Magic/DemonicPitchfork.cs | 4 +- Projectiles/Magic/DustProjectile.cs | 4 +- Projectiles/Magic/EidolicWail.cs | 6 +- Projectiles/Magic/EldritchTentacle.cs | 4 +- Projectiles/Magic/ElementBolt.cs | 6 +- Projectiles/Magic/ElementBolt2.cs | 4 +- Projectiles/Magic/ElementOrb.cs | 6 +- Projectiles/Magic/ElementOrb2.cs | 6 +- Projectiles/Magic/ElementRay.cs | 14 +- Projectiles/Magic/ElementTentacle.cs | 12 +- Projectiles/Magic/EvergladeSprayProjectile.cs | 4 +- Projectiles/Magic/FabBolt.cs | 4 +- Projectiles/Magic/FabOrb.cs | 6 +- Projectiles/Magic/FabRay.cs | 6 +- Projectiles/Magic/FatesReveal.cs | 4 +- Projectiles/Magic/FlameBeamTip.cs | 6 +- Projectiles/Magic/FlameBeamTip2.cs | 4 +- Projectiles/Magic/FlamePillar.cs | 4 +- Projectiles/Magic/FlamingPumpkin.cs | 4 +- Projectiles/Magic/FlareBoltProjectile.cs | 4 +- Projectiles/Magic/ForbiddenAxeBlade.cs | 4 +- Projectiles/Magic/ForbiddenSunProjectile.cs | 6 +- Projectiles/Magic/ForbiddenSunburst.cs | 4 +- .../Magic/FrigidflashBoltProjectile.cs | 4 +- Projectiles/Magic/FrostBoltProjectile.cs | 4 +- Projectiles/Magic/GammaLaser.cs | 4 +- Projectiles/Magic/GhastlyBlast.cs | 12 +- Projectiles/Magic/GhastlyExplosion.cs | 6 +- Projectiles/Magic/GhastlyExplosionShard.cs | 4 +- Projectiles/Magic/GhastlySubBlast.cs | 6 +- Projectiles/Magic/GhastlyVisage.cs | 6 +- Projectiles/Magic/GleamingBolt.cs | 8 +- Projectiles/Magic/GleamingBolt2.cs | 4 +- Projectiles/Magic/GraniteEnergy.cs | 4 +- Projectiles/Magic/GranitePulse.cs | 8 +- Projectiles/Magic/HeliumFlashBlast.cs | 4 +- .../Magic/HellfireExplosionFriendly.cs | 6 +- .../Magic/HellfireExplosionFriendly2.cs | 6 +- Projectiles/Magic/HolyFlame.cs | 6 +- Projectiles/Magic/HolyLaser.cs | 6 +- Projectiles/Magic/IceCluster.cs | 10 +- Projectiles/Magic/IceSpike.cs | 4 +- Projectiles/Magic/InfernadoFriendly.cs | 4 +- Projectiles/Magic/InfernadoMarkFriendly.cs | 6 +- Projectiles/Magic/InfernalBlade.cs | 8 +- Projectiles/Magic/InfernalBlade2.cs | 6 +- Projectiles/Magic/IonBlast.cs | 6 +- Projectiles/Magic/LiquidBlade.cs | 6 +- Projectiles/Magic/LiquidBlade2.cs | 4 +- Projectiles/Magic/MagicNebulaShot.cs | 4 +- Projectiles/Magic/MagnaBlast.cs | 4 +- Projectiles/Magic/MagneticBeam.cs | 4 +- Projectiles/Magic/MagneticOrb.cs | 6 +- Projectiles/Magic/MagnusBeam.cs | 4 +- Projectiles/Magic/ManaBolt.cs | 8 +- Projectiles/Magic/ManaBoltSmall.cs | 4 +- Projectiles/Magic/ManaBoltSmall2.cs | 4 +- Projectiles/Magic/NightBolt.cs | 4 +- Projectiles/Magic/NightOrb.cs | 6 +- Projectiles/Magic/NightRay.cs | 6 +- Projectiles/Magic/NuclearFuryProjectile.cs | 4 +- Projectiles/Magic/ParticleBeamofDoom.cs | 4 +- Projectiles/Magic/PhantasmalFury.cs | 10 +- Projectiles/Magic/Phantom.cs | 4 +- Projectiles/Magic/PlagueFang.cs | 6 +- Projectiles/Magic/PlasmaBolt.cs | 4 +- Projectiles/Magic/PlasmaRay.cs | 8 +- Projectiles/Magic/PlasmaRay2.cs | 4 +- Projectiles/Magic/PlasmaShot.cs | 4 +- Projectiles/Magic/Purge.cs | 8 +- Projectiles/Magic/PurgeLaser.cs | 4 +- Projectiles/Magic/RougeSlashLarge.cs | 4 +- Projectiles/Magic/RougeSlashMedium.cs | 4 +- Projectiles/Magic/RougeSlashSmall.cs | 4 +- Projectiles/Magic/SHPB.cs | 6 +- Projectiles/Magic/SHPExplosion.cs | 4 +- Projectiles/Magic/SHPL.cs | 4 +- Projectiles/Magic/SanguineFlare.cs | 6 +- .../SeethingDischargeBrimstoneBarrage.cs | 4 +- .../SeethingDischargeBrimstoneHellblast.cs | 4 +- Projectiles/Magic/ShadeNimbus.cs | 6 +- Projectiles/Magic/ShadeNimbusCloud.cs | 6 +- Projectiles/Magic/ShadecrystalProjectile.cs | 4 +- Projectiles/Magic/Shaderain.cs | 4 +- Projectiles/Magic/Shadowbolt.cs | 4 +- Projectiles/Magic/ShiftingSands.cs | 4 +- Projectiles/Magic/SirensSong.cs | 4 +- Projectiles/Magic/Snowflake.cs | 4 +- Projectiles/Magic/SolarBeam2.cs | 6 +- .../{SoulPiercer.cs => SoulPiercerBeam.cs} | 8 +- .../{SoulPiercer.png => SoulPiercerBeam.png} | Bin Projectiles/Magic/SoulPiercerBolt.cs | 4 +- Projectiles/Magic/SpiritFlameCurse.cs | 4 +- Projectiles/Magic/Starblast.cs | 4 +- Projectiles/Magic/StickyFeather.cs | 4 +- .../Magic/SupremeDustFlakProjectile.cs | 4 +- Projectiles/Magic/SupremeDustProjectile.cs | 6 +- Projectiles/Magic/T1000.cs | 8 +- Projectiles/Magic/T1000Laser.cs | 4 +- Projectiles/Magic/TearsofHeavenProjectile.cs | 6 +- Projectiles/Magic/TerraBolt.cs | 6 +- Projectiles/Magic/TerraBolt2.cs | 4 +- Projectiles/Magic/TerraOrb.cs | 6 +- Projectiles/Magic/TerraOrb2.cs | 6 +- Projectiles/Magic/TerraRay.cs | 6 +- Projectiles/Magic/ThunderstormShot.cs | 6 +- Projectiles/Magic/ThunderstormShotSplit.cs | 4 +- Projectiles/Magic/TradewindsProjectile.cs | 4 +- Projectiles/Magic/UberBubble.cs | 6 +- Projectiles/Magic/UndinesRetribution.cs | 6 +- Projectiles/Magic/Vehemence.cs | 4 +- Projectiles/Magic/VenusianBolt.cs | 10 +- Projectiles/Magic/VenusianExplosion.cs | 4 +- Projectiles/Magic/VenusianFlame.cs | 4 +- Projectiles/Magic/Viscera.cs | 4 +- Projectiles/Magic/VividBolt.cs | 14 +- Projectiles/Magic/VividClarity.cs | 16 +- Projectiles/Magic/VividOrb.cs | 6 +- Projectiles/Magic/VolatileStarcore.cs | 10 +- Projectiles/Magic/Vortex.cs | 14 +- Projectiles/Magic/WaterStream.cs | 6 +- Projectiles/Magic/WaterStream2.cs | 4 +- Projectiles/Magic/WhiteFlame.cs | 8 +- Projectiles/Magic/WhiteFlame2.cs | 6 +- Projectiles/Magic/WintersFury.cs | 4 +- Projectiles/Magic/WulfrumBolt.cs | 4 +- Projectiles/Magic/YharimsCrystal.cs | 6 +- Projectiles/Magic/YharimsCrystalBeam.cs | 6 +- Projectiles/Melee/AccretionDisk2Melee.cs | 12 +- Projectiles/Melee/AccretionDiskMelee.cs | 16 +- Projectiles/Melee/AegisBeam.cs | 6 +- Projectiles/Melee/AegisBlast.cs | 4 +- Projectiles/Melee/AegisBlast2.cs | 4 +- Projectiles/Melee/AegisFlame.cs | 6 +- Projectiles/Melee/Aftershock.cs | 4 +- .../Melee/BalefulHarvesterProjectile.cs | 6 +- Projectiles/Melee/BallOFugu.cs | 6 +- Projectiles/Melee/BansheeHookBoom.cs | 4 +- Projectiles/Melee/BansheeHookScythe.cs | 4 +- Projectiles/Melee/BiomeOrb.cs | 18 +- Projectiles/Melee/BlazingPhantomBlade.cs | 4 +- Projectiles/Melee/Blood.cs | 4 +- Projectiles/Melee/Blood2.cs | 4 +- Projectiles/Melee/BloodBall.cs | 4 +- Projectiles/Melee/BloodScythe.cs | 4 +- Projectiles/Melee/BloodyBlade.cs | 4 +- Projectiles/Melee/BlueAura.cs | 4 +- Projectiles/Melee/Brimblast.cs | 6 +- .../Melee/BrimlanceHellfireExplosion.cs | 6 +- Projectiles/Melee/BrimlanceStandingFire.cs | 6 +- Projectiles/Melee/Brimlash.cs | 10 +- Projectiles/Melee/Brimlash2.cs | 6 +- Projectiles/Melee/BrimstoneBoom.cs | 4 +- Projectiles/Melee/BrimstoneLaserFriendly.cs | 6 +- Projectiles/Melee/BrinySpout.cs | 4 +- Projectiles/Melee/BrinyTyphoonBubble.cs | 6 +- Projectiles/Melee/BurningMeteor.cs | 4 +- Projectiles/Melee/CalamityAura.cs | 4 +- Projectiles/Melee/CalamityAuraType2.cs | 4 +- Projectiles/Melee/CalamityAuraType3.cs | 4 +- Projectiles/Melee/ChaosFlameLarge.cs | 4 +- Projectiles/Melee/ChaosFlameMedium.cs | 4 +- Projectiles/Melee/ChaosFlameSmall.cs | 4 +- Projectiles/Melee/CosmicBolt.cs | 4 +- Projectiles/Melee/CosmicDischarge.cs | 10 +- Projectiles/Melee/CosmicIceBurst.cs | 4 +- Projectiles/Melee/CosmicOrb.cs | 6 +- Projectiles/Melee/CosmicSpiritBomb1.cs | 4 +- Projectiles/Melee/CosmicSpiritBomb2.cs | 4 +- Projectiles/Melee/CosmicSpiritBomb3.cs | 4 +- Projectiles/Melee/CrystalDust.cs | 4 +- Projectiles/Melee/Cyclone.cs | 4 +- Projectiles/Melee/DNA.cs | 6 +- Projectiles/Melee/DNA2.cs | 4 +- Projectiles/Melee/Dark.cs | 4 +- Projectiles/Melee/DarkBall.cs | 4 +- Projectiles/Melee/DemonBlast.cs | 4 +- Projectiles/Melee/DemonBlastType2.cs | 6 +- Projectiles/Melee/DemonBlastType3.cs | 6 +- Projectiles/Melee/DepthOrb.cs | 6 +- Projectiles/Melee/DepthOrb2.cs | 6 +- Projectiles/Melee/DracoBeam.cs | 8 +- Projectiles/Melee/DracoBeam2.cs | 4 +- Projectiles/Melee/DragonRage.cs | 4 +- Projectiles/Melee/Earth.cs | 10 +- Projectiles/Melee/Earth2.cs | 6 +- Projectiles/Melee/Earth3.cs | 6 +- Projectiles/Melee/Earth4.cs | 6 +- Projectiles/Melee/ElementBall.cs | 12 +- Projectiles/Melee/ElementBallShiv.cs | 14 +- Projectiles/Melee/ElementalExcaliburBeam.cs | 20 +- Projectiles/Melee/EonBeam.cs | 12 +- Projectiles/Melee/EonBeamV2.cs | 12 +- Projectiles/Melee/EonBeamV3.cs | 12 +- Projectiles/Melee/EonBeamV4.cs | 12 +- .../Melee/EradicatorMeleeProjectile.cs | 6 +- Projectiles/Melee/EssenceBeam.cs | 6 +- Projectiles/Melee/EssenceFireball.cs | 6 +- Projectiles/Melee/EssenceFlame2.cs | 4 +- Projectiles/Melee/EssenceScythe.cs | 8 +- Projectiles/Melee/Excelsus.cs | 4 +- Projectiles/Melee/ExcelsusBlue.cs | 4 +- Projectiles/Melee/ExcelsusPink.cs | 4 +- Projectiles/Melee/Exobeam.cs | 14 +- Projectiles/Melee/Exoboom.cs | 14 +- Projectiles/Melee/Exocomet.cs | 16 +- Projectiles/Melee/Feather.cs | 4 +- .../Melee/FlameScytheProjectileMelee.cs | 6 +- Projectiles/Melee/Flarefrost.cs | 4 +- Projectiles/Melee/FossilSpike.cs | 4 +- Projectiles/Melee/GalacticaComet.cs | 4 +- Projectiles/Melee/Galaxia.cs | 20 +- Projectiles/Melee/Galaxia2.cs | 20 +- Projectiles/Melee/GalaxyBlast.cs | 4 +- Projectiles/Melee/GalaxyBlastType2.cs | 4 +- Projectiles/Melee/GalaxyBlastType3.cs | 4 +- Projectiles/Melee/GelWave.cs | 4 +- Projectiles/Melee/GhastlySoulLarge.cs | 6 +- Projectiles/Melee/GhastlySoulMedium.cs | 6 +- Projectiles/Melee/GhastlySoulSmall.cs | 6 +- Projectiles/Melee/GreenBall.cs | 6 +- Projectiles/Melee/GreenDust.cs | 4 +- Projectiles/Melee/GreenWater.cs | 4 +- Projectiles/Melee/HellionSpike.cs | 4 +- Projectiles/Melee/HolyColliderHolyFire.cs | 4 +- Projectiles/Melee/HyperBlade.cs | 4 +- Projectiles/Melee/IceBombFriendly.cs | 6 +- Projectiles/Melee/Iceberg.cs | 8 +- Projectiles/Melee/Icebreaker.cs | 4 +- Projectiles/Melee/Judgement.cs | 10 +- Projectiles/Melee/JudgementBlah.cs | 10 +- Projectiles/Melee/LaserFountain.cs | 6 +- Projectiles/Melee/Leech.cs | 4 +- Projectiles/Melee/LifeScythe.cs | 4 +- Projectiles/Melee/Light.cs | 4 +- .../Melee/MangroveChakramProjectileMelee.cs | 4 +- Projectiles/Melee/MarianaProjectile.cs | 4 +- Projectiles/Melee/MarniteObliterator.cs | 4 +- Projectiles/Melee/MirrorBlast.cs | 4 +- Projectiles/Melee/Mourningstar.cs | 4 +- Projectiles/Melee/Murasama.cs | 4 +- Projectiles/Melee/Nebudust.cs | 4 +- Projectiles/Melee/Nebulash.cs | 10 +- Projectiles/Melee/NeptuneOrb.cs | 8 +- Projectiles/Melee/NightStabber.cs | 4 +- Projectiles/Melee/OPHammerMelee.cs | 8 +- Projectiles/Melee/Oathblade.cs | 4 +- Projectiles/Melee/OceanBeam.cs | 4 +- Projectiles/Melee/OmegaBiomeOrb.cs | 20 +- Projectiles/Melee/PlagueBeeDust.cs | 4 +- Projectiles/Melee/PlagueDust.cs | 6 +- Projectiles/Melee/PlagueSeeker.cs | 6 +- Projectiles/Melee/PlasmaBall.cs | 4 +- Projectiles/Melee/ProfanedSword.cs | 8 +- Projectiles/Melee/PwnagehammerMelee.cs | 4 +- Projectiles/Melee/RainBolt.cs | 4 +- Projectiles/Melee/RainbowBoom.cs | 4 +- Projectiles/Melee/Razorwind.cs | 4 +- Projectiles/Melee/RedBall.cs | 6 +- Projectiles/Melee/RedDust.cs | 4 +- Projectiles/Melee/RoyalKnifeMelee.cs | 8 +- Projectiles/Melee/SHIV.cs | 12 +- Projectiles/Melee/SandBlade.cs | 4 +- Projectiles/Melee/SandFire.cs | 6 +- Projectiles/Melee/ScourgeoftheCosmos.cs | 12 +- Projectiles/Melee/ScourgeoftheCosmosMini.cs | 4 +- .../Melee/SeashellBoomerangProjectileMelee.cs | 4 +- Projectiles/Melee/ShortBeam.cs | 4 +- Projectiles/Melee/ShortNightBeam.cs | 4 +- Projectiles/Melee/ShortTerraBeam.cs | 4 +- Projectiles/Melee/SolarFlare.cs | 10 +- Projectiles/Melee/SolsticeBeam.cs | 6 +- Projectiles/Melee/SoulScythe.cs | 8 +- Projectiles/Melee/Spark.cs | 4 +- Projectiles/Melee/SpatialSpear.cs | 14 +- Projectiles/Melee/SpatialSpear2.cs | 14 +- Projectiles/Melee/SpatialSpear3.cs | 14 +- Projectiles/Melee/SpatialSpear4.cs | 12 +- Projectiles/Melee/Spears/AstralPike.cs | 10 +- Projectiles/Melee/Spears/BansheeHook.cs | 8 +- Projectiles/Melee/Spears/Brimlance.cs | 8 +- Projectiles/Melee/Spears/DiseasedPike.cs | 8 +- Projectiles/Melee/Spears/EarthenPike.cs | 8 +- .../Spears/ExsanguinationLanceProjectile.cs | 8 +- .../Melee/Spears/FulgurationHalberd.cs | 6 +- Projectiles/Melee/Spears/GildedProboscis.cs | 4 +- .../Melee/Spears/GoldplumeSpearProjectile.cs | 6 +- .../Melee/Spears/HeartRapierProjectile.cs | 4 +- .../Spears/HellionFlowerSpearProjectile.cs | 6 +- .../Melee/Spears/MarniteSpearProjectile.cs | 4 +- Projectiles/Melee/Spears/SausageMaker.cs | 6 +- .../Melee/Spears/SpatialLanceProjectile.cs | 14 +- .../Melee/Spears/StarnightLanceProjectile.cs | 6 +- Projectiles/Melee/Spears/StreamGouge.cs | 8 +- .../Melee/Spears/TerraLanceProjectile.cs | 6 +- .../Melee/Spears/UrchinSpearProjectile.cs | 6 +- Projectiles/Melee/StarCrystal.cs | 6 +- Projectiles/Melee/StarnightBeam.cs | 4 +- Projectiles/Melee/StormBeam.cs | 4 +- Projectiles/Melee/StormMark.cs | 6 +- Projectiles/Melee/StormRuler.cs | 6 +- Projectiles/Melee/SunlightBlade.cs | 6 +- .../Melee/TemporalFloeSwordProjectile.cs | 6 +- Projectiles/Melee/TerraBall.cs | 4 +- Projectiles/Melee/TerraEdgeBeam.cs | 4 +- Projectiles/Melee/TerraSpear.cs | 4 +- Projectiles/Melee/TerracottaExplosion.cs | 4 +- Projectiles/Melee/TerratomereProjectile.cs | 6 +- Projectiles/Melee/TerrorBeam.cs | 8 +- Projectiles/Melee/TerrorBoom.cs | 4 +- Projectiles/Melee/TinyCrystal.cs | 4 +- Projectiles/Melee/TinyFlare.cs | 4 +- Projectiles/Melee/Tornado.cs | 4 +- Projectiles/Melee/TriactisOPHammerMelee.cs | 6 +- Projectiles/Melee/TrueBiomeOrb.cs | 20 +- .../Melee/TrueCausticEdgeProjectile.cs | 4 +- Projectiles/Melee/Tumbleweed.cs | 6 +- Projectiles/Melee/TumbleweedRolling.cs | 4 +- Projectiles/Melee/TyphonsGreed.cs | 6 +- Projectiles/Melee/TyphonsGreedStaff.cs | 8 +- Projectiles/Melee/UltimusCleaverDust.cs | 4 +- Projectiles/Melee/UrchinSpikeFugu.cs | 4 +- Projectiles/Melee/Whirlpool.cs | 4 +- Projectiles/Melee/WhiteBoltAura.cs | 6 +- Projectiles/Melee/WhiteBoltAuraBlah.cs | 6 +- Projectiles/Melee/WhiteOrb.cs | 4 +- Projectiles/Melee/WhiteOrbBlah.cs | 4 +- Projectiles/Melee/Whiterain.cs | 4 +- Projectiles/Melee/WhiterainBlah.cs | 4 +- .../Melee/Yoyos/AirSpinnerProjectile.cs | 6 +- Projectiles/Melee/Yoyos/AortaProjectile.cs | 4 +- Projectiles/Melee/Yoyos/AzathothProjectile.cs | 6 +- Projectiles/Melee/Yoyos/ChaotrixProjectile.cs | 6 +- .../Melee/Yoyos/CnidarianProjectile.cs | 6 +- .../Melee/Yoyos/LaceratorProjectile.cs | 4 +- Projectiles/Melee/Yoyos/QuagmireProjectile.cs | 4 +- .../Melee/Yoyos/ShimmersparkProjectile.cs | 4 +- Projectiles/Melee/Yoyos/SolarFlareYoyo.cs | 8 +- .../Yoyos/TheEyeofCalamitasProjectile.cs | 8 +- .../Melee/Yoyos/TheGodsGambitProjectile.cs | 4 +- Projectiles/Melee/Yoyos/TheObliterator.cs | 6 +- Projectiles/Melee/Yoyos/ThePlaguebringer.cs | 8 +- Projectiles/Melee/Yoyos/VerdantProjectile.cs | 4 +- Projectiles/Melee/Yoyos/YinYo.cs | 8 +- Projectiles/Patreon/Akato.cs | 4 +- Projectiles/Patreon/AngelicBeam.cs | 6 +- Projectiles/Patreon/AtaraxiaHoming.cs | 4 +- Projectiles/Patreon/AtaraxiaMain.cs | 4 +- Projectiles/Patreon/AtaraxiaSide.cs | 8 +- Projectiles/Patreon/AtaraxiaSplit.cs | 4 +- Projectiles/Patreon/CorpusAvertor.cs | 6 +- Projectiles/Patreon/CorpusAvertorClone.cs | 4 +- Projectiles/Patreon/DarkSpark.cs | 6 +- Projectiles/Patreon/DarkSparkBeam.cs | 6 +- Projectiles/Patreon/DeepSeaDumbbell1.cs | 14 +- Projectiles/Patreon/DeepSeaDumbbell2.cs | 14 +- Projectiles/Patreon/DeepSeaDumbbell3.cs | 10 +- Projectiles/Patreon/DeepSeaDumbbellWeight.cs | 6 +- Projectiles/Patreon/DevilsSunrise.cs | 6 +- Projectiles/Patreon/DevilsSunriseCyclone.cs | 6 +- Projectiles/Patreon/DivineRetribution.cs | 8 +- Projectiles/Patreon/DraconicSpark.cs | 8 +- Projectiles/Patreon/DragonPowFlail.cs | 14 +- Projectiles/Patreon/HandheldTankShell.cs | 4 +- Projectiles/Patreon/IlluminatedBullet.cs | 6 +- Projectiles/Patreon/KarasawaShot.cs | 6 +- Projectiles/Patreon/KeelhaulBubble.cs | 8 +- Projectiles/Patreon/KeelhaulGeyserBottom.cs | 4 +- Projectiles/Patreon/KeelhaulGeyserTop.cs | 4 +- Projectiles/Patreon/KelvinCatalyst.cs | 8 +- Projectiles/Patreon/KelvinCatalystStar.cs | 4 +- Projectiles/Patreon/LightBall.cs | 6 +- Projectiles/Patreon/LightBallExplosion.cs | 4 +- Projectiles/Patreon/LightBead.cs | 6 +- Projectiles/Patreon/LightBeadSplit.cs | 4 +- .../Patreon/MadAlchemistsCocktailAlt.cs | 10 +- .../Patreon/MadAlchemistsCocktailBlue.cs | 6 +- .../Patreon/MadAlchemistsCocktailGasCloud.cs | 4 +- .../Patreon/MadAlchemistsCocktailGreen.cs | 4 +- .../Patreon/MadAlchemistsCocktailPurple.cs | 6 +- .../Patreon/MadAlchemistsCocktailRed.cs | 4 +- .../Patreon/MadAlchemistsCocktailShrapnel.cs | 4 +- Projectiles/Patreon/MelterAmp.cs | 14 +- Projectiles/Patreon/MelterNote1.cs | 4 +- Projectiles/Patreon/MelterNote2.cs | 4 +- Projectiles/Patreon/MiniGuardianAttack.cs | 4 +- Projectiles/Patreon/MiniGuardianDefense.cs | 4 +- Projectiles/Patreon/MiniGuardianHealer.cs | 4 +- Projectiles/Patreon/MourningSkull.cs | 6 +- Projectiles/Patreon/NadirSpear.cs | 8 +- Projectiles/Patreon/OracleYoyo.cs | 8 +- Projectiles/Patreon/Orbacle.cs | 4 +- Projectiles/Patreon/PerforaMini.cs | 6 +- Projectiles/Patreon/PinkButterfly.cs | 12 +- Projectiles/Patreon/Plaguenade.cs | 8 +- .../{PlagueBee.cs => PlaguenadeBee.cs} | 6 +- .../{PlagueBee.png => PlaguenadeBee.png} | Bin Projectiles/Patreon/PurpleButterfly.cs | 10 +- Projectiles/Patreon/Rox1.cs | 4 +- Projectiles/Patreon/RoxShockwave.cs | 4 +- Projectiles/Patreon/RoxSlam.cs | 6 +- Projectiles/Patreon/SakuraBullet.cs | 4 +- Projectiles/Patreon/ThePackMinissile.cs | 4 +- Projectiles/Patreon/ThePackMissile.cs | 6 +- Projectiles/Patreon/TimeBolt.cs | 6 +- Projectiles/Patreon/VoidEssence.cs | 8 +- Projectiles/Patreon/VoidTentacle.cs | 4 +- Projectiles/Patreon/YateveoBloom.cs | 4 +- Projectiles/Patreon/YateveoBloomSpear.cs | 4 +- Projectiles/Permafrost/ArcticBearPaw.cs | 6 +- Projectiles/Permafrost/DarkIce.cs | 6 +- Projectiles/Permafrost/DarkIceZero.cs | 6 +- Projectiles/Permafrost/FrostShardFriendly.cs | 4 +- Projectiles/Permafrost/FrostyFlare.cs | 10 +- Projectiles/Permafrost/IceSentry.cs | 8 +- Projectiles/Permafrost/Icicle.cs | 4 +- Projectiles/Permafrost/IcicleArrow.cs | 4 +- Projectiles/Permafrost/IcyBullet.cs | 6 +- Projectiles/Permafrost/Snowball.cs | 6 +- Projectiles/Permafrost/TridentIcicle.cs | 6 +- Projectiles/Pets/Astrophage.cs | 5 +- Projectiles/Pets/Bear.cs | 4 +- .../Pets/{Brimling.cs => BrimlingPet.cs} | 6 +- .../Pets/{Brimling.png => BrimlingPet.png} | Bin Projectiles/Pets/ChibiiDoggo.cs | 8 +- Projectiles/Pets/ChibiiDoggoFly.cs | 10 +- .../{DannyDevito.cs => DannyDevitoPet.cs} | 6 +- .../{DannyDevito.png => DannyDevitoPet.png} | Bin Projectiles/Pets/{Fox.cs => FoxPet.cs} | 6 +- Projectiles/Pets/{Fox.png => FoxPet.png} | Bin Projectiles/Pets/{Kendra.cs => KendraPet.cs} | 6 +- .../Pets/{Kendra.png => KendraPet.png} | Bin Projectiles/Pets/{Levi.cs => LeviPet.cs} | 6 +- Projectiles/Pets/{Levi.png => LeviPet.png} | Bin Projectiles/Pets/SirenYoung.cs | 4 +- Projectiles/Pets/ThirdSage.cs | 4 +- Projectiles/Ranged/AMR.cs | 8 +- Projectiles/Ranged/AMR2.cs | 4 +- Projectiles/Ranged/AccelerationBullet.cs | 4 +- Projectiles/Ranged/AcidBullet.cs | 6 +- Projectiles/Ranged/AquaBlast.cs | 4 +- Projectiles/Ranged/AquaBlastToxic.cs | 4 +- Projectiles/Ranged/Archerfish.cs | 4 +- Projectiles/Ranged/ArcticArrow.cs | 6 +- Projectiles/Ranged/AstralRound.cs | 10 +- Projectiles/Ranged/AstrealArrow.cs | 6 +- Projectiles/Ranged/AstrealFlame.cs | 4 +- Projectiles/Ranged/BallistaGreatArrow.cs | 10 +- Projectiles/Ranged/BeeRPG.cs | 6 +- Projectiles/Ranged/BigNuke.cs | 4 +- Projectiles/Ranged/BloodClotFriendly.cs | 4 +- Projectiles/Ranged/BloodfireArrow.cs | 6 +- Projectiles/Ranged/BloodfireBullet.cs | 6 +- Projectiles/Ranged/BloodflareSoul.cs | 4 +- Projectiles/Ranged/BlueExoArrow.cs | 16 +- Projectiles/Ranged/BlueExoArrow2.cs | 4 +- Projectiles/Ranged/Bolt.cs | 4 +- Projectiles/Ranged/BoltArrow.cs | 4 +- Projectiles/Ranged/BrimstoneBallFriendly.cs | 6 +- Projectiles/Ranged/BrimstoneBolt.cs | 6 +- Projectiles/Ranged/BrimstoneFireFriendly.cs | 6 +- Projectiles/Ranged/Butcher.cs | 4 +- Projectiles/Ranged/ChargedBlast.cs | 6 +- Projectiles/Ranged/ChargedBlast2.cs | 4 +- Projectiles/Ranged/ChargedBlast3.cs | 10 +- Projectiles/Ranged/Chicken.cs | 6 +- Projectiles/Ranged/ChickenExplosion.cs | 4 +- Projectiles/Ranged/Contagion.cs | 8 +- Projectiles/Ranged/ContagionArrow.cs | 10 +- Projectiles/Ranged/ContagionBall.cs | 6 +- Projectiles/Ranged/CorossiveFlames.cs | 6 +- Projectiles/Ranged/CosmicFire.cs | 4 +- Projectiles/Ranged/DaemonsFlame.cs | 6 +- Projectiles/Ranged/DaemonsFlameArrow.cs | 4 +- Projectiles/Ranged/DragonBurst.cs | 6 +- Projectiles/Ranged/Drataliornus.cs | 7 +- Projectiles/Ranged/DrataliornusExoArrow.cs | 16 +- Projectiles/Ranged/DrataliornusFlame.cs | 12 +- Projectiles/Ranged/ElysianArrow.cs | 8 +- Projectiles/Ranged/EnhancedNanoRound.cs | 6 +- Projectiles/Ranged/EssenceFire.cs | 6 +- Projectiles/Ranged/ExoFire.cs | 14 +- Projectiles/Ranged/ExoMark.cs | 6 +- Projectiles/Ranged/ExoTornado.cs | 4 +- Projectiles/Ranged/ExplodingStake.cs | 6 +- Projectiles/Ranged/ExplosiveShellBullet.cs | 4 +- Projectiles/Ranged/FeatherLarge.cs | 4 +- Projectiles/Ranged/FishronRPG.cs | 4 +- Projectiles/Ranged/FlakKraken.cs | 8 +- Projectiles/Ranged/FlakKrakenGun.cs | 6 +- Projectiles/Ranged/FlamingStake.cs | 4 +- Projectiles/Ranged/FlareBat.cs | 4 +- Projectiles/Ranged/Flash.cs | 4 +- Projectiles/Ranged/FlashBullet.cs | 6 +- Projectiles/Ranged/FossilShard.cs | 6 +- Projectiles/Ranged/FrostsparkBullet.cs | 8 +- Projectiles/Ranged/FungiOrb.cs | 6 +- Projectiles/Ranged/FungiOrb2.cs | 4 +- Projectiles/Ranged/GoliathRocket.cs | 6 +- Projectiles/Ranged/GreenExoArrow.cs | 16 +- Projectiles/Ranged/HalleysComet.cs | 6 +- Projectiles/Ranged/HiveBomb.cs | 6 +- Projectiles/Ranged/HiveMissile.cs | 4 +- Projectiles/Ranged/HolyFireBullet.cs | 8 +- Projectiles/Ranged/HyperiusBullet.cs | 6 +- Projectiles/Ranged/LeafArrow.cs | 4 +- Projectiles/Ranged/LunarBolt.cs | 4 +- Projectiles/Ranged/LunarBolt2.cs | 4 +- Projectiles/Ranged/MagnaStrike.cs | 4 +- Projectiles/Ranged/MechanicalBarracuda.cs | 4 +- Projectiles/Ranged/MeowFire.cs | 4 +- Projectiles/Ranged/MeowFire2.cs | 4 +- Projectiles/Ranged/MiniRocket.cs | 4 +- Projectiles/Ranged/MistArrow.cs | 6 +- Projectiles/Ranged/MortarRound.cs | 8 +- Projectiles/Ranged/Nanomachine.cs | 4 +- Projectiles/Ranged/NapalmArrow.cs | 4 +- Projectiles/Ranged/NebulaShot.cs | 4 +- Projectiles/Ranged/Needler.cs | 4 +- Projectiles/Ranged/Norfleet.cs | 6 +- Projectiles/Ranged/NorfleetComet.cs | 6 +- Projectiles/Ranged/NorfleetExplosion.cs | 4 +- Projectiles/Ranged/Nuke.cs | 6 +- Projectiles/Ranged/NullShot.cs | 4 +- Projectiles/Ranged/NullShot2.cs | 4 +- Projectiles/Ranged/OMGWTH.cs | 4 +- Projectiles/Ranged/OnyxSharkBomb.cs | 8 +- Projectiles/Ranged/OpalStrike.cs | 4 +- Projectiles/Ranged/OrangeExoArrow.cs | 14 +- Projectiles/Ranged/Phangasm.cs | 4 +- Projectiles/Ranged/PlagueArrow.cs | 6 +- Projectiles/Ranged/PlagueExplosionFriendly.cs | 6 +- Projectiles/Ranged/PlasmaBlast.cs | 6 +- Projectiles/Ranged/PlasmaExplosion.cs | 4 +- Projectiles/Ranged/PolarStar.cs | 10 +- Projectiles/Ranged/ProBolt.cs | 4 +- Projectiles/Ranged/RainbowBlast.cs | 12 +- Projectiles/Ranged/RealmRavagerBullet.cs | 4 +- Projectiles/Ranged/RubberMortarRound.cs | 8 +- Projectiles/Ranged/SandWater.cs | 4 +- Projectiles/Ranged/SandstormBullet.cs | 4 +- Projectiles/Ranged/SandyWaifuShark.cs | 4 +- Projectiles/Ranged/SeaDragonRocket.cs | 4 +- Projectiles/Ranged/ShadeFire.cs | 4 +- Projectiles/Ranged/Shockblast.cs | 4 +- Projectiles/Ranged/ShockblastRound.cs | 10 +- Projectiles/Ranged/Shroom.cs | 4 +- Projectiles/Ranged/Sickness.cs | 6 +- Projectiles/Ranged/SicknessRound.cs | 10 +- Projectiles/Ranged/SicknessRound2.cs | 8 +- Projectiles/Ranged/SlagRound.cs | 10 +- Projectiles/Ranged/SlashRound.cs | 6 +- Projectiles/Ranged/SlimeBolt.cs | 4 +- Projectiles/Ranged/SparkSpreaderFire.cs | 4 +- Projectiles/Ranged/SporeBomb.cs | 4 +- Projectiles/Ranged/Spyker.cs | 6 +- Projectiles/Ranged/StarfleetMK2.cs | 10 +- Projectiles/Ranged/StormSurge.cs | 4 +- Projectiles/Ranged/SulphuricAcidCannon2.cs | 6 +- Projectiles/Ranged/SulphuricAcidMist2.cs | 4 +- Projectiles/Ranged/SuperballBullet.cs | 4 +- Projectiles/Ranged/TealExoArrow.cs | 14 +- Projectiles/Ranged/TelluricGlare.cs | 6 +- Projectiles/Ranged/TerraArrow.cs | 6 +- Projectiles/Ranged/TerraArrow2.cs | 4 +- Projectiles/Ranged/TerraBallBow.cs | 4 +- Projectiles/Ranged/TerraBullet.cs | 6 +- Projectiles/Ranged/TerraBulletSplit.cs | 4 +- Projectiles/Ranged/TerraFireGreen.cs | 4 +- Projectiles/Ranged/TerraFireGreen2.cs | 10 +- Projectiles/Ranged/TitRail.cs | 4 +- Projectiles/Ranged/TorrentialArrow.cs | 4 +- Projectiles/Ranged/Triploon.cs | 4 +- Projectiles/Ranged/TyphoonArrow.cs | 6 +- Projectiles/Ranged/TyphoonBubble.cs | 6 +- Projectiles/Ranged/VanquisherArrow.cs | 8 +- Projectiles/Ranged/VeriumBullet.cs | 4 +- Projectiles/Ranged/Voidragon.cs | 6 +- Projectiles/Ranged/WaterSpout.cs | 4 +- Projectiles/Rogue/AbyssalMirrorProjectile.cs | 6 +- Projectiles/Rogue/AccretionDisk.cs | 16 +- Projectiles/Rogue/AccretionDisk2.cs | 12 +- .../Rogue/AdamantiteThrowingAxeProjectile.cs | 6 +- Projectiles/Rogue/BallisticPoisonBomb.cs | 8 +- Projectiles/Rogue/BallisticPoisonBombSpike.cs | 4 +- Projectiles/Rogue/BarrelShrapnel.cs | 4 +- Projectiles/Rogue/BlastBarrelProjectile.cs | 8 +- Projectiles/Rogue/BlazingStarProj.cs | 7 +- Projectiles/Rogue/BloodsoakedCrashax.cs | 8 +- Projectiles/Rogue/BlueFlamePillar.cs | 4 +- .../Rogue/BouncingEyeballProjectile.cs | 4 +- .../BouncingEyeballProjectileStealthStrike.cs | 4 +- Projectiles/Rogue/BrackishFlask.cs | 10 +- Projectiles/Rogue/BrackishWater.cs | 6 +- Projectiles/Rogue/BrackishWaterBlast.cs | 4 +- Projectiles/Rogue/Brick.cs | 4 +- Projectiles/Rogue/BrickFragment.cs | 4 +- Projectiles/Rogue/Brimblade.cs | 8 +- Projectiles/Rogue/Brimblade2.cs | 6 +- Projectiles/Rogue/ButcherKnife.cs | 4 +- Projectiles/Rogue/CarvingFork.cs | 4 +- .../Rogue/CelestialReaperAfterimage.cs | 4 +- .../Rogue/CelestialReaperProjectile.cs | 10 +- Projectiles/Rogue/Celestus.cs | 18 +- Projectiles/Rogue/Celestus2.cs | 14 +- Projectiles/Rogue/CinquedeaProj.cs | 4 +- Projectiles/Rogue/CobaltKunaiProjectile.cs | 6 +- .../Rogue/ConsecratedWaterProjectile.cs | 10 +- Projectiles/Rogue/CosmicKunai.cs | 4 +- Projectiles/Rogue/CraniumSmasher.cs | 4 +- Projectiles/Rogue/CraniumSmasherExplosive.cs | 4 +- Projectiles/Rogue/Crushax.cs | 6 +- Projectiles/Rogue/CrystalPiercerProjectile.cs | 6 +- Projectiles/Rogue/Crystalline.cs | 6 +- Projectiles/Rogue/Crystalline2.cs | 4 +- Projectiles/Rogue/CursedDagger.cs | 4 +- Projectiles/Rogue/DragonShit.cs | 4 +- Projectiles/Rogue/DuststormCloud.cs | 4 +- Projectiles/Rogue/DuststormInABottle.cs | 6 +- Projectiles/Rogue/EclipseMirrorBurst.cs | 4 +- Projectiles/Rogue/EclipsesFallMain.cs | 6 +- Projectiles/Rogue/EclipsesSmol.cs | 4 +- Projectiles/Rogue/EclipsesStealth.cs | 6 +- Projectiles/Rogue/EmpyreanKnives.cs | 4 +- Projectiles/Rogue/EnchantedAxe.cs | 22 +- Projectiles/Rogue/EnchantedAxe2.cs | 4 +- Projectiles/Rogue/EradicatorProjectile.cs | 6 +- Projectiles/Rogue/ExecutionersBlade.cs | 6 +- Projectiles/Rogue/FeatherKnifeProjectile.cs | 6 +- Projectiles/Rogue/FlameScytheProjectile.cs | 6 +- Projectiles/Rogue/Fork.cs | 6 +- Projectiles/Rogue/FossilShardThrown.cs | 6 +- Projectiles/Rogue/GacruxianHome.cs | 10 +- Projectiles/Rogue/GacruxianProj.cs | 12 +- Projectiles/Rogue/GelDartProjectile.cs | 6 +- Projectiles/Rogue/GhoulishGouger.cs | 4 +- Projectiles/Rogue/GlaiveProj.cs | 6 +- Projectiles/Rogue/IceStarProjectile.cs | 4 +- Projectiles/Rogue/IchorSpear.cs | 4 +- Projectiles/Rogue/IchorSpear2.cs | 4 +- Projectiles/Rogue/InkBombProjectile.cs | 10 +- Projectiles/Rogue/InkCloud.cs | 4 +- Projectiles/Rogue/InkCloud2.cs | 4 +- Projectiles/Rogue/InkCloud3.cs | 4 +- Projectiles/Rogue/IronFrancisca.cs | 6 +- Projectiles/Rogue/Knife.cs | 4 +- Projectiles/Rogue/KylieBoomerang.cs | 4 +- Projectiles/Rogue/LeadTomahawk.cs | 6 +- Projectiles/Rogue/Lionfish.cs | 4 +- Projectiles/Rogue/Malachite.cs | 4 +- Projectiles/Rogue/MalachiteBolt.cs | 4 +- .../Rogue/MangroveChakramProjectile.cs | 4 +- Projectiles/Rogue/MeteorFist.cs | 4 +- Projectiles/Rogue/MoltenAmputator.cs | 6 +- Projectiles/Rogue/MoltenBlobThrown.cs | 4 +- Projectiles/Rogue/MonkeyDart.cs | 4 +- Projectiles/Rogue/MoonSigil.cs | 4 +- Projectiles/Rogue/Mycoroot.cs | 4 +- Projectiles/Rogue/MythrilKnifeProjectile.cs | 6 +- Projectiles/Rogue/OPHammer.cs | 8 +- .../OrichalcumSpikedGemstoneProjectile.cs | 6 +- .../Rogue/PalladiumJavelinProjectile.cs | 6 +- Projectiles/Rogue/ProfanedTrident.cs | 4 +- Projectiles/Rogue/Pwnagehammer.cs | 4 +- Projectiles/Rogue/RotBallProjectile.cs | 6 +- Projectiles/Rogue/RoyalKnife.cs | 8 +- Projectiles/Rogue/ScarletBlast.cs | 4 +- Projectiles/Rogue/ScarletDevilBullet.cs | 4 +- Projectiles/Rogue/ScarletDevilProjectile.cs | 8 +- Projectiles/Rogue/ScourgeVenomCloud.cs | 4 +- Projectiles/Rogue/ScourgeoftheDesert.cs | 4 +- Projectiles/Rogue/ScourgeoftheDesert2.cs | 4 +- .../Rogue/ScourgeoftheSeasProjectile.cs | 6 +- Projectiles/Rogue/ScourgeoftheSeasStealth.cs | 10 +- .../Rogue/SeashellBoomerangProjectile.cs | 4 +- Projectiles/Rogue/ShatteredExplosion.cs | 6 +- Projectiles/Rogue/ShatteredSun.cs | 10 +- Projectiles/Rogue/ShatteredSun2.cs | 10 +- Projectiles/Rogue/ShatteredSun3.cs | 8 +- Projectiles/Rogue/SlickCaneProjectile.cs | 4 +- Projectiles/Rogue/SpearofPaleolith.cs | 8 +- Projectiles/Rogue/Stormfrontproj.cs | 6 +- Projectiles/Rogue/Stormfrontspark.cs | 4 +- .../Rogue/TarragonThrowingDartProjectile.cs | 6 +- .../Rogue/TitaniumShurikenProjectile.cs | 6 +- Projectiles/Rogue/ToothBallProjectile.cs | 6 +- Projectiles/Rogue/TriactisOPHammer.cs | 6 +- Projectiles/Rogue/UrchinStinger.cs | 6 +- Projectiles/Rogue/Valediction.cs | 6 +- Projectiles/Rogue/Valediction2.cs | 6 +- Projectiles/Rogue/WulfrumKnife.cs | 6 +- Projectiles/Rogue/XerocPitchforkProjectile.cs | 6 +- Projectiles/Shrines/GladiatorSword.cs | 6 +- Projectiles/Shrines/GladiatorSword2.cs | 6 +- Projectiles/Shrines/LuxorsGiftMagic.cs | 4 +- Projectiles/Shrines/LuxorsGiftMelee.cs | 4 +- Projectiles/Shrines/LuxorsGiftRanged.cs | 4 +- Projectiles/Shrines/LuxorsGiftRogue.cs | 4 +- Projectiles/Shrines/LuxorsGiftSummon.cs | 8 +- Projectiles/Shrines/UnstableSpark.cs | 4 +- Projectiles/Summon/AquaticStar.cs | 8 +- Projectiles/Summon/BlackHawkBullet.cs | 4 +- Projectiles/Summon/BlackHawkSummon.cs | 12 +- Projectiles/Summon/BloodClotMinion.cs | 10 +- ...styRose.cs => BrimstoneElementalMinion.cs} | 12 +- ...yRose.png => BrimstoneElementalMinion.png} | Bin Projectiles/Summon/BrimstoneFireSummon.cs | 6 +- Projectiles/Summon/BrimstoneLaserSummon.cs | 6 +- Projectiles/Summon/BrittleStar.cs | 8 +- Projectiles/Summon/Calamari.cs | 12 +- Projectiles/Summon/CalamariInk.cs | 6 +- Projectiles/Summon/Calamitamini.cs | 12 +- Projectiles/Summon/Cataclymini.cs | 10 +- Projectiles/Summon/Catastromini.cs | 8 +- Projectiles/Summon/ChaosFlame.cs | 4 +- Projectiles/Summon/ChaosSpirit.cs | 8 +- ...CloudyWaifu.cs => CloudElementalMinion.cs} | 10 +- ...oudyWaifu.png => CloudElementalMinion.png} | Bin ...ack.png => CloudElementalMinionAttack.png} | Bin Projectiles/Summon/Corroslime.cs | 8 +- Projectiles/Summon/CosmicBlast.cs | 14 +- Projectiles/Summon/CosmicBlastBig.cs | 14 +- Projectiles/Summon/CosmicEnergy.cs | 16 +- Projectiles/Summon/Cosmilamp.cs | 10 +- Projectiles/Summon/Crimslime.cs | 8 +- Projectiles/Summon/DaedalusCrystal.cs | 8 +- Projectiles/Summon/DaedalusCrystalShot.cs | 4 +- Projectiles/Summon/DankCreeper.cs | 10 +- Projectiles/Summon/Dreadmine.cs | 4 +- Projectiles/Summon/DreadmineTurret.cs | 10 +- Projectiles/Summon/ElementalAxe.cs | 18 +- Projectiles/Summon/FlameBlast.cs | 4 +- Projectiles/Summon/FlameBurst.cs | 4 +- Projectiles/Summon/FrostMistFriendly.cs | 4 +- .../{FungalClump.cs => FungalClumpMinion.cs} | 10 +- ...{FungalClump.png => FungalClumpMinion.png} | Bin Projectiles/Summon/GhostFire.cs | 4 +- Projectiles/Summon/GhostlyMine.cs | 4 +- Projectiles/Summon/GigaFlareFriendly.cs | 10 +- Projectiles/Summon/Herring.cs | 10 +- Projectiles/Summon/IceClasper.cs | 10 +- Projectiles/Summon/MechwormBody.cs | 4 +- Projectiles/Summon/MechwormBody2.cs | 4 +- Projectiles/Summon/MechwormHead.cs | 6 +- Projectiles/Summon/MechwormTail.cs | 4 +- Projectiles/Summon/MiniSandShark.cs | 4 +- Projectiles/Summon/PhantomGuy.cs | 12 +- Projectiles/Summon/PhoenixFireFriendly.cs | 6 +- Projectiles/Summon/ProfanedEnergy.cs | 8 +- Projectiles/Summon/ReaverOrb.cs | 6 +- Projectiles/Summon/RedDevil.cs | 8 +- Projectiles/Summon/SandBolt.cs | 6 +- ...wsSandyWaifu.cs => SandElementalHealer.cs} | 12 +- ...SandyWaifu.png => SandElementalHealer.png} | Bin .../{SandyWaifu.cs => SandElementalMinion.cs} | 12 +- ...SandyWaifu.png => SandElementalMinion.png} | Bin Projectiles/Summon/SandMark.cs | 6 +- Projectiles/Summon/SandTornado.cs | 4 +- Projectiles/Summon/Sandnado.cs | 10 +- Projectiles/Summon/SilvaCrystal.cs | 8 +- Projectiles/Summon/SilvaCrystalExplosion.cs | 6 +- Projectiles/Summon/SirenSongFriendly.cs | 4 +- Projectiles/Summon/SlimeGod.cs | 8 +- Projectiles/Summon/SlimeGodAlt.cs | 8 +- Projectiles/Summon/SolarBeam.cs | 4 +- Projectiles/Summon/SolarGod.cs | 10 +- Projectiles/Summon/SolarPixie.cs | 8 +- .../{AngryChicken.cs => SonOfYharon.cs} | 12 +- .../{AngryChicken.png => SonOfYharon.png} | Bin Projectiles/Summon/Spikecrag.cs | 6 +- Projectiles/Summon/SpikecragSpike.cs | 4 +- Projectiles/Summon/StormMarkSummon.cs | 6 +- Projectiles/Summon/Urchin.cs | 8 +- Projectiles/Summon/UrchinSpike.cs | 4 +- Projectiles/Summon/Valkyrie.cs | 8 +- .../{SirenLure.cs => WaterElementalMinion.cs} | 14 +- ...SirenLure.png => WaterElementalMinion.png} | Bin Projectiles/Summon/WaterSpearFriendly.cs | 4 +- Projectiles/Summon/desktop.ini | 2 - Projectiles/SunkenSea/AquaStream.cs | 4 +- Projectiles/SunkenSea/AquamarineBolt.cs | 4 +- Projectiles/SunkenSea/Aquashard.cs | 6 +- Projectiles/SunkenSea/AquashardSplit.cs | 4 +- Projectiles/SunkenSea/ClamCrusherFlail.cs | 8 +- Projectiles/SunkenSea/ClamorRifleProj.cs | 6 +- Projectiles/SunkenSea/ClamorRifleProjSplit.cs | 4 +- Projectiles/SunkenSea/CoralBubble.cs | 4 +- Projectiles/SunkenSea/CoralBubbleSmall.cs | 4 +- .../SunkenSea/EutrophicScimitarProj.cs | 6 +- Projectiles/SunkenSea/EutrophicSpark.cs | 4 +- Projectiles/SunkenSea/PearlBurst.cs | 4 +- Projectiles/SunkenSea/PearlRain.cs | 4 +- Projectiles/SunkenSea/PendantProjectile1.cs | 4 +- Projectiles/SunkenSea/PendantProjectile2.cs | 4 +- Projectiles/SunkenSea/PendantProjectile3.cs | 4 +- Projectiles/SunkenSea/PoseidonTyphoon.cs | 4 +- Projectiles/SunkenSea/Prismalline.cs | 8 +- Projectiles/SunkenSea/Prismalline2.cs | 4 +- Projectiles/SunkenSea/Prismalline3.cs | 4 +- Projectiles/SunkenSea/SeafoamBomb.cs | 6 +- Projectiles/SunkenSea/SeafoamBubble.cs | 4 +- Projectiles/SunkenSea/SeashineSwordProj.cs | 4 +- Projectiles/SunkenSea/SerpentineBody.cs | 4 +- Projectiles/SunkenSea/SerpentineHead.cs | 4 +- Projectiles/SunkenSea/SerpentineTail.cs | 4 +- Projectiles/SunkenSea/Shellfish.cs | 16 +- Projectiles/SunkenSea/WhirlpoolProjectile.cs | 20 +- Projectiles/Typeless/AstralFallingSand.cs | 6 +- Projectiles/Typeless/AstralSpray.cs | 4 +- Projectiles/Typeless/AstralStar.cs | 16 +- Projectiles/Typeless/AtaxiaOrb.cs | 4 +- Projectiles/Typeless/BallisticPoisonCloud.cs | 4 +- Projectiles/Typeless/BallisticPoisonCloud2.cs | 4 +- Projectiles/Typeless/BallisticPoisonCloud3.cs | 4 +- Projectiles/Typeless/BloodBomb.cs | 6 +- Projectiles/Typeless/BloodBombExplosion.cs | 4 +- Projectiles/Typeless/ChaosBlaze.cs | 4 +- Projectiles/Typeless/ChaosFlare.cs | 6 +- Projectiles/Typeless/ChaosFlare2.cs | 4 +- Projectiles/Typeless/ChaosGeyser.cs | 4 +- Projectiles/Typeless/DarkEnergySpawn.cs | 10 +- Projectiles/Typeless/DragonDust.cs | 6 +- Projectiles/Typeless/FabsolDust.cs | 4 +- Projectiles/Typeless/FlareExplosion.cs | 6 +- Projectiles/Typeless/FuckYou.cs | 4 +- Projectiles/Typeless/GalaxySmasherHammer.cs | 10 +- Projectiles/Typeless/GhostlyBolt.cs | 4 +- Projectiles/Typeless/GodKiller.cs | 6 +- Projectiles/Typeless/GodSlayerBlaze.cs | 10 +- Projectiles/Typeless/GodSlayerOrb.cs | 6 +- Projectiles/Typeless/GodSlayerPhantom.cs | 6 +- Projectiles/Typeless/GodSlayerShrapnel.cs | 4 +- .../Typeless/GodSlayerShrapnelRound.cs | 6 +- Projectiles/Typeless/GoldenGun.cs | 4 +- Projectiles/Typeless/GrenadeRound.cs | 4 +- Projectiles/Typeless/HolyEruption.cs | 6 +- Projectiles/Typeless/HolyExplosion.cs | 4 +- Projectiles/Typeless/HolyExplosionSupreme.cs | 4 +- Projectiles/Typeless/HolyFlameBomb.cs | 6 +- Projectiles/Typeless/LunicBeam.cs | 6 +- Projectiles/Typeless/MageHammerBoom.cs | 4 +- Projectiles/Typeless/MagnumRound.cs | 4 +- Projectiles/Typeless/MarkRound.cs | 6 +- Projectiles/Typeless/MomentumCapacitorOrb.cs | 9 +- Projectiles/Typeless/NanoblackMain.cs | 8 +- Projectiles/Typeless/NanoblackSplit.cs | 4 +- Projectiles/Typeless/Nanotech.cs | 4 +- Projectiles/Typeless/NebulaDust.cs | 4 +- Projectiles/Typeless/NebulaStar.cs | 6 +- Projectiles/Typeless/NobodyKnows.cs | 4 +- Projectiles/Typeless/OmegaBlueTentacle.cs | 4 +- Projectiles/Typeless/PoisonousSeawater.cs | 4 +- Projectiles/Typeless/ReaverBlast.cs | 4 +- Projectiles/Typeless/Seashell.cs | 4 +- Projectiles/Typeless/SkyFlareFriendly.cs | 4 +- Projectiles/Typeless/SparkInfernal.cs | 6 +- Projectiles/Typeless/StandingFire.cs | 6 +- Projectiles/Typeless/StellarContemptHammer.cs | 8 +- Projectiles/Typeless/StickyFeatherAero.cs | 4 +- Projectiles/Typeless/StormBolt.cs | 6 +- Projectiles/Typeless/TarraEnergy.cs | 4 +- .../Typeless/TheDeadlyMicrobeProjectile.cs | 4 +- Projectiles/Typeless/TrueBattleSpawn.cs | 6 +- Projectiles/Typeless/VanquisherArrow2.cs | 6 +- Projectiles/Typeless/XerocBlast.cs | 4 +- Projectiles/Typeless/XerocBubble.cs | 4 +- Projectiles/Typeless/XerocFire.cs | 4 +- Projectiles/Typeless/XerocOrb.cs | 4 +- Projectiles/Typeless/XerocStar.cs | 4 +- Sounds/Custom/AdrenalineBurnout1.cs | 2 +- Sounds/Custom/AdrenalineBurnout2.cs | 2 +- Sounds/Custom/AngryDogGrowl.cs | 2 +- Sounds/Custom/AtlasIdle0.cs | 2 +- Sounds/Custom/AtlasIdle1.cs | 2 +- Sounds/Custom/AtlasSad0.cs | 2 +- Sounds/Custom/AtlasSad1.cs | 2 +- Sounds/Custom/AtlasSwing.cs | 2 +- Sounds/Custom/BazookaRocket.cs | 2 +- Sounds/Custom/CorvinaScream.cs | 2 +- Sounds/Custom/DevilMaskBreak.cs | 2 +- Sounds/Custom/EidolonWyrmRoarClose.cs | 2 +- Sounds/Custom/FullAdrenaline.cs | 2 +- Sounds/Custom/FullRage.cs | 2 +- Sounds/Custom/GreatSandSharkRoar.cs | 2 +- Sounds/Custom/IronHeartBigHurt.cs | 2 +- Sounds/Custom/IronHeartHurt.cs | 2 +- Sounds/Custom/LegStomp.cs | 2 +- Sounds/Custom/MaulerRoar.cs | 2 +- Sounds/Custom/ReaperEnragedRoar.cs | 2 +- Sounds/Custom/ReaperSearchRoar.cs | 2 +- Sounds/Custom/RogueStealth.cs | 2 +- Sounds/Custom/SilvaActivation.cs | 2 +- Sounds/Custom/SilvaDispel.cs | 2 +- Sounds/Custom/WyrmScream.cs | 2 +- Sounds/Custom/YharonRoar.cs | 2 +- Sounds/Custom/YharonRoarShort.cs | 2 +- Sounds/Item/BazookaFull.cs | 2 +- Sounds/Item/ClamImpact.cs | 2 +- Sounds/Item/ELRFire.cs | 2 +- Sounds/Item/FlareSound.cs | 2 +- Sounds/Item/GatlingLaserFireEnd.cs | 2 +- Sounds/Item/GatlingLaserFireLoop.cs | 2 +- Sounds/Item/GatlingLaserFireStart.cs | 2 +- Sounds/Item/GaussWeaponFire.cs | 2 +- Sounds/Item/Hydra.cs | 2 +- Sounds/Item/IronHeartDeath.cs | 2 +- Sounds/Item/KendraBark.cs | 2 +- Sounds/Item/LargeMechGaussRifle.cs | 2 +- Sounds/Item/LargeWeaponFire.cs | 2 +- Sounds/Item/LaserCannon.cs | 2 +- Sounds/Item/LaserRifleFire.cs | 2 +- Sounds/Item/Magnum.cs | 2 +- Sounds/Item/MechGaussRifle.cs | 2 +- Sounds/Item/OpalStrike.cs | 2 +- Sounds/Item/PlasmaBlast.cs | 2 +- Sounds/Item/PlasmaBolt.cs | 2 +- Sounds/Item/PlasmaCasterFire.cs | 2 +- Sounds/Item/PulseRifleFire.cs | 2 +- Sounds/Item/TankCannon.cs | 2 +- Sounds/Item/TeslaCannonFire.cs | 2 +- Sounds/NPCHit/AngryDogHit.cs | 2 +- Sounds/NPCHit/AstralEnemyHit.cs | 2 +- Sounds/NPCHit/AstralEnemyHit2.cs | 2 +- Sounds/NPCHit/AstralEnemyHit3.cs | 2 +- Sounds/NPCHit/AstrumAureusHit.cs | 2 +- Sounds/NPCHit/AtlasHurt0.cs | 2 +- Sounds/NPCHit/AtlasHurt1.cs | 2 +- Sounds/NPCHit/AtlasHurt2.cs | 2 +- Sounds/NPCKilled/AstralEnemyDeath.cs | 2 +- Sounds/NPCKilled/AtlasDeath.cs | 2 +- Sounds/NPCKilled/Sunskater.cs | 2 +- Tiles/AbyssGravel.cs | 4 +- Tiles/AerialiteBrick.cs | 4 +- Tiles/AerialiteOre.cs | 6 +- Tiles/ArenaTile.cs | 4 +- Tiles/Astral/AstralChestLocked.cs | 10 +- Tiles/Astral/AstralCrate.cs | 12 +- Tiles/Astral/AstralDirt.cs | 12 +- Tiles/Astral/AstralGrass.cs | 14 +- Tiles/Astral/AstralMonolith.cs | 10 +- Tiles/Astral/AstralNormalLargePiles.cs | 6 +- Tiles/Astral/AstralNormalMediumPiles.cs | 6 +- Tiles/Astral/AstralNormalSmallPiles.cs | 6 +- Tiles/Astral/AstralNormalStalactite.cs | 6 +- Tiles/Astral/AstralOre.cs | 10 +- Tiles/Astral/AstralShortPlants.cs | 6 +- Tiles/Astral/AstralStone.cs | 10 +- Tiles/Astral/AstralTallPlants.cs | 6 +- Tiles/Astral/AstralTree.cs | 2 +- Tiles/Astral/AstralTreeSapling.cs | 8 +- Tiles/Astral/AstralVines.cs | 6 +- Tiles/AstralBar.cs | 10 +- Tiles/AstralBrick.cs | 6 +- Tiles/AstralDesert/AstralDesertLargePiles.cs | 6 +- Tiles/AstralDesert/AstralDesertMediumPiles.cs | 6 +- Tiles/AstralDesert/AstralDesertSmallPiles.cs | 6 +- Tiles/AstralDesert/AstralDesertStalactite.cs | 6 +- Tiles/AstralDesert/AstralPalmSapling.cs | 8 +- Tiles/AstralDesert/AstralPalmTree.cs | 2 +- Tiles/AstralDesert/AstralSand.cs | 12 +- Tiles/AstralDesert/AstralSandstone.cs | 10 +- Tiles/AstralDesert/HardenedAstralSand.cs | 8 +- Tiles/AstralSnow/AstralIce.cs | 8 +- Tiles/AstralSnow/AstralIceLargePiles.cs | 6 +- Tiles/AstralSnow/AstralIceMediumPiles.cs | 6 +- Tiles/AstralSnow/AstralIceSmallPiles.cs | 6 +- Tiles/AstralSnow/AstralIceStalactite.cs | 6 +- Tiles/AuricOre.cs | 4 +- Tiles/BlueCandle.cs | 6 +- Tiles/BossTrophy.cs | 48 +- Tiles/BrimstoneSlag.cs | 6 +- Tiles/CalamityGlobalTile.cs | 22 +- Tiles/ChaosCandle.cs | 10 +- Tiles/ChaoticBrick.cs | 4 +- Tiles/ChaoticOre.cs | 8 +- Tiles/CharredOre.cs | 6 +- Tiles/Cinderplate.cs | 4 +- Tiles/CorruptionEffigy.cs | 6 +- Tiles/CrimsonEffigy.cs | 6 +- Tiles/CryonicBrick.cs | 4 +- Tiles/CryonicOre.cs | 6 +- Tiles/DraedonsForge.cs | 4 +- Tiles/ExodiumOre.cs | 4 +- Tiles/FurnitureAbyss/AbyssBath.cs | 6 +- Tiles/FurnitureAbyss/AbyssBed.cs | 8 +- Tiles/FurnitureAbyss/AbyssBookcase.cs | 6 +- Tiles/FurnitureAbyss/AbyssCandelabra.cs | 6 +- Tiles/FurnitureAbyss/AbyssCandle.cs | 6 +- Tiles/FurnitureAbyss/AbyssChair.cs | 6 +- Tiles/FurnitureAbyss/AbyssChandelier.cs | 6 +- Tiles/FurnitureAbyss/AbyssChest.cs | 8 +- Tiles/FurnitureAbyss/AbyssClock.cs | 6 +- Tiles/FurnitureAbyss/AbyssDoorClosed.cs | 10 +- Tiles/FurnitureAbyss/AbyssDoorOpen.cs | 10 +- Tiles/FurnitureAbyss/AbyssDresser.cs | 10 +- Tiles/FurnitureAbyss/AbyssLamp.cs | 6 +- Tiles/FurnitureAbyss/AbyssLantern.cs | 6 +- Tiles/FurnitureAbyss/AbyssPiano.cs | 6 +- Tiles/FurnitureAbyss/AbyssSink.cs | 6 +- Tiles/FurnitureAbyss/AbyssSofa.cs | 6 +- Tiles/FurnitureAbyss/AbyssTable.cs | 6 +- Tiles/FurnitureAbyss/AbyssTorch.cs | 6 +- Tiles/FurnitureAbyss/AbyssWorkbench.cs | 6 +- Tiles/FurnitureAbyss/SmoothAbyssGravel.cs | 6 +- .../SmoothAbyssGravelPlatform.cs | 6 +- Tiles/FurnitureAncient/AncientAltar.cs | 6 +- Tiles/FurnitureAncient/AncientBasin.cs | 6 +- Tiles/FurnitureAncient/AncientBath.cs | 6 +- Tiles/FurnitureAncient/AncientBed.cs | 8 +- Tiles/FurnitureAncient/AncientBookcase.cs | 6 +- Tiles/FurnitureAncient/AncientChair.cs | 8 +- Tiles/FurnitureAncient/AncientChandelier.cs | 6 +- Tiles/FurnitureAncient/AncientDoorClosed.cs | 10 +- Tiles/FurnitureAncient/AncientDoorOpen.cs | 10 +- Tiles/FurnitureAncient/AncientDresser.cs | 10 +- Tiles/FurnitureAncient/AncientLamp.cs | 6 +- Tiles/FurnitureAncient/AncientLantern.cs | 6 +- Tiles/FurnitureAncient/AncientMonolith.cs | 8 +- Tiles/FurnitureAncient/AncientPiano.cs | 6 +- Tiles/FurnitureAncient/AncientSink.cs | 6 +- Tiles/FurnitureAncient/AncientSofa.cs | 6 +- Tiles/FurnitureAncient/AncientTable.cs | 6 +- Tiles/FurnitureAncient/AncientWorkbench.cs | 6 +- Tiles/FurnitureAshen/AshenAltar.cs | 6 +- Tiles/FurnitureAshen/AshenBasin.cs | 6 +- Tiles/FurnitureAshen/AshenBath.cs | 6 +- Tiles/FurnitureAshen/AshenBed.cs | 8 +- Tiles/FurnitureAshen/AshenBookcase.cs | 6 +- Tiles/FurnitureAshen/AshenCandelabra.cs | 6 +- Tiles/FurnitureAshen/AshenCandle.cs | 6 +- Tiles/FurnitureAshen/AshenChair.cs | 8 +- Tiles/FurnitureAshen/AshenChandelier.cs | 6 +- Tiles/FurnitureAshen/AshenChest.cs | 10 +- Tiles/FurnitureAshen/AshenDoorClosed.cs | 10 +- Tiles/FurnitureAshen/AshenDoorOpen.cs | 10 +- Tiles/FurnitureAshen/AshenDresser.cs | 10 +- Tiles/FurnitureAshen/AshenLamp.cs | 6 +- Tiles/FurnitureAshen/AshenLantern.cs | 6 +- Tiles/FurnitureAshen/AshenMonolith.cs | 8 +- Tiles/FurnitureAshen/AshenPiano.cs | 6 +- Tiles/FurnitureAshen/AshenPlatform.cs | 8 +- Tiles/FurnitureAshen/AshenSink.cs | 6 +- Tiles/FurnitureAshen/AshenSlab.cs | 6 +- Tiles/FurnitureAshen/AshenSofa.cs | 6 +- Tiles/FurnitureAshen/AshenTable.cs | 6 +- Tiles/FurnitureAshen/AshenWorkbench.cs | 6 +- Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs | 6 +- Tiles/FurnitureBotanic/BotanicBathtub.cs | 10 +- Tiles/FurnitureBotanic/BotanicBed.cs | 12 +- Tiles/FurnitureBotanic/BotanicBench.cs | 10 +- Tiles/FurnitureBotanic/BotanicBookcase.cs | 10 +- Tiles/FurnitureBotanic/BotanicCandelabra.cs | 10 +- Tiles/FurnitureBotanic/BotanicCandle.cs | 10 +- Tiles/FurnitureBotanic/BotanicChair.cs | 12 +- Tiles/FurnitureBotanic/BotanicChandelier.cs | 10 +- Tiles/FurnitureBotanic/BotanicChest.cs | 12 +- Tiles/FurnitureBotanic/BotanicClock.cs | 12 +- Tiles/FurnitureBotanic/BotanicDoorClosed.cs | 14 +- Tiles/FurnitureBotanic/BotanicDoorOpen.cs | 14 +- Tiles/FurnitureBotanic/BotanicDresser.cs | 14 +- Tiles/FurnitureBotanic/BotanicLamp.cs | 10 +- Tiles/FurnitureBotanic/BotanicLantern.cs | 10 +- Tiles/FurnitureBotanic/BotanicPiano.cs | 10 +- Tiles/FurnitureBotanic/BotanicPlanter.cs | 10 +- Tiles/FurnitureBotanic/BotanicPlatform.cs | 12 +- Tiles/FurnitureBotanic/BotanicSink.cs | 10 +- Tiles/FurnitureBotanic/BotanicTable.cs | 10 +- Tiles/FurnitureBotanic/BotanicWorkBench.cs | 10 +- Tiles/FurnitureCosmilite/CosmiliteBath.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteBed.cs | 8 +- Tiles/FurnitureCosmilite/CosmiliteBookcase.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteBrick.cs | 6 +- .../FurnitureCosmilite/CosmiliteCandelabra.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteCandle.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteChair.cs | 8 +- .../FurnitureCosmilite/CosmiliteChandelier.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteChest.cs | 8 +- Tiles/FurnitureCosmilite/CosmiliteClock.cs | 8 +- .../FurnitureCosmilite/CosmiliteDoorClosed.cs | 10 +- Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs | 10 +- Tiles/FurnitureCosmilite/CosmiliteDresser.cs | 10 +- Tiles/FurnitureCosmilite/CosmiliteLamp.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteLantern.cs | 6 +- Tiles/FurnitureCosmilite/CosmilitePiano.cs | 6 +- Tiles/FurnitureCosmilite/CosmilitePlatform.cs | 8 +- Tiles/FurnitureCosmilite/CosmiliteSconce.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteSink.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteSofa.cs | 6 +- Tiles/FurnitureCosmilite/CosmiliteTable.cs | 6 +- .../FurnitureCosmilite/CosmiliteWorkbench.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicBathtub.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicBed.cs | 8 +- Tiles/FurnitureEutrophic/EutrophicBench.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicBookcase.cs | 6 +- .../FurnitureEutrophic/EutrophicCandelabra.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicCandle.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicChair.cs | 8 +- .../FurnitureEutrophic/EutrophicChandelier.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicChest.cs | 8 +- Tiles/FurnitureEutrophic/EutrophicClock.cs | 8 +- Tiles/FurnitureEutrophic/EutrophicCrafting.cs | 6 +- .../FurnitureEutrophic/EutrophicDoorClosed.cs | 10 +- Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs | 10 +- Tiles/FurnitureEutrophic/EutrophicDresser.cs | 10 +- Tiles/FurnitureEutrophic/EutrophicLamp.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicLantern.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicPiano.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicPlatform.cs | 8 +- Tiles/FurnitureEutrophic/EutrophicSink.cs | 6 +- Tiles/FurnitureEutrophic/EutrophicTable.cs | 6 +- .../FurnitureEutrophic/EutrophicWorkBench.cs | 6 +- Tiles/FurnitureEutrophic/SmoothNavystone.cs | 6 +- Tiles/FurnitureOccult/OccultBathtub.cs | 8 +- Tiles/FurnitureOccult/OccultBed.cs | 10 +- Tiles/FurnitureOccult/OccultBookcase.cs | 8 +- Tiles/FurnitureOccult/OccultCandelabra.cs | 8 +- Tiles/FurnitureOccult/OccultCandle.cs | 8 +- Tiles/FurnitureOccult/OccultChair.cs | 10 +- Tiles/FurnitureOccult/OccultChandelier.cs | 8 +- Tiles/FurnitureOccult/OccultChest.cs | 10 +- Tiles/FurnitureOccult/OccultClock.cs | 10 +- Tiles/FurnitureOccult/OccultDoorClosed.cs | 12 +- Tiles/FurnitureOccult/OccultDoorOpen.cs | 12 +- Tiles/FurnitureOccult/OccultDresser.cs | 12 +- Tiles/FurnitureOccult/OccultLamp.cs | 8 +- Tiles/FurnitureOccult/OccultLantern.cs | 8 +- Tiles/FurnitureOccult/OccultPiano.cs | 8 +- Tiles/FurnitureOccult/OccultPlatform.cs | 10 +- Tiles/FurnitureOccult/OccultSink.cs | 8 +- Tiles/FurnitureOccult/OccultSofa.cs | 8 +- Tiles/FurnitureOccult/OccultStone.cs | 8 +- Tiles/FurnitureOccult/OccultTable.cs | 8 +- Tiles/FurnitureOccult/OccultWorkbench.cs | 8 +- Tiles/FurniturePlaguedPlate/PlagueInfuser.cs | 6 +- Tiles/FurniturePlaguedPlate/PlaguedPlate.cs | 6 +- .../PlaguedPlateBasin.cs | 6 +- .../PlaguedPlateBathtub.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateBed.cs | 8 +- .../PlaguedPlateBookcase.cs | 6 +- .../PlaguedPlateCandelabra.cs | 6 +- .../PlaguedPlateCandle.cs | 6 +- .../PlaguedPlateChair.cs | 8 +- .../PlaguedPlateChandelier.cs | 6 +- .../PlaguedPlateChest.cs | 8 +- .../PlaguedPlateClock.cs | 8 +- .../PlaguedPlateDoorClosed.cs | 10 +- .../PlaguedPlateDoorOpen.cs | 10 +- .../PlaguedPlateDresser.cs | 10 +- .../FurniturePlaguedPlate/PlaguedPlateLamp.cs | 6 +- .../PlaguedPlateLantern.cs | 6 +- .../PlaguedPlatePiano.cs | 6 +- .../PlaguedPlatePlatform.cs | 8 +- .../FurniturePlaguedPlate/PlaguedPlateSink.cs | 6 +- .../FurniturePlaguedPlate/PlaguedPlateSofa.cs | 6 +- .../PlaguedPlateTable.cs | 6 +- .../PlaguedPlateWorkbench.cs | 6 +- Tiles/FurnitureProfaned/ProfanedBasin.cs | 8 +- Tiles/FurnitureProfaned/ProfanedBath.cs | 8 +- Tiles/FurnitureProfaned/ProfanedBed.cs | 10 +- Tiles/FurnitureProfaned/ProfanedBench.cs | 8 +- Tiles/FurnitureProfaned/ProfanedBookcase.cs | 8 +- Tiles/FurnitureProfaned/ProfanedCandelabra.cs | 8 +- Tiles/FurnitureProfaned/ProfanedCandle.cs | 8 +- Tiles/FurnitureProfaned/ProfanedChair.cs | 10 +- Tiles/FurnitureProfaned/ProfanedChandelier.cs | 8 +- Tiles/FurnitureProfaned/ProfanedChest.cs | 10 +- Tiles/FurnitureProfaned/ProfanedClock.cs | 10 +- Tiles/FurnitureProfaned/ProfanedCrystal.cs | 6 +- Tiles/FurnitureProfaned/ProfanedDoorClosed.cs | 12 +- Tiles/FurnitureProfaned/ProfanedDoorOpen.cs | 12 +- Tiles/FurnitureProfaned/ProfanedDresser.cs | 12 +- Tiles/FurnitureProfaned/ProfanedLamp.cs | 8 +- Tiles/FurnitureProfaned/ProfanedLantern.cs | 8 +- Tiles/FurnitureProfaned/ProfanedPiano.cs | 8 +- Tiles/FurnitureProfaned/ProfanedPlatform.cs | 10 +- Tiles/FurnitureProfaned/ProfanedRock.cs | 8 +- Tiles/FurnitureProfaned/ProfanedSink.cs | 8 +- Tiles/FurnitureProfaned/ProfanedSlab.cs | 10 +- Tiles/FurnitureProfaned/ProfanedTable.cs | 8 +- Tiles/FurnitureProfaned/ProfanedWorkbench.cs | 8 +- Tiles/FurnitureProfaned/RunicProfanedBrick.cs | 8 +- Tiles/FurnitureSilva/SilvaBasin.cs | 8 +- Tiles/FurnitureSilva/SilvaBathtub.cs | 8 +- Tiles/FurnitureSilva/SilvaBed.cs | 10 +- Tiles/FurnitureSilva/SilvaBench.cs | 8 +- Tiles/FurnitureSilva/SilvaBookcase.cs | 8 +- Tiles/FurnitureSilva/SilvaCandelabra.cs | 8 +- Tiles/FurnitureSilva/SilvaCandle.cs | 8 +- Tiles/FurnitureSilva/SilvaChair.cs | 10 +- Tiles/FurnitureSilva/SilvaChandelier.cs | 8 +- Tiles/FurnitureSilva/SilvaChest.cs | 10 +- Tiles/FurnitureSilva/SilvaClock.cs | 10 +- Tiles/FurnitureSilva/SilvaCrystal.cs | 8 +- Tiles/FurnitureSilva/SilvaDoorClosed.cs | 12 +- Tiles/FurnitureSilva/SilvaDoorOpen.cs | 12 +- Tiles/FurnitureSilva/SilvaDresser.cs | 12 +- Tiles/FurnitureSilva/SilvaLamp.cs | 8 +- Tiles/FurnitureSilva/SilvaLantern.cs | 8 +- Tiles/FurnitureSilva/SilvaPiano.cs | 8 +- Tiles/FurnitureSilva/SilvaPlatform.cs | 10 +- Tiles/FurnitureSilva/SilvaSink.cs | 8 +- Tiles/FurnitureSilva/SilvaTable.cs | 8 +- Tiles/FurnitureSilva/SilvaWorkBench.cs | 8 +- Tiles/FurnitureStatigel/StaticRefiner.cs | 6 +- Tiles/FurnitureStatigel/StatigelBath.cs | 6 +- Tiles/FurnitureStatigel/StatigelBed.cs | 8 +- Tiles/FurnitureStatigel/StatigelBlock.cs | 6 +- Tiles/FurnitureStatigel/StatigelBookcase.cs | 6 +- Tiles/FurnitureStatigel/StatigelCandelabra.cs | 6 +- Tiles/FurnitureStatigel/StatigelCandle.cs | 6 +- Tiles/FurnitureStatigel/StatigelChair.cs | 8 +- Tiles/FurnitureStatigel/StatigelChandelier.cs | 6 +- Tiles/FurnitureStatigel/StatigelChest.cs | 8 +- Tiles/FurnitureStatigel/StatigelClock.cs | 8 +- Tiles/FurnitureStatigel/StatigelDoorClosed.cs | 10 +- Tiles/FurnitureStatigel/StatigelDoorOpen.cs | 10 +- Tiles/FurnitureStatigel/StatigelDresser.cs | 10 +- Tiles/FurnitureStatigel/StatigelLamp.cs | 6 +- Tiles/FurnitureStatigel/StatigelLantern.cs | 6 +- Tiles/FurnitureStatigel/StatigelPiano.cs | 6 +- Tiles/FurnitureStatigel/StatigelPlatform.cs | 8 +- Tiles/FurnitureStatigel/StatigelSink.cs | 6 +- Tiles/FurnitureStatigel/StatigelSofa.cs | 6 +- Tiles/FurnitureStatigel/StatigelTable.cs | 6 +- Tiles/FurnitureStatigel/StatigelWorkbench.cs | 6 +- Tiles/FurnitureStratus/StratusBathtub.cs | 6 +- Tiles/FurnitureStratus/StratusBed.cs | 8 +- Tiles/FurnitureStratus/StratusBookcase.cs | 6 +- Tiles/FurnitureStratus/StratusBricks.cs | 6 +- Tiles/FurnitureStratus/StratusCandelabra.cs | 6 +- Tiles/FurnitureStratus/StratusCandle.cs | 6 +- Tiles/FurnitureStratus/StratusChair.cs | 8 +- Tiles/FurnitureStratus/StratusChandelier.cs | 6 +- Tiles/FurnitureStratus/StratusChest.cs | 8 +- Tiles/FurnitureStratus/StratusClock.cs | 8 +- Tiles/FurnitureStratus/StratusDoorClosed.cs | 10 +- Tiles/FurnitureStratus/StratusDoorOpen.cs | 10 +- Tiles/FurnitureStratus/StratusDresser.cs | 10 +- Tiles/FurnitureStratus/StratusLamp.cs | 6 +- Tiles/FurnitureStratus/StratusLantern.cs | 6 +- Tiles/FurnitureStratus/StratusPiano.cs | 6 +- Tiles/FurnitureStratus/StratusPlatform.cs | 8 +- Tiles/FurnitureStratus/StratusSink.cs | 6 +- Tiles/FurnitureStratus/StratusSofa.cs | 6 +- Tiles/FurnitureStratus/StratusTable.cs | 6 +- Tiles/FurnitureStratus/StratusWorkbench.cs | 6 +- Tiles/FurnitureVoid/SmoothVoidstone.cs | 6 +- .../FurnitureVoid/SmoothVoidstonePlatform.cs | 8 +- Tiles/FurnitureVoid/VoidBath.cs | 6 +- Tiles/FurnitureVoid/VoidBed.cs | 8 +- Tiles/FurnitureVoid/VoidBookcase.cs | 6 +- Tiles/FurnitureVoid/VoidCandelabra.cs | 6 +- Tiles/FurnitureVoid/VoidCandle.cs | 6 +- Tiles/FurnitureVoid/VoidChair.cs | 8 +- Tiles/FurnitureVoid/VoidChandelier.cs | 6 +- Tiles/FurnitureVoid/VoidChest.cs | 8 +- Tiles/FurnitureVoid/VoidClock.cs | 8 +- Tiles/FurnitureVoid/VoidCondenser.cs | 6 +- Tiles/FurnitureVoid/VoidDoorClosed.cs | 10 +- Tiles/FurnitureVoid/VoidDoorOpen.cs | 10 +- Tiles/FurnitureVoid/VoidDresser.cs | 10 +- Tiles/FurnitureVoid/VoidLamp.cs | 6 +- Tiles/FurnitureVoid/VoidLantern.cs | 6 +- Tiles/FurnitureVoid/VoidPiano.cs | 6 +- Tiles/FurnitureVoid/VoidSink.cs | 6 +- Tiles/FurnitureVoid/VoidSofa.cs | 6 +- Tiles/FurnitureVoid/VoidTable.cs | 6 +- Tiles/FurnitureVoid/VoidWorkbench.cs | 6 +- Tiles/FurnitureVoid/VoidstoneSlab.cs | 8 +- Tiles/LumenylCrystals.cs | 4 +- Tiles/MonsterBanner.cs | 2 +- Tiles/PerennialBrick.cs | 4 +- Tiles/PerennialOre.cs | 6 +- Tiles/PinkCandle.cs | 6 +- Tiles/PlantyMush.cs | 14 +- Tiles/PurpleCandle.cs | 6 +- Tiles/RoxTile.cs | 4 +- Tiles/SulphurousSand.cs | 8 +- Tiles/SunkenSea/BrainCoral.cs | 6 +- Tiles/SunkenSea/EutrophicSand.cs | 6 +- Tiles/SunkenSea/FanCoral.cs | 4 +- Tiles/SunkenSea/Navystone.cs | 10 +- Tiles/SunkenSea/SeaAnemone.cs | 4 +- Tiles/SunkenSea/SeaPrism.cs | 10 +- Tiles/SunkenSea/SeaPrismCrystals.cs | 6 +- Tiles/SunkenSea/SmallBrainCoral.cs | 6 +- Tiles/SunkenSea/SmallTubeCoral.cs | 4 +- Tiles/SunkenSea/SunkenSeaStalactite.cs | 4 +- Tiles/SunkenSea/TableCoral.cs | 4 +- Tiles/SunkenSea/TubeCoral.cs | 4 +- Tiles/Tenebris.cs | 10 +- Tiles/TranquilityCandle.cs | 10 +- Tiles/UelibloomBrick.cs | 4 +- Tiles/UelibloomOre.cs | 6 +- Tiles/ViperVines.cs | 8 +- Tiles/Voidstone.cs | 6 +- Tiles/YellowCandle.cs | 14 +- UI/AstralArcanumUI.cs | 2 +- UI/BossHealthBarManager.cs | 68 +- UI/UIBar.cs | 2 +- UI/UIBar2.cs | 2 +- UI/UIHandler.cs | 2 +- Utilities/CalamityRecipes.cs | 2 +- Utilities/CustomTileFraming.cs | 44 +- Utilities/DropHelper.cs | 10 +- Utilities/TileMerge.cs | 96 +-- Walls/AbyssGravelWall.cs | 2 +- Walls/AerialiteBrickWall.cs | 6 +- Walls/AshenSlabWall.cs | 6 +- Walls/AstralBrickWall.cs | 8 +- Walls/AstralDirtWall.cs | 4 +- Walls/AstralGrassWall.cs | 4 +- Walls/AstralIceWall.cs | 4 +- Walls/AstralMonolithWall.cs | 8 +- Walls/AstralSandstoneWall.cs | 4 +- Walls/AstralStoneWall.cs | 4 +- Walls/BrimstoneSlagWall.cs | 6 +- Walls/ChaoticBrickWall.cs | 4 +- Walls/CinderplateWall.cs | 6 +- Walls/CosmiliteBrickWall.cs | 6 +- Walls/CryonicBrickWall.cs | 6 +- Walls/EutrophicSandWall.cs | 2 +- Walls/EutrophicSandWallSafe.cs | 4 +- Walls/HardenedAstralSandWall.cs | 4 +- Walls/MossyGravelWall.cs | 2 +- Walls/NavystoneWall.cs | 2 +- Walls/NavystoneWallSafe.cs | 4 +- Walls/OccultStoneWall.cs | 6 +- Walls/PerennialBrickWall.cs | 6 +- Walls/PlaguedPlateWall.cs | 6 +- Walls/ProfanedCrystalWall.cs | 6 +- Walls/ProfanedRockWall.cs | 8 +- Walls/ProfanedSlabWall.cs | 8 +- Walls/RunicProfanedBrickWall.cs | 8 +- Walls/SilvaWall.cs | 8 +- Walls/SmoothAbyssGravelWall.cs | 6 +- Walls/SmoothBrimstoneSlagWall.cs | 6 +- Walls/SmoothNavystoneWall.cs | 6 +- Walls/SmoothVoidstoneWall.cs | 6 +- Walls/StatigelWall.cs | 6 +- Walls/StratusWall.cs | 6 +- Walls/UelibloomBrickWall.cs | 6 +- Walls/VoidstoneSlabWall.cs | 6 +- Walls/VoidstoneWall.cs | 6 +- Walls/VoidstoneWallUnsafe.cs | 2 +- Waters/AbyssWater.cs | 2 +- Waters/AbyssWaterflow.cs | 2 +- Waters/AstralWater.cs | 2 +- Waters/AstralWaterflow.cs | 2 +- Waters/SulphuricWater.cs | 2 +- Waters/SulphuricWaterflow.cs | 2 +- Waters/SunkenSeaWater.cs | 2 +- Waters/SunkenSeaWaterflow.cs | 2 +- World/Abyss.cs | 98 +-- World/CalamityWorld.cs | 152 ++--- World/Planets/MainPlanet.cs | 2 +- World/Planets/Planetoid.cs | 2 +- World/SmallBiomes.cs | 2 +- World/SunkenSea.cs | 66 +- World/WorldGenerationMethods.cs | 240 +++---- 3778 files changed, 14542 insertions(+), 14556 deletions(-) rename Buffs/DoTDebuffs/{HolyLight.cs => HolyFlames.cs} (72%) rename Buffs/DoTDebuffs/{HolyLight.png => HolyFlames.png} (100%) rename Buffs/MountBuffs/{Fab.cs => AlicornBuff.cs} (61%) rename Buffs/MountBuffs/{Fab.png => AlicornBuff.png} (100%) rename Buffs/Permafrost/{Popo.cs => PopoBuff.cs} (76%) rename Buffs/Permafrost/{Popo.png => PopoBuff.png} (100%) rename Buffs/Permafrost/{PopoNoseless.cs => PopoNoselessBuff.cs} (75%) rename Buffs/Permafrost/{PopoNoseless.png => PopoNoselessBuff.png} (100%) rename Buffs/SummonBuffs/{DrewsSandyWaifu.cs => SandyHealingWaifu.cs} (67%) rename Buffs/SummonBuffs/{DrewsSandyWaifu.png => SandyHealingWaifu.png} (100%) rename Buffs/SummonBuffs/{SirenLure.cs => WaterWaifu.cs} (67%) rename Buffs/SummonBuffs/{SirenLure.png => WaterWaifu.png} (100%) rename Buffs/SummonBuffs/{AngryChicken.cs => YharonKindleBuff.cs} (68%) rename Buffs/SummonBuffs/{AngryChicken.png => YharonKindleBuff.png} (100%) rename Items/Mounts/{Fab.cs => AlicornMount.cs} (92%) rename Items/Mounts/{FabExtra.png => AlicornMountExtra.png} (100%) rename Items/Mounts/{Fab_Back.png => AlicornMount_Back.png} (100%) rename Items/Mounts/{Fab_Front.png => AlicornMount_Front.png} (100%) rename Items/Mounts/{AngryDog.cs => AngryDogMount.cs} (93%) rename Items/Mounts/{AngryDog_Back.png => AngryDogMount_Back.png} (100%) rename Items/Mounts/{AngryDog_Front.png => AngryDogMount_Front.png} (100%) rename Projectiles/Magic/{SoulPiercer.cs => SoulPiercerBeam.cs} (85%) rename Projectiles/Magic/{SoulPiercer.png => SoulPiercerBeam.png} (100%) rename Projectiles/Patreon/{PlagueBee.cs => PlaguenadeBee.cs} (97%) rename Projectiles/Patreon/{PlagueBee.png => PlaguenadeBee.png} (100%) rename Projectiles/Pets/{Brimling.cs => BrimlingPet.cs} (96%) rename Projectiles/Pets/{Brimling.png => BrimlingPet.png} (100%) rename Projectiles/Pets/{DannyDevito.cs => DannyDevitoPet.cs} (98%) rename Projectiles/Pets/{DannyDevito.png => DannyDevitoPet.png} (100%) rename Projectiles/Pets/{Fox.cs => FoxPet.cs} (82%) rename Projectiles/Pets/{Fox.png => FoxPet.png} (100%) rename Projectiles/Pets/{Kendra.cs => KendraPet.cs} (98%) rename Projectiles/Pets/{Kendra.png => KendraPet.png} (100%) rename Projectiles/Pets/{Levi.cs => LeviPet.cs} (95%) rename Projectiles/Pets/{Levi.png => LeviPet.png} (100%) rename Projectiles/Summon/{BigBustyRose.cs => BrimstoneElementalMinion.cs} (94%) rename Projectiles/Summon/{BigBustyRose.png => BrimstoneElementalMinion.png} (100%) rename Projectiles/Summon/{CloudyWaifu.cs => CloudElementalMinion.cs} (95%) rename Projectiles/Summon/{CloudyWaifu.png => CloudElementalMinion.png} (100%) rename Projectiles/Summon/{CloudyWaifuAttack.png => CloudElementalMinionAttack.png} (100%) rename Projectiles/Summon/{FungalClump.cs => FungalClumpMinion.cs} (89%) rename Projectiles/Summon/{FungalClump.png => FungalClumpMinion.png} (100%) rename Projectiles/Summon/{DrewsSandyWaifu.cs => SandElementalHealer.cs} (94%) rename Projectiles/Summon/{DrewsSandyWaifu.png => SandElementalHealer.png} (100%) rename Projectiles/Summon/{SandyWaifu.cs => SandElementalMinion.cs} (95%) rename Projectiles/Summon/{SandyWaifu.png => SandElementalMinion.png} (100%) rename Projectiles/Summon/{AngryChicken.cs => SonOfYharon.cs} (95%) rename Projectiles/Summon/{AngryChicken.png => SonOfYharon.png} (100%) rename Projectiles/Summon/{SirenLure.cs => WaterElementalMinion.cs} (92%) rename Projectiles/Summon/{SirenLure.png => WaterElementalMinion.png} (100%) delete mode 100644 Projectiles/Summon/desktop.ini diff --git a/Backgrounds/AstralDesertSurfaceBGStyle.cs b/Backgrounds/AstralDesertSurfaceBGStyle.cs index 014a06e5ac..2ccaa9c6e7 100644 --- a/Backgrounds/AstralDesertSurfaceBGStyle.cs +++ b/Backgrounds/AstralDesertSurfaceBGStyle.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Backgrounds { diff --git a/Backgrounds/AstralSnowSurfaceBGStyle.cs b/Backgrounds/AstralSnowSurfaceBGStyle.cs index 386ce9e4b7..e6932269bf 100644 --- a/Backgrounds/AstralSnowSurfaceBGStyle.cs +++ b/Backgrounds/AstralSnowSurfaceBGStyle.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Backgrounds { diff --git a/Backgrounds/AstralSurfaceBGStyle.cs b/Backgrounds/AstralSurfaceBGStyle.cs index c0d83b6c83..088c8e53b1 100644 --- a/Backgrounds/AstralSurfaceBGStyle.cs +++ b/Backgrounds/AstralSurfaceBGStyle.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Backgrounds { diff --git a/Backgrounds/AstralUndergroundBGStyle.cs b/Backgrounds/AstralUndergroundBGStyle.cs index dbbb650181..cb1dbab6c0 100644 --- a/Backgrounds/AstralUndergroundBGStyle.cs +++ b/Backgrounds/AstralUndergroundBGStyle.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Backgrounds { diff --git a/Backgrounds/SulphurSeaSurfaceBGStyle.cs b/Backgrounds/SulphurSeaSurfaceBGStyle.cs index d061742b16..4ed79931d9 100644 --- a/Backgrounds/SulphurSeaSurfaceBGStyle.cs +++ b/Backgrounds/SulphurSeaSurfaceBGStyle.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Backgrounds { diff --git a/Buffs/Amidias/AmidiasBlessing.cs b/Buffs/Amidias/AmidiasBlessing.cs index 66a2a54028..1dff496bfb 100644 --- a/Buffs/Amidias/AmidiasBlessing.cs +++ b/Buffs/Amidias/AmidiasBlessing.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Amidias +namespace CalamityMod.Buffs { public class AmidiasBlessing : ModBuff { diff --git a/Buffs/Amidias/HermitCrab.cs b/Buffs/Amidias/HermitCrab.cs index f5e03f9274..6caedcb23a 100644 --- a/Buffs/Amidias/HermitCrab.cs +++ b/Buffs/Amidias/HermitCrab.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Amidias +namespace CalamityMod.Buffs { public class HermitCrab : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.Amidias public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("HermitCrab")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.hCrab = true; } diff --git a/Buffs/Amidias/SnapClamDebuff.cs b/Buffs/Amidias/SnapClamDebuff.cs index b83e4c45f7..b127b51630 100644 --- a/Buffs/Amidias/SnapClamDebuff.cs +++ b/Buffs/Amidias/SnapClamDebuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Amidias +namespace CalamityMod.Buffs { public class SnapClamDebuff : ModBuff { diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index 83c7428f82..b743f48ae7 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -1,7 +1,7 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Buffs { @@ -40,7 +40,7 @@ namespace CalamityMod.Buffs } else if (type == BuffID.Warmth) { - player.buffImmune[mod.BuffType("GlacialState")] = true; + player.buffImmune[ModContent.BuffType()] = true; player.buffImmune[BuffID.Frozen] = true; player.buffImmune[BuffID.Chilled] = true; } diff --git a/Buffs/DoTDebuffs/AbyssalFlames.cs b/Buffs/DoTDebuffs/AbyssalFlames.cs index 621fe8d771..85989d55da 100644 --- a/Buffs/DoTDebuffs/AbyssalFlames.cs +++ b/Buffs/DoTDebuffs/AbyssalFlames.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class AbyssalFlames : ModBuff { diff --git a/Buffs/DoTDebuffs/AstralInfectionDebuff.cs b/Buffs/DoTDebuffs/AstralInfectionDebuff.cs index 8353b9ccac..2b68eaf04a 100644 --- a/Buffs/DoTDebuffs/AstralInfectionDebuff.cs +++ b/Buffs/DoTDebuffs/AstralInfectionDebuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class AstralInfectionDebuff : ModBuff { diff --git a/Buffs/DoTDebuffs/BrimstoneFlames.cs b/Buffs/DoTDebuffs/BrimstoneFlames.cs index 5af03058b2..f44c87a9bb 100644 --- a/Buffs/DoTDebuffs/BrimstoneFlames.cs +++ b/Buffs/DoTDebuffs/BrimstoneFlames.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class BrimstoneFlames : ModBuff { diff --git a/Buffs/DoTDebuffs/BurningBlood.cs b/Buffs/DoTDebuffs/BurningBlood.cs index 80040edeb9..d37879ed3d 100644 --- a/Buffs/DoTDebuffs/BurningBlood.cs +++ b/Buffs/DoTDebuffs/BurningBlood.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class BurningBlood : ModBuff { diff --git a/Buffs/DoTDebuffs/CrushDepth.cs b/Buffs/DoTDebuffs/CrushDepth.cs index b5eeec5dcd..43180eae94 100644 --- a/Buffs/DoTDebuffs/CrushDepth.cs +++ b/Buffs/DoTDebuffs/CrushDepth.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class CrushDepth : ModBuff { diff --git a/Buffs/DoTDebuffs/DemonFlames.cs b/Buffs/DoTDebuffs/DemonFlames.cs index 91e050b56a..3ab30bd8e6 100644 --- a/Buffs/DoTDebuffs/DemonFlames.cs +++ b/Buffs/DoTDebuffs/DemonFlames.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class DemonFlames : ModBuff { diff --git a/Buffs/DoTDebuffs/GodSlayerInferno.cs b/Buffs/DoTDebuffs/GodSlayerInferno.cs index 6f1a2d042c..fc08162106 100644 --- a/Buffs/DoTDebuffs/GodSlayerInferno.cs +++ b/Buffs/DoTDebuffs/GodSlayerInferno.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class GodSlayerInferno : ModBuff { diff --git a/Buffs/DoTDebuffs/HolyLight.cs b/Buffs/DoTDebuffs/HolyFlames.cs similarity index 72% rename from Buffs/DoTDebuffs/HolyLight.cs rename to Buffs/DoTDebuffs/HolyFlames.cs index f17eec5455..899c65b528 100644 --- a/Buffs/DoTDebuffs/HolyLight.cs +++ b/Buffs/DoTDebuffs/HolyFlames.cs @@ -1,9 +1,9 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { - public class HolyLight : ModBuff + public class HolyFlames : ModBuff { public override void SetDefaults() { diff --git a/Buffs/DoTDebuffs/HolyLight.png b/Buffs/DoTDebuffs/HolyFlames.png similarity index 100% rename from Buffs/DoTDebuffs/HolyLight.png rename to Buffs/DoTDebuffs/HolyFlames.png diff --git a/Buffs/DoTDebuffs/HolyInferno.cs b/Buffs/DoTDebuffs/HolyInferno.cs index 1f0512b5d9..25d5909cd1 100644 --- a/Buffs/DoTDebuffs/HolyInferno.cs +++ b/Buffs/DoTDebuffs/HolyInferno.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class HolyInferno : ModBuff { diff --git a/Buffs/DoTDebuffs/LethalLavaBurn.cs b/Buffs/DoTDebuffs/LethalLavaBurn.cs index 76585c018d..87c1307720 100644 --- a/Buffs/DoTDebuffs/LethalLavaBurn.cs +++ b/Buffs/DoTDebuffs/LethalLavaBurn.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class LethalLavaBurn : ModBuff { diff --git a/Buffs/DoTDebuffs/Nightwither.cs b/Buffs/DoTDebuffs/Nightwither.cs index 88922802d7..b36f19cce7 100644 --- a/Buffs/DoTDebuffs/Nightwither.cs +++ b/Buffs/DoTDebuffs/Nightwither.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class Nightwither : ModBuff { diff --git a/Buffs/DoTDebuffs/Plague.cs b/Buffs/DoTDebuffs/Plague.cs index 06c569477e..b6baff19a0 100644 --- a/Buffs/DoTDebuffs/Plague.cs +++ b/Buffs/DoTDebuffs/Plague.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class Plague : ModBuff { diff --git a/Buffs/DoTDebuffs/Shadowflame.cs b/Buffs/DoTDebuffs/Shadowflame.cs index a6937d1dcb..e613ba84fe 100644 --- a/Buffs/DoTDebuffs/Shadowflame.cs +++ b/Buffs/DoTDebuffs/Shadowflame.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class Shadowflame : ModBuff { diff --git a/Buffs/DoTDebuffs/Shred.cs b/Buffs/DoTDebuffs/Shred.cs index 9c2b67d7a9..2d497e23c4 100644 --- a/Buffs/DoTDebuffs/Shred.cs +++ b/Buffs/DoTDebuffs/Shred.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class Shred : ModBuff { diff --git a/Buffs/DoTDebuffs/VulnerabilityHex.cs b/Buffs/DoTDebuffs/VulnerabilityHex.cs index 320f05f009..61a1f92c65 100644 --- a/Buffs/DoTDebuffs/VulnerabilityHex.cs +++ b/Buffs/DoTDebuffs/VulnerabilityHex.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.DoTDebuffs +namespace CalamityMod.Buffs { public class VulnerabilityHex : ModBuff { diff --git a/Buffs/Fabsol/BloodyMary.cs b/Buffs/Fabsol/BloodyMary.cs index d0137bf4f5..86c438cfbe 100644 --- a/Buffs/Fabsol/BloodyMary.cs +++ b/Buffs/Fabsol/BloodyMary.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class BloodyMary : ModBuff { diff --git a/Buffs/Fabsol/BlueSpeedCandle.cs b/Buffs/Fabsol/BlueSpeedCandle.cs index 844184b1a8..ad5ff816cb 100644 --- a/Buffs/Fabsol/BlueSpeedCandle.cs +++ b/Buffs/Fabsol/BlueSpeedCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class BlueSpeedCandle : ModBuff { diff --git a/Buffs/Fabsol/CaribbeanRum.cs b/Buffs/Fabsol/CaribbeanRum.cs index b6703aad56..690eeb50b0 100644 --- a/Buffs/Fabsol/CaribbeanRum.cs +++ b/Buffs/Fabsol/CaribbeanRum.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class CaribbeanRum : ModBuff { diff --git a/Buffs/Fabsol/CinnamonRoll.cs b/Buffs/Fabsol/CinnamonRoll.cs index 2050d7e817..11e0316e2a 100644 --- a/Buffs/Fabsol/CinnamonRoll.cs +++ b/Buffs/Fabsol/CinnamonRoll.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class CinnamonRoll : ModBuff { diff --git a/Buffs/Fabsol/Everclear.cs b/Buffs/Fabsol/Everclear.cs index 049f05e0db..278fb8924c 100644 --- a/Buffs/Fabsol/Everclear.cs +++ b/Buffs/Fabsol/Everclear.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Everclear : ModBuff { diff --git a/Buffs/Fabsol/EvergreenGin.cs b/Buffs/Fabsol/EvergreenGin.cs index 2b0a4f0833..e619132425 100644 --- a/Buffs/Fabsol/EvergreenGin.cs +++ b/Buffs/Fabsol/EvergreenGin.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class EvergreenGin : ModBuff { diff --git a/Buffs/Fabsol/FabsolVodka.cs b/Buffs/Fabsol/FabsolVodka.cs index 577c42d287..b71f3f582f 100644 --- a/Buffs/Fabsol/FabsolVodka.cs +++ b/Buffs/Fabsol/FabsolVodka.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class FabsolVodka : ModBuff { diff --git a/Buffs/Fabsol/Fireball.cs b/Buffs/Fabsol/Fireball.cs index fc40372400..c3827eb806 100644 --- a/Buffs/Fabsol/Fireball.cs +++ b/Buffs/Fabsol/Fireball.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Fireball : ModBuff { diff --git a/Buffs/Fabsol/GrapeBeer.cs b/Buffs/Fabsol/GrapeBeer.cs index 64de9346e8..cc7377fde8 100644 --- a/Buffs/Fabsol/GrapeBeer.cs +++ b/Buffs/Fabsol/GrapeBeer.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class GrapeBeer : ModBuff { diff --git a/Buffs/Fabsol/Margarita.cs b/Buffs/Fabsol/Margarita.cs index c15ca89e13..bded6201b4 100644 --- a/Buffs/Fabsol/Margarita.cs +++ b/Buffs/Fabsol/Margarita.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Margarita : ModBuff { diff --git a/Buffs/Fabsol/Moonshine.cs b/Buffs/Fabsol/Moonshine.cs index 181d290547..640372473a 100644 --- a/Buffs/Fabsol/Moonshine.cs +++ b/Buffs/Fabsol/Moonshine.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Moonshine : ModBuff { diff --git a/Buffs/Fabsol/MoscowMule.cs b/Buffs/Fabsol/MoscowMule.cs index e071dc3fa5..4447dc3fc0 100644 --- a/Buffs/Fabsol/MoscowMule.cs +++ b/Buffs/Fabsol/MoscowMule.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class MoscowMule : ModBuff { diff --git a/Buffs/Fabsol/PinkHealthCandle.cs b/Buffs/Fabsol/PinkHealthCandle.cs index 51431fb4a3..8615aa49ff 100644 --- a/Buffs/Fabsol/PinkHealthCandle.cs +++ b/Buffs/Fabsol/PinkHealthCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class PinkHealthCandle : ModBuff { diff --git a/Buffs/Fabsol/PurpleDefenseCandle.cs b/Buffs/Fabsol/PurpleDefenseCandle.cs index e74f16bb6b..f692df510b 100644 --- a/Buffs/Fabsol/PurpleDefenseCandle.cs +++ b/Buffs/Fabsol/PurpleDefenseCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class PurpleDefenseCandle : ModBuff { diff --git a/Buffs/Fabsol/RedWine.cs b/Buffs/Fabsol/RedWine.cs index e4f0ff3911..5fd661862e 100644 --- a/Buffs/Fabsol/RedWine.cs +++ b/Buffs/Fabsol/RedWine.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class RedWine : ModBuff { diff --git a/Buffs/Fabsol/Rum.cs b/Buffs/Fabsol/Rum.cs index abcde2eb49..ac8c751562 100644 --- a/Buffs/Fabsol/Rum.cs +++ b/Buffs/Fabsol/Rum.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Rum : ModBuff { diff --git a/Buffs/Fabsol/Screwdriver.cs b/Buffs/Fabsol/Screwdriver.cs index ca712a6150..591198cca7 100644 --- a/Buffs/Fabsol/Screwdriver.cs +++ b/Buffs/Fabsol/Screwdriver.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Screwdriver : ModBuff { diff --git a/Buffs/Fabsol/StarBeamRye.cs b/Buffs/Fabsol/StarBeamRye.cs index e909f515c1..464517bc74 100644 --- a/Buffs/Fabsol/StarBeamRye.cs +++ b/Buffs/Fabsol/StarBeamRye.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class StarBeamRye : ModBuff { diff --git a/Buffs/Fabsol/Tequila.cs b/Buffs/Fabsol/Tequila.cs index 893db47222..1794c89702 100644 --- a/Buffs/Fabsol/Tequila.cs +++ b/Buffs/Fabsol/Tequila.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Tequila : ModBuff { diff --git a/Buffs/Fabsol/TequilaSunrise.cs b/Buffs/Fabsol/TequilaSunrise.cs index 0e3b1b8ef7..3e3ed1c06c 100644 --- a/Buffs/Fabsol/TequilaSunrise.cs +++ b/Buffs/Fabsol/TequilaSunrise.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class TequilaSunrise : ModBuff { diff --git a/Buffs/Fabsol/Trippy.cs b/Buffs/Fabsol/Trippy.cs index 662efbd80f..d2d075ecfd 100644 --- a/Buffs/Fabsol/Trippy.cs +++ b/Buffs/Fabsol/Trippy.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Trippy : ModBuff { diff --git a/Buffs/Fabsol/Vodka.cs b/Buffs/Fabsol/Vodka.cs index 0820a8f260..97e10fa8b6 100644 --- a/Buffs/Fabsol/Vodka.cs +++ b/Buffs/Fabsol/Vodka.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Vodka : ModBuff { diff --git a/Buffs/Fabsol/Whiskey.cs b/Buffs/Fabsol/Whiskey.cs index 25f1eb1933..9fe3db015f 100644 --- a/Buffs/Fabsol/Whiskey.cs +++ b/Buffs/Fabsol/Whiskey.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class Whiskey : ModBuff { diff --git a/Buffs/Fabsol/WhiteWine.cs b/Buffs/Fabsol/WhiteWine.cs index 40db564e03..cb353b70c7 100644 --- a/Buffs/Fabsol/WhiteWine.cs +++ b/Buffs/Fabsol/WhiteWine.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class WhiteWine : ModBuff { diff --git a/Buffs/Fabsol/YellowDamageCandle.cs b/Buffs/Fabsol/YellowDamageCandle.cs index 1a2559057e..db9683329e 100644 --- a/Buffs/Fabsol/YellowDamageCandle.cs +++ b/Buffs/Fabsol/YellowDamageCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Fabsol +namespace CalamityMod.Buffs { public class YellowDamageCandle : ModBuff { diff --git a/Buffs/MountBuffs/Fab.cs b/Buffs/MountBuffs/AlicornBuff.cs similarity index 61% rename from Buffs/MountBuffs/Fab.cs rename to Buffs/MountBuffs/AlicornBuff.cs index 0568ecd12f..a933e94cbf 100644 --- a/Buffs/MountBuffs/Fab.cs +++ b/Buffs/MountBuffs/AlicornBuff.cs @@ -1,9 +1,9 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.MountBuffs +namespace CalamityMod.Buffs { - class Fab : ModBuff + class AlicornBuff : ModBuff { public override void SetDefaults() { @@ -15,7 +15,7 @@ namespace CalamityMod.Buffs.MountBuffs public override void Update(Player player, ref int buffIndex) { - player.mount.SetMount(ModContent.MountType(), player); + player.mount.SetMount(ModContent.MountType(), player); player.buffTime[buffIndex] = 10; player.Calamity().fab = true; } diff --git a/Buffs/MountBuffs/Fab.png b/Buffs/MountBuffs/AlicornBuff.png similarity index 100% rename from Buffs/MountBuffs/Fab.png rename to Buffs/MountBuffs/AlicornBuff.png diff --git a/Buffs/MountBuffs/BrimstoneMount.cs b/Buffs/MountBuffs/BrimstoneMount.cs index 4c55eb89e5..27c7a5b0b0 100644 --- a/Buffs/MountBuffs/BrimstoneMount.cs +++ b/Buffs/MountBuffs/BrimstoneMount.cs @@ -1,8 +1,8 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.MountBuffs +namespace CalamityMod.Buffs { class BrimstoneMount : ModBuff { diff --git a/Buffs/MountBuffs/GazeOfCrysthamyrBuff.cs b/Buffs/MountBuffs/GazeOfCrysthamyrBuff.cs index dd0caed250..5095c7daa2 100644 --- a/Buffs/MountBuffs/GazeOfCrysthamyrBuff.cs +++ b/Buffs/MountBuffs/GazeOfCrysthamyrBuff.cs @@ -1,8 +1,8 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.MountBuffs +namespace CalamityMod.Buffs { class GazeOfCrysthamyrBuff : ModBuff { diff --git a/Buffs/MountBuffs/SquishyBeanBuff.cs b/Buffs/MountBuffs/SquishyBeanBuff.cs index 1ff9bb7b33..a5e4a26235 100644 --- a/Buffs/MountBuffs/SquishyBeanBuff.cs +++ b/Buffs/MountBuffs/SquishyBeanBuff.cs @@ -1,8 +1,8 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.MountBuffs +namespace CalamityMod.Buffs { class SquishyBeanBuff : ModBuff { diff --git a/Buffs/Permafrost/ConcoctionCooldown.cs b/Buffs/Permafrost/ConcoctionCooldown.cs index 62f29e8eef..7456b22f5a 100644 --- a/Buffs/Permafrost/ConcoctionCooldown.cs +++ b/Buffs/Permafrost/ConcoctionCooldown.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Permafrost +namespace CalamityMod.Buffs { public class ConcoctionCooldown : ModBuff { diff --git a/Buffs/Permafrost/Encased.cs b/Buffs/Permafrost/Encased.cs index ef04ea8c52..0b598a6b45 100644 --- a/Buffs/Permafrost/Encased.cs +++ b/Buffs/Permafrost/Encased.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Permafrost +namespace CalamityMod.Buffs { public class Encased : ModBuff { diff --git a/Buffs/Permafrost/Popo.cs b/Buffs/Permafrost/PopoBuff.cs similarity index 76% rename from Buffs/Permafrost/Popo.cs rename to Buffs/Permafrost/PopoBuff.cs index 6769153a05..2a5eaedacb 100644 --- a/Buffs/Permafrost/Popo.cs +++ b/Buffs/Permafrost/PopoBuff.cs @@ -1,10 +1,10 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Permafrost +namespace CalamityMod.Buffs { - public class Popo : ModBuff + public class PopoBuff : ModBuff { public override void SetDefaults() { diff --git a/Buffs/Permafrost/Popo.png b/Buffs/Permafrost/PopoBuff.png similarity index 100% rename from Buffs/Permafrost/Popo.png rename to Buffs/Permafrost/PopoBuff.png diff --git a/Buffs/Permafrost/PopoNoseless.cs b/Buffs/Permafrost/PopoNoselessBuff.cs similarity index 75% rename from Buffs/Permafrost/PopoNoseless.cs rename to Buffs/Permafrost/PopoNoselessBuff.cs index a0d074158a..3e515ced7b 100644 --- a/Buffs/Permafrost/PopoNoseless.cs +++ b/Buffs/Permafrost/PopoNoselessBuff.cs @@ -1,10 +1,10 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Permafrost +namespace CalamityMod.Buffs { - public class PopoNoseless : ModBuff + public class PopoNoselessBuff : ModBuff { public override void SetDefaults() { diff --git a/Buffs/Permafrost/PopoNoseless.png b/Buffs/Permafrost/PopoNoselessBuff.png similarity index 100% rename from Buffs/Permafrost/PopoNoseless.png rename to Buffs/Permafrost/PopoNoselessBuff.png diff --git a/Buffs/PetBuffs/AkatoYharonBuff.cs b/Buffs/PetBuffs/AkatoYharonBuff.cs index 499971fcfe..9ddc101b58 100644 --- a/Buffs/PetBuffs/AkatoYharonBuff.cs +++ b/Buffs/PetBuffs/AkatoYharonBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class AkatoYharonBuff : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().akato = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Akato")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Akato"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/AstrophageBuff.cs b/Buffs/PetBuffs/AstrophageBuff.cs index 538da4356c..0a9062845c 100644 --- a/Buffs/PetBuffs/AstrophageBuff.cs +++ b/Buffs/PetBuffs/AstrophageBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class AstrophageBuff : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().astrophage = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Astrophage")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Astrophage"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/BearBuff.cs b/Buffs/PetBuffs/BearBuff.cs index 0d6f5ee61c..229574e193 100644 --- a/Buffs/PetBuffs/BearBuff.cs +++ b/Buffs/PetBuffs/BearBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class BearBuff : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().bearPet = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Bear")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Bear"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/BloodBound.cs b/Buffs/PetBuffs/BloodBound.cs index 5a9651b1fb..28c5d2ee49 100644 --- a/Buffs/PetBuffs/BloodBound.cs +++ b/Buffs/PetBuffs/BloodBound.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class BloodBound : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().perfmini = true; - bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("PerforaMini")] <= 0; + bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, mod.ProjectileType("PerforaMini"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/BrimlingBuff.cs b/Buffs/PetBuffs/BrimlingBuff.cs index 088c1da795..01cd305ed6 100644 --- a/Buffs/PetBuffs/BrimlingBuff.cs +++ b/Buffs/PetBuffs/BrimlingBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class BrimlingBuff : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().brimling = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Brimling")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Brimling"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/ChibiiBuff.cs b/Buffs/PetBuffs/ChibiiBuff.cs index 0aa5f6b53e..4d3fa333c0 100644 --- a/Buffs/PetBuffs/ChibiiBuff.cs +++ b/Buffs/PetBuffs/ChibiiBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class ChibiiBuff : ModBuff { @@ -19,11 +19,11 @@ namespace CalamityMod.Buffs.PetBuffs player.Calamity().chibii = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ChibiiDoggo")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("ChibiiDoggo"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/DannyDevito.cs b/Buffs/PetBuffs/DannyDevito.cs index 66bc19f614..9114a40eb0 100644 --- a/Buffs/PetBuffs/DannyDevito.cs +++ b/Buffs/PetBuffs/DannyDevito.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class DannyDevito : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().trashMan = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("DannyDevito")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("DannyDevito"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/Fox.cs b/Buffs/PetBuffs/Fox.cs index 44a2bf32a3..1b02d1871c 100644 --- a/Buffs/PetBuffs/Fox.cs +++ b/Buffs/PetBuffs/Fox.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class Fox : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().fox = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Fox")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Fox"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/Kendra.cs b/Buffs/PetBuffs/Kendra.cs index bc51f993e5..f704642b75 100644 --- a/Buffs/PetBuffs/Kendra.cs +++ b/Buffs/PetBuffs/Kendra.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class Kendra : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().kendra = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Kendra")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2) - 20f, 0f, 0f, mod.ProjectileType("Kendra"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2) - 20f, 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/Levi.cs b/Buffs/PetBuffs/Levi.cs index bd929d46d0..38745750c7 100644 --- a/Buffs/PetBuffs/Levi.cs +++ b/Buffs/PetBuffs/Levi.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class Levi : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().leviPet = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Levi")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Levi"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/StrangeOrb.cs b/Buffs/PetBuffs/StrangeOrb.cs index b742e33edd..4fb02fd6a0 100644 --- a/Buffs/PetBuffs/StrangeOrb.cs +++ b/Buffs/PetBuffs/StrangeOrb.cs @@ -1,9 +1,10 @@ -using Terraria; -using Terraria.ModLoader; +using CalamityMod.Projectiles; +using Terraria; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { - public class StrangeOrb : ModBuff + public class SirenLightPetBuff : ModBuff { public override void SetDefaults() { @@ -17,10 +18,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().sirenPet = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("SirenYoung")] <= 0; + bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("SirenYoung"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PetBuffs/ThirdSageBuff.cs b/Buffs/PetBuffs/ThirdSageBuff.cs index 1bca491ccf..406b82b21b 100644 --- a/Buffs/PetBuffs/ThirdSageBuff.cs +++ b/Buffs/PetBuffs/ThirdSageBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PetBuffs +namespace CalamityMod.Buffs { public class ThirdSageBuff : ModBuff { @@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.PetBuffs { player.buffTime[buffIndex] = 18000; player.Calamity().thirdSage = true; - bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ThirdSage")] <= 0; + bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0; if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, mod.ProjectileType("ThirdSage"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Buffs/PotionBuffs/AbyssalWeapon.cs b/Buffs/PotionBuffs/AbyssalWeapon.cs index 2303782bc5..f10effd2ba 100644 --- a/Buffs/PotionBuffs/AbyssalWeapon.cs +++ b/Buffs/PotionBuffs/AbyssalWeapon.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class AbyssalWeapon : ModBuff { diff --git a/Buffs/PotionBuffs/AnechoicCoating.cs b/Buffs/PotionBuffs/AnechoicCoating.cs index 9b197298a4..1b4176f4d8 100644 --- a/Buffs/PotionBuffs/AnechoicCoating.cs +++ b/Buffs/PotionBuffs/AnechoicCoating.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class AnechoicCoating : ModBuff { diff --git a/Buffs/PotionBuffs/ArmorCrumbling.cs b/Buffs/PotionBuffs/ArmorCrumbling.cs index f35485b24f..06ff2166e5 100644 --- a/Buffs/PotionBuffs/ArmorCrumbling.cs +++ b/Buffs/PotionBuffs/ArmorCrumbling.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class ArmorCrumbling : ModBuff { diff --git a/Buffs/PotionBuffs/ArmorShattering.cs b/Buffs/PotionBuffs/ArmorShattering.cs index 9bf58c2ce4..f35e232a88 100644 --- a/Buffs/PotionBuffs/ArmorShattering.cs +++ b/Buffs/PotionBuffs/ArmorShattering.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class ArmorShattering : ModBuff { diff --git a/Buffs/PotionBuffs/AstralInjectionBuff.cs b/Buffs/PotionBuffs/AstralInjectionBuff.cs index f22748f1db..8b96dce15b 100644 --- a/Buffs/PotionBuffs/AstralInjectionBuff.cs +++ b/Buffs/PotionBuffs/AstralInjectionBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class AstralInjectionBuff : ModBuff { diff --git a/Buffs/PotionBuffs/BoundingBuff.cs b/Buffs/PotionBuffs/BoundingBuff.cs index 7d4ff2583d..b3ad8e12e1 100644 --- a/Buffs/PotionBuffs/BoundingBuff.cs +++ b/Buffs/PotionBuffs/BoundingBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class BoundingBuff : ModBuff { diff --git a/Buffs/PotionBuffs/Cadence.cs b/Buffs/PotionBuffs/Cadence.cs index dd41c41d69..68f9fcdf70 100644 --- a/Buffs/PotionBuffs/Cadence.cs +++ b/Buffs/PotionBuffs/Cadence.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class Cadence : ModBuff { diff --git a/Buffs/PotionBuffs/CalciumBuff.cs b/Buffs/PotionBuffs/CalciumBuff.cs index aedbeeb198..acaaf74931 100644 --- a/Buffs/PotionBuffs/CalciumBuff.cs +++ b/Buffs/PotionBuffs/CalciumBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class CalciumBuff : ModBuff { diff --git a/Buffs/PotionBuffs/CeaselessHunger.cs b/Buffs/PotionBuffs/CeaselessHunger.cs index af97d09640..1213a5661f 100644 --- a/Buffs/PotionBuffs/CeaselessHunger.cs +++ b/Buffs/PotionBuffs/CeaselessHunger.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class CeaselessHunger : ModBuff { diff --git a/Buffs/PotionBuffs/DraconicSurgeBuff.cs b/Buffs/PotionBuffs/DraconicSurgeBuff.cs index 423299ff8c..4e700b6440 100644 --- a/Buffs/PotionBuffs/DraconicSurgeBuff.cs +++ b/Buffs/PotionBuffs/DraconicSurgeBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class DraconicSurgeBuff : ModBuff { diff --git a/Buffs/PotionBuffs/GravityNormalizerBuff.cs b/Buffs/PotionBuffs/GravityNormalizerBuff.cs index 6a535340a7..9177500730 100644 --- a/Buffs/PotionBuffs/GravityNormalizerBuff.cs +++ b/Buffs/PotionBuffs/GravityNormalizerBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class GravityNormalizerBuff : ModBuff { diff --git a/Buffs/PotionBuffs/HolyWrathBuff.cs b/Buffs/PotionBuffs/HolyWrathBuff.cs index e71036cac4..2a565f1728 100644 --- a/Buffs/PotionBuffs/HolyWrathBuff.cs +++ b/Buffs/PotionBuffs/HolyWrathBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class HolyWrathBuff : ModBuff { diff --git a/Buffs/PotionBuffs/Invincible.cs b/Buffs/PotionBuffs/Invincible.cs index 764af17abb..4e08368efd 100644 --- a/Buffs/PotionBuffs/Invincible.cs +++ b/Buffs/PotionBuffs/Invincible.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class Invincible : ModBuff { diff --git a/Buffs/PotionBuffs/Omniscience.cs b/Buffs/PotionBuffs/Omniscience.cs index b57333ecb4..57b39631e5 100644 --- a/Buffs/PotionBuffs/Omniscience.cs +++ b/Buffs/PotionBuffs/Omniscience.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class Omniscience : ModBuff { diff --git a/Buffs/PotionBuffs/PenumbraBuff.cs b/Buffs/PotionBuffs/PenumbraBuff.cs index ccd63bf7ce..5dab5a4c3d 100644 --- a/Buffs/PotionBuffs/PenumbraBuff.cs +++ b/Buffs/PotionBuffs/PenumbraBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class PenumbraBuff : ModBuff { diff --git a/Buffs/PotionBuffs/PhotosynthesisBuff.cs b/Buffs/PotionBuffs/PhotosynthesisBuff.cs index d689983660..033f039316 100644 --- a/Buffs/PotionBuffs/PhotosynthesisBuff.cs +++ b/Buffs/PotionBuffs/PhotosynthesisBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class PhotosynthesisBuff : ModBuff { diff --git a/Buffs/PotionBuffs/ProfanedRageBuff.cs b/Buffs/PotionBuffs/ProfanedRageBuff.cs index 2e7911b74e..e524979f04 100644 --- a/Buffs/PotionBuffs/ProfanedRageBuff.cs +++ b/Buffs/PotionBuffs/ProfanedRageBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class ProfanedRageBuff : ModBuff { diff --git a/Buffs/PotionBuffs/Soaring.cs b/Buffs/PotionBuffs/Soaring.cs index d1264be325..9e5dd0c5b8 100644 --- a/Buffs/PotionBuffs/Soaring.cs +++ b/Buffs/PotionBuffs/Soaring.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class Soaring : ModBuff { diff --git a/Buffs/PotionBuffs/TitanScale.cs b/Buffs/PotionBuffs/TitanScale.cs index fea7ff08b5..2570db3ec7 100644 --- a/Buffs/PotionBuffs/TitanScale.cs +++ b/Buffs/PotionBuffs/TitanScale.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class TitanScale : ModBuff { diff --git a/Buffs/PotionBuffs/TriumphBuff.cs b/Buffs/PotionBuffs/TriumphBuff.cs index 0a9e3b08bf..9d1565c54f 100644 --- a/Buffs/PotionBuffs/TriumphBuff.cs +++ b/Buffs/PotionBuffs/TriumphBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class TriumphBuff : ModBuff { diff --git a/Buffs/PotionBuffs/YharimPower.cs b/Buffs/PotionBuffs/YharimPower.cs index a760267cd5..79aa11461b 100644 --- a/Buffs/PotionBuffs/YharimPower.cs +++ b/Buffs/PotionBuffs/YharimPower.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class YharimPower : ModBuff { diff --git a/Buffs/PotionBuffs/Zen.cs b/Buffs/PotionBuffs/Zen.cs index e792b1333e..d52ed08f0c 100644 --- a/Buffs/PotionBuffs/Zen.cs +++ b/Buffs/PotionBuffs/Zen.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class Zen : ModBuff { diff --git a/Buffs/PotionBuffs/Zerg.cs b/Buffs/PotionBuffs/Zerg.cs index 2b1b2b17a3..cd56258174 100644 --- a/Buffs/PotionBuffs/Zerg.cs +++ b/Buffs/PotionBuffs/Zerg.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.PotionBuffs +namespace CalamityMod.Buffs { public class Zerg : ModBuff { diff --git a/Buffs/Shrines/ChiBuff.cs b/Buffs/Shrines/ChiBuff.cs index 571d316e66..63a9788e96 100644 --- a/Buffs/Shrines/ChiBuff.cs +++ b/Buffs/Shrines/ChiBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Shrines +namespace CalamityMod.Buffs { public class ChiBuff : ModBuff { diff --git a/Buffs/Shrines/CorruptionEffigyBuff.cs b/Buffs/Shrines/CorruptionEffigyBuff.cs index 9d6ab0e588..4920100ca3 100644 --- a/Buffs/Shrines/CorruptionEffigyBuff.cs +++ b/Buffs/Shrines/CorruptionEffigyBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Shrines +namespace CalamityMod.Buffs { public class CorruptionEffigyBuff : ModBuff { diff --git a/Buffs/Shrines/CrimsonEffigyBuff.cs b/Buffs/Shrines/CrimsonEffigyBuff.cs index 55ccb1ca54..9936743ed2 100644 --- a/Buffs/Shrines/CrimsonEffigyBuff.cs +++ b/Buffs/Shrines/CrimsonEffigyBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Shrines +namespace CalamityMod.Buffs { public class CrimsonEffigyBuff : ModBuff { diff --git a/Buffs/Shrines/GladiatorSwords.cs b/Buffs/Shrines/GladiatorSwords.cs index 948e3290a4..42bea573e5 100644 --- a/Buffs/Shrines/GladiatorSwords.cs +++ b/Buffs/Shrines/GladiatorSwords.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Shrines +namespace CalamityMod.Buffs { public class GladiatorSwords : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.Shrines public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("GladiatorSword")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.glSword = true; } diff --git a/Buffs/Shrines/OnyxExcavatorBuff.cs b/Buffs/Shrines/OnyxExcavatorBuff.cs index 92d840f53b..b76bcd475f 100644 --- a/Buffs/Shrines/OnyxExcavatorBuff.cs +++ b/Buffs/Shrines/OnyxExcavatorBuff.cs @@ -1,8 +1,8 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Shrines +namespace CalamityMod.Buffs { class OnyxExcavatorBuff : ModBuff { diff --git a/Buffs/Shrines/TundraLeashBuff.cs b/Buffs/Shrines/TundraLeashBuff.cs index 2420eda673..61227c579c 100644 --- a/Buffs/Shrines/TundraLeashBuff.cs +++ b/Buffs/Shrines/TundraLeashBuff.cs @@ -1,8 +1,8 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.Shrines +namespace CalamityMod.Buffs { class TundraLeashBuff : ModBuff { @@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.Shrines public override void Update(Player player, ref int buffIndex) { - player.mount.SetMount(ModContent.MountType(), player); + player.mount.SetMount(ModContent.MountType(), player); player.buffTime[buffIndex] = 10; player.Calamity().angryDog = true; } diff --git a/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs b/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs index 74020ab73b..3464f86c0a 100644 --- a/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs +++ b/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class AbyssalDivingSuitBuff : ModBuff { diff --git a/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs b/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs index c7f51f46a2..3289fb7f7d 100644 --- a/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs +++ b/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class AbyssalDivingSuitPlates : ModBuff { diff --git a/Buffs/StatBuffs/AdrenalineMode.cs b/Buffs/StatBuffs/AdrenalineMode.cs index f5fefad9cc..9238a006ac 100644 --- a/Buffs/StatBuffs/AdrenalineMode.cs +++ b/Buffs/StatBuffs/AdrenalineMode.cs @@ -1,8 +1,8 @@ using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class AdrenalineMode : ModBuff { diff --git a/Buffs/StatBuffs/Afflicted.cs b/Buffs/StatBuffs/Afflicted.cs index 6ea97370ef..20f22bcc8e 100644 --- a/Buffs/StatBuffs/Afflicted.cs +++ b/Buffs/StatBuffs/Afflicted.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class Afflicted : ModBuff { diff --git a/Buffs/StatBuffs/ChaosCandle.cs b/Buffs/StatBuffs/ChaosCandle.cs index 552c9c241e..f6ee621fd0 100644 --- a/Buffs/StatBuffs/ChaosCandle.cs +++ b/Buffs/StatBuffs/ChaosCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class ChaosCandle : ModBuff { diff --git a/Buffs/StatBuffs/CosmicFreeze.cs b/Buffs/StatBuffs/CosmicFreeze.cs index 9e49557b03..d4f7d8efc2 100644 --- a/Buffs/StatBuffs/CosmicFreeze.cs +++ b/Buffs/StatBuffs/CosmicFreeze.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class CosmicFreeze : ModBuff { diff --git a/Buffs/StatBuffs/GodSlayerCooldown.cs b/Buffs/StatBuffs/GodSlayerCooldown.cs index c3c43269db..43f760efd4 100644 --- a/Buffs/StatBuffs/GodSlayerCooldown.cs +++ b/Buffs/StatBuffs/GodSlayerCooldown.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class GodSlayerCooldown : ModBuff { diff --git a/Buffs/StatBuffs/GraxDefense.cs b/Buffs/StatBuffs/GraxDefense.cs index 7e8c832b84..268e6a9e8a 100644 --- a/Buffs/StatBuffs/GraxDefense.cs +++ b/Buffs/StatBuffs/GraxDefense.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class GraxDefense : ModBuff { diff --git a/Buffs/StatBuffs/HeartAttack.cs b/Buffs/StatBuffs/HeartAttack.cs index bd45f1b4de..8ee367b97f 100644 --- a/Buffs/StatBuffs/HeartAttack.cs +++ b/Buffs/StatBuffs/HeartAttack.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class HeartAttack : ModBuff { diff --git a/Buffs/StatBuffs/IceShieldBuff.cs b/Buffs/StatBuffs/IceShieldBuff.cs index 8ddcc2408f..696cf52b92 100644 --- a/Buffs/StatBuffs/IceShieldBuff.cs +++ b/Buffs/StatBuffs/IceShieldBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class IceShieldBuff : ModBuff { diff --git a/Buffs/StatBuffs/Molten.cs b/Buffs/StatBuffs/Molten.cs index 4671568990..7b154b5f5b 100644 --- a/Buffs/StatBuffs/Molten.cs +++ b/Buffs/StatBuffs/Molten.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class Molten : ModBuff { diff --git a/Buffs/StatBuffs/Mushy.cs b/Buffs/StatBuffs/Mushy.cs index c33fee1b9c..65fab24aa6 100644 --- a/Buffs/StatBuffs/Mushy.cs +++ b/Buffs/StatBuffs/Mushy.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class Mushy : ModBuff { diff --git a/Buffs/StatBuffs/PolarisBuff.cs b/Buffs/StatBuffs/PolarisBuff.cs index 048a93d7fd..b6f996755b 100644 --- a/Buffs/StatBuffs/PolarisBuff.cs +++ b/Buffs/StatBuffs/PolarisBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class PolarisBuff : ModBuff { diff --git a/Buffs/StatBuffs/RageMode.cs b/Buffs/StatBuffs/RageMode.cs index 9e4e76b70c..71f36271cb 100644 --- a/Buffs/StatBuffs/RageMode.cs +++ b/Buffs/StatBuffs/RageMode.cs @@ -1,8 +1,8 @@ using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class RageMode : ModBuff { diff --git a/Buffs/StatBuffs/ReaverRage.cs b/Buffs/StatBuffs/ReaverRage.cs index 02471e7e62..7660ce72ef 100644 --- a/Buffs/StatBuffs/ReaverRage.cs +++ b/Buffs/StatBuffs/ReaverRage.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class ReaverRage : ModBuff { diff --git a/Buffs/StatBuffs/ScarfMeleeBoost.cs b/Buffs/StatBuffs/ScarfMeleeBoost.cs index 940411c84d..52378d505e 100644 --- a/Buffs/StatBuffs/ScarfMeleeBoost.cs +++ b/Buffs/StatBuffs/ScarfMeleeBoost.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class ScarfMeleeBoost : ModBuff { diff --git a/Buffs/StatBuffs/ShellBoost.cs b/Buffs/StatBuffs/ShellBoost.cs index 1e146bc8fb..f94a82518e 100644 --- a/Buffs/StatBuffs/ShellBoost.cs +++ b/Buffs/StatBuffs/ShellBoost.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class ShellBoost : ModBuff { diff --git a/Buffs/StatBuffs/SilvaRevival.cs b/Buffs/StatBuffs/SilvaRevival.cs index d7bc1578e8..584de930b5 100644 --- a/Buffs/StatBuffs/SilvaRevival.cs +++ b/Buffs/StatBuffs/SilvaRevival.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class SilvaRevival : ModBuff { diff --git a/Buffs/StatBuffs/SirenBobs.cs b/Buffs/StatBuffs/SirenBobs.cs index d8febe02a0..3884695f66 100644 --- a/Buffs/StatBuffs/SirenBobs.cs +++ b/Buffs/StatBuffs/SirenBobs.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class SirenBobs : ModBuff { @@ -39,7 +39,7 @@ namespace CalamityMod.Buffs.StatBuffs } if (Main.myPlayer == player.whoAmI && player.wet && NPC.downedBoss3) { - player.AddBuff(mod.BuffType("SirenWaterSpeed"), 360); + player.AddBuff(ModContent.BuffType(), 360); } } else diff --git a/Buffs/StatBuffs/SirenBobsAlt.cs b/Buffs/StatBuffs/SirenBobsAlt.cs index 7a2b8348e8..4dd882e162 100644 --- a/Buffs/StatBuffs/SirenBobsAlt.cs +++ b/Buffs/StatBuffs/SirenBobsAlt.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class SirenBobsAlt : ModBuff { @@ -39,7 +39,7 @@ namespace CalamityMod.Buffs.StatBuffs } if (Main.myPlayer == player.whoAmI && player.wet && NPC.downedBoss3) { - player.AddBuff(mod.BuffType("SirenWaterSpeed"), 360); + player.AddBuff(ModContent.BuffType(), 360); } } else diff --git a/Buffs/StatBuffs/SirenWaterSpeed.cs b/Buffs/StatBuffs/SirenWaterSpeed.cs index d26aa2fbc2..d6d8a3f70a 100644 --- a/Buffs/StatBuffs/SirenWaterSpeed.cs +++ b/Buffs/StatBuffs/SirenWaterSpeed.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class SirenWaterSpeed : ModBuff { diff --git a/Buffs/StatBuffs/TarraLifeRegen.cs b/Buffs/StatBuffs/TarraLifeRegen.cs index 08d5c7872d..e281553252 100644 --- a/Buffs/StatBuffs/TarraLifeRegen.cs +++ b/Buffs/StatBuffs/TarraLifeRegen.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class TarraLifeRegen : ModBuff { diff --git a/Buffs/StatBuffs/TranquilityCandle.cs b/Buffs/StatBuffs/TranquilityCandle.cs index b130486793..1965869dd8 100644 --- a/Buffs/StatBuffs/TranquilityCandle.cs +++ b/Buffs/StatBuffs/TranquilityCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class TranquilityCandle : ModBuff { diff --git a/Buffs/StatBuffs/TyrantsFury.cs b/Buffs/StatBuffs/TyrantsFury.cs index 488b5e5a65..39d287bcd0 100644 --- a/Buffs/StatBuffs/TyrantsFury.cs +++ b/Buffs/StatBuffs/TyrantsFury.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class TyrantsFury : ModBuff { diff --git a/Buffs/StatBuffs/XerocRage.cs b/Buffs/StatBuffs/XerocRage.cs index 746b5e931a..b2b1b25313 100644 --- a/Buffs/StatBuffs/XerocRage.cs +++ b/Buffs/StatBuffs/XerocRage.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class XerocRage : ModBuff { diff --git a/Buffs/StatBuffs/XerocWrath.cs b/Buffs/StatBuffs/XerocWrath.cs index 12e00dedc4..23b717d7a2 100644 --- a/Buffs/StatBuffs/XerocWrath.cs +++ b/Buffs/StatBuffs/XerocWrath.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatBuffs +namespace CalamityMod.Buffs { public class XerocWrath : ModBuff { diff --git a/Buffs/StatDebuffs/AbyssalDivingSuitPlatesBroken.cs b/Buffs/StatDebuffs/AbyssalDivingSuitPlatesBroken.cs index 5d52446bc4..ca52e0ce3a 100644 --- a/Buffs/StatDebuffs/AbyssalDivingSuitPlatesBroken.cs +++ b/Buffs/StatDebuffs/AbyssalDivingSuitPlatesBroken.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class AbyssalDivingSuitPlatesBroken : ModBuff { diff --git a/Buffs/StatDebuffs/AbyssalMirrorCooldown.cs b/Buffs/StatDebuffs/AbyssalMirrorCooldown.cs index 2454ed80db..5fa35a7193 100644 --- a/Buffs/StatDebuffs/AbyssalMirrorCooldown.cs +++ b/Buffs/StatDebuffs/AbyssalMirrorCooldown.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class AbyssalMirrorCooldown : ModBuff { diff --git a/Buffs/StatDebuffs/ArmorCrunch.cs b/Buffs/StatDebuffs/ArmorCrunch.cs index f6e8b686b6..ac27ad9944 100644 --- a/Buffs/StatDebuffs/ArmorCrunch.cs +++ b/Buffs/StatDebuffs/ArmorCrunch.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class ArmorCrunch : ModBuff { diff --git a/Buffs/StatDebuffs/BurntOut.cs b/Buffs/StatDebuffs/BurntOut.cs index 18d3ce634e..c35e4cb762 100644 --- a/Buffs/StatDebuffs/BurntOut.cs +++ b/Buffs/StatDebuffs/BurntOut.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class BurntOut : ModBuff { diff --git a/Buffs/StatDebuffs/EclipseMirrorCooldown.cs b/Buffs/StatDebuffs/EclipseMirrorCooldown.cs index f1429523c4..48526ef78f 100644 --- a/Buffs/StatDebuffs/EclipseMirrorCooldown.cs +++ b/Buffs/StatDebuffs/EclipseMirrorCooldown.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class EclipseMirrorCooldown : ModBuff { diff --git a/Buffs/StatDebuffs/Enraged.cs b/Buffs/StatDebuffs/Enraged.cs index 4d55aa45d9..50189d996a 100644 --- a/Buffs/StatDebuffs/Enraged.cs +++ b/Buffs/StatDebuffs/Enraged.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class Enraged : ModBuff { diff --git a/Buffs/StatDebuffs/ExoFreeze.cs b/Buffs/StatDebuffs/ExoFreeze.cs index 1d12a4fba5..a1ee302140 100644 --- a/Buffs/StatDebuffs/ExoFreeze.cs +++ b/Buffs/StatDebuffs/ExoFreeze.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class ExoFreeze : ModBuff { diff --git a/Buffs/StatDebuffs/ExtremeGrav.cs b/Buffs/StatDebuffs/ExtremeGrav.cs index 08ef77d077..bd96f9d85e 100644 --- a/Buffs/StatDebuffs/ExtremeGrav.cs +++ b/Buffs/StatDebuffs/ExtremeGrav.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class ExtremeGrav : ModBuff { diff --git a/Buffs/StatDebuffs/ExtremeGravity.cs b/Buffs/StatDebuffs/ExtremeGravity.cs index 2bfb98fd8b..702b11839c 100644 --- a/Buffs/StatDebuffs/ExtremeGravity.cs +++ b/Buffs/StatDebuffs/ExtremeGravity.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class ExtremeGravity : ModBuff { diff --git a/Buffs/StatDebuffs/FishAlert.cs b/Buffs/StatDebuffs/FishAlert.cs index 1fc6e14abe..3685342a25 100644 --- a/Buffs/StatDebuffs/FishAlert.cs +++ b/Buffs/StatDebuffs/FishAlert.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class FishAlert : ModBuff { diff --git a/Buffs/StatDebuffs/GlacialState.cs b/Buffs/StatDebuffs/GlacialState.cs index 4ec93a5f90..533f6f1a0e 100644 --- a/Buffs/StatDebuffs/GlacialState.cs +++ b/Buffs/StatDebuffs/GlacialState.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class GlacialState : ModBuff { diff --git a/Buffs/StatDebuffs/Horror.cs b/Buffs/StatDebuffs/Horror.cs index f1ea0d09cf..51479eab83 100644 --- a/Buffs/StatDebuffs/Horror.cs +++ b/Buffs/StatDebuffs/Horror.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class Horror : ModBuff { diff --git a/Buffs/StatDebuffs/IceShieldBrokenBuff.cs b/Buffs/StatDebuffs/IceShieldBrokenBuff.cs index e4a42fef36..e7168cfacd 100644 --- a/Buffs/StatDebuffs/IceShieldBrokenBuff.cs +++ b/Buffs/StatDebuffs/IceShieldBrokenBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class IceShieldBrokenBuff : ModBuff { diff --git a/Buffs/StatDebuffs/InkBombCooldown.cs b/Buffs/StatDebuffs/InkBombCooldown.cs index 907990eba4..749fcbdc33 100644 --- a/Buffs/StatDebuffs/InkBombCooldown.cs +++ b/Buffs/StatDebuffs/InkBombCooldown.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class InkBombCooldown : ModBuff { diff --git a/Buffs/StatDebuffs/Irradiated.cs b/Buffs/StatDebuffs/Irradiated.cs index 668c2be56f..6bcc5a2832 100644 --- a/Buffs/StatDebuffs/Irradiated.cs +++ b/Buffs/StatDebuffs/Irradiated.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class Irradiated : ModBuff { diff --git a/Buffs/StatDebuffs/MarkedforDeath.cs b/Buffs/StatDebuffs/MarkedforDeath.cs index dfc8088f78..b8b875e192 100644 --- a/Buffs/StatDebuffs/MarkedforDeath.cs +++ b/Buffs/StatDebuffs/MarkedforDeath.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class MarkedforDeath : ModBuff { diff --git a/Buffs/StatDebuffs/ScarfCooldown.cs b/Buffs/StatDebuffs/ScarfCooldown.cs index 377d711756..7a05992248 100644 --- a/Buffs/StatDebuffs/ScarfCooldown.cs +++ b/Buffs/StatDebuffs/ScarfCooldown.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class ScarfCooldown : ModBuff { diff --git a/Buffs/StatDebuffs/SilvaStun.cs b/Buffs/StatDebuffs/SilvaStun.cs index ab36d7233e..2e3866b3de 100644 --- a/Buffs/StatDebuffs/SilvaStun.cs +++ b/Buffs/StatDebuffs/SilvaStun.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class SilvaStun : ModBuff { diff --git a/Buffs/StatDebuffs/TemporalSadness.cs b/Buffs/StatDebuffs/TemporalSadness.cs index 89489d7bcf..3a29029471 100644 --- a/Buffs/StatDebuffs/TemporalSadness.cs +++ b/Buffs/StatDebuffs/TemporalSadness.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class TemporalSadness : ModBuff { diff --git a/Buffs/StatDebuffs/TimeSlow.cs b/Buffs/StatDebuffs/TimeSlow.cs index a04f8d7d9c..c6e4812c7f 100644 --- a/Buffs/StatDebuffs/TimeSlow.cs +++ b/Buffs/StatDebuffs/TimeSlow.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class TimeSlow : ModBuff { diff --git a/Buffs/StatDebuffs/WarCleave.cs b/Buffs/StatDebuffs/WarCleave.cs index 1abfaf5c8f..f34db97921 100644 --- a/Buffs/StatDebuffs/WarCleave.cs +++ b/Buffs/StatDebuffs/WarCleave.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class WarCleave : ModBuff { diff --git a/Buffs/StatDebuffs/Warped.cs b/Buffs/StatDebuffs/Warped.cs index 8a46d0ff91..0f89229dd1 100644 --- a/Buffs/StatDebuffs/Warped.cs +++ b/Buffs/StatDebuffs/Warped.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class Warped : ModBuff { diff --git a/Buffs/StatDebuffs/WeakPetrification.cs b/Buffs/StatDebuffs/WeakPetrification.cs index afb0e2fdf0..fad77ee787 100644 --- a/Buffs/StatDebuffs/WeakPetrification.cs +++ b/Buffs/StatDebuffs/WeakPetrification.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class WeakPetrification : ModBuff { diff --git a/Buffs/StatDebuffs/WhisperingDeath.cs b/Buffs/StatDebuffs/WhisperingDeath.cs index 7a1d61626c..e76cf7aef3 100644 --- a/Buffs/StatDebuffs/WhisperingDeath.cs +++ b/Buffs/StatDebuffs/WhisperingDeath.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.StatDebuffs +namespace CalamityMod.Buffs { public class WhisperingDeath : ModBuff { diff --git a/Buffs/SummonBuffs/AquaticStar.cs b/Buffs/SummonBuffs/AquaticStar.cs index ea8436a0ca..7b504c3a83 100644 --- a/Buffs/SummonBuffs/AquaticStar.cs +++ b/Buffs/SummonBuffs/AquaticStar.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class AquaticStar : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("AquaticStar")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.aStar = true; } diff --git a/Buffs/SummonBuffs/BlackHawkBuff.cs b/Buffs/SummonBuffs/BlackHawkBuff.cs index 005b3e697d..abaf389740 100644 --- a/Buffs/SummonBuffs/BlackHawkBuff.cs +++ b/Buffs/SummonBuffs/BlackHawkBuff.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class BlackHawkBuff : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("BlackHawkSummon")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.blackhawk = true; } diff --git a/Buffs/SummonBuffs/BloodClot.cs b/Buffs/SummonBuffs/BloodClot.cs index cc9ba9effe..06d56d9361 100644 --- a/Buffs/SummonBuffs/BloodClot.cs +++ b/Buffs/SummonBuffs/BloodClot.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class BloodClot : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("BloodClotMinion")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.bClot = true; } diff --git a/Buffs/SummonBuffs/BrimstoneWaifu.cs b/Buffs/SummonBuffs/BrimstoneWaifu.cs index 2bd2ae0b1d..8791f72291 100644 --- a/Buffs/SummonBuffs/BrimstoneWaifu.cs +++ b/Buffs/SummonBuffs/BrimstoneWaifu.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class BrimstoneWaifu : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.bWaifu = true; } diff --git a/Buffs/SummonBuffs/BrittleStar.cs b/Buffs/SummonBuffs/BrittleStar.cs index 4610ea984e..fb2ed38fde 100644 --- a/Buffs/SummonBuffs/BrittleStar.cs +++ b/Buffs/SummonBuffs/BrittleStar.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class BrittleStar : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("BrittleStar")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.bStar = true; } diff --git a/Buffs/SummonBuffs/Calamari.cs b/Buffs/SummonBuffs/Calamari.cs index 86ad68674e..1ca23fb12a 100644 --- a/Buffs/SummonBuffs/Calamari.cs +++ b/Buffs/SummonBuffs/Calamari.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Calamari : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Calamari")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.calamari = true; } diff --git a/Buffs/SummonBuffs/CalamitasEyes.cs b/Buffs/SummonBuffs/CalamitasEyes.cs index 63ed9a75c0..01babf80d1 100644 --- a/Buffs/SummonBuffs/CalamitasEyes.cs +++ b/Buffs/SummonBuffs/CalamitasEyes.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class CalamitasEyes : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Calamitamini")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.cEyes = true; } diff --git a/Buffs/SummonBuffs/ChaosSpirit.cs b/Buffs/SummonBuffs/ChaosSpirit.cs index 99d4751a64..60ecf4071c 100644 --- a/Buffs/SummonBuffs/ChaosSpirit.cs +++ b/Buffs/SummonBuffs/ChaosSpirit.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class ChaosSpirit : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("ChaosSpirit")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.cSpirit = true; } diff --git a/Buffs/SummonBuffs/CloudyWaifu.cs b/Buffs/SummonBuffs/CloudyWaifu.cs index 32d6ea51c7..80d536a624 100644 --- a/Buffs/SummonBuffs/CloudyWaifu.cs +++ b/Buffs/SummonBuffs/CloudyWaifu.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class CloudyWaifu : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.cWaifu = true; } diff --git a/Buffs/SummonBuffs/Corroslime.cs b/Buffs/SummonBuffs/Corroslime.cs index fa36906747..da5d8ee02a 100644 --- a/Buffs/SummonBuffs/Corroslime.cs +++ b/Buffs/SummonBuffs/Corroslime.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Corroslime : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Corroslime")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.cSlime = true; } diff --git a/Buffs/SummonBuffs/CosmicEnergy.cs b/Buffs/SummonBuffs/CosmicEnergy.cs index 40ad469fda..65c1d2aaa9 100644 --- a/Buffs/SummonBuffs/CosmicEnergy.cs +++ b/Buffs/SummonBuffs/CosmicEnergy.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class CosmicEnergy : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("CosmicEnergy")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.cEnergy = true; } diff --git a/Buffs/SummonBuffs/Cosmilamp.cs b/Buffs/SummonBuffs/Cosmilamp.cs index 92ed2304b9..19822ac1fb 100644 --- a/Buffs/SummonBuffs/Cosmilamp.cs +++ b/Buffs/SummonBuffs/Cosmilamp.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Cosmilamp : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Cosmilamp")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.cLamp = true; } diff --git a/Buffs/SummonBuffs/Crimslime.cs b/Buffs/SummonBuffs/Crimslime.cs index 605c0b5ba9..4c29cbb05b 100644 --- a/Buffs/SummonBuffs/Crimslime.cs +++ b/Buffs/SummonBuffs/Crimslime.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Crimslime : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Crimslime")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.cSlime2 = true; } diff --git a/Buffs/SummonBuffs/DaedalusCrystal.cs b/Buffs/SummonBuffs/DaedalusCrystal.cs index 72954eec26..3074b22a81 100644 --- a/Buffs/SummonBuffs/DaedalusCrystal.cs +++ b/Buffs/SummonBuffs/DaedalusCrystal.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class DaedalusCrystal : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("DaedalusCrystal")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.dCrystal = true; } diff --git a/Buffs/SummonBuffs/DankCreeper.cs b/Buffs/SummonBuffs/DankCreeper.cs index 6ee6ed09a0..0e9ebd92ff 100644 --- a/Buffs/SummonBuffs/DankCreeper.cs +++ b/Buffs/SummonBuffs/DankCreeper.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class DankCreeper : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("DankCreeper")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.dCreeper = true; } diff --git a/Buffs/SummonBuffs/ElementalAxe.cs b/Buffs/SummonBuffs/ElementalAxe.cs index c42320bb9a..dc435bc8e3 100644 --- a/Buffs/SummonBuffs/ElementalAxe.cs +++ b/Buffs/SummonBuffs/ElementalAxe.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class ElementalAxe : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("ElementalAxe")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.eAxe = true; } diff --git a/Buffs/SummonBuffs/FungalClump.cs b/Buffs/SummonBuffs/FungalClump.cs index 0fe051536e..5767de8fd1 100644 --- a/Buffs/SummonBuffs/FungalClump.cs +++ b/Buffs/SummonBuffs/FungalClump.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { - public class FungalClump : ModBuff + public class FungalClumpBuff : ModBuff { public override void SetDefaults() { @@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.fClump = true; } diff --git a/Buffs/SummonBuffs/GuardianDefense.cs b/Buffs/SummonBuffs/GuardianDefense.cs index b5bb6b89f0..20d7c57dda 100644 --- a/Buffs/SummonBuffs/GuardianDefense.cs +++ b/Buffs/SummonBuffs/GuardianDefense.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class GuardianDefense : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianDefense")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.gDefense = true; } diff --git a/Buffs/SummonBuffs/GuardianHealer.cs b/Buffs/SummonBuffs/GuardianHealer.cs index 432d61eda2..4f3c6beecd 100644 --- a/Buffs/SummonBuffs/GuardianHealer.cs +++ b/Buffs/SummonBuffs/GuardianHealer.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class GuardianHealer : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianHealer")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.gHealer = true; } diff --git a/Buffs/SummonBuffs/GuardianOffense.cs b/Buffs/SummonBuffs/GuardianOffense.cs index 85c1f9f1f5..4a7ea806ed 100644 --- a/Buffs/SummonBuffs/GuardianOffense.cs +++ b/Buffs/SummonBuffs/GuardianOffense.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class GuardianOffense : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianAttack")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.gOffense = true; } diff --git a/Buffs/SummonBuffs/Herring.cs b/Buffs/SummonBuffs/Herring.cs index f15a3b22c9..c780a6536e 100644 --- a/Buffs/SummonBuffs/Herring.cs +++ b/Buffs/SummonBuffs/Herring.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Herring : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Herring")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.herring = true; } diff --git a/Buffs/SummonBuffs/HotE.cs b/Buffs/SummonBuffs/HotE.cs index 72aad2eb16..716b41a556 100644 --- a/Buffs/SummonBuffs/HotE.cs +++ b/Buffs/SummonBuffs/HotE.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class HotE : ModBuff { diff --git a/Buffs/SummonBuffs/IceClasper.cs b/Buffs/SummonBuffs/IceClasper.cs index c1d71b9615..e917ebe4f1 100644 --- a/Buffs/SummonBuffs/IceClasper.cs +++ b/Buffs/SummonBuffs/IceClasper.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class IceClasper : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("IceClasper")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.iClasper = true; } diff --git a/Buffs/SummonBuffs/Mechworm.cs b/Buffs/SummonBuffs/Mechworm.cs index 1a320910b0..b1340e4942 100644 --- a/Buffs/SummonBuffs/Mechworm.cs +++ b/Buffs/SummonBuffs/Mechworm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Mechworm : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("MechwormHead")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.mWorm = true; } diff --git a/Buffs/SummonBuffs/Phantom.cs b/Buffs/SummonBuffs/Phantom.cs index 5463b35bb8..2f43a8a6c6 100644 --- a/Buffs/SummonBuffs/Phantom.cs +++ b/Buffs/SummonBuffs/Phantom.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Phantom : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("PhantomGuy")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.pGuy = true; } diff --git a/Buffs/SummonBuffs/ReaverOrb.cs b/Buffs/SummonBuffs/ReaverOrb.cs index 1e0d4b5018..ca27950f44 100644 --- a/Buffs/SummonBuffs/ReaverOrb.cs +++ b/Buffs/SummonBuffs/ReaverOrb.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class ReaverOrb : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("ReaverOrb")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.rOrb = true; } diff --git a/Buffs/SummonBuffs/RedDevil.cs b/Buffs/SummonBuffs/RedDevil.cs index 8a5a63763c..314336ae17 100644 --- a/Buffs/SummonBuffs/RedDevil.cs +++ b/Buffs/SummonBuffs/RedDevil.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class RedDevil : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("RedDevil")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.rDevil = true; } diff --git a/Buffs/SummonBuffs/ResurrectionButterflyBuff.cs b/Buffs/SummonBuffs/ResurrectionButterflyBuff.cs index b02911cb17..6d5f2cecde 100644 --- a/Buffs/SummonBuffs/ResurrectionButterflyBuff.cs +++ b/Buffs/SummonBuffs/ResurrectionButterflyBuff.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class ResurrectionButterflyBuff : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("PinkButterfly")] > 0 || player.ownedProjectileCounts[mod.ProjectileType("PurpleButterfly")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.resButterfly = true; } diff --git a/Buffs/SummonBuffs/Sandnado.cs b/Buffs/SummonBuffs/Sandnado.cs index 22ee6db9d6..d906d07b1e 100644 --- a/Buffs/SummonBuffs/Sandnado.cs +++ b/Buffs/SummonBuffs/Sandnado.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class Sandnado : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Sandnado")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.sandnado = true; } diff --git a/Buffs/SummonBuffs/DrewsSandyWaifu.cs b/Buffs/SummonBuffs/SandyHealingWaifu.cs similarity index 67% rename from Buffs/SummonBuffs/DrewsSandyWaifu.cs rename to Buffs/SummonBuffs/SandyHealingWaifu.cs index df4b5f0541..e2b512494d 100644 --- a/Buffs/SummonBuffs/DrewsSandyWaifu.cs +++ b/Buffs/SummonBuffs/SandyHealingWaifu.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { - public class DrewsSandyWaifu : ModBuff + public class SandyHealingWaifu : ModBuff { public override void SetDefaults() { @@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.dWaifu = true; } diff --git a/Buffs/SummonBuffs/DrewsSandyWaifu.png b/Buffs/SummonBuffs/SandyHealingWaifu.png similarity index 100% rename from Buffs/SummonBuffs/DrewsSandyWaifu.png rename to Buffs/SummonBuffs/SandyHealingWaifu.png diff --git a/Buffs/SummonBuffs/SandyWaifu.cs b/Buffs/SummonBuffs/SandyWaifu.cs index 61e40e357b..c6d7d8dfff 100644 --- a/Buffs/SummonBuffs/SandyWaifu.cs +++ b/Buffs/SummonBuffs/SandyWaifu.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SandyWaifu : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.sWaifu = true; } diff --git a/Buffs/SummonBuffs/SilvaCrystal.cs b/Buffs/SummonBuffs/SilvaCrystal.cs index 37dbab2b63..9fcd096c17 100644 --- a/Buffs/SummonBuffs/SilvaCrystal.cs +++ b/Buffs/SummonBuffs/SilvaCrystal.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SilvaCrystal : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("SilvaCrystal")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.sCrystal = true; } diff --git a/Buffs/SummonBuffs/SlimeGod.cs b/Buffs/SummonBuffs/SlimeGod.cs index a23ffe5335..53eed4b7c2 100644 --- a/Buffs/SummonBuffs/SlimeGod.cs +++ b/Buffs/SummonBuffs/SlimeGod.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SlimeGod : ModBuff { @@ -17,11 +17,11 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("SlimeGodAlt")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.sGod = true; } - else if (player.ownedProjectileCounts[mod.ProjectileType("SlimeGod")] > 0) + else if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.sGod = true; } diff --git a/Buffs/SummonBuffs/SolarSpirit.cs b/Buffs/SummonBuffs/SolarSpirit.cs index 25c636cf4e..fed610a64d 100644 --- a/Buffs/SummonBuffs/SolarSpirit.cs +++ b/Buffs/SummonBuffs/SolarSpirit.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SolarSpirit : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("SolarPixie")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.SP = true; } diff --git a/Buffs/SummonBuffs/SolarSpiritGod.cs b/Buffs/SummonBuffs/SolarSpiritGod.cs index e56f077509..6e6baaaaa9 100644 --- a/Buffs/SummonBuffs/SolarSpiritGod.cs +++ b/Buffs/SummonBuffs/SolarSpiritGod.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SolarSpiritGod : ModBuff { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("SolarGod")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.SPG = true; } diff --git a/Buffs/SummonBuffs/SpiritGeneratorAtkBuff.cs b/Buffs/SummonBuffs/SpiritGeneratorAtkBuff.cs index 518bc8da1b..50b8382c9e 100644 --- a/Buffs/SummonBuffs/SpiritGeneratorAtkBuff.cs +++ b/Buffs/SummonBuffs/SpiritGeneratorAtkBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SpiritGeneratorAtkBuff : ModBuff { diff --git a/Buffs/SummonBuffs/SpiritGeneratorDefBuff.cs b/Buffs/SummonBuffs/SpiritGeneratorDefBuff.cs index cd4c40e1e3..b1a5ddaed4 100644 --- a/Buffs/SummonBuffs/SpiritGeneratorDefBuff.cs +++ b/Buffs/SummonBuffs/SpiritGeneratorDefBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SpiritGeneratorDefBuff : ModBuff { diff --git a/Buffs/SummonBuffs/SpiritGeneratorRegenBuff.cs b/Buffs/SummonBuffs/SpiritGeneratorRegenBuff.cs index 19a4fd6ae1..d4e3efa099 100644 --- a/Buffs/SummonBuffs/SpiritGeneratorRegenBuff.cs +++ b/Buffs/SummonBuffs/SpiritGeneratorRegenBuff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { public class SpiritGeneratorRegenBuff : ModBuff { diff --git a/Buffs/SummonBuffs/Urchin.cs b/Buffs/SummonBuffs/Urchin.cs index c077673f11..51ca7e1568 100644 --- a/Buffs/SummonBuffs/Urchin.cs +++ b/Buffs/SummonBuffs/Urchin.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { - public class Urchin : ModBuff + public class UrchinBuff : ModBuff { public override void SetDefaults() { @@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Urchin")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.vUrchin = true; } diff --git a/Buffs/SummonBuffs/Valkyrie.cs b/Buffs/SummonBuffs/Valkyrie.cs index bdd936151b..f92d7cda42 100644 --- a/Buffs/SummonBuffs/Valkyrie.cs +++ b/Buffs/SummonBuffs/Valkyrie.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { - public class Valkyrie : ModBuff + public class ValkyrieBuff : ModBuff { public override void SetDefaults() { @@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Valkyrie")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.aValkyrie = true; } diff --git a/Buffs/SummonBuffs/SirenLure.cs b/Buffs/SummonBuffs/WaterWaifu.cs similarity index 67% rename from Buffs/SummonBuffs/SirenLure.cs rename to Buffs/SummonBuffs/WaterWaifu.cs index dbac4303a7..d8281d5e84 100644 --- a/Buffs/SummonBuffs/SirenLure.cs +++ b/Buffs/SummonBuffs/WaterWaifu.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { - public class SirenLure : ModBuff + public class WaterWaifu : ModBuff { public override void SetDefaults() { @@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.slWaifu = true; } diff --git a/Buffs/SummonBuffs/SirenLure.png b/Buffs/SummonBuffs/WaterWaifu.png similarity index 100% rename from Buffs/SummonBuffs/SirenLure.png rename to Buffs/SummonBuffs/WaterWaifu.png diff --git a/Buffs/SummonBuffs/AngryChicken.cs b/Buffs/SummonBuffs/YharonKindleBuff.cs similarity index 68% rename from Buffs/SummonBuffs/AngryChicken.cs rename to Buffs/SummonBuffs/YharonKindleBuff.cs index e2a023e2e0..68d3ffeb87 100644 --- a/Buffs/SummonBuffs/AngryChicken.cs +++ b/Buffs/SummonBuffs/YharonKindleBuff.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SummonBuffs +namespace CalamityMod.Buffs { - public class AngryChicken : ModBuff + public class YharonKindleBuff : ModBuff { public override void SetDefaults() { @@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.SummonBuffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("AngryChicken")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.aChicken = true; } diff --git a/Buffs/SummonBuffs/AngryChicken.png b/Buffs/SummonBuffs/YharonKindleBuff.png similarity index 100% rename from Buffs/SummonBuffs/AngryChicken.png rename to Buffs/SummonBuffs/YharonKindleBuff.png diff --git a/Buffs/SunkenSea/Clamity.cs b/Buffs/SunkenSea/Clamity.cs index 59cb380666..59488fe0d5 100644 --- a/Buffs/SunkenSea/Clamity.cs +++ b/Buffs/SunkenSea/Clamity.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SunkenSea +namespace CalamityMod.Buffs { public class Clamity : ModBuff { diff --git a/Buffs/SunkenSea/PearlAura.cs b/Buffs/SunkenSea/PearlAura.cs index 2488896c06..616f3c1a03 100644 --- a/Buffs/SunkenSea/PearlAura.cs +++ b/Buffs/SunkenSea/PearlAura.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SunkenSea +namespace CalamityMod.Buffs { public class PearlAura : ModBuff { diff --git a/Buffs/SunkenSea/Shellfish.cs b/Buffs/SunkenSea/Shellfish.cs index 92621db6d7..c84fb624ec 100644 --- a/Buffs/SunkenSea/Shellfish.cs +++ b/Buffs/SunkenSea/Shellfish.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SunkenSea +namespace CalamityMod.Buffs { - public class Shellfish : ModBuff + public class ShellfishBuff : ModBuff { public override void SetDefaults() { @@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.SunkenSea public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[mod.ProjectileType("Shellfish")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.shellfish = true; } diff --git a/Buffs/SunkenSea/ShellfishEating.cs b/Buffs/SunkenSea/ShellfishEating.cs index d1df0019b6..37745b6ebd 100644 --- a/Buffs/SunkenSea/ShellfishEating.cs +++ b/Buffs/SunkenSea/ShellfishEating.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Buffs.SunkenSea +namespace CalamityMod.Buffs { public class ShellfishEating : ModBuff { diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index af035ff28f..1cc1c1cdc1 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Armor; -using CalamityMod.Items.Permafrost; +using CalamityMod.Buffs; +using CalamityMod.Dusts; +using CalamityMod.Items; using CalamityMod.NPCs; +using CalamityMod.Projectiles; using CalamityMod.UI; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -15,7 +17,7 @@ using Terraria.Graphics.Effects; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ModLoader.IO; namespace CalamityMod.CalPlayer @@ -1474,33 +1476,33 @@ namespace CalamityMod.CalPlayer #region BiomeStuff public override void UpdateBiomeVisuals() { - bool useNebula = NPC.AnyNPCs(mod.NPCType("DevourerofGodsHead")); + bool useNebula = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:DevourerofGodsHead", useNebula); - bool useNebulaS = NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS")); + bool useNebulaS = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:DevourerofGodsHeadS", useNebulaS); - bool useBrimstone = NPC.AnyNPCs(mod.NPCType("CalamitasRun3")); + bool useBrimstone = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:CalamitasRun3", useBrimstone); - bool usePlague = NPC.AnyNPCs(mod.NPCType("PlaguebringerGoliath")); + bool usePlague = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:PlaguebringerGoliath", usePlague); Point point = player.Center.ToTileCoordinates(); bool aboveGround = point.Y > Main.maxTilesY - 320; bool overworld = player.ZoneOverworldHeight && (point.X < 380 || point.X > Main.maxTilesX - 380); - bool useFire = NPC.AnyNPCs(mod.NPCType("Yharon")); + bool useFire = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:Yharon", useFire); player.ManageSpecialBiomeVisuals("HeatDistortion", Main.UseHeatDistortion && (useFire || trippy || aboveGround || ((double)point.Y < Main.worldSurface && player.ZoneDesert && !overworld && !Main.raining && !Filters.Scene["Sandstorm"].IsActive()))); - bool useWater = NPC.AnyNPCs(mod.NPCType("Leviathan")); + bool useWater = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:Leviathan", useWater); - bool useHoly = NPC.AnyNPCs(mod.NPCType("Providence")); + bool useHoly = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:Providence", useHoly); - bool useSBrimstone = NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")); + bool useSBrimstone = NPC.AnyNPCs(ModContent.NPCType()); player.ManageSpecialBiomeVisuals("CalamityMod:SupremeCalamitas", useSBrimstone); bool inAstral = ZoneAstral; @@ -1646,9 +1648,9 @@ namespace CalamityMod.CalPlayer { if (!mediumcoreDeath) { - player.inventory[9].SetDefaults(mod.ItemType("Revenge")); - player.inventory[8].SetDefaults(mod.ItemType("IronHeart")); - player.inventory[7].SetDefaults(mod.ItemType("StarterBag")); + player.inventory[9].SetDefaults(ModContent.ItemType()); + player.inventory[8].SetDefaults(ModContent.ItemType()); + player.inventory[7].SetDefaults(ModContent.ItemType()); } } #endregion @@ -1669,11 +1671,11 @@ namespace CalamityMod.CalPlayer public override void ProcessTriggers(TriggersSet triggersSet) { if (CalamityMod.MomentumCapacitatorHotkey.JustPressed && momentumCapacitor && Main.myPlayer == player.whoAmI && player.Calamity().rogueStealth >= player.Calamity().rogueStealthMax * 0.25f && - CalamityUtils.CountProjectiles(mod.ProjectileType("MomentumCapacitorOrb")) == 0) + CalamityUtils.CountProjectiles(ModContent.ProjectileType()) == 0) { player.Calamity().rogueStealth -= player.Calamity().rogueStealthMax * 0.25f; Vector2 fieldSpawnCenter = new Vector2(Main.mouseX, Main.mouseY) + Main.screenPosition; - Projectile.NewProjectile(fieldSpawnCenter, Vector2.Zero, mod.ProjectileType("MomentumCapacitorOrb"), 0, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(fieldSpawnCenter, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); } if (CalamityMod.NormalityRelocatorHotKey.JustPressed && normalityRelocator && Main.myPlayer == player.whoAmI) { @@ -1778,8 +1780,8 @@ namespace CalamityMod.CalPlayer float randomSpeed = (float)Main.rand.Next(1, 7); float randomSpeed2 = (float)Main.rand.Next(1, 7); offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, mod.ProjectileType("BloodflareSoul"), damage, 0f, player.whoAmI, 0f, ai1); - Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, mod.ProjectileType("BloodflareSoul"), damage, 0f, player.whoAmI, 0f, ai1); + Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, ModContent.ProjectileType(), damage, 0f, player.whoAmI, 0f, ai1); + Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, ModContent.ProjectileType(), damage, 0f, player.whoAmI, 0f, ai1); } } } @@ -1818,7 +1820,7 @@ namespace CalamityMod.CalPlayer } if (player.whoAmI == Main.myPlayer) { - player.AddBuff(mod.BuffType("Enraged"), 600, false); + player.AddBuff(ModContent.BuffType(), 600, false); } if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -1827,7 +1829,7 @@ namespace CalamityMod.CalPlayer NPC nPC = Main.npc[l]; if (nPC.active && !nPC.friendly && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= 3000f) { - nPC.AddBuff(mod.BuffType("Enraged"), 600, false); + nPC.AddBuff(ModContent.BuffType(), 600, false); } } } @@ -1881,7 +1883,7 @@ namespace CalamityMod.CalPlayer Main.dust[num228].noLight = true; Main.dust[num228].velocity = vector7; } - player.AddBuff(mod.BuffType("RageMode"), 300); + player.AddBuff(ModContent.BuffType(), 300); } } if (CalamityMod.AdrenalineHotKey.JustPressed) @@ -1906,7 +1908,7 @@ namespace CalamityMod.CalPlayer Main.dust[num228].noLight = true; Main.dust[num228].velocity = vector7; } - player.AddBuff(mod.BuffType("AdrenalineMode"), 300); + player.AddBuff(ModContent.BuffType(), 300); } } } @@ -2301,12 +2303,12 @@ namespace CalamityMod.CalPlayer { if (player.whoAmI == Main.myPlayer && !snowmanNoseless) { - player.AddBuff(ModContent.BuffType(), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } } if (abyssalDivingSuit) { - player.AddBuff(ModContent.BuffType(), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); if (player.whoAmI == Main.myPlayer) { if (abyssalDivingSuitCooldown) @@ -2314,7 +2316,7 @@ namespace CalamityMod.CalPlayer for (int l = 0; l < Player.MaxBuffs; l++) { int hasBuff = player.buffType[l]; - if (player.buffTime[l] < 30 && hasBuff == mod.BuffType("AbyssalDivingSuitPlatesBroken")) + if (player.buffTime[l] < 30 && hasBuff == ModContent.BuffType()) { abyssalDivingSuitPlateHits = 0; player.DelBuff(l); @@ -2324,23 +2326,23 @@ namespace CalamityMod.CalPlayer } else { - player.AddBuff(mod.BuffType("AbyssalDivingSuitPlates"), 2); + player.AddBuff(ModContent.BuffType(), 2); } } } if (sirenBoobs) { - player.AddBuff(ModContent.BuffType(), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } else if (sirenBoobsAlt) { - player.AddBuff(ModContent.BuffType(), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } if ((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) { if (player.whoAmI == Main.myPlayer && !sirenIceCooldown) { - player.AddBuff(mod.BuffType("IceShieldBuff"), 2); + player.AddBuff(ModContent.BuffType(), 2); } } } @@ -2490,7 +2492,7 @@ namespace CalamityMod.CalPlayer int heartAttackChance = (draedonsHeart || heartOfDarkness) ? 2000 : 10000; if (Main.rand.Next(heartAttackChance) == 0) { - player.AddBuff(mod.BuffType("HeartAttack"), 18000); + player.AddBuff(ModContent.BuffType(), 18000); } } if (adrenaline >= adrenalineMax) @@ -2528,7 +2530,7 @@ namespace CalamityMod.CalPlayer if (adrenalineDmgMult < 0.33f) adrenalineDmgMult = 0.33f; int adrenalineGain = 0; - bool SCalAlive = NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")); + bool SCalAlive = NPC.AnyNPCs(ModContent.NPCType()); if (adrenalineMode) { adrenalineGain = SCalAlive ? -10000 : -2000; @@ -2638,8 +2640,8 @@ namespace CalamityMod.CalPlayer { player.allDamage += 0.1f; } - if (!stressLevel500 && player.FindBuffIndex(mod.BuffType("HeartAttack")) > -1) - { player.ClearBuff(mod.BuffType("HeartAttack")); } + if (!stressLevel500 && player.FindBuffIndex(ModContent.BuffType()) > -1) + { player.ClearBuff(ModContent.BuffType()); } if (draedonsHeart && (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) { player.statDefense += 25; @@ -2676,8 +2678,8 @@ namespace CalamityMod.CalPlayer player.statLifeMax2 = 400; if (silvaCountdown > 0) { - if (player.FindBuffIndex(mod.BuffType("SilvaRevival")) > -1) - { player.ClearBuff(mod.BuffType("SilvaRevival")); } + if (player.FindBuffIndex(ModContent.BuffType()) > -1) + { player.ClearBuff(ModContent.BuffType()); } Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaDispel"), (int)player.position.X, (int)player.position.Y); } silvaCountdown = 0; @@ -2768,7 +2770,7 @@ namespace CalamityMod.CalPlayer } if (trashManChest >= 0) { - if (!Main.projectile[trashManChest].active || Main.projectile[trashManChest].type != mod.ProjectileType("DannyDevito")) + if (!Main.projectile[trashManChest].active || Main.projectile[trashManChest].type != ModContent.ProjectileType()) { Main.PlaySound(SoundID.Item11, -1, -1); player.chest = -1; @@ -2998,13 +3000,13 @@ namespace CalamityMod.CalPlayer if (omegaBlueSet) //should apply after rev caps, actually those are gone so AAAAA { //add tentacles - if (player.ownedProjectileCounts[mod.ProjectileType("OmegaBlueTentacle")] < 6) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 6) { bool[] tentaclesPresent = new bool[6]; for (int i = 0; i < 1000; i++) { Projectile projectile = Main.projectile[i]; - if (projectile.active && projectile.type == mod.ProjectileType("OmegaBlueTentacle") && projectile.owner == Main.myPlayer && projectile.ai[1] >= 0f && projectile.ai[1] < 6f) + if (projectile.active && projectile.type == ModContent.ProjectileType() && projectile.owner == Main.myPlayer && projectile.ai[1] >= 0f && projectile.ai[1] < 6f) { tentaclesPresent[(int)projectile.ai[1]] = true; } @@ -3018,7 +3020,7 @@ namespace CalamityMod.CalPlayer modifier /= 5f; int damage = (int)(666 * modifier); Vector2 vel = new Vector2(Main.rand.Next(-13, 14), Main.rand.Next(-13, 14)) * 0.25f; - Projectile.NewProjectile(player.Center, vel, mod.ProjectileType("OmegaBlueTentacle"), damage, 8f, Main.myPlayer, Main.rand.Next(120), i); + Projectile.NewProjectile(player.Center, vel, ModContent.ProjectileType(), damage, 8f, Main.myPlayer, Main.rand.Next(120), i); } } } @@ -3097,7 +3099,7 @@ namespace CalamityMod.CalPlayer bossRushImmunityFrameCurseTimer--; if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) { - player.buffImmune[mod.BuffType("VulnerabilityHex")] = true; + player.buffImmune[ModContent.BuffType()] = true; silvaCountdown--; if (silvaCountdown <= 0) { @@ -3225,7 +3227,7 @@ namespace CalamityMod.CalPlayer if (Main.raining && ZoneSulphur) { if (player.ZoneOverworldHeight || player.ZoneSkyHeight) - player.AddBuff(mod.BuffType("Irradiated"), 2); + player.AddBuff(ModContent.BuffType(), 2); } if (raiderTalisman) { @@ -3306,7 +3308,7 @@ namespace CalamityMod.CalPlayer } if (cFreeze) { - int num = mod.BuffType("GlacialState"); + int num = ModContent.BuffType(); float num2 = 200f; int random = Main.rand.Next(5); if (player.whoAmI == Main.myPlayer) @@ -3362,11 +3364,11 @@ namespace CalamityMod.CalPlayer player.endurance += 0.01f; player.statDefense += 2; } - if (!polarisBoost || player.inventory[player.selectedItem].type != mod.ItemType("PolarisParrotfish")) + if (!polarisBoost || player.inventory[player.selectedItem].type != ModContent.ItemType()) { polarisBoost = false; - if (player.FindBuffIndex(mod.BuffType("PolarisBuff")) > -1) - { player.ClearBuff(mod.BuffType("PolarisBuff")); } + if (player.FindBuffIndex(ModContent.BuffType()) > -1) + { player.ClearBuff(ModContent.BuffType()); } polarisBoostCounter = 0; polarisBoostTwo = false; polarisBoostThree = false; @@ -3423,7 +3425,7 @@ namespace CalamityMod.CalPlayer int num = 0; for (int i = 0; i < 1000; i++) { - if (Main.projectile[i].active && Main.projectile[i].owner == player.whoAmI && Main.projectile[i].type == mod.ProjectileType("TheDeadlyMicrobeProjectile")) + if (Main.projectile[i].active && Main.projectile[i].owner == player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType()) { num++; } @@ -3467,7 +3469,7 @@ namespace CalamityMod.CalPlayer { for (int k = 0; k < 1000; k++) { - if (Main.projectile[k].active && Main.projectile[k].owner == player.whoAmI && Main.projectile[k].type == mod.ProjectileType("TheDeadlyMicrobeProjectile") && (center - Main.projectile[k].Center).Length() < 48f) + if (Main.projectile[k].active && Main.projectile[k].owner == player.whoAmI && Main.projectile[k].type == ModContent.ProjectileType() && (center - Main.projectile[k].Center).Length() < 48f) { flag = false; break; @@ -3475,7 +3477,7 @@ namespace CalamityMod.CalPlayer } if (flag && Main.myPlayer == player.whoAmI) { - Projectile.NewProjectile(center.X, center.Y, 0f, 0f, mod.ProjectileType("TheDeadlyMicrobeProjectile"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(center.X, center.Y, 0f, 0f, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } } } @@ -3651,7 +3653,7 @@ namespace CalamityMod.CalPlayer if (chiBuffTimer < 120) chiBuffTimer++; else - player.AddBuff(mod.BuffType("ChiBuff"), 6); + player.AddBuff(ModContent.BuffType(), 6); } else chiBuffTimer--; @@ -3880,8 +3882,8 @@ namespace CalamityMod.CalPlayer } if (armorShattering) { - if (player.FindBuffIndex(mod.BuffType("ArmorCrumbling")) > -1) - { player.ClearBuff(mod.BuffType("ArmorCrumbling")); } + if (player.FindBuffIndex(ModContent.BuffType()) > -1) + { player.ClearBuff(ModContent.BuffType()); } player.Calamity().throwingDamage += 0.08f; player.meleeDamage += 0.08f; player.Calamity().throwingCrit += 8; @@ -4145,7 +4147,7 @@ namespace CalamityMod.CalPlayer { float distance = (Main.npc[m].Center - player.Center).Length(); if (distance < 120f) - Main.npc[m].AddBuff(mod.BuffType("PearlAura"), 2, false); + Main.npc[m].AddBuff(ModContent.BuffType(), 2, false); } } } @@ -4262,7 +4264,7 @@ namespace CalamityMod.CalPlayer player.statLifeMax2 = (int)((double)player.statLifeMax2 * 0.75); player.maxMinions += 2; } - if (thirdSageH && !player.dead && player.HasBuff(mod.BuffType("ThirdSageBuff"))) + if (thirdSageH && !player.dead && player.HasBuff(ModContent.BuffType())) { player.statLife = player.statLifeMax2; } @@ -4440,7 +4442,7 @@ namespace CalamityMod.CalPlayer { float ai1 = (float)(I * 120); Projectile.NewProjectile(player.Center.X + (float)(Math.Sin(I * 120) * 550), player.Center.Y + (float)(Math.Cos(I * 120) * 550), 0f, 0f, - mod.ProjectileType("GhostlyMine"), (int)((auricSet ? 15000f : 5000f) * player.minionDamage), 1f, player.whoAmI, ai1, 0f); + ModContent.ProjectileType(), (int)((auricSet ? 15000f : 5000f) * player.minionDamage), 1f, player.whoAmI, ai1, 0f); } } } @@ -4542,7 +4544,7 @@ namespace CalamityMod.CalPlayer } if (brimstoneElementalLore && player.inferno) { - int num = mod.BuffType("BrimstoneFlames"); + int num = ModContent.BuffType(); float num2 = 300f; bool flag = player.infernoCounter % 30 == 0; int damage = 50; @@ -4571,17 +4573,17 @@ namespace CalamityMod.CalPlayer } if (royalGel) { - player.npcTypeNoAggro[mod.NPCType("AeroSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("BloomSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("CharredSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("CrimulanBlightSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("CryoSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("EbonianBlightSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("IrradiatedSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("PerennialSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("PlaguedJungleSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("AstralSlime")] = true; - player.npcTypeNoAggro[mod.NPCType("WulfrumSlime")] = true; //remove when wulfrum slime redesigned + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; + player.npcTypeNoAggro[ModContent.NPCType()] = true; //remove when wulfrum slime redesigned } #endregion @@ -4667,13 +4669,13 @@ namespace CalamityMod.CalPlayer player.maxMinions += 8; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("AngryChicken")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("AngryChicken"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("AngryChicken")] < 2) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 2) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("AngryChicken"), (int)(232f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(232f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } @@ -4681,52 +4683,52 @@ namespace CalamityMod.CalPlayer { if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("GuardianHealer")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("GuardianHealer"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianHealer")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -6f, mod.ProjectileType("MiniGuardianHealer"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -6f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } float baseDamage = 100f + (CalamityWorld.downedDoG ? 100f : 0f) + (CalamityWorld.downedYharon ? 100f : 0f); if (player.maxMinions >= 8) { - if (player.FindBuffIndex(mod.BuffType("GuardianDefense")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("GuardianDefense"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianDefense")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -3f, mod.ProjectileType("MiniGuardianDefense"), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -3f, ModContent.ProjectileType(), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); } } if (tarraSummon || bloodflareSummon || godSlayerSummon || silvaSummon || dsSetBonus || omegaBlueSet) { - if (player.FindBuffIndex(mod.BuffType("GuardianOffense")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("GuardianOffense"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianAttack")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("MiniGuardianAttack"), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); } } } } - if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] > 1 || - player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] > 1 || - player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] > 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || + player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || + player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 1) { for (int projIndex = 0; projIndex < 1000; projIndex++) { if (Main.projectile[projIndex].active && Main.projectile[projIndex].owner == player.whoAmI) { - if (Main.projectile[projIndex].type == mod.ProjectileType("BigBustyRose") || Main.projectile[projIndex].type == mod.ProjectileType("SirenLure") || - Main.projectile[projIndex].type == mod.ProjectileType("DrewsSandyWaifu") || Main.projectile[projIndex].type == mod.ProjectileType("SandyWaifu") || - Main.projectile[projIndex].type == mod.ProjectileType("CloudyWaifu") || Main.projectile[projIndex].type == mod.ProjectileType("FungalClump")) + if (Main.projectile[projIndex].type == ModContent.ProjectileType() || Main.projectile[projIndex].type == ModContent.ProjectileType() || + Main.projectile[projIndex].type == ModContent.ProjectileType() || Main.projectile[projIndex].type == ModContent.ProjectileType() || + Main.projectile[projIndex].type == ModContent.ProjectileType() || Main.projectile[projIndex].type == ModContent.ProjectileType()) { Main.projectile[projIndex].Kill(); } @@ -4786,14 +4788,14 @@ namespace CalamityMod.CalPlayer #region Dragon Scale Logic public override void PostBuyItem(NPC vendor, Item[] shopInventory, Item item) { - if (item.type == mod.ItemType("DragonScales") && !CalamityWorld.dragonScalesBought) + if (item.type == ModContent.ItemType() && !CalamityWorld.dragonScalesBought) { CalamityWorld.dragonScalesBought = true; } } public override bool CanBuyItem(NPC vendor, Item[] shopInventory, Item item) { - if (item.type == mod.ItemType("DragonScales")) + if (item.type == ModContent.ItemType()) { return !CalamityWorld.dragonScalesBought; } @@ -4893,7 +4895,7 @@ namespace CalamityMod.CalPlayer { if (player.whoAmI == Main.myPlayer && abyssalMirror && !abyssalMirrorCooldown) { - player.AddBuff(mod.BuffType("AbyssalMirrorCooldown"), 1200); + player.AddBuff(ModContent.BuffType(), 1200); player.immune = true; player.immuneTime = player.longInvince ? 100 : 60; player.noKnockback = true; @@ -4908,7 +4910,7 @@ namespace CalamityMod.CalPlayer for (int i = 0; i < 50; i++) { - int lumenyl = Projectile.NewProjectile(player.Center.X, player.Center.Y, Main.rand.NextFloat(-2f, 2f), Main.rand.NextFloat(-2f, 2f), mod.ProjectileType("AbyssalMirrorProjectile"), 55, 0, player.whoAmI); + int lumenyl = Projectile.NewProjectile(player.Center.X, player.Center.Y, Main.rand.NextFloat(-2f, 2f), Main.rand.NextFloat(-2f, 2f), ModContent.ProjectileType(), 55, 0, player.whoAmI); Main.projectile[lumenyl].rotation = Main.rand.NextFloat(0, 360); Main.projectile[lumenyl].frame = Main.rand.Next(0, 4); } @@ -4919,7 +4921,7 @@ namespace CalamityMod.CalPlayer { if (player.whoAmI == Main.myPlayer && eclipseMirror && !eclipseMirrorCooldown) { - player.AddBuff(mod.BuffType("EclipseMirrorCooldown"), 1200); + player.AddBuff(ModContent.BuffType(), 1200); player.immune = true; player.immuneTime = player.longInvince ? 100 : 60; player.noKnockback = true; @@ -4931,7 +4933,7 @@ namespace CalamityMod.CalPlayer } Main.PlaySound(2, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 68); - int eclipseBurst = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("EclipseMirrorBurst"), 8000, 0, player.whoAmI); + int eclipseBurst = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 8000, 0, player.whoAmI); } } #endregion @@ -4941,7 +4943,7 @@ namespace CalamityMod.CalPlayer #region Pre Kill public override bool PreKill(double damage, int hitDirection, bool pvp, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource) { - if (invincible && player.inventory[player.selectedItem].type != mod.ItemType("ColdheartIcicle")) + if (invincible && player.inventory[player.selectedItem].type != ModContent.ItemType()) { if (player.statLife <= 0) { @@ -4953,7 +4955,7 @@ namespace CalamityMod.CalPlayer { for (int x = 0; x < 200; x++) { - if (Main.npc[x].active && Main.npc[x].type == mod.NPCType("Providence")) + if (Main.npc[x].active && Main.npc[x].type == ModContent.NPCType()) { Main.npc[x].active = false; } @@ -5010,12 +5012,12 @@ namespace CalamityMod.CalPlayer { player.statLife = player.statLifeMax2; } - if (player.FindBuffIndex(mod.BuffType("DraconicSurgeBuff")) > -1) + if (player.FindBuffIndex(ModContent.BuffType()) > -1) { - player.ClearBuff(mod.BuffType("DraconicSurgeBuff")); + player.ClearBuff(ModContent.BuffType()); draconicSurgeCooldown = 1800; } - player.AddBuff(mod.BuffType("GodSlayerCooldown"), 2700); + player.AddBuff(ModContent.BuffType(), 2700); return false; } if (silvaSet && silvaCountdown > 0) @@ -5024,10 +5026,10 @@ namespace CalamityMod.CalPlayer { silvaHitCounter++; } - if (player.FindBuffIndex(mod.BuffType("SilvaRevival")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaActivation"), (int)player.position.X, (int)player.position.Y); - player.AddBuff(mod.BuffType("SilvaRevival"), 600); + player.AddBuff(ModContent.BuffType(), 600); if (draconicSurge) { player.statLife += player.statLifeMax2; @@ -5036,9 +5038,9 @@ namespace CalamityMod.CalPlayer { player.statLife = player.statLifeMax2; } - if (player.FindBuffIndex(mod.BuffType("DraconicSurgeBuff")) > -1) + if (player.FindBuffIndex(ModContent.BuffType()) > -1) { - player.ClearBuff(mod.BuffType("DraconicSurgeBuff")); + player.ClearBuff(ModContent.BuffType()); draconicSurgeCooldown = 1800; } } @@ -5050,10 +5052,10 @@ namespace CalamityMod.CalPlayer } return false; } - if (permafrostsConcoction && player.FindBuffIndex(mod.BuffType("ConcoctionCooldown")) == -1) + if (permafrostsConcoction && player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("ConcoctionCooldown"), 10800); - player.AddBuff(mod.BuffType("Encased"), 300); + player.AddBuff(ModContent.BuffType(), 10800); + player.AddBuff(ModContent.BuffType(), 300); player.statLife = player.statLifeMax2 * 3 / 10; Main.PlaySound(SoundID.Item92, player.position); for (int i = 0; i < 60; i++) @@ -5080,7 +5082,7 @@ namespace CalamityMod.CalPlayer { damageSource = PlayerDeathReason.ByCustomReason(player.name + " fell prey to their sins."); } - if (NPC.AnyNPCs(mod.NPCType("SupremeCalamitas"))) + if (NPC.AnyNPCs(ModContent.NPCType())) { if (sCalDeathCount < 51) { @@ -5157,7 +5159,7 @@ namespace CalamityMod.CalPlayer if (item.melee || item.ranged || item.magic || item.Calamity().rogue) { double useTimeBeeMultiplier = (double)(item.useTime * item.useAnimation) / 3600.0; //28 * 28 = 784 is average so that equals 784 / 3600 = 0.217777 = 21.7% boost - if (item.type == mod.ItemType("ScarletDevil")) + if (item.type == ModContent.ItemType()) { if (useTimeBeeMultiplier > 0.1) useTimeBeeMultiplier = 0.1; @@ -5281,7 +5283,7 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(3)) { - int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, mod.DustType("BrimstoneFlame"), player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default, 0.75f); + int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType(), player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default, 0.75f); } } if (aChicken) @@ -5335,19 +5337,19 @@ namespace CalamityMod.CalPlayer public override void OnHitNPC(Item item, NPC target, int damage, float knockback, bool crit) { if (omegaBlueChestplate) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + target.AddBuff(ModContent.BuffType(), 240); if (eGauntlet) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); if (Main.rand.NextBool(5)) { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); target.AddBuff(BuffID.Poisoned, 120, false); target.AddBuff(BuffID.OnFire, 120, false); target.AddBuff(BuffID.CursedInferno, 120, false); @@ -5359,45 +5361,45 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (abyssalAmulet) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (dsSetBonus) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("DemonFlames"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("DemonFlames"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("DemonFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (cryogenSoul || frostFlare) @@ -5419,15 +5421,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (ataxiaFire) @@ -5449,15 +5451,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("Plague"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("Plague"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (armorCrumbling || armorShattering) @@ -5466,21 +5468,21 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } } if (holyWrath) { - target.AddBuff(mod.BuffType("HolyLight"), 600, false); + target.AddBuff(ModContent.BuffType(), 600, false); } } #endregion @@ -5489,73 +5491,73 @@ namespace CalamityMod.CalPlayer public override void OnHitNPCWithProj(Projectile proj, NPC target, int damage, float knockback, bool crit) { if (omegaBlueChestplate && proj.friendly && !target.friendly) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + target.AddBuff(ModContent.BuffType(), 240); if (proj.melee && silvaMelee && Main.rand.NextBool(4)) - target.AddBuff(mod.BuffType("SilvaStun"), 20); + target.AddBuff(ModContent.BuffType(), 20); if (abyssalAmulet) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (dsSetBonus) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("DemonFlames"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("DemonFlames"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("DemonFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (uberBees && (proj.type == 566 || proj.type == 181 || proj.type == 189)) { - target.AddBuff(mod.BuffType("Plague"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (alchFlask) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("Plague"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("Plague"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (proj.melee) { if (eGauntlet) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); if (Main.rand.NextBool(5)) { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); target.AddBuff(BuffID.Poisoned, 120, false); target.AddBuff(BuffID.OnFire, 120, false); target.AddBuff(BuffID.CursedInferno, 120, false); @@ -5567,15 +5569,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (cryogenSoul || frostFlare) @@ -5597,15 +5599,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (ataxiaFire) @@ -5630,15 +5632,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } } @@ -5652,11 +5654,11 @@ namespace CalamityMod.CalPlayer } if (holyWrath) { - target.AddBuff(mod.BuffType("HolyLight"), 600, false); + target.AddBuff(ModContent.BuffType(), 600, false); } else if (providenceLore) { - target.AddBuff(mod.BuffType("HolyLight"), 420, false); + target.AddBuff(ModContent.BuffType(), 420, false); } if (proj.Calamity().rogue) { @@ -5699,19 +5701,19 @@ namespace CalamityMod.CalPlayer public override void OnHitPvp(Item item, Player target, int damage, bool crit) { if (omegaBlueChestplate) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + target.AddBuff(ModContent.BuffType(), 240); if (eGauntlet) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); if (Main.rand.NextBool(5)) { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); target.AddBuff(BuffID.Poisoned, 120, false); target.AddBuff(BuffID.OnFire, 120, false); target.AddBuff(BuffID.CursedInferno, 120, false); @@ -5723,30 +5725,30 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (abyssalAmulet) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (cryogenSoul || frostFlare) @@ -5768,15 +5770,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (ataxiaFire) @@ -5798,78 +5800,78 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("Plague"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("Plague"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (holyWrath) { - target.AddBuff(mod.BuffType("HolyLight"), 600, false); + target.AddBuff(ModContent.BuffType(), 600, false); } } public override void OnHitPvpWithProj(Projectile proj, Player target, int damage, bool crit) { if (omegaBlueChestplate) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + target.AddBuff(ModContent.BuffType(), 240); if (proj.melee && silvaMelee && Main.rand.NextBool(4)) - target.AddBuff(mod.BuffType("SilvaStun"), 20); + target.AddBuff(ModContent.BuffType(), 20); if (abyssalAmulet) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (uberBees && (proj.type == 566 || proj.type == 181 || proj.type == 189)) { - target.AddBuff(mod.BuffType("Plague"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (alchFlask) { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("Plague"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("Plague"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (proj.melee) { if (eGauntlet) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); if (Main.rand.NextBool(5)) { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); target.AddBuff(BuffID.Poisoned, 120, false); target.AddBuff(BuffID.OnFire, 120, false); target.AddBuff(BuffID.CursedInferno, 120, false); @@ -5881,15 +5883,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (cryogenSoul || frostFlare) @@ -5911,15 +5913,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } if (ataxiaFire) @@ -5944,15 +5946,15 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 360, false); + target.AddBuff(ModContent.BuffType(), 360, false); } else if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 240, false); + target.AddBuff(ModContent.BuffType(), 240, false); } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 120, false); + target.AddBuff(ModContent.BuffType(), 120, false); } } } @@ -5966,11 +5968,11 @@ namespace CalamityMod.CalPlayer } if (holyWrath) { - target.AddBuff(mod.BuffType("HolyLight"), 600, false); + target.AddBuff(ModContent.BuffType(), 600, false); } else if (providenceLore) { - target.AddBuff(mod.BuffType("HolyLight"), 420, false); + target.AddBuff(ModContent.BuffType(), 420, false); } if (proj.Calamity().rogue) { @@ -6076,9 +6078,9 @@ namespace CalamityMod.CalPlayer { if (ataxiaGeyser) { - if (player.ownedProjectileCounts[mod.ProjectileType("ChaosGeyser")] < 3) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 3) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("ChaosGeyser"), (int)((double)damage * 0.15), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)damage * 0.15), 2f, player.whoAmI, 0f, 0f); } } if (unstablePrism && crit) @@ -6092,7 +6094,7 @@ namespace CalamityMod.CalPlayer } value15.Normalize(); value15 *= (float)Main.rand.Next(30, 61) * 0.1f; - Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, mod.ProjectileType("UnstableSpark"), (int)((double)damage * 0.15), 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)damage * 0.15), 0f, player.whoAmI, 0f, 0f); } } } @@ -6111,7 +6113,7 @@ namespace CalamityMod.CalPlayer int projectileType = Main.rand.Next(3); if (projectileType == 0) { - projectileType = mod.ProjectileType("AstralStar"); + projectileType = ModContent.ProjectileType(); } else if (projectileType == 1) { @@ -6282,9 +6284,9 @@ namespace CalamityMod.CalPlayer { damageMult += 0.1; } - if (proj.type == mod.ProjectileType("FrostsparkBullet")) + if (proj.type == ModContent.ProjectileType()) { - if (target.buffImmune[mod.BuffType("GlacialState")]) + if (target.buffImmune[ModContent.BuffType()]) damageMult += 0.2; } else if (proj.type == ProjectileID.InfernoFriendlyBlast) @@ -6342,12 +6344,12 @@ namespace CalamityMod.CalPlayer if (hasClassType) damage += theBeeDamage; } - if (proj.type == mod.ProjectileType("AcidBullet")) + if (proj.type == ModContent.ProjectileType()) { int defenseAdd = (int)((double)target.defense * 0.1 * ((double)damage / 50.0)); //100 defense * 0.1 = 10 damage += defenseAdd; } - if (uberBees && (proj.type == ProjectileID.GiantBee || proj.type == ProjectileID.Bee || proj.type == ProjectileID.Wasp || proj.type == mod.ProjectileType("PlagueBee"))) + if (uberBees && (proj.type == ProjectileID.GiantBee || proj.type == ProjectileID.Bee || proj.type == ProjectileID.Wasp || proj.type == ModContent.ProjectileType())) { damage += Main.rand.Next(20, 31); } @@ -6385,7 +6387,7 @@ namespace CalamityMod.CalPlayer damage = (int)((double)damage * 0.7); break; } - if (proj.type == mod.ProjectileType("VeriumBullet")) + if (proj.type == ModContent.ProjectileType()) damage = (int)((double)damage * 0.8); } if (proj.type == ProjectileID.SpectreWrath && player.ghostHurt) @@ -6421,7 +6423,7 @@ namespace CalamityMod.CalPlayer } value15.Normalize(); value15 *= (float)Main.rand.Next(30, 61) * 0.1f; - Projectile.NewProjectile(proj.oldPosition.X + (float)(proj.width / 2), proj.oldPosition.Y + (float)(proj.height / 2), value15.X, value15.Y, mod.ProjectileType("UnstableSpark"), (int)((double)damage * 0.15), 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(proj.oldPosition.X + (float)(proj.width / 2), proj.oldPosition.Y + (float)(proj.height / 2), value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)damage * 0.15), 0f, player.whoAmI, 0f, 0f); } } if (astralStarRain && crit && astralStarRainCooldown <= 0) @@ -6439,7 +6441,7 @@ namespace CalamityMod.CalPlayer int projectileType = Main.rand.Next(3); if (projectileType == 0) { - projectileType = mod.ProjectileType("AstralStar"); + projectileType = ModContent.ProjectileType(); } else if (projectileType == 1) { @@ -6529,7 +6531,7 @@ namespace CalamityMod.CalPlayer player.HealEffect(healAmount); } } - if (proj.type == mod.ProjectileType("PolarStar")) + if (proj.type == ModContent.ProjectileType()) { polarisBoostCounter += 1; } @@ -6683,7 +6685,7 @@ namespace CalamityMod.CalPlayer { if (npc.type == NPCID.BlueJellyfish || npc.type == NPCID.PinkJellyfish || npc.type == NPCID.GreenJellyfish || npc.type == NPCID.FungoFish || npc.type == NPCID.BloodJelly || npc.type == NPCID.AngryNimbus || npc.type == NPCID.GigaZapper || - npc.type == NPCID.MartianTurret || npc.type == mod.NPCType("StormlionCharger")) + npc.type == NPCID.MartianTurret || npc.type == ModContent.NPCType()) damage /= 2; } if (fleshTotem && fleshTotemCooldown <= 0) @@ -6805,7 +6807,7 @@ namespace CalamityMod.CalPlayer { if (npc.type == NPCID.ShadowFlameApparition || (npc.type == NPCID.ChaosBall && Main.hardMode)) { - player.AddBuff(mod.BuffType("Shadowflame"), 180); + player.AddBuff(ModContent.BuffType(), 180); } else if (npc.type == NPCID.SkeletronPrime || npc.type == NPCID.PrimeVice || npc.type == NPCID.PrimeSaw) { @@ -6839,7 +6841,7 @@ namespace CalamityMod.CalPlayer { if (proj.type == ProjectileID.FrostBeam && !player.frozen && !gState) { - player.AddBuff(mod.BuffType("GlacialState"), 120); + player.AddBuff(ModContent.BuffType(), 120); } else if (proj.type == ProjectileID.DeathLaser) { @@ -6938,35 +6940,35 @@ namespace CalamityMod.CalPlayer } else if (Main.rand.NextBool(10)) { - caughtType = mod.ItemType("ProcyonidPrawn"); + caughtType = ModContent.ItemType(); } else if (Main.rand.NextBool(15)) { - caughtType = mod.ItemType("ArcturusAstroidean"); + caughtType = ModContent.ItemType(); } else if (player.cratePotion && Main.rand.NextBool(5)) { - caughtType = mod.ItemType("AstralCrate"); + caughtType = ModContent.ItemType(); } else if (!player.cratePotion && Main.rand.NextBool(10)) { - caughtType = mod.ItemType("AstralCrate"); + caughtType = ModContent.ItemType(); } else if (Main.rand.NextBool(15)) { - caughtType = mod.ItemType("UrsaSergeant"); + caughtType = ModContent.ItemType(); } else if (Main.rand.NextBool(15)) { - caughtType = mod.ItemType("GacruxianMollusk"); + caughtType = ModContent.ItemType(); } else if (Main.rand.NextBool(15)) { - caughtType = mod.ItemType("PolarisParrotfish"); + caughtType = ModContent.ItemType(); } else { - caughtType = mod.ItemType("TwinklingPollox"); + caughtType = ModContent.ItemType(); } } Point point = player.Center.ToTileCoordinates(); @@ -6989,7 +6991,7 @@ namespace CalamityMod.CalPlayer { if (abyssPosX && liquidType == 0 && power < 40) { - caughtType = mod.ItemType("PlantyMush"); + caughtType = ModContent.ItemType(); } return; } @@ -6997,18 +6999,18 @@ namespace CalamityMod.CalPlayer { if (Main.netMode != NetmodeID.MultiplayerClient) { - CalamityGlobalNPC.OldDukeSpawn(player.whoAmI, mod.NPCType("OldDuke")); + CalamityGlobalNPC.OldDukeSpawn(player.whoAmI, ModContent.NPCType()); } else { - NetMessage.SendData(61, -1, -1, null, player.whoAmI, (float)mod.NPCType("OldDuke"), 0f, 0f, 0, 0, 0); + NetMessage.SendData(61, -1, -1, null, player.whoAmI, (float)ModContent.NPCType(), 0f, 0f, 0, 0, 0); } switch (Main.rand.Next(4)) { - case 0: caughtType = mod.ItemType("IronBoots"); break; //movement acc - case 1: caughtType = mod.ItemType("DepthCharm"); break; //regen acc - case 2: caughtType = mod.ItemType("AnechoicPlating"); break; //defense acc - case 3: caughtType = mod.ItemType("StrangeOrb"); break; //light pet + case 0: caughtType = ModContent.ItemType(); break; //movement acc + case 1: caughtType = ModContent.ItemType(); break; //regen acc + case 2: caughtType = ModContent.ItemType(); break; //defense acc + case 3: caughtType = ModContent.ItemType(); break; //light pet } return; }*/ @@ -7018,17 +7020,17 @@ namespace CalamityMod.CalPlayer { if (abyssPosX && liquidType == 0 && Main.rand.NextBool(15) && power < 80) { - caughtType = mod.ItemType("PlantyMush"); + caughtType = ModContent.ItemType(); } if (power >= 60) { if (player.FindBuffIndex(BuffID.Gills) > -1 && NPC.downedPlantBoss && liquidType == 0 && Main.rand.NextBool(25) && power < 160) { - caughtType = mod.ItemType("Floodtide"); + caughtType = ModContent.ItemType(); } if (abyssPosX && liquidType == 0 && Main.rand.NextBool(25) && power < 160) { - caughtType = mod.ItemType("AlluringBait"); + caughtType = ModContent.ItemType(); } if (power >= 80) { @@ -7037,16 +7039,16 @@ namespace CalamityMod.CalPlayer switch (Main.rand.Next(4)) { case 0: - caughtType = mod.ItemType("IronBoots"); + caughtType = ModContent.ItemType(); break; //movement acc case 1: - caughtType = mod.ItemType("DepthCharm"); + caughtType = ModContent.ItemType(); break; //regen acc case 2: - caughtType = mod.ItemType("AnechoicPlating"); + caughtType = ModContent.ItemType(); break; //defense acc case 3: - caughtType = mod.ItemType("StrangeOrb"); + caughtType = ModContent.ItemType(); break; //light pet } } @@ -7054,7 +7056,7 @@ namespace CalamityMod.CalPlayer { if (abyssPosX && liquidType == 0 && Main.rand.NextBool(25) && power < 240) { - caughtType = mod.ItemType("AbyssalAmulet"); + caughtType = ModContent.ItemType(); } } } @@ -7065,7 +7067,7 @@ namespace CalamityMod.CalPlayer public override void GetFishingLevel(Item fishingRod, Item bait, ref int fishingLevel) { - if ((ZoneAstral || ZoneAbyss || ZoneSulphur) && bait.type == mod.ItemType("ArcturusAstroidean")) + if ((ZoneAstral || ZoneAbyss || ZoneSulphur) && bait.type == ModContent.ItemType()) fishingLevel = (int)(fishingLevel * 1.1f); } #endregion @@ -7153,7 +7155,7 @@ namespace CalamityMod.CalPlayer } } - if (lol || (invincible && player.inventory[player.selectedItem].type != mod.ItemType("ColdheartIcicle"))) + if (lol || (invincible && player.inventory[player.selectedItem].type != ModContent.ItemType())) { return false; } @@ -7231,7 +7233,7 @@ namespace CalamityMod.CalPlayer if (!CalamityWorld.downedBossAny) damage = (int)((double)damage * 0.8); } - if (player.mount.Active && (player.mount.Type == mod.MountType("AngryDog") || player.mount.Type == mod.MountType("OnyxExcavator")) && Math.Abs(player.velocity.X) > player.mount.RunSpeed / 2f) + if (player.mount.Active && (player.mount.Type == ModContent.MountType() || player.mount.Type == ModContent.MountType()) && Math.Abs(player.velocity.X) > player.mount.RunSpeed / 2f) { damage = (int)((double)damage * 0.9); } @@ -7276,12 +7278,12 @@ namespace CalamityMod.CalPlayer if (rageMode) { stress = 0; - if (player.FindBuffIndex(mod.BuffType("RageMode")) > -1) - { player.ClearBuff(mod.BuffType("RageMode")); } + if (player.FindBuffIndex(ModContent.BuffType()) > -1) + { player.ClearBuff(ModContent.BuffType()); } } if (amidiasBlessing) { - player.ClearBuff(mod.BuffType("AmidiasBlessing")); + player.ClearBuff(ModContent.BuffType()); Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 96); } if (!adrenalineMode && adrenaline != adrenalineMax) @@ -7290,7 +7292,7 @@ namespace CalamityMod.CalPlayer } if ((gShell || fabledTortoise) && !player.panic) { - player.AddBuff(mod.BuffType("ShellBoost"), 300); + player.AddBuff(ModContent.BuffType(), 300); } if (abyssalDivingSuitPlates && damage > 50) { @@ -7298,7 +7300,7 @@ namespace CalamityMod.CalPlayer if (abyssalDivingSuitPlateHits >= 3) { Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 14); - player.AddBuff(mod.BuffType("AbyssalDivingSuitPlatesBroken"), 10830); + player.AddBuff(ModContent.BuffType(), 10830); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 31, 0f, 0f, 100, default, 2f); @@ -7358,7 +7360,7 @@ namespace CalamityMod.CalPlayer if (sirenIce) { Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 7); - player.AddBuff(mod.BuffType("IceShieldBrokenBuff"), 1800); + player.AddBuff(ModContent.BuffType(), 1800); for (int num621 = 0; num621 < 10; num621++) { int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 67, 0f, 0f, 100, default, 2f); @@ -7382,17 +7384,17 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4)) { - player.AddBuff(mod.BuffType("TarraLifeRegen"), 120); + player.AddBuff(ModContent.BuffType(), 120); } } else if (xerocSet) { - player.AddBuff(mod.BuffType("XerocRage"), 240); - player.AddBuff(mod.BuffType("XerocWrath"), 240); + player.AddBuff(ModContent.BuffType(), 240); + player.AddBuff(ModContent.BuffType(), 240); } else if (reaverBlast) { - player.AddBuff(mod.BuffType("ReaverRage"), 180); + player.AddBuff(ModContent.BuffType(), 180); } if (fBarrier || ((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3)) { @@ -7418,7 +7420,7 @@ namespace CalamityMod.CalPlayer if (distance < num10) { float num11 = (float)Main.rand.Next(90 + (int)damage / 3, 240 + (int)damage / 2); - Main.npc[m].AddBuff(mod.BuffType("GlacialState"), (int)num11, false); + Main.npc[m].AddBuff(ModContent.BuffType(), (int)num11, false); } } } @@ -7458,15 +7460,15 @@ namespace CalamityMod.CalPlayer polarisBoost = false; polarisBoostTwo = false; polarisBoostThree = false; - if (player.FindBuffIndex(mod.BuffType("PolarisBuff")) > -1) - { player.ClearBuff(mod.BuffType("PolarisBuff")); } + if (player.FindBuffIndex(ModContent.BuffType()) > -1) + { player.ClearBuff(ModContent.BuffType()); } } } - if (player.ownedProjectileCounts[mod.ProjectileType("Drataliornus")] != 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] != 0) { for (int i = 0; i < 1000; i++) { - if (Main.projectile[i].active && Main.projectile[i].type == mod.ProjectileType("Drataliornus") && Main.projectile[i].owner == player.whoAmI) + if (Main.projectile[i].active && Main.projectile[i].type == ModContent.ProjectileType() && Main.projectile[i].owner == player.whoAmI) { Main.projectile[i].Kill(); break; @@ -7483,7 +7485,7 @@ namespace CalamityMod.CalPlayer { if (pArtifact) { - player.AddBuff(mod.BuffType("BurntOut"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } bool hardMode = Main.hardMode; if (player.whoAmI == Main.myPlayer) @@ -7543,7 +7545,7 @@ namespace CalamityMod.CalPlayer num16 = (float)num15 / num16; num13 *= num16; num14 *= num16; - int num17 = Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("StickyFeatherAero"), 20, 1f, player.whoAmI, 0f, 0f); + int num17 = Projectile.NewProjectile(x, y, num13, num14, ModContent.ProjectileType(), 20, 1f, player.whoAmI, 0f, 0f); } } } @@ -7552,7 +7554,7 @@ namespace CalamityMod.CalPlayer if (aBulwarkRare) { Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("GodSlayerBlaze"), 25, 5f, player.whoAmI, 0f, 1f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 25, 5f, player.whoAmI, 0f, 1f); } int starAmt = aBulwarkRare ? 12 : 5; for (int n = 0; n < starAmt; n++) @@ -7568,7 +7570,7 @@ namespace CalamityMod.CalPlayer num16 = (float)num15 / num16; num13 *= num16; num14 *= num16; - int num17 = Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("AstralStar"), 320, 5f, player.whoAmI, 0f, 0f); + int num17 = Projectile.NewProjectile(x, y, num13, num14, ModContent.ProjectileType(), 320, 5f, player.whoAmI, 0f, 0f); } } if (dAmulet) @@ -7637,8 +7639,8 @@ namespace CalamityMod.CalPlayer for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int spark1 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Spark"), sDamage, 1.25f, player.whoAmI, 0f, 0f); - int spark2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Spark"), sDamage, 1.25f, player.whoAmI, 0f, 0f); + int spark1 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), sDamage, 1.25f, player.whoAmI, 0f, 0f); + int spark2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), sDamage, 1.25f, player.whoAmI, 0f, 0f); Main.projectile[spark1].timeLeft = 120; Main.projectile[spark2].timeLeft = 120; } @@ -7649,12 +7651,12 @@ namespace CalamityMod.CalPlayer { if (player.whoAmI == Main.myPlayer && !inkBombCooldown) { - player.AddBuff(mod.BuffType("InkBombCooldown"), 1200); + player.AddBuff(ModContent.BuffType(), 1200); rogueStealth += 0.5f; for (int i = 0; i < 5; i++) { Main.PlaySound(2, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 61); - int inkBomb = Projectile.NewProjectile(player.Center.X, player.Center.Y, Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-0f, -4f), mod.ProjectileType("InkBombProjectile"), 0, 0, player.whoAmI); + int inkBomb = Projectile.NewProjectile(player.Center.X, player.Center.Y, Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-0f, -4f), ModContent.ProjectileType(), 0, 0, player.whoAmI); } } } @@ -7666,7 +7668,7 @@ namespace CalamityMod.CalPlayer int eDamage = 100; if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("ChaosBlaze"), eDamage, 1f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), eDamage, 1f, player.whoAmI, 0f, 0f); } } } @@ -7735,8 +7737,8 @@ namespace CalamityMod.CalPlayer for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GodKiller"), 900, 5f, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GodKiller"), 900, 5f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), 900, 5f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), 900, 5f, player.whoAmI, 0f, 0f); } } } @@ -7748,7 +7750,7 @@ namespace CalamityMod.CalPlayer Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("GodSlayerBlaze"), auricSet ? 2400 : 1200, 1f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), auricSet ? 2400 : 1200, 1f, player.whoAmI, 0f, 0f); } } } @@ -7966,7 +7968,7 @@ namespace CalamityMod.CalPlayer player.ApplyDamageToNPC(nPC, (int)num, num2, direction, crit); } nPC.immune[player.whoAmI] = 6; - nPC.AddBuff(mod.BuffType("GlacialState"), 300); + nPC.AddBuff(ModContent.BuffType(), 300); player.immune = true; player.immuneNoBlink = true; player.immuneTime = 4; @@ -8012,12 +8014,12 @@ namespace CalamityMod.CalPlayer if (player.whoAmI == Main.myPlayer) { player.ApplyDamageToNPC(nPC, (int)num, num2, direction, crit); - int num6 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("HolyExplosionSupreme"), 1000, 20f, Main.myPlayer, 0f, 0f); + int num6 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 1000, 20f, Main.myPlayer, 0f, 0f); Main.projectile[num6].Kill(); - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("HolyEruption"), 780, 5f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 780, 5f, Main.myPlayer, 0f, 0f); } nPC.immune[player.whoAmI] = 6; - nPC.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + nPC.AddBuff(ModContent.BuffType(), 300); player.immune = true; player.immuneNoBlink = true; player.immuneTime = 4; @@ -8063,9 +8065,9 @@ namespace CalamityMod.CalPlayer if (player.whoAmI == Main.myPlayer) { player.ApplyDamageToNPC(nPC, (int)num, num2, direction, crit); - int num6 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("HolyExplosionSupreme"), 500, 15f, Main.myPlayer, 0f, 0f); + int num6 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 500, 15f, Main.myPlayer, 0f, 0f); Main.projectile[num6].Kill(); - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("HolyEruption"), 380, 5f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 380, 5f, Main.myPlayer, 0f, 0f); } nPC.immune[player.whoAmI] = 6; player.immune = true; @@ -8113,7 +8115,7 @@ namespace CalamityMod.CalPlayer if (player.whoAmI == Main.myPlayer) { player.ApplyDamageToNPC(nPC, (int)num, num2, direction, crit); - int num6 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("HolyExplosion"), 100, 15f, Main.myPlayer, 0f, 0f); + int num6 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 100, 15f, Main.myPlayer, 0f, 0f); Main.projectile[num6].Kill(); } nPC.immune[player.whoAmI] = 6; @@ -8674,8 +8676,8 @@ namespace CalamityMod.CalPlayer { if (player.whoAmI == Main.myPlayer && dodgeScarf && !scarfCooldown) { - player.AddBuff(mod.BuffType("ScarfMeleeBoost"), 540); - player.AddBuff(mod.BuffType("ScarfCooldown"), player.chaosState ? 1800 : 900); + player.AddBuff(ModContent.BuffType(), 540); + player.AddBuff(ModContent.BuffType(), player.chaosState ? 1800 : 900); player.immune = true; player.immuneTime = 60; if (player.longInvince) @@ -8819,7 +8821,7 @@ namespace CalamityMod.CalPlayer } } - if (player.mount.Active && player.mount.Type == mod.MountType("Fab") && Math.Abs(player.velocity.X) > player.mount.DashSpeed - player.mount.RunSpeed / 2f) + if (player.mount.Active && player.mount.Type == ModContent.MountType() && Math.Abs(player.velocity.X) > player.mount.DashSpeed - player.mount.RunSpeed / 2f) { Rectangle rect = player.getRect(); @@ -8835,7 +8837,7 @@ namespace CalamityMod.CalPlayer ModCollideWithNPCs(rect, damage, knockback, nPCImmuneTime, playerImmuneTime); } - if (player.mount.Active && player.mount.Type == mod.MountType("AngryDog") && Math.Abs(player.velocity.X) > player.mount.RunSpeed / 2f) + if (player.mount.Active && player.mount.Type == ModContent.MountType() && Math.Abs(player.velocity.X) > player.mount.RunSpeed / 2f) { Rectangle rect2 = player.getRect(); @@ -8851,7 +8853,7 @@ namespace CalamityMod.CalPlayer ModCollideWithNPCs(rect2, damage2, knockback2, nPCImmuneTime2, playerImmuneTime2); } - if (player.mount.Active && player.mount.Type == mod.MountType("OnyxExcavator") && Math.Abs(player.velocity.X) > player.mount.RunSpeed / 2f) + if (player.mount.Active && player.mount.Type == ModContent.MountType() && Math.Abs(player.velocity.X) > player.mount.RunSpeed / 2f) { Rectangle rect2 = player.getRect(); @@ -8967,12 +8969,12 @@ namespace CalamityMod.CalPlayer effect = SpriteEffects.FlipHorizontally | SpriteEffects.FlipVertically; } - if (item.type == mod.ItemType("DeathhailStaff") || item.type == mod.ItemType("Vesuvius") || item.type == mod.ItemType("SoulPiercer")) + if (item.type == ModContent.ItemType() || item.type == ModContent.ItemType() || item.type == ModContent.ItemType()) { Texture2D texture = mod.GetTexture("Items/Weapons/DevourerofGods/DeathhailStaffGlow"); - if (item.type == mod.ItemType("Vesuvius")) + if (item.type == ModContent.ItemType()) texture = mod.GetTexture("Items/Weapons/VesuviusGlow"); - else if (item.type == mod.ItemType("SoulPiercer")) + else if (item.type == ModContent.ItemType()) texture = mod.GetTexture("Items/Weapons/SoulPiercerGlow"); float num104 = drawPlayer.itemRotation + 0.785f * (float)drawPlayer.direction; @@ -9012,22 +9014,22 @@ namespace CalamityMod.CalPlayer Main.playerDrawData.Add(data); } - else if (item.type == mod.ItemType("Deathwind") || item.type == mod.ItemType("Apotheosis") || item.type == mod.ItemType("CleansingBlaze") || - item.type == mod.ItemType("SubsumingVortex")) + else if (item.type == ModContent.ItemType() || item.type == ModContent.ItemType() || item.type == ModContent.ItemType() || + item.type == ModContent.ItemType()) { Texture2D texture = mod.GetTexture("Items/Weapons/DevourerofGods/DeathwindGlow"); int offsetX = 10; - if (item.type == mod.ItemType("Apotheosis")) + if (item.type == ModContent.ItemType()) { texture = mod.GetTexture("Items/Weapons/ApotheosisGlow"); offsetX = 6; } - else if (item.type == mod.ItemType("CleansingBlaze")) + else if (item.type == ModContent.ItemType()) { texture = mod.GetTexture("Items/Weapons/CleansingBlazeGlow"); offsetX = 37; } - else if (item.type == mod.ItemType("SubsumingVortex")) + else if (item.type == ModContent.ItemType()) { texture = mod.GetTexture("Items/Weapons/SubsumingVortexGlow"); offsetX = 9; @@ -9055,15 +9057,15 @@ namespace CalamityMod.CalPlayer Main.playerDrawData.Add(data); } - else if (item.type == mod.ItemType("Excelsus") || item.type == mod.ItemType("EssenceFlayer") || item.type == mod.ItemType("TheEnforcer") || - item.type == mod.ItemType("ElementalExcalibur")) + else if (item.type == ModContent.ItemType() || item.type == ModContent.ItemType() || item.type == ModContent.ItemType() || + item.type == ModContent.ItemType()) { Texture2D texture = mod.GetTexture("Items/Weapons/DevourerofGods/ExcelsusGlow"); - if (item.type == mod.ItemType("EssenceFlayer")) + if (item.type == ModContent.ItemType()) texture = mod.GetTexture("Items/Weapons/EssenceFlayerGlow"); - else if (item.type == mod.ItemType("TheEnforcer")) + else if (item.type == ModContent.ItemType()) texture = mod.GetTexture("Items/Weapons/TheEnforcerGlow"); - else if (item.type == mod.ItemType("ElementalExcalibur")) + else if (item.type == ModContent.ItemType()) texture = mod.GetTexture("Items/Weapons/ElementalExcaliburGlow"); float yOffset = drawPlayer.gravDir == -1f ? 0f : (float)Main.itemTexture[item.type].Height; @@ -9289,7 +9291,7 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4) && drawInfo.shadow == 0f) { - int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, mod.DustType("BrimstoneFlame"), player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default, 3f); + int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, ModContent.DustType(), player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default, 3f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 1.8f; Main.dust[dust].velocity.Y -= 0.5f; @@ -9358,7 +9360,7 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4) && drawInfo.shadow == 0f) { - int dustType = Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"); + int dustType = Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(); int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, dustType, player.velocity.X * 0.2f, player.velocity.Y * 0.2f, 100, default, 0.7f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 1.2f; @@ -9371,7 +9373,7 @@ namespace CalamityMod.CalPlayer { if (Main.rand.NextBool(4) && drawInfo.shadow == 0f) { - int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, mod.DustType("HolyFlame"), player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default, 3f); + int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, ModContent.DustType(), player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default, 3f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 1.8f; Main.dust[dust].velocity.Y -= 0.5f; diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 267673509a..893309f228 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -1,11 +1,10 @@ -using CalamityMod.Buffs.DoTDebuffs; -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs; using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.CalPlayer { @@ -321,7 +320,7 @@ namespace CalamityMod.CalPlayer } if (player.lavaTime <= 0) - player.AddBuff(mod.BuffType("LethalLavaBurn"), 2, true); + player.AddBuff(ModContent.BuffType(), 2, true); } } diff --git a/CalamityMod.cs b/CalamityMod.cs index 52c1cf5d46..60030db0a9 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -1,13 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items; using CalamityMod.Localization; using CalamityMod.MiscModSupport; -using CalamityMod.NPCs.Calamitas; -using CalamityMod.NPCs.Leviathan; -using CalamityMod.NPCs.PlaguebringerGoliath; -using CalamityMod.NPCs.Providence; -using CalamityMod.NPCs.SupremeCalamitas; -using CalamityMod.NPCs.TheDevourerofGods; -using CalamityMod.NPCs.Yharon; +using CalamityMod.NPCs; using CalamityMod.Skies; using CalamityMod.UI; using CalamityMod.Utilities; @@ -22,7 +17,7 @@ using Terraria.DataStructures; using Terraria.Graphics.Effects; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.UI; namespace CalamityMod @@ -145,22 +140,22 @@ namespace CalamityMod private void LoadClient() { - AddEquipTexture(new Items.Armor.AbyssalDivingSuitHead(), null, EquipType.Head, "AbyssalDivingSuitHead", "CalamityMod/Items/Armor/AbyssalDivingSuit_Head"); - AddEquipTexture(new Items.Armor.AbyssalDivingSuitBody(), null, EquipType.Body, "AbyssalDivingSuitBody", "CalamityMod/Items/Armor/AbyssalDivingSuit_Body", "CalamityMod/Items/Armor/AbyssalDivingSuit_Arms"); - AddEquipTexture(new Items.Armor.AbyssalDivingSuitLegs(), null, EquipType.Legs, "AbyssalDivingSuitLeg", "CalamityMod/Items/Armor/AbyssalDivingSuit_Legs"); + AddEquipTexture(new AbyssalDivingSuitHead(), null, EquipType.Head, "AbyssalDivingSuitHead", "CalamityMod/Items/Armor/AbyssalDivingSuit_Head"); + AddEquipTexture(new AbyssalDivingSuitBody(), null, EquipType.Body, "AbyssalDivingSuitBody", "CalamityMod/Items/Armor/AbyssalDivingSuit_Body", "CalamityMod/Items/Armor/AbyssalDivingSuit_Arms"); + AddEquipTexture(new AbyssalDivingSuitLegs(), null, EquipType.Legs, "AbyssalDivingSuitLeg", "CalamityMod/Items/Armor/AbyssalDivingSuit_Legs"); - AddEquipTexture(new Items.Armor.SirenHead(), null, EquipType.Head, "SirenHead", "CalamityMod/Items/Armor/SirenTrans_Head"); - AddEquipTexture(new Items.Armor.SirenBody(), null, EquipType.Body, "SirenBody", "CalamityMod/Items/Armor/SirenTrans_Body", "CalamityMod/Items/Armor/SirenTrans_Arms"); - AddEquipTexture(new Items.Armor.SirenLegs(), null, EquipType.Legs, "SirenLeg", "CalamityMod/Items/Armor/SirenTrans_Legs"); + AddEquipTexture(new SirenHead(), null, EquipType.Head, "SirenHead", "CalamityMod/Items/Armor/SirenTrans_Head"); + AddEquipTexture(new SirenBody(), null, EquipType.Body, "SirenBody", "CalamityMod/Items/Armor/SirenTrans_Body", "CalamityMod/Items/Armor/SirenTrans_Arms"); + AddEquipTexture(new SirenLegs(), null, EquipType.Legs, "SirenLeg", "CalamityMod/Items/Armor/SirenTrans_Legs"); - AddEquipTexture(new Items.Armor.SirenHeadAlt(), null, EquipType.Head, "SirenHeadAlt", "CalamityMod/Items/Armor/SirenTransAlt_Head"); - AddEquipTexture(new Items.Armor.SirenBodyAlt(), null, EquipType.Body, "SirenBodyAlt", "CalamityMod/Items/Armor/SirenTransAlt_Body", "CalamityMod/Items/Armor/SirenTransAlt_Arms"); - AddEquipTexture(new Items.Armor.SirenLegsAlt(), null, EquipType.Legs, "SirenLegAlt", "CalamityMod/Items/Armor/SirenTransAlt_Legs"); + AddEquipTexture(new SirenHeadAlt(), null, EquipType.Head, "SirenHeadAlt", "CalamityMod/Items/Armor/SirenTransAlt_Head"); + AddEquipTexture(new SirenBodyAlt(), null, EquipType.Body, "SirenBodyAlt", "CalamityMod/Items/Armor/SirenTransAlt_Body", "CalamityMod/Items/Armor/SirenTransAlt_Arms"); + AddEquipTexture(new SirenLegsAlt(), null, EquipType.Legs, "SirenLegAlt", "CalamityMod/Items/Armor/SirenTransAlt_Legs"); - AddEquipTexture(new Items.Permafrost.PopoHead(), null, EquipType.Head, "PopoHead", "CalamityMod/Items/Permafrost/Popo_Head"); - AddEquipTexture(new Items.Permafrost.PopoNoselessHead(), null, EquipType.Head, "PopoNoselessHead", "CalamityMod/Items/Permafrost/PopoNoseless_Head"); - AddEquipTexture(new Items.Permafrost.PopoBody(), null, EquipType.Body, "PopoBody", "CalamityMod/Items/Permafrost/Popo_Body", "CalamityMod/Items/Permafrost/Popo_Arms"); - AddEquipTexture(new Items.Permafrost.PopoLegs(), null, EquipType.Legs, "PopoLeg", "CalamityMod/Items/Permafrost/Popo_Legs"); + AddEquipTexture(new PopoHead(), null, EquipType.Head, "PopoHead", "CalamityMod/Items/Permafrost/Popo_Head"); + AddEquipTexture(new PopoNoselessHead(), null, EquipType.Head, "PopoNoselessHead", "CalamityMod/Items/Permafrost/PopoNoseless_Head"); + AddEquipTexture(new PopoBody(), null, EquipType.Body, "PopoBody", "CalamityMod/Items/Permafrost/Popo_Body", "CalamityMod/Items/Permafrost/Popo_Arms"); + AddEquipTexture(new PopoLegs(), null, EquipType.Legs, "PopoLeg", "CalamityMod/Items/Permafrost/Popo_Legs"); AstralCactusTexture = GetTexture("ExtraTextures/Tiles/AstralCactus"); AstralCactusGlowTexture = GetTexture("ExtraTextures/Tiles/AstralCactusGlow"); diff --git a/Config.cs b/Config.cs index ddd9fd55be..5ff27594a9 100644 --- a/Config.cs +++ b/Config.cs @@ -1,7 +1,7 @@ using System.IO; using Terraria; using Terraria.IO; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod { diff --git a/Dusts/AstralBasic.cs b/Dusts/AstralBasic.cs index 27ad7c3bf9..b9f4d80895 100644 --- a/Dusts/AstralBasic.cs +++ b/Dusts/AstralBasic.cs @@ -1,6 +1,6 @@  using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Dusts/AstralBlue.cs b/Dusts/AstralBlue.cs index 282ea6655a..6fe7ec8927 100644 --- a/Dusts/AstralBlue.cs +++ b/Dusts/AstralBlue.cs @@ -1,6 +1,6 @@  using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Dusts/AstralChunk.cs b/Dusts/AstralChunk.cs index e05729d842..d16f6a124a 100644 --- a/Dusts/AstralChunk.cs +++ b/Dusts/AstralChunk.cs @@ -1,6 +1,6 @@  using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Dusts/AstralEnemy.cs b/Dusts/AstralEnemy.cs index 797f8c44de..dadd760a21 100644 --- a/Dusts/AstralEnemy.cs +++ b/Dusts/AstralEnemy.cs @@ -1,6 +1,6 @@  using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Dusts/AstralOrange.cs b/Dusts/AstralOrange.cs index 91fb8deab1..24c7750181 100644 --- a/Dusts/AstralOrange.cs +++ b/Dusts/AstralOrange.cs @@ -1,6 +1,6 @@  using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Dusts/BrimstoneFlame.cs b/Dusts/BrimstoneFlame.cs index 1c48e1fb01..333ff22ebf 100644 --- a/Dusts/BrimstoneFlame.cs +++ b/Dusts/BrimstoneFlame.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Dusts/FurnitureDusts/BloomTileGold.cs b/Dusts/FurnitureDusts/BloomTileGold.cs index a8bb705adb..3286e53252 100644 --- a/Dusts/FurnitureDusts/BloomTileGold.cs +++ b/Dusts/FurnitureDusts/BloomTileGold.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts.FurnitureDusts { diff --git a/Dusts/FurnitureDusts/BloomTileLeaves.cs b/Dusts/FurnitureDusts/BloomTileLeaves.cs index 419240e5e2..4656f777ff 100644 --- a/Dusts/FurnitureDusts/BloomTileLeaves.cs +++ b/Dusts/FurnitureDusts/BloomTileLeaves.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts.FurnitureDusts { diff --git a/Dusts/FurnitureDusts/OccultTileCloth.cs b/Dusts/FurnitureDusts/OccultTileCloth.cs index d8a1ddedc1..93691c4c6c 100644 --- a/Dusts/FurnitureDusts/OccultTileCloth.cs +++ b/Dusts/FurnitureDusts/OccultTileCloth.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts.FurnitureDusts { diff --git a/Dusts/FurnitureDusts/ProfanedTileRock.cs b/Dusts/FurnitureDusts/ProfanedTileRock.cs index 225d1b6a38..7a69a42011 100644 --- a/Dusts/FurnitureDusts/ProfanedTileRock.cs +++ b/Dusts/FurnitureDusts/ProfanedTileRock.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts.FurnitureDusts { diff --git a/Dusts/FurnitureDusts/SilvaTileGold.cs b/Dusts/FurnitureDusts/SilvaTileGold.cs index fccd0f6718..58d3da2d18 100644 --- a/Dusts/FurnitureDusts/SilvaTileGold.cs +++ b/Dusts/FurnitureDusts/SilvaTileGold.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts.FurnitureDusts { diff --git a/Dusts/HBSparkle.cs b/Dusts/HBSparkle.cs index 9c4b5071cb..0765d983ac 100644 --- a/Dusts/HBSparkle.cs +++ b/Dusts/HBSparkle.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Dusts/HolyFlame.cs b/Dusts/HolyFlame.cs index 10728b1ff1..291aac0160 100644 --- a/Dusts/HolyFlame.cs +++ b/Dusts/HolyFlame.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { - public class HolyFlame : ModDust + public class HolyFireDust : ModDust { public override void OnSpawn(Dust dust) { diff --git a/Dusts/OMGWTHSparkle.cs b/Dusts/OMGWTHSparkle.cs index c4c7a4519a..4d3c8a21ca 100644 --- a/Dusts/OMGWTHSparkle.cs +++ b/Dusts/OMGWTHSparkle.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Dusts { diff --git a/Gores/AstralWaterDroplet.cs b/Gores/AstralWaterDroplet.cs index 7f138a3749..da158af4ae 100644 --- a/Gores/AstralWaterDroplet.cs +++ b/Gores/AstralWaterDroplet.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.GameContent.Shaders; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Gores { diff --git a/Items/AbyssItems/AbyssalAmulet.cs b/Items/AbyssItems/AbyssalAmulet.cs index 6a3035444e..735de92459 100644 --- a/Items/AbyssItems/AbyssalAmulet.cs +++ b/Items/AbyssItems/AbyssalAmulet.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class AbyssalAmulet : ModItem { diff --git a/Items/AbyssItems/AbyssalDivingGear.cs b/Items/AbyssItems/AbyssalDivingGear.cs index 78b823a738..5b1d504357 100644 --- a/Items/AbyssItems/AbyssalDivingGear.cs +++ b/Items/AbyssItems/AbyssalDivingGear.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AbyssalDivingGear : ModItem diff --git a/Items/AbyssItems/AlluringBait.cs b/Items/AbyssItems/AlluringBait.cs index 4b3044b53d..4f40bc7ee8 100644 --- a/Items/AbyssItems/AlluringBait.cs +++ b/Items/AbyssItems/AlluringBait.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class AlluringBait : ModItem { diff --git a/Items/AbyssItems/AnechoicCoating.cs b/Items/AbyssItems/AnechoicCoating.cs index c45530616a..c9f248d6d3 100644 --- a/Items/AbyssItems/AnechoicCoating.cs +++ b/Items/AbyssItems/AnechoicCoating.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class AnechoicCoating : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.AbyssItems item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("AnechoicCoating"); + item.buffType = ModContent.BuffType(); item.buffTime = 7200; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/AbyssItems/AnechoicPlating.cs b/Items/AbyssItems/AnechoicPlating.cs index 7868867154..73a5dacfee 100644 --- a/Items/AbyssItems/AnechoicPlating.cs +++ b/Items/AbyssItems/AnechoicPlating.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class AnechoicPlating : ModItem { diff --git a/Items/AbyssItems/CloakingGland.cs b/Items/AbyssItems/CloakingGland.cs index 8c80845ab0..df19b8151b 100644 --- a/Items/AbyssItems/CloakingGland.cs +++ b/Items/AbyssItems/CloakingGland.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class CloakingGland : ModItem { diff --git a/Items/AbyssItems/DepthCells.cs b/Items/AbyssItems/DepthCells.cs index 3415508fde..b864d4cb29 100644 --- a/Items/AbyssItems/DepthCells.cs +++ b/Items/AbyssItems/DepthCells.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class DepthCells : ModItem { diff --git a/Items/AbyssItems/DepthCharm.cs b/Items/AbyssItems/DepthCharm.cs index ac40b9d082..368ec760de 100644 --- a/Items/AbyssItems/DepthCharm.cs +++ b/Items/AbyssItems/DepthCharm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class DepthCharm : ModItem { diff --git a/Items/AbyssItems/IronBoots.cs b/Items/AbyssItems/IronBoots.cs index 8e411d9440..5501ec309b 100644 --- a/Items/AbyssItems/IronBoots.cs +++ b/Items/AbyssItems/IronBoots.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class IronBoots : ModItem { diff --git a/Items/AbyssItems/LumenousAmulet.cs b/Items/AbyssItems/LumenousAmulet.cs index fe64efb5ba..f68f8adb3b 100644 --- a/Items/AbyssItems/LumenousAmulet.cs +++ b/Items/AbyssItems/LumenousAmulet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class LumenousAmulet : ModItem { diff --git a/Items/AbyssItems/ReaperTooth.cs b/Items/AbyssItems/ReaperTooth.cs index ad92b765f9..6c0c011b2d 100644 --- a/Items/AbyssItems/ReaperTooth.cs +++ b/Items/AbyssItems/ReaperTooth.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class ReaperTooth : ModItem { diff --git a/Items/AbyssItems/ReaperToothNecklace.cs b/Items/AbyssItems/ReaperToothNecklace.cs index 20ad631cc4..647bfa37f6 100644 --- a/Items/AbyssItems/ReaperToothNecklace.cs +++ b/Items/AbyssItems/ReaperToothNecklace.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class ReaperToothNecklace : ModItem { diff --git a/Items/AbyssItems/StrangeOrb.cs b/Items/AbyssItems/StrangeOrb.cs index cc216409bc..f2075658b1 100644 --- a/Items/AbyssItems/StrangeOrb.cs +++ b/Items/AbyssItems/StrangeOrb.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class StrangeOrb : ModItem { @@ -16,8 +16,8 @@ namespace CalamityMod.Items.AbyssItems public override void SetDefaults() { item.CloneDefaults(ItemID.WispinaBottle); - item.shoot = mod.ProjectileType("SirenYoung"); - item.buffType = mod.BuffType("StrangeOrb"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); } public override void UseStyle(Player player) diff --git a/Items/AbyssItems/SunkenStew.cs b/Items/AbyssItems/SunkenStew.cs index ab66ae49e4..5a6818264d 100644 --- a/Items/AbyssItems/SunkenStew.cs +++ b/Items/AbyssItems/SunkenStew.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class SunkenStew : ModItem { diff --git a/Items/AbyssItems/TorrentialTear.cs b/Items/AbyssItems/TorrentialTear.cs index 5fb35d2a36..e1ac3b8753 100644 --- a/Items/AbyssItems/TorrentialTear.cs +++ b/Items/AbyssItems/TorrentialTear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AbyssItems +namespace CalamityMod.Items { public class TorrentialTear : ModItem { diff --git a/Items/Accessories/AbyssalMirror.cs b/Items/Accessories/AbyssalMirror.cs index 446e22efec..d0cb36fd01 100644 --- a/Items/Accessories/AbyssalMirror.cs +++ b/Items/Accessories/AbyssalMirror.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AbyssalMirror : ModItem { diff --git a/Items/Accessories/AlchemicalFlask.cs b/Items/Accessories/AlchemicalFlask.cs index 9469fd56dc..5cd37a03b0 100644 --- a/Items/Accessories/AlchemicalFlask.cs +++ b/Items/Accessories/AlchemicalFlask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AlchemicalFlask : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.alchFlask = true; - player.buffImmune[mod.BuffType("Plague")] = true; + player.buffImmune[ModContent.BuffType()] = true; } public override void AddRecipes() diff --git a/Items/Accessories/AmalgamatedBrain.cs b/Items/Accessories/AmalgamatedBrain.cs index 6ef96cd826..13834ab7af 100644 --- a/Items/Accessories/AmalgamatedBrain.cs +++ b/Items/Accessories/AmalgamatedBrain.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AmalgamatedBrain : ModItem { @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Accessories num18 = (float)num17 / num18; num15 *= num18; num16 *= num18; - int num19 = Projectile.NewProjectile(x, y, num15, num16, mod.ProjectileType("AuraRain"), 60, 2f, player.whoAmI, 0f, 0f); + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), 60, 2f, player.whoAmI, 0f, 0f); Main.projectile[num19].ai[1] = player.position.Y; Main.projectile[num19].tileCollide = false; } diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index 617e184c4f..119e646159 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AmbrosialAmpoule : ModItem { diff --git a/Items/Accessories/AmidiasSpark.cs b/Items/Accessories/AmidiasSpark.cs index e6290155a2..bbd659a7e0 100644 --- a/Items/Accessories/AmidiasSpark.cs +++ b/Items/Accessories/AmidiasSpark.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AmidiasSpark : ModItem { diff --git a/Items/Accessories/AncientFossil.cs b/Items/Accessories/AncientFossil.cs index 6a823e4095..e850987d94 100644 --- a/Items/Accessories/AncientFossil.cs +++ b/Items/Accessories/AncientFossil.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AncientFossil : ModItem { diff --git a/Items/Accessories/AngelTreads.cs b/Items/Accessories/AngelTreads.cs index 6bf294c7a4..0ca71e9cc7 100644 --- a/Items/Accessories/AngelTreads.cs +++ b/Items/Accessories/AngelTreads.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Shoes)] public class AngelTreads : ModItem diff --git a/Items/Accessories/ArcanumoftheVoid.cs b/Items/Accessories/ArcanumoftheVoid.cs index b29ff067c3..7d51682e0c 100644 --- a/Items/Accessories/ArcanumoftheVoid.cs +++ b/Items/Accessories/ArcanumoftheVoid.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class ArcanumoftheVoid : ModItem { diff --git a/Items/Accessories/ArchaicPowder.cs b/Items/Accessories/ArchaicPowder.cs index 32222d938d..92c006f74f 100644 --- a/Items/Accessories/ArchaicPowder.cs +++ b/Items/Accessories/ArchaicPowder.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class ArchaicPowder : ModItem { diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index e4d17d9640..61293fe790 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Shield)] public class AsgardianAegis : ModItem @@ -51,9 +51,9 @@ namespace CalamityMod.Items.Accessories player.buffImmune[35] = true; player.buffImmune[23] = true; player.buffImmune[22] = true; - player.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - player.buffImmune[mod.BuffType("HolyLight")] = true; - player.buffImmune[mod.BuffType("GlacialState")] = true; + player.buffImmune[ModContent.BuffType()] = true; + player.buffImmune[ModContent.BuffType()] = true; + player.buffImmune[ModContent.BuffType()] = true; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { player.endurance += 0.1f; } } diff --git a/Items/Accessories/AsgardsValor.cs b/Items/Accessories/AsgardsValor.cs index 88a9beb1ea..1490360cda 100644 --- a/Items/Accessories/AsgardsValor.cs +++ b/Items/Accessories/AsgardsValor.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Shield)] public class AsgardsValor : ModItem @@ -47,9 +47,9 @@ namespace CalamityMod.Items.Accessories player.buffImmune[35] = true; player.buffImmune[23] = true; player.buffImmune[22] = true; - player.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - player.buffImmune[mod.BuffType("HolyLight")] = true; - player.buffImmune[mod.BuffType("GlacialState")] = true; + player.buffImmune[ModContent.BuffType()] = true; + player.buffImmune[ModContent.BuffType()] = true; + player.buffImmune[ModContent.BuffType()] = true; player.statLifeMax2 += 20; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { player.endurance += 0.1f; } diff --git a/Items/Accessories/AstralArcanum.cs b/Items/Accessories/AstralArcanum.cs index ab6d9ada1d..3df0ce2e3a 100644 --- a/Items/Accessories/AstralArcanum.cs +++ b/Items/Accessories/AstralArcanum.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AstralArcanum : ModItem { @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories modPlayer.astralArcanum = true; modPlayer.aBulwark = true; modPlayer.projRef = true; - player.buffImmune[mod.BuffType("AstralInfectionDebuff")] = true; + player.buffImmune[ModContent.BuffType()] = true; } public override void AddRecipes() diff --git a/Items/Accessories/AstralBulwark.cs b/Items/Accessories/AstralBulwark.cs index 2ec67bdd45..18f006099b 100644 --- a/Items/Accessories/AstralBulwark.cs +++ b/Items/Accessories/AstralBulwark.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class AstralBulwark : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.aBulwark = true; - player.buffImmune[mod.BuffType("AstralInfectionDebuff")] = true; + player.buffImmune[ModContent.BuffType()] = true; } } } diff --git a/Items/Accessories/BadgeofBravery.cs b/Items/Accessories/BadgeofBravery.cs index 4d99e0f5d6..6579e24380 100644 --- a/Items/Accessories/BadgeofBravery.cs +++ b/Items/Accessories/BadgeofBravery.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class BadgeofBravery : ModItem { @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories public override void OnCraft(Recipe recipe) { if (Main.rand.NextBool(40)) - recipe.createItem.type = mod.ItemType("SamuraiBadge"); + recipe.createItem.type = ModContent.ItemType(); else recipe.createItem.type = item.type; } diff --git a/Items/Accessories/BloodflareCore.cs b/Items/Accessories/BloodflareCore.cs index a9cd27593e..6bd2580865 100644 --- a/Items/Accessories/BloodflareCore.cs +++ b/Items/Accessories/BloodflareCore.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class BloodflareCore : ModItem { diff --git a/Items/Accessories/BloodyWormScarf.cs b/Items/Accessories/BloodyWormScarf.cs index df8d854844..d41488a247 100644 --- a/Items/Accessories/BloodyWormScarf.cs +++ b/Items/Accessories/BloodyWormScarf.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Neck)] public class BloodyWormScarf : ModItem diff --git a/Items/Accessories/BurdenBreaker.cs b/Items/Accessories/BurdenBreaker.cs index c02d6d3cb7..0aadfc1560 100644 --- a/Items/Accessories/BurdenBreaker.cs +++ b/Items/Accessories/BurdenBreaker.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class BurdenBreaker : ModItem { diff --git a/Items/Accessories/CelestialJewel.cs b/Items/Accessories/CelestialJewel.cs index f2a3eaa4af..8fe24bea11 100644 --- a/Items/Accessories/CelestialJewel.cs +++ b/Items/Accessories/CelestialJewel.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CelestialJewel : ModItem { diff --git a/Items/Accessories/ChaosAmulet.cs b/Items/Accessories/ChaosAmulet.cs index 4cc290ae54..1a8afa2978 100644 --- a/Items/Accessories/ChaosAmulet.cs +++ b/Items/Accessories/ChaosAmulet.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class ChaosAmulet : ModItem { diff --git a/Items/Accessories/CheatTestThing.cs b/Items/Accessories/CheatTestThing.cs index aaedd00b14..89d46238f0 100644 --- a/Items/Accessories/CheatTestThing.cs +++ b/Items/Accessories/CheatTestThing.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CheatTestThing : ModItem { diff --git a/Items/Accessories/CoinofDeceit.cs b/Items/Accessories/CoinofDeceit.cs index 16da40711d..2db56c226b 100644 --- a/Items/Accessories/CoinofDeceit.cs +++ b/Items/Accessories/CoinofDeceit.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CoinofDeceit : ModItem { diff --git a/Items/Accessories/CoreOfTheBloodGod.cs b/Items/Accessories/CoreOfTheBloodGod.cs index 71338c2d45..338ab59fe4 100644 --- a/Items/Accessories/CoreOfTheBloodGod.cs +++ b/Items/Accessories/CoreOfTheBloodGod.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CoreOfTheBloodGod : ModItem { diff --git a/Items/Accessories/CorruptFlask.cs b/Items/Accessories/CorruptFlask.cs index bc565dfcd8..3a9cc2d531 100644 --- a/Items/Accessories/CorruptFlask.cs +++ b/Items/Accessories/CorruptFlask.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CorruptFlask : ModItem { diff --git a/Items/Accessories/CounterScarf.cs b/Items/Accessories/CounterScarf.cs index 7e7d96dad4..6095396b75 100644 --- a/Items/Accessories/CounterScarf.cs +++ b/Items/Accessories/CounterScarf.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CounterScarf : ModItem { diff --git a/Items/Accessories/CrawCarapace.cs b/Items/Accessories/CrawCarapace.cs index 8162cb00a6..c410341cc0 100644 --- a/Items/Accessories/CrawCarapace.cs +++ b/Items/Accessories/CrawCarapace.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CrawCarapace : ModItem { diff --git a/Items/Accessories/CrimsonFlask.cs b/Items/Accessories/CrimsonFlask.cs index 66662272a0..33702aaba6 100644 --- a/Items/Accessories/CrimsonFlask.cs +++ b/Items/Accessories/CrimsonFlask.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CrimsonFlask : ModItem { diff --git a/Items/Accessories/CrownJewel.cs b/Items/Accessories/CrownJewel.cs index 763b17910f..a452afda0e 100644 --- a/Items/Accessories/CrownJewel.cs +++ b/Items/Accessories/CrownJewel.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class CrownJewel : ModItem { diff --git a/Items/Accessories/DaedalusEmblem.cs b/Items/Accessories/DaedalusEmblem.cs index b93930e0d2..f6a1cf9d01 100644 --- a/Items/Accessories/DaedalusEmblem.cs +++ b/Items/Accessories/DaedalusEmblem.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class DaedalusEmblem : ModItem { diff --git a/Items/Accessories/DarkGodsSheath.cs b/Items/Accessories/DarkGodsSheath.cs index f878d117b8..2bb5537ab7 100644 --- a/Items/Accessories/DarkGodsSheath.cs +++ b/Items/Accessories/DarkGodsSheath.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class DarkGodsSheath : ModItem { @@ -40,10 +40,10 @@ namespace CalamityMod.Items.Accessories public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("SilencingSheath")); - recipe.AddIngredient(mod.ItemType("RuinMedallion")); - recipe.AddIngredient(mod.ItemType("MeldiateBar"), 5); - recipe.AddIngredient(mod.ItemType("Stardust"), 25); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 25); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Accessories/DarkSunRing.cs b/Items/Accessories/DarkSunRing.cs index d9cb6ba272..ae4a39c727 100644 --- a/Items/Accessories/DarkSunRing.cs +++ b/Items/Accessories/DarkSunRing.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class DarkSunRing : ModItem { diff --git a/Items/Accessories/DeificAmulet.cs b/Items/Accessories/DeificAmulet.cs index dbd0f4ce20..6a5b8bc4c7 100644 --- a/Items/Accessories/DeificAmulet.cs +++ b/Items/Accessories/DeificAmulet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class DeificAmulet : ModItem { diff --git a/Items/Accessories/DimensionalSoulArtifact.cs b/Items/Accessories/DimensionalSoulArtifact.cs index de2f8a17d2..677736fd6b 100644 --- a/Items/Accessories/DimensionalSoulArtifact.cs +++ b/Items/Accessories/DimensionalSoulArtifact.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class DimensionalSoulArtifact : ModItem { diff --git a/Items/Accessories/DraedonsHeart.cs b/Items/Accessories/DraedonsHeart.cs index 52e3d737bd..644395d863 100644 --- a/Items/Accessories/DraedonsHeart.cs +++ b/Items/Accessories/DraedonsHeart.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class DraedonsHeart : ModItem { @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.draedonsHeart = true; - player.buffImmune[mod.BuffType("Horror")] = true; + player.buffImmune[ModContent.BuffType()] = true; modPlayer.draedonsStressGain = true; } diff --git a/Items/Accessories/DragonScales.cs b/Items/Accessories/DragonScales.cs index 6fc1e2c19d..f6094bb4bf 100644 --- a/Items/Accessories/DragonScales.cs +++ b/Items/Accessories/DragonScales.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class DragonScales : ModItem { diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs index 0a899efaca..f84af65226 100644 --- a/Items/Accessories/EclipseMirror.cs +++ b/Items/Accessories/EclipseMirror.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class EclipseMirror : ModItem { diff --git a/Items/Accessories/EldritchSoulArtifact.cs b/Items/Accessories/EldritchSoulArtifact.cs index f735849efa..8ac94f7daa 100644 --- a/Items/Accessories/EldritchSoulArtifact.cs +++ b/Items/Accessories/EldritchSoulArtifact.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class EldritchSoulArtifact : ModItem { diff --git a/Items/Accessories/ElementalGauntlet.cs b/Items/Accessories/ElementalGauntlet.cs index 9ad6b5ded2..02d2b95cd7 100644 --- a/Items/Accessories/ElementalGauntlet.cs +++ b/Items/Accessories/ElementalGauntlet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class ElementalGauntlet : ModItem { diff --git a/Items/Accessories/ElementalQuiver.cs b/Items/Accessories/ElementalQuiver.cs index 3f26c71a29..779b767866 100644 --- a/Items/Accessories/ElementalQuiver.cs +++ b/Items/Accessories/ElementalQuiver.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class ElementalQuiver : ModItem { diff --git a/Items/Accessories/EtherealTalisman.cs b/Items/Accessories/EtherealTalisman.cs index 5c24d0e5a6..b82e2d1f9b 100644 --- a/Items/Accessories/EtherealTalisman.cs +++ b/Items/Accessories/EtherealTalisman.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class EtherealTalisman : ModItem { diff --git a/Items/Accessories/EyeoftheStorm.cs b/Items/Accessories/EyeoftheStorm.cs index 3f23ef9fde..16ee7ab987 100644 --- a/Items/Accessories/EyeoftheStorm.cs +++ b/Items/Accessories/EyeoftheStorm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class EyeoftheStorm : ModItem { @@ -37,13 +37,13 @@ namespace CalamityMod.Items.Accessories modPlayer.cloudWaifu = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("CloudyWaifu")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("CloudyWaifu"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("CloudyWaifu"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Accessories/FeatherCrown.cs b/Items/Accessories/FeatherCrown.cs index 5ee0f3e6e0..ed6781748d 100644 --- a/Items/Accessories/FeatherCrown.cs +++ b/Items/Accessories/FeatherCrown.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class FeatherCrown : ModItem { @@ -34,14 +34,14 @@ namespace CalamityMod.Items.Accessories { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.GoldCrown); - recipe.AddIngredient(mod.ItemType("AerialiteBar"), 6); + recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddIngredient(ItemID.Feather, 8); recipe.AddTile(TileID.SkyMill); recipe.SetResult(this); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.PlatinumCrown); - recipe.AddIngredient(mod.ItemType("AerialiteBar"), 6); + recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddIngredient(ItemID.Feather, 8); recipe.AddTile(TileID.SkyMill); recipe.SetResult(this); diff --git a/Items/Accessories/FrigidBulwark.cs b/Items/Accessories/FrigidBulwark.cs index 6c7e45fad7..705ad17029 100644 --- a/Items/Accessories/FrigidBulwark.cs +++ b/Items/Accessories/FrigidBulwark.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class FrigidBulwark : ModItem { diff --git a/Items/Accessories/FrostBarrier.cs b/Items/Accessories/FrostBarrier.cs index 3ba5feaef2..255ef8caa2 100644 --- a/Items/Accessories/FrostBarrier.cs +++ b/Items/Accessories/FrostBarrier.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class FrostBarrier : ModItem { diff --git a/Items/Accessories/FrostFlare.cs b/Items/Accessories/FrostFlare.cs index 082a8bf0bc..56ea0761e8 100644 --- a/Items/Accessories/FrostFlare.cs +++ b/Items/Accessories/FrostFlare.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class FrostFlare : ModItem { diff --git a/Items/Accessories/FungalCarapace.cs b/Items/Accessories/FungalCarapace.cs index 4f9ee01b98..5dccedf422 100644 --- a/Items/Accessories/FungalCarapace.cs +++ b/Items/Accessories/FungalCarapace.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class FungalCarapace : ModItem { diff --git a/Items/Accessories/GiantShell.cs b/Items/Accessories/GiantShell.cs index 5be9f7d194..ab9bda9817 100644 --- a/Items/Accessories/GiantShell.cs +++ b/Items/Accessories/GiantShell.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class GiantShell : ModItem { diff --git a/Items/Accessories/GiantTortoiseShell.cs b/Items/Accessories/GiantTortoiseShell.cs index 6d85f1fa8f..aae9a36d07 100644 --- a/Items/Accessories/GiantTortoiseShell.cs +++ b/Items/Accessories/GiantTortoiseShell.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class GiantTortoiseShell : ModItem { diff --git a/Items/Accessories/GloveOfPrecicion.cs b/Items/Accessories/GloveOfPrecicion.cs index 193cdee8f6..62419ea6e9 100644 --- a/Items/Accessories/GloveOfPrecicion.cs +++ b/Items/Accessories/GloveOfPrecicion.cs @@ -1,9 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class GloveOfPrecicion : ModItem { diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs index 340478b985..7148c0ac5d 100644 --- a/Items/Accessories/GloveOfRecklessness.cs +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -1,9 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class GloveOfRecklessness : ModItem { diff --git a/Items/Accessories/GodlySoulArtifact.cs b/Items/Accessories/GodlySoulArtifact.cs index a7102eeb7a..6e77bb86d0 100644 --- a/Items/Accessories/GodlySoulArtifact.cs +++ b/Items/Accessories/GodlySoulArtifact.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class GodlySoulArtifact : ModItem { diff --git a/Items/Accessories/GoldBurdenBreaker.cs b/Items/Accessories/GoldBurdenBreaker.cs index 1ff71e1628..11bf4fb002 100644 --- a/Items/Accessories/GoldBurdenBreaker.cs +++ b/Items/Accessories/GoldBurdenBreaker.cs @@ -1,8 +1,8 @@ using CalamityMod.NPCs; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class GoldBurdenBreaker : ModItem { diff --git a/Items/Accessories/GrandGelatin.cs b/Items/Accessories/GrandGelatin.cs index c077d8d7e1..8997ec1fbf 100644 --- a/Items/Accessories/GrandGelatin.cs +++ b/Items/Accessories/GrandGelatin.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class GrandGelatin : ModItem { diff --git a/Items/Accessories/HarpyRing.cs b/Items/Accessories/HarpyRing.cs index 242a88b984..8f9c55f1ee 100644 --- a/Items/Accessories/HarpyRing.cs +++ b/Items/Accessories/HarpyRing.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class HarpyRing : ModItem { diff --git a/Items/Accessories/HeartofDarkness.cs b/Items/Accessories/HeartofDarkness.cs index 84f70f6e2f..0df81dded0 100644 --- a/Items/Accessories/HeartofDarkness.cs +++ b/Items/Accessories/HeartofDarkness.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class HeartofDarkness : ModItem { diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index f4eefc342c..d77dc9272e 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -3,9 +3,9 @@ using CalamityMod.World; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class HeartoftheElements : ModItem { @@ -62,35 +62,35 @@ namespace CalamityMod.Items.Accessories player.allDamage += 0.08f; int damage = NPC.downedMoonlord ? 150 : 90; float damageMult = CalamityWorld.downedDoG ? 2f : 1f; - if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] > 1 || - player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] > 1 || - player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] > 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || + player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 1 || + player.ownedProjectileCounts[ModContent.ProjectileType()] > 1) { - player.ClearBuff(mod.BuffType("HotE")); + player.ClearBuff(ModContent.BuffType()); } - if (player.FindBuffIndex(mod.BuffType("HotE")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("HotE"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("BigBustyRose"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } - if (player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SirenLure"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } - if (player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DrewsSandyWaifu"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } - if (player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SandyWaifu"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } - if (player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("CloudyWaifu"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } else @@ -103,11 +103,11 @@ namespace CalamityMod.Items.Accessories player.statManaMax2 += 60; player.manaCost *= 0.93f; player.allDamage += 0.1f; - if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] > 0 || player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] > 0 || - player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] > 0 || player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] > 0 || - player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 0 || + player.ownedProjectileCounts[ModContent.ProjectileType()] > 0 || player.ownedProjectileCounts[ModContent.ProjectileType()] > 0 || + player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { - player.ClearBuff(mod.BuffType("HotE")); + player.ClearBuff(ModContent.BuffType()); } } if (player.velocity.Y == 0f && player.grappling[0] == -1) diff --git a/Items/Accessories/HoneyDew.cs b/Items/Accessories/HoneyDew.cs index ee36f6da28..34659e1090 100644 --- a/Items/Accessories/HoneyDew.cs +++ b/Items/Accessories/HoneyDew.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class HoneyDew : ModItem { diff --git a/Items/Accessories/InkBomb.cs b/Items/Accessories/InkBomb.cs index cc67006140..4e6920b19a 100644 --- a/Items/Accessories/InkBomb.cs +++ b/Items/Accessories/InkBomb.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class InkBomb : ModItem { diff --git a/Items/Accessories/Laudanum.cs b/Items/Accessories/Laudanum.cs index 6d2ba27f6e..cf6f4918e7 100644 --- a/Items/Accessories/Laudanum.cs +++ b/Items/Accessories/Laudanum.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class Laudanum : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.laudanum = true; - player.buffImmune[mod.BuffType("Horror")] = true; + player.buffImmune[ModContent.BuffType()] = true; } } } diff --git a/Items/Accessories/LeadCore.cs b/Items/Accessories/LeadCore.cs index 94e4bc00a2..ef5b5c8663 100644 --- a/Items/Accessories/LeadCore.cs +++ b/Items/Accessories/LeadCore.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class LeadCore : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - player.buffImmune[mod.BuffType("Irradiated")] = true; + player.buffImmune[ModContent.BuffType()] = true; } } } diff --git a/Items/Accessories/LifeJelly.cs b/Items/Accessories/LifeJelly.cs index 05c0e60ad8..de3c250c2b 100644 --- a/Items/Accessories/LifeJelly.cs +++ b/Items/Accessories/LifeJelly.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class LifeJelly : ModItem { diff --git a/Items/Accessories/LivingDew.cs b/Items/Accessories/LivingDew.cs index 190774e87f..b51d40f2c4 100644 --- a/Items/Accessories/LivingDew.cs +++ b/Items/Accessories/LivingDew.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class LivingDew : ModItem { diff --git a/Items/Accessories/MagicLevelMeter.cs b/Items/Accessories/MagicLevelMeter.cs index 51d1f64228..896dba8ed5 100644 --- a/Items/Accessories/MagicLevelMeter.cs +++ b/Items/Accessories/MagicLevelMeter.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class MagicLevelMeter : ModItem { diff --git a/Items/Accessories/ManaJelly.cs b/Items/Accessories/ManaJelly.cs index 4beb850e8c..9a33dbcbfe 100644 --- a/Items/Accessories/ManaJelly.cs +++ b/Items/Accessories/ManaJelly.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class ManaJelly : ModItem { diff --git a/Items/Accessories/MeleeLevelMeter.cs b/Items/Accessories/MeleeLevelMeter.cs index c898e93344..b71b3b7a68 100644 --- a/Items/Accessories/MeleeLevelMeter.cs +++ b/Items/Accessories/MeleeLevelMeter.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class MeleeLevelMeter : ModItem { diff --git a/Items/Accessories/MirageMirror.cs b/Items/Accessories/MirageMirror.cs index b3b38bf07b..1d1555ff57 100644 --- a/Items/Accessories/MirageMirror.cs +++ b/Items/Accessories/MirageMirror.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class MirageMirror : ModItem { diff --git a/Items/Accessories/MomentumCapacitor.cs b/Items/Accessories/MomentumCapacitor.cs index 661ed23eee..65490f37dd 100644 --- a/Items/Accessories/MomentumCapacitor.cs +++ b/Items/Accessories/MomentumCapacitor.cs @@ -1,9 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class MomentumCapacitor : ModItem { diff --git a/Items/Accessories/MoonstoneCrown.cs b/Items/Accessories/MoonstoneCrown.cs index 1e7091f1d5..4901424464 100644 --- a/Items/Accessories/MoonstoneCrown.cs +++ b/Items/Accessories/MoonstoneCrown.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class MoonstoneCrown : ModItem { @@ -34,9 +34,9 @@ namespace CalamityMod.Items.Accessories public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("FeatherCrown")); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ItemID.LunarBar, 5); - recipe.AddIngredient(mod.ItemType("GalacticaSingularity"), 5); + recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index 696a3add75..9b7d2f315f 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class Nanotech : ModItem { diff --git a/Items/Accessories/NecklaceofVexation.cs b/Items/Accessories/NecklaceofVexation.cs index 338911ac03..a8ac0f12e4 100644 --- a/Items/Accessories/NecklaceofVexation.cs +++ b/Items/Accessories/NecklaceofVexation.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class NecklaceofVexation : ModItem { diff --git a/Items/Accessories/OldDie.cs b/Items/Accessories/OldDie.cs index 05b3a9126f..fd7e42b0b1 100644 --- a/Items/Accessories/OldDie.cs +++ b/Items/Accessories/OldDie.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class OldDie : ModItem { diff --git a/Items/Accessories/OrnateShield.cs b/Items/Accessories/OrnateShield.cs index dc74f490b0..1b6f1c02a4 100644 --- a/Items/Accessories/OrnateShield.cs +++ b/Items/Accessories/OrnateShield.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class OrnateShield : ModItem { diff --git a/Items/Accessories/PlagueHive.cs b/Items/Accessories/PlagueHive.cs index 756f98a3d7..7e7538f4e4 100644 --- a/Items/Accessories/PlagueHive.cs +++ b/Items/Accessories/PlagueHive.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class PlagueHive : ModItem { @@ -45,14 +45,14 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - player.buffImmune[mod.BuffType("Plague")] = true; + player.buffImmune[ModContent.BuffType()] = true; player.bee = true; modPlayer.uberBees = true; player.strongBees = true; modPlayer.alchFlask = true; int plagueCounter = 0; Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.1f, 2f, 0.2f); - int num = mod.BuffType("Plague"); + int num = ModContent.BuffType(); float num2 = 300f; bool flag = plagueCounter % 60 == 0; int num3 = 60; diff --git a/Items/Accessories/PsychoticAmulet.cs b/Items/Accessories/PsychoticAmulet.cs index 7aa25d41e2..1a609dcc58 100644 --- a/Items/Accessories/PsychoticAmulet.cs +++ b/Items/Accessories/PsychoticAmulet.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class PsychoticAmulet : ModItem { diff --git a/Items/Accessories/RadiantOoze.cs b/Items/Accessories/RadiantOoze.cs index bdbdba1684..f4d2fd571d 100644 --- a/Items/Accessories/RadiantOoze.cs +++ b/Items/Accessories/RadiantOoze.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class RadiantOoze : ModItem { diff --git a/Items/Accessories/RaidersTalisman.cs b/Items/Accessories/RaidersTalisman.cs index 2a40c74956..0f77fdbc98 100644 --- a/Items/Accessories/RaidersTalisman.cs +++ b/Items/Accessories/RaidersTalisman.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class RaidersTalisman : ModItem { diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index a7eeab2466..3fa2898ad5 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class RampartofDeities : ModItem { diff --git a/Items/Accessories/RangedLevelMeter.cs b/Items/Accessories/RangedLevelMeter.cs index 87440ad6f1..45498732b2 100644 --- a/Items/Accessories/RangedLevelMeter.cs +++ b/Items/Accessories/RangedLevelMeter.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class RangedLevelMeter : ModItem { diff --git a/Items/Accessories/RareVariants/DeepDiver.cs b/Items/Accessories/RareVariants/DeepDiver.cs index 858b964cc2..babe8da913 100644 --- a/Items/Accessories/RareVariants/DeepDiver.cs +++ b/Items/Accessories/RareVariants/DeepDiver.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class DeepDiver : ModItem { diff --git a/Items/Accessories/RareVariants/FabledTortoiseShell.cs b/Items/Accessories/RareVariants/FabledTortoiseShell.cs index 71eff71ab7..86a9dab6c0 100644 --- a/Items/Accessories/RareVariants/FabledTortoiseShell.cs +++ b/Items/Accessories/RareVariants/FabledTortoiseShell.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class FabledTortoiseShell : ModItem { diff --git a/Items/Accessories/RareVariants/HideofAstrumDeus.cs b/Items/Accessories/RareVariants/HideofAstrumDeus.cs index ad05e799d3..453b25c0a3 100644 --- a/Items/Accessories/RareVariants/HideofAstrumDeus.cs +++ b/Items/Accessories/RareVariants/HideofAstrumDeus.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class HideofAstrumDeus : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories.RareVariants { CalamityPlayer modPlayer = player.Calamity(); modPlayer.aBulwark = true; - player.buffImmune[mod.BuffType("AstralInfectionDebuff")] = true; + player.buffImmune[ModContent.BuffType()] = true; modPlayer.aBulwarkRare = true; player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.OnFire] = true; diff --git a/Items/Accessories/RareVariants/Regenator.cs b/Items/Accessories/RareVariants/Regenator.cs index 76f1356d2f..6d2d5942df 100644 --- a/Items/Accessories/RareVariants/Regenator.cs +++ b/Items/Accessories/RareVariants/Regenator.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class Regenator : ModItem { diff --git a/Items/Accessories/RareVariants/SamuraiBadge.cs b/Items/Accessories/RareVariants/SamuraiBadge.cs index 2d3caa6a5a..8f8ace72a3 100644 --- a/Items/Accessories/RareVariants/SamuraiBadge.cs +++ b/Items/Accessories/RareVariants/SamuraiBadge.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class SamuraiBadge : ModItem { diff --git a/Items/Accessories/RareVariants/TheBee.cs b/Items/Accessories/RareVariants/TheBee.cs index 18842cfdab..3ae06eaa28 100644 --- a/Items/Accessories/RareVariants/TheBee.cs +++ b/Items/Accessories/RareVariants/TheBee.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class TheBee : ModItem { diff --git a/Items/Accessories/RareVariants/TheEvolution.cs b/Items/Accessories/RareVariants/TheEvolution.cs index 26c2342903..c5d2b12c1d 100644 --- a/Items/Accessories/RareVariants/TheEvolution.cs +++ b/Items/Accessories/RareVariants/TheEvolution.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class TheEvolution : ModItem { diff --git a/Items/Accessories/RareVariants/TheTransformer.cs b/Items/Accessories/RareVariants/TheTransformer.cs index e21b3fba8b..7a657b2020 100644 --- a/Items/Accessories/RareVariants/TheTransformer.cs +++ b/Items/Accessories/RareVariants/TheTransformer.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.RareVariants +namespace CalamityMod.Items { public class TheTransformer : ModItem { diff --git a/Items/Accessories/RogueEmblem.cs b/Items/Accessories/RogueEmblem.cs index 7dd74b044c..e443c0e5db 100644 --- a/Items/Accessories/RogueEmblem.cs +++ b/Items/Accessories/RogueEmblem.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class RogueEmblem : ModItem { diff --git a/Items/Accessories/RogueLevelMeter.cs b/Items/Accessories/RogueLevelMeter.cs index 3997c2a52c..74b428f7a5 100644 --- a/Items/Accessories/RogueLevelMeter.cs +++ b/Items/Accessories/RogueLevelMeter.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class RogueLevelMeter : ModItem { diff --git a/Items/Accessories/RuinMedallion.cs b/Items/Accessories/RuinMedallion.cs index 9b6bdb746e..3bfb61b790 100644 --- a/Items/Accessories/RuinMedallion.cs +++ b/Items/Accessories/RuinMedallion.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class RuinMedallion : ModItem { @@ -34,9 +34,9 @@ namespace CalamityMod.Items.Accessories public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("CoinofDeceit")); - recipe.AddIngredient(mod.ItemType("UnholyCore"), 4); - recipe.AddIngredient(mod.ItemType("EssenceofChaos"), 2); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Accessories/SeaShell.cs b/Items/Accessories/SeaShell.cs index c47b496b3f..db7b4d1d80 100644 --- a/Items/Accessories/SeaShell.cs +++ b/Items/Accessories/SeaShell.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class SeaShell : ModItem { diff --git a/Items/Accessories/ShieldoftheOcean.cs b/Items/Accessories/ShieldoftheOcean.cs index 5aeb014610..60526b5035 100644 --- a/Items/Accessories/ShieldoftheOcean.cs +++ b/Items/Accessories/ShieldoftheOcean.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class ShieldoftheOcean : ModItem { diff --git a/Items/Accessories/SigilofCalamitas.cs b/Items/Accessories/SigilofCalamitas.cs index 0ee9e77e12..fab3789cc5 100644 --- a/Items/Accessories/SigilofCalamitas.cs +++ b/Items/Accessories/SigilofCalamitas.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class SigilofCalamitas : ModItem { diff --git a/Items/Accessories/SilencingSheath.cs b/Items/Accessories/SilencingSheath.cs index 29e136640a..a8b47abffb 100644 --- a/Items/Accessories/SilencingSheath.cs +++ b/Items/Accessories/SilencingSheath.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class SilencingSheath : ModItem { diff --git a/Items/Accessories/SpiritGenerator.cs b/Items/Accessories/SpiritGenerator.cs index 2a55d0cd7a..b652c68cfe 100644 --- a/Items/Accessories/SpiritGenerator.cs +++ b/Items/Accessories/SpiritGenerator.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class SpiritGenerator : ModItem { diff --git a/Items/Accessories/Sponge.cs b/Items/Accessories/Sponge.cs index 76c6cc2ba4..ba9ca13bd7 100644 --- a/Items/Accessories/Sponge.cs +++ b/Items/Accessories/Sponge.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class Sponge : ModItem { diff --git a/Items/Accessories/StatisBeltOfCurses.cs b/Items/Accessories/StatisBeltOfCurses.cs index 95800bf8aa..fb108a181c 100644 --- a/Items/Accessories/StatisBeltOfCurses.cs +++ b/Items/Accessories/StatisBeltOfCurses.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class StatisBeltOfCurses : ModItem { diff --git a/Items/Accessories/StatisBlessing.cs b/Items/Accessories/StatisBlessing.cs index ecfda99d24..e15379d4db 100644 --- a/Items/Accessories/StatisBlessing.cs +++ b/Items/Accessories/StatisBlessing.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class StatisBlessing : ModItem { diff --git a/Items/Accessories/StatisCurse.cs b/Items/Accessories/StatisCurse.cs index cdfb5bd1ea..923cea60c5 100644 --- a/Items/Accessories/StatisCurse.cs +++ b/Items/Accessories/StatisCurse.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class StatisCurse : ModItem { diff --git a/Items/Accessories/StatisNinjaBelt.cs b/Items/Accessories/StatisNinjaBelt.cs index 7b04b23dda..5a0ac0bba4 100644 --- a/Items/Accessories/StatisNinjaBelt.cs +++ b/Items/Accessories/StatisNinjaBelt.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class StatisNinjaBelt : ModItem { diff --git a/Items/Accessories/StressPills.cs b/Items/Accessories/StressPills.cs index 4a45ceb705..37513e5880 100644 --- a/Items/Accessories/StressPills.cs +++ b/Items/Accessories/StressPills.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class StressPills : ModItem { diff --git a/Items/Accessories/SummonLevelMeter.cs b/Items/Accessories/SummonLevelMeter.cs index a72c6d532f..d75cd9aba9 100644 --- a/Items/Accessories/SummonLevelMeter.cs +++ b/Items/Accessories/SummonLevelMeter.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class SummonLevelMeter : ModItem { diff --git a/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs b/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs index 64eb944efb..f2e7a6b857 100644 --- a/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs +++ b/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class SupremeBaitTackleBoxFishingStation : ModItem { diff --git a/Items/Accessories/TheAbsorber.cs b/Items/Accessories/TheAbsorber.cs index a6adfae234..601a53395a 100644 --- a/Items/Accessories/TheAbsorber.cs +++ b/Items/Accessories/TheAbsorber.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class TheAbsorber : ModItem { diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index 6405794b0e..f1c6af34f4 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -4,9 +4,9 @@ using System; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class TheAmalgam : ModItem { @@ -57,13 +57,13 @@ namespace CalamityMod.Items.Accessories modPlayer.fungalClump = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("FungalClump")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("FungalClump"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("FungalClump"), (int)(1000f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(1000f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); } } player.allDamage += 0.15f; @@ -84,7 +84,7 @@ namespace CalamityMod.Items.Accessories { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("PoisonousSeawater"), 2000, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 2000, 0f, player.whoAmI, 0f, 0f); } } if (player.immune) @@ -106,7 +106,7 @@ namespace CalamityMod.Items.Accessories num18 = (float)num17 / num18; num15 *= num18; num16 *= num18; - int type = Main.rand.NextBool(2) ? mod.ProjectileType("AuraRain") : mod.ProjectileType("StandingFire"); + int type = Main.rand.NextBool(2) ? ModContent.ProjectileType() : ModContent.ProjectileType(); int num19 = Projectile.NewProjectile(x, y, num15, num16, type, 2000, 1f, player.whoAmI, 0f, 0f); Main.projectile[num19].tileCollide = false; } @@ -173,7 +173,7 @@ namespace CalamityMod.Items.Accessories spawn.X = spawn.X + i * 30 - (FireProjectiles * 15); Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-FireAngleSpread / 2 + (FireAngleSpread * i / (float)FireProjectiles))); velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; - int projectile = Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, mod.ProjectileType("BrimstoneHellfireballFriendly2"), 2000, 5f, Main.myPlayer, 0f, 0f); + int projectile = Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), 2000, 5f, Main.myPlayer, 0f, 0f); Main.projectile[projectile].tileCollide = false; Main.projectile[projectile].timeLeft = 50; } diff --git a/Items/Accessories/TheCommunity.cs b/Items/Accessories/TheCommunity.cs index 01c5289459..4b8f9f8085 100644 --- a/Items/Accessories/TheCommunity.cs +++ b/Items/Accessories/TheCommunity.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class TheCommunity : ModItem { diff --git a/Items/Accessories/TheFirstShadowflame.cs b/Items/Accessories/TheFirstShadowflame.cs index 982bd94cdd..41f6ee8c38 100644 --- a/Items/Accessories/TheFirstShadowflame.cs +++ b/Items/Accessories/TheFirstShadowflame.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class TheFirstShadowflame : ModItem { diff --git a/Items/Accessories/VitalJelly.cs b/Items/Accessories/VitalJelly.cs index 35dcd9f7d0..4bcc981759 100644 --- a/Items/Accessories/VitalJelly.cs +++ b/Items/Accessories/VitalJelly.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class VitalJelly : ModItem { diff --git a/Items/Accessories/VoidofExtinction.cs b/Items/Accessories/VoidofExtinction.cs index 055dfe5ba9..38e4c819a3 100644 --- a/Items/Accessories/VoidofExtinction.cs +++ b/Items/Accessories/VoidofExtinction.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class VoidofExtinction : ModItem { @@ -84,7 +84,7 @@ namespace CalamityMod.Items.Accessories num18 = (float)num17 / num18; num15 *= num18; num16 *= num18; - int num19 = Projectile.NewProjectile(x, y, num15, num16, mod.ProjectileType("StandingFire"), 40, 5f, player.whoAmI, 0f, 0f); + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), 40, 5f, player.whoAmI, 0f, 0f); Main.projectile[num19].ai[1] = player.position.Y; } } @@ -114,7 +114,7 @@ namespace CalamityMod.Items.Accessories spawn.X = spawn.X + i * 30 - (FireProjectiles * 15); Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-FireAngleSpread / 2 + (FireAngleSpread * i / (float)FireProjectiles))); velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; - int projectile = Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, mod.ProjectileType("BrimstoneHellfireballFriendly2"), 70, 5f, Main.myPlayer, 0f, 0f); + int projectile = Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), 70, 5f, Main.myPlayer, 0f, 0f); Main.projectile[projectile].tileCollide = false; Main.projectile[projectile].timeLeft = 50; } diff --git a/Items/Accessories/WifeinaBottle.cs b/Items/Accessories/WifeinaBottle.cs index ffe0aed4c9..f92f94c939 100644 --- a/Items/Accessories/WifeinaBottle.cs +++ b/Items/Accessories/WifeinaBottle.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class WifeinaBottle : ModItem { @@ -37,13 +37,13 @@ namespace CalamityMod.Items.Accessories modPlayer.sandWaifu = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("SandyWaifu")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("SandyWaifu"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SandyWaifu"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Accessories/WifeinaBottlewithBoobs.cs b/Items/Accessories/WifeinaBottlewithBoobs.cs index 9c933303c2..a7ff550e9e 100644 --- a/Items/Accessories/WifeinaBottlewithBoobs.cs +++ b/Items/Accessories/WifeinaBottlewithBoobs.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class WifeinaBottlewithBoobs : ModItem { @@ -39,13 +39,13 @@ namespace CalamityMod.Items.Accessories modPlayer.sandBoobWaifu = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("DrewsSandyWaifu")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("DrewsSandyWaifu"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DrewsSandyWaifu"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Accessories/Wings/AureateWings.cs b/Items/Accessories/Wings/AureateWings.cs index 8805001379..ce34866de4 100644 --- a/Items/Accessories/Wings/AureateWings.cs +++ b/Items/Accessories/Wings/AureateWings.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class AureateWings : ModItem @@ -31,10 +31,10 @@ namespace CalamityMod.Items.Accessories.Wings public override void UpdateAccessory(Player player, bool hideVisual) { - if ((player.armor[0].type == mod.ItemType("ReaverCap") || player.armor[0].type == mod.ItemType("ReaverHelm") || - player.armor[0].type == mod.ItemType("ReaverHelmet") || player.armor[0].type == mod.ItemType("ReaverMask") || - player.armor[0].type == mod.ItemType("ReaverVisage")) && - player.armor[1].type == mod.ItemType("ReaverScaleMail") && player.armor[2].type == mod.ItemType("ReaverCuisses")) + if ((player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType()) && + player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) { player.moveSpeed += 0.15f; } diff --git a/Items/Accessories/Wings/CelestialTracers.cs b/Items/Accessories/Wings/CelestialTracers.cs index 5ee66975fb..489fae262e 100644 --- a/Items/Accessories/Wings/CelestialTracers.cs +++ b/Items/Accessories/Wings/CelestialTracers.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class CelestialTracers : ModItem diff --git a/Items/Accessories/Wings/DiscordianWings.cs b/Items/Accessories/Wings/DiscordianWings.cs index a0c5a6be7f..a8379bf8a3 100644 --- a/Items/Accessories/Wings/DiscordianWings.cs +++ b/Items/Accessories/Wings/DiscordianWings.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class DiscordianWings : ModItem @@ -31,10 +31,10 @@ namespace CalamityMod.Items.Accessories.Wings public override void UpdateAccessory(Player player, bool hideVisual) { - if ((player.armor[0].type == mod.ItemType("AtaxiaHeadgear") || player.armor[0].type == mod.ItemType("AtaxiaHelm") || - player.armor[0].type == mod.ItemType("AtaxiaHelmet") || player.armor[0].type == mod.ItemType("AtaxiaHood") || - player.armor[0].type == mod.ItemType("AtaxiaMask")) && - player.armor[1].type == mod.ItemType("AtaxiaArmor") && player.armor[2].type == mod.ItemType("AtaxiaSubligar")) + if ((player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType()) && + player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) { player.allDamage += 0.1f; } diff --git a/Items/Accessories/Wings/DrewsWings.cs b/Items/Accessories/Wings/DrewsWings.cs index 00627b4f86..4ac9aa1f71 100644 --- a/Items/Accessories/Wings/DrewsWings.cs +++ b/Items/Accessories/Wings/DrewsWings.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class DrewsWings : ModItem diff --git a/Items/Accessories/Wings/ElysianTracers.cs b/Items/Accessories/Wings/ElysianTracers.cs index cd301dcc37..9b8ddd09f1 100644 --- a/Items/Accessories/Wings/ElysianTracers.cs +++ b/Items/Accessories/Wings/ElysianTracers.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class ElysianTracers : ModItem diff --git a/Items/Accessories/Wings/HadarianWings.cs b/Items/Accessories/Wings/HadarianWings.cs index e7624cc8b7..ab5872f749 100644 --- a/Items/Accessories/Wings/HadarianWings.cs +++ b/Items/Accessories/Wings/HadarianWings.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class HadarianWings : ModItem @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories.Wings public override void UpdateAccessory(Player player, bool hideVisual) { - if (player.armor[0].type == mod.ItemType("AstralHelm") && player.armor[1].type == mod.ItemType("AstralBreastplate") && player.armor[2].type == mod.ItemType("AstralLeggings")) + if (player.armor[0].type == ModContent.ItemType() && player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) { player.moveSpeed += 0.2f; player.jumpSpeedBoost += 0.4f; @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Accessories.Wings { num59 = -40; } - int num60 = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)num59, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.75f); + int num60 = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)num59, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, ModContent.DustType(), 0f, 0f, 100, default, 1.75f); Main.dust[num60].noGravity = true; Main.dust[num60].velocity *= 0.3f; if (Main.rand.NextBool(10)) diff --git a/Items/Accessories/Wings/InfinityBoots.cs b/Items/Accessories/Wings/InfinityBoots.cs index 3870b14e54..853db76976 100644 --- a/Items/Accessories/Wings/InfinityBoots.cs +++ b/Items/Accessories/Wings/InfinityBoots.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings, EquipType.Shoes)] public class InfinityBoots : ModItem diff --git a/Items/Accessories/Wings/MOAB.cs b/Items/Accessories/Wings/MOAB.cs index 9807dc35f7..05a695f473 100644 --- a/Items/Accessories/Wings/MOAB.cs +++ b/Items/Accessories/Wings/MOAB.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class MOAB : ModItem diff --git a/Items/Accessories/Wings/SkylineWings.cs b/Items/Accessories/Wings/SkylineWings.cs index d67d7f6722..605fa1310d 100644 --- a/Items/Accessories/Wings/SkylineWings.cs +++ b/Items/Accessories/Wings/SkylineWings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class SkylineWings : ModItem diff --git a/Items/Accessories/Wings/StarlightWings.cs b/Items/Accessories/Wings/StarlightWings.cs index 62fd8ccd41..0a9167bf4c 100644 --- a/Items/Accessories/Wings/StarlightWings.cs +++ b/Items/Accessories/Wings/StarlightWings.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class StarlightWings : ModItem @@ -31,10 +31,10 @@ namespace CalamityMod.Items.Accessories.Wings public override void UpdateAccessory(Player player, bool hideVisual) { - if ((player.armor[0].type == mod.ItemType("DaedalusHat") || player.armor[0].type == mod.ItemType("DaedalusHeadgear") || - player.armor[0].type == mod.ItemType("DaedalusHelm") || player.armor[0].type == mod.ItemType("DaedalusHelmet") || - player.armor[0].type == mod.ItemType("DaedalusVisor")) && - player.armor[1].type == mod.ItemType("DaedalusBreastplate") && player.armor[2].type == mod.ItemType("DaedalusLeggings")) + if ((player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType()) && + player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) { player.allDamage += 0.05f; player.Calamity().AllCritBoost(5); diff --git a/Items/Accessories/Wings/TarragonWings.cs b/Items/Accessories/Wings/TarragonWings.cs index ba48aee9bd..5d8d92f194 100644 --- a/Items/Accessories/Wings/TarragonWings.cs +++ b/Items/Accessories/Wings/TarragonWings.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class TarragonWings : ModItem @@ -42,10 +42,10 @@ namespace CalamityMod.Items.Accessories.Wings public override void UpdateAccessory(Player player, bool hideVisual) { - if ((player.armor[0].type == mod.ItemType("TarragonHelm") || player.armor[0].type == mod.ItemType("TarragonHelmet") || - player.armor[0].type == mod.ItemType("TarragonHornedHelm") || player.armor[0].type == mod.ItemType("TarragonMask") || - player.armor[0].type == mod.ItemType("TarragonVisage")) && - player.armor[1].type == mod.ItemType("TarragonBreastplate") && player.armor[2].type == mod.ItemType("TarragonLeggings")) + if ((player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType()) && + player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) { player.statDefense += 15; player.lifeRegen += 2; diff --git a/Items/Accessories/Wings/XerocWings.cs b/Items/Accessories/Wings/XerocWings.cs index eb96c147c7..54fc4f0a68 100644 --- a/Items/Accessories/Wings/XerocWings.cs +++ b/Items/Accessories/Wings/XerocWings.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories.Wings +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class XerocWings : ModItem @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories.Wings public override void UpdateAccessory(Player player, bool hideVisual) { - if (player.armor[0].type == mod.ItemType("XerocMask") && player.armor[1].type == mod.ItemType("XerocPlateMail") && player.armor[2].type == mod.ItemType("XerocCuisses")) + if (player.armor[0].type == ModContent.ItemType() && player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) { player.Calamity().throwingDamage += 0.05f; player.Calamity().throwingCrit += 5; diff --git a/Items/Accessories/YharimsInsignia.cs b/Items/Accessories/YharimsInsignia.cs index 53511cfc6d..7d641a9f5a 100644 --- a/Items/Accessories/YharimsInsignia.cs +++ b/Items/Accessories/YharimsInsignia.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Accessories +namespace CalamityMod.Items { public class YharimsInsignia : ModItem { diff --git a/Items/Amidias/AmidiasTrident.cs b/Items/Amidias/AmidiasTrident.cs index 1a031a05f8..cc0447bf96 100644 --- a/Items/Amidias/AmidiasTrident.cs +++ b/Items/Amidias/AmidiasTrident.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Amidias +namespace CalamityMod.Items { public class AmidiasTrident : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Amidias item.height = 44; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("AmidiasTridentProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Amidias/CoralCannon.cs b/Items/Amidias/CoralCannon.cs index 8b5b01f6d7..c83f3c9c98 100644 --- a/Items/Amidias/CoralCannon.cs +++ b/Items/Amidias/CoralCannon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Amidias +namespace CalamityMod.Items { public class CoralCannon : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Amidias item.rare = 2; item.UseSound = SoundID.Item61; item.autoReuse = true; - item.shoot = mod.ProjectileType("SmallCoral"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Amidias { if (Main.rand.NextBool(5)) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BigCoral"), (int)((double)damage * 2.0), knockBack * 2f, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 2.0), knockBack * 2f, player.whoAmI, 0.0f, 0.0f); } else { diff --git a/Items/Amidias/MagicalConch.cs b/Items/Amidias/MagicalConch.cs index 61c59f6b6f..e661b17712 100644 --- a/Items/Amidias/MagicalConch.cs +++ b/Items/Amidias/MagicalConch.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Amidias +namespace CalamityMod.Items { public class MagicalConch : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Amidias item.rare = 2; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("HermitCrab"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Amidias num79 = 0f; vector2.X = (float)Main.mouseX + Main.screenPosition.X; vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, mod.ProjectileType("HermitCrab"), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); return false; } } diff --git a/Items/Amidias/Shellshooter.cs b/Items/Amidias/Shellshooter.cs index a527344ca3..f1c565217f 100644 --- a/Items/Amidias/Shellshooter.cs +++ b/Items/Amidias/Shellshooter.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Amidias +namespace CalamityMod.Items { public class Shellshooter : ModItem { @@ -28,14 +28,14 @@ namespace CalamityMod.Items.Amidias item.rare = 2; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("Shell"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1.5f; item.useAmmo = 40; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Shell"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Amidias/UrchinFlail.cs b/Items/Amidias/UrchinFlail.cs index dab13b76a1..86d9fc1319 100644 --- a/Items/Amidias/UrchinFlail.cs +++ b/Items/Amidias/UrchinFlail.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Amidias +namespace CalamityMod.Items { public class UrchinFlail : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Amidias item.UseSound = SoundID.Item1; item.autoReuse = true; item.channel = true; - item.shoot = mod.ProjectileType("UrchinBall"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } } diff --git a/Items/Amidias/Waywasher.cs b/Items/Amidias/Waywasher.cs index 5f8e94a2fa..30cfbfd8aa 100644 --- a/Items/Amidias/Waywasher.cs +++ b/Items/Amidias/Waywasher.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Amidias +namespace CalamityMod.Items { public class Waywasher : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Amidias item.rare = 2; item.UseSound = SoundID.Item8; item.autoReuse = true; - item.shoot = mod.ProjectileType("WaywasherProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Amidias { float SpeedX = speedX + (float)Main.rand.Next(-20, 21) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("WaywasherProj"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Ammo/AstralSolution.cs b/Items/Ammo/AstralSolution.cs index ba93aed2a3..b039cebf35 100644 --- a/Items/Ammo/AstralSolution.cs +++ b/Items/Ammo/AstralSolution.cs @@ -1,9 +1,9 @@  using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Ammo +namespace CalamityMod.Items { public class AstralSolution : ModItem { @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Ammo public override void SetDefaults() { item.ammo = AmmoID.Solution; - item.shoot = mod.ProjectileType("AstralSpray") - ProjectileID.PureSpray; + item.shoot = ModContent.ProjectileType() - ProjectileID.PureSpray; item.width = 10; item.height = 12; item.value = Item.buyPrice(0, 0, 5, 0); diff --git a/Items/AquaticScourge/AquaticEmblem.cs b/Items/AquaticScourge/AquaticEmblem.cs index 0d8078a2a5..b8c6c004da 100644 --- a/Items/AquaticScourge/AquaticEmblem.cs +++ b/Items/AquaticScourge/AquaticEmblem.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AquaticScourge +namespace CalamityMod.Items { public class AquaticEmblem : ModItem { diff --git a/Items/AquaticScourge/AquaticScourgeBag.cs b/Items/AquaticScourge/AquaticScourgeBag.cs index c46db8bdab..a609319846 100644 --- a/Items/AquaticScourge/AquaticScourgeBag.cs +++ b/Items/AquaticScourge/AquaticScourgeBag.cs @@ -1,13 +1,14 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AquaticScourge +namespace CalamityMod.Items { public class AquaticScourgeBag : ModItem { - public override int BossBagNPC => mod.NPCType("AquaticScourgeHead"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -36,21 +37,21 @@ namespace CalamityMod.Items.AquaticScourge // Materials (Souls of Sight are Hardmode only) DropHelper.DropItemCondition(player, ItemID.SoulofSight, Main.hardMode, 25, 40); - DropHelper.DropItem(player, mod.ItemType("VictoryShard"), 15, 25); + DropHelper.DropItem(player, ModContent.ItemType(), 15, 25); DropHelper.DropItem(player, ItemID.Coral, 7, 11); DropHelper.DropItem(player, ItemID.Seashell, 7, 11); DropHelper.DropItem(player, ItemID.Starfish, 7, 11); // Weapons (Hardmode only) - DropHelper.DropItemCondition(player, mod.ItemType("SubmarineShocker"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("Barinautical"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("Downpour"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("DeepseaStaff"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("ScourgeoftheSeas"), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); // Equipment (Emblem is Hardmode only) - DropHelper.DropItemCondition(player, mod.ItemType("AquaticEmblem"), Main.hardMode); - DropHelper.DropItemChance(player, mod.ItemType("AeroStone"), 8); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode); + DropHelper.DropItemChance(player, ModContent.ItemType(), 8); // Vanity // there is no Aquatic Scourge mask yet diff --git a/Items/AquaticScourge/Seafood.cs b/Items/AquaticScourge/Seafood.cs index ef6d186bed..88800d76b0 100644 --- a/Items/AquaticScourge/Seafood.cs +++ b/Items/AquaticScourge/Seafood.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AquaticScourge +namespace CalamityMod.Items { public class Seafood : ModItem { @@ -29,12 +29,12 @@ namespace CalamityMod.Items.AquaticScourge public override bool CanUseItem(Player player) { CalamityPlayer modPlayer = player.Calamity(); - return modPlayer.ZoneSulphur && !NPC.AnyNPCs(mod.NPCType("AquaticScourgeHead")); + return modPlayer.ZoneSulphur && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("AquaticScourgeHead")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Armor/AbyssalDivingSuit.cs b/Items/Armor/AbyssalDivingSuit.cs index c2fef54bfb..2c1ff0bda7 100644 --- a/Items/Armor/AbyssalDivingSuit.cs +++ b/Items/Armor/AbyssalDivingSuit.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { public class AbyssalDivingSuit : ModItem { diff --git a/Items/Armor/AerospecBreastplate.cs b/Items/Armor/AerospecBreastplate.cs index cf01113300..2fb243ba99 100644 --- a/Items/Armor/AerospecBreastplate.cs +++ b/Items/Armor/AerospecBreastplate.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class AerospecBreastplate : ModItem diff --git a/Items/Armor/AerospecHat.cs b/Items/Armor/AerospecHat.cs index 87823df28d..06568808cd 100644 --- a/Items/Armor/AerospecHat.cs +++ b/Items/Armor/AerospecHat.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AerospecHat : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AerospecBreastplate") && legs.type == mod.ItemType("AerospecLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AerospecHeadgear.cs b/Items/Armor/AerospecHeadgear.cs index 795beceda4..67d752e12c 100644 --- a/Items/Armor/AerospecHeadgear.cs +++ b/Items/Armor/AerospecHeadgear.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AerospecHeadgear : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AerospecBreastplate") && legs.type == mod.ItemType("AerospecLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AerospecHelm.cs b/Items/Armor/AerospecHelm.cs index c2672a58c4..8b7eaaa1e8 100644 --- a/Items/Armor/AerospecHelm.cs +++ b/Items/Armor/AerospecHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AerospecHelm : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AerospecBreastplate") && legs.type == mod.ItemType("AerospecLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AerospecHelmet.cs b/Items/Armor/AerospecHelmet.cs index 1e0ca70975..d619ae67a8 100644 --- a/Items/Armor/AerospecHelmet.cs +++ b/Items/Armor/AerospecHelmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AerospecHelmet : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AerospecBreastplate") && legs.type == mod.ItemType("AerospecLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -45,13 +45,13 @@ namespace CalamityMod.Items.Armor player.noFallDmg = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("Valkyrie")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("Valkyrie"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("Valkyrie")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Valkyrie"), (int)(25f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(25f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.16f; diff --git a/Items/Armor/AerospecHood.cs b/Items/Armor/AerospecHood.cs index 3768c9d1f6..ef211eb342 100644 --- a/Items/Armor/AerospecHood.cs +++ b/Items/Armor/AerospecHood.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AerospecHood : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AerospecBreastplate") && legs.type == mod.ItemType("AerospecLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AerospecLeggings.cs b/Items/Armor/AerospecLeggings.cs index afe2c9e632..8d274afa6a 100644 --- a/Items/Armor/AerospecLeggings.cs +++ b/Items/Armor/AerospecLeggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class AerospecLeggings : ModItem diff --git a/Items/Armor/AstralBreastplate.cs b/Items/Armor/AstralBreastplate.cs index 28387c0727..4b74839f09 100644 --- a/Items/Armor/AstralBreastplate.cs +++ b/Items/Armor/AstralBreastplate.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class AstralBreastplate : ModItem diff --git a/Items/Armor/AstralHelm.cs b/Items/Armor/AstralHelm.cs index 1fa08be6a9..d091955776 100644 --- a/Items/Armor/AstralHelm.cs +++ b/Items/Armor/AstralHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AstralHelm : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AstralBreastplate") && legs.type == mod.ItemType("AstralLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AstralLeggings.cs b/Items/Armor/AstralLeggings.cs index 28773c194e..e71d534ceb 100644 --- a/Items/Armor/AstralLeggings.cs +++ b/Items/Armor/AstralLeggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class AstralLeggings : ModItem diff --git a/Items/Armor/AstrumDeusMask.cs b/Items/Armor/AstrumDeusMask.cs index 8bd4d3e991..8490ec5415 100644 --- a/Items/Armor/AstrumDeusMask.cs +++ b/Items/Armor/AstrumDeusMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AstrumDeusMask : ModItem diff --git a/Items/Armor/AtaxiaArmor.cs b/Items/Armor/AtaxiaArmor.cs index 76a44721cd..32b4ff71ff 100644 --- a/Items/Armor/AtaxiaArmor.cs +++ b/Items/Armor/AtaxiaArmor.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class AtaxiaArmor : ModItem diff --git a/Items/Armor/AtaxiaHeadgear.cs b/Items/Armor/AtaxiaHeadgear.cs index 138c50a14e..cb6d3d5d6b 100644 --- a/Items/Armor/AtaxiaHeadgear.cs +++ b/Items/Armor/AtaxiaHeadgear.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AtaxiaHeadgear : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AtaxiaArmor") && legs.type == mod.ItemType("AtaxiaSubligar"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaHelm.cs b/Items/Armor/AtaxiaHelm.cs index e73aa359bb..c6a390b058 100644 --- a/Items/Armor/AtaxiaHelm.cs +++ b/Items/Armor/AtaxiaHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AtaxiaHelm : ModItem @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AtaxiaArmor") && legs.type == mod.ItemType("AtaxiaSubligar"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaHelmet.cs b/Items/Armor/AtaxiaHelmet.cs index dce417870d..98371b2390 100644 --- a/Items/Armor/AtaxiaHelmet.cs +++ b/Items/Armor/AtaxiaHelmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AtaxiaHelmet : ModItem @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AtaxiaArmor") && legs.type == mod.ItemType("AtaxiaSubligar"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -46,13 +46,13 @@ namespace CalamityMod.Items.Armor modPlayer.chaosSpirit = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("ChaosSpirit")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("ChaosSpirit"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("ChaosSpirit")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("ChaosSpirit"), (int)(190f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(190f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.4f; diff --git a/Items/Armor/AtaxiaHood.cs b/Items/Armor/AtaxiaHood.cs index 27382ccbd8..45b1616451 100644 --- a/Items/Armor/AtaxiaHood.cs +++ b/Items/Armor/AtaxiaHood.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AtaxiaHood : ModItem @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AtaxiaArmor") && legs.type == mod.ItemType("AtaxiaSubligar"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaMask.cs b/Items/Armor/AtaxiaMask.cs index 1ce91c9b4e..9818162ed7 100644 --- a/Items/Armor/AtaxiaMask.cs +++ b/Items/Armor/AtaxiaMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AtaxiaMask : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AtaxiaArmor") && legs.type == mod.ItemType("AtaxiaSubligar"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaSubligar.cs b/Items/Armor/AtaxiaSubligar.cs index 07c4ef7872..4a10b1009f 100644 --- a/Items/Armor/AtaxiaSubligar.cs +++ b/Items/Armor/AtaxiaSubligar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class AtaxiaSubligar : ModItem diff --git a/Items/Armor/AureusMask.cs b/Items/Armor/AureusMask.cs index 788aac1291..26aab256f1 100644 --- a/Items/Armor/AureusMask.cs +++ b/Items/Armor/AureusMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AureusMask : ModItem diff --git a/Items/Armor/AuricTeslaBodyArmor.cs b/Items/Armor/AuricTeslaBodyArmor.cs index 809ade1660..e8b4161981 100644 --- a/Items/Armor/AuricTeslaBodyArmor.cs +++ b/Items/Armor/AuricTeslaBodyArmor.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class AuricTeslaBodyArmor : ModItem diff --git a/Items/Armor/AuricTeslaCuisses.cs b/Items/Armor/AuricTeslaCuisses.cs index 40e402cbbb..cff38f9578 100644 --- a/Items/Armor/AuricTeslaCuisses.cs +++ b/Items/Armor/AuricTeslaCuisses.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class AuricTeslaCuisses : ModItem diff --git a/Items/Armor/AuricTeslaHelm.cs b/Items/Armor/AuricTeslaHelm.cs index 1941127ee5..b5581a8a0f 100644 --- a/Items/Armor/AuricTeslaHelm.cs +++ b/Items/Armor/AuricTeslaHelm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AuricTeslaHelm : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AuricTeslaBodyArmor") && legs.type == mod.ItemType("AuricTeslaCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AuricTeslaHoodedFacemask.cs b/Items/Armor/AuricTeslaHoodedFacemask.cs index 0a86744647..9e24c27fda 100644 --- a/Items/Armor/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/AuricTeslaHoodedFacemask.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AuricTeslaHoodedFacemask : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AuricTeslaBodyArmor") && legs.type == mod.ItemType("AuricTeslaCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AuricTeslaPlumedHelm.cs b/Items/Armor/AuricTeslaPlumedHelm.cs index 10d816cc26..23f9e693a1 100644 --- a/Items/Armor/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/AuricTeslaPlumedHelm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AuricTeslaPlumedHelm : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AuricTeslaBodyArmor") && legs.type == mod.ItemType("AuricTeslaCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AuricTeslaSpaceHelmet.cs b/Items/Armor/AuricTeslaSpaceHelmet.cs index 36f643a087..6fab7861f3 100644 --- a/Items/Armor/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/AuricTeslaSpaceHelmet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AuricTeslaSpaceHelmet : ModItem @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AuricTeslaBodyArmor") && legs.type == mod.ItemType("AuricTeslaCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -64,25 +64,25 @@ namespace CalamityMod.Items.Armor } if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("SilvaCrystal")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("SilvaCrystal"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("SilvaCrystal")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SilvaCrystal"), (int)(3000f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(3000f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } - if (player.FindBuffIndex(mod.BuffType("Mechworm")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("Mechworm"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("MechwormHead")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { int owner = player.whoAmI; - int typeHead = mod.ProjectileType("MechwormHead"); - int typeBody = mod.ProjectileType("MechwormBody"); - int typeBody2 = mod.ProjectileType("MechwormBody2"); - int typeTail = mod.ProjectileType("MechwormTail"); + int typeHead = ModContent.ProjectileType(); + int typeBody = ModContent.ProjectileType(); + int typeBody2 = ModContent.ProjectileType(); + int typeTail = ModContent.ProjectileType(); for (int i = 0; i < Main.maxProjectiles; i++) { if (Main.projectile[i].active && Main.projectile[i].owner == owner) @@ -157,25 +157,25 @@ namespace CalamityMod.Items.Armor velY = 0f; vector2.X = (float)Main.mouseX + Main.screenPosition.X; vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - int curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormHead"), damage, 1f, owner); + int curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner); int prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody"), damage, 1f, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)prev); prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody2"), damage, 1f, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)prev); Main.projectile[prev].localAI[1] = (float)curr; Main.projectile[prev].netUpdate = true; prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormTail"), damage, 1f, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)prev); Main.projectile[prev].localAI[1] = (float)curr; Main.projectile[prev].netUpdate = true; } else if (head != -1 && tail != -1) { - int body = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody"), damage, 1f, owner, Main.projectile[tail].ai[0]); - int back = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody2"), damage, 1f, owner, (float)body); + int body = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, Main.projectile[tail].ai[0]); + int back = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)body); Main.projectile[body].localAI[1] = (float)back; Main.projectile[body].ai[1] = 1f; diff --git a/Items/Armor/AuricTeslaWireHemmedVisage.cs b/Items/Armor/AuricTeslaWireHemmedVisage.cs index f544ae51b8..6e249f0082 100644 --- a/Items/Armor/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/AuricTeslaWireHemmedVisage.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class AuricTeslaWireHemmedVisage : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("AuricTeslaBodyArmor") && legs.type == mod.ItemType("AuricTeslaCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/BloodflareBodyArmor.cs b/Items/Armor/BloodflareBodyArmor.cs index 5cd0041d2e..813a5b69aa 100644 --- a/Items/Armor/BloodflareBodyArmor.cs +++ b/Items/Armor/BloodflareBodyArmor.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class BloodflareBodyArmor : ModItem diff --git a/Items/Armor/BloodflareCuisses.cs b/Items/Armor/BloodflareCuisses.cs index 8b8ccb7b8f..ecda5cc946 100644 --- a/Items/Armor/BloodflareCuisses.cs +++ b/Items/Armor/BloodflareCuisses.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class BloodflareCuisses : ModItem diff --git a/Items/Armor/BloodflareHelm.cs b/Items/Armor/BloodflareHelm.cs index 46e29cb785..1554c46384 100644 --- a/Items/Armor/BloodflareHelm.cs +++ b/Items/Armor/BloodflareHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class BloodflareHelm : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("BloodflareBodyArmor") && legs.type == mod.ItemType("BloodflareCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/BloodflareHelmet.cs b/Items/Armor/BloodflareHelmet.cs index 9c7e4af4f8..fa1059ed91 100644 --- a/Items/Armor/BloodflareHelmet.cs +++ b/Items/Armor/BloodflareHelmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class BloodflareHelmet : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("BloodflareBodyArmor") && legs.type == mod.ItemType("BloodflareCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/BloodflareHornedHelm.cs b/Items/Armor/BloodflareHornedHelm.cs index 69e1fe4ae9..01b14c06ed 100644 --- a/Items/Armor/BloodflareHornedHelm.cs +++ b/Items/Armor/BloodflareHornedHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class BloodflareHornedHelm : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("BloodflareBodyArmor") && legs.type == mod.ItemType("BloodflareCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/BloodflareHornedMask.cs b/Items/Armor/BloodflareHornedMask.cs index 98d90dfa32..7420d99ab0 100644 --- a/Items/Armor/BloodflareHornedMask.cs +++ b/Items/Armor/BloodflareHornedMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class BloodflareHornedMask : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("BloodflareBodyArmor") && legs.type == mod.ItemType("BloodflareCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/BloodflareMask.cs b/Items/Armor/BloodflareMask.cs index f90c1cadad..564246f6a8 100644 --- a/Items/Armor/BloodflareMask.cs +++ b/Items/Armor/BloodflareMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class BloodflareMask : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("BloodflareBodyArmor") && legs.type == mod.ItemType("BloodflareCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/CalamitasMask.cs b/Items/Armor/CalamitasMask.cs index 84a178372e..c147f0823e 100644 --- a/Items/Armor/CalamitasMask.cs +++ b/Items/Armor/CalamitasMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class CalamitasMask : ModItem diff --git a/Items/Armor/CrabulonMask.cs b/Items/Armor/CrabulonMask.cs index 852ed33bd1..c5750722fe 100644 --- a/Items/Armor/CrabulonMask.cs +++ b/Items/Armor/CrabulonMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class CrabulonMask : ModItem diff --git a/Items/Armor/CryogenMask.cs b/Items/Armor/CryogenMask.cs index eed819f8c2..2cfe9686ba 100644 --- a/Items/Armor/CryogenMask.cs +++ b/Items/Armor/CryogenMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class CryogenMask : ModItem diff --git a/Items/Armor/DaedalusBreastplate.cs b/Items/Armor/DaedalusBreastplate.cs index 0415a99a51..9262527a29 100644 --- a/Items/Armor/DaedalusBreastplate.cs +++ b/Items/Armor/DaedalusBreastplate.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class DaedalusBreastplate : ModItem diff --git a/Items/Armor/DaedalusHat.cs b/Items/Armor/DaedalusHat.cs index 4bd4c6384c..ff47072a89 100644 --- a/Items/Armor/DaedalusHat.cs +++ b/Items/Armor/DaedalusHat.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DaedalusHat : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("DaedalusBreastplate") && legs.type == mod.ItemType("DaedalusLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/DaedalusHeadgear.cs b/Items/Armor/DaedalusHeadgear.cs index 0303e8a5c6..3ac69ed22c 100644 --- a/Items/Armor/DaedalusHeadgear.cs +++ b/Items/Armor/DaedalusHeadgear.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DaedalusHeadgear : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("DaedalusBreastplate") && legs.type == mod.ItemType("DaedalusLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -42,13 +42,13 @@ namespace CalamityMod.Items.Armor modPlayer.daedalusCrystal = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("DaedalusCrystal")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("DaedalusCrystal"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("DaedalusCrystal")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DaedalusCrystal"), (int)(95f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(95f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.2f; diff --git a/Items/Armor/DaedalusHelm.cs b/Items/Armor/DaedalusHelm.cs index 12b3242b35..55c0eeedd3 100644 --- a/Items/Armor/DaedalusHelm.cs +++ b/Items/Armor/DaedalusHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DaedalusHelm : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("DaedalusBreastplate") && legs.type == mod.ItemType("DaedalusLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/DaedalusHelmet.cs b/Items/Armor/DaedalusHelmet.cs index 981dd5a2cf..c1a2fd4acc 100644 --- a/Items/Armor/DaedalusHelmet.cs +++ b/Items/Armor/DaedalusHelmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DaedalusHelmet : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("DaedalusBreastplate") && legs.type == mod.ItemType("DaedalusLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/DaedalusLeggings.cs b/Items/Armor/DaedalusLeggings.cs index 00c43a3b37..cc90c98f84 100644 --- a/Items/Armor/DaedalusLeggings.cs +++ b/Items/Armor/DaedalusLeggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class DaedalusLeggings : ModItem diff --git a/Items/Armor/DaedalusVisor.cs b/Items/Armor/DaedalusVisor.cs index 31f5154c6e..41669f1991 100644 --- a/Items/Armor/DaedalusVisor.cs +++ b/Items/Armor/DaedalusVisor.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DaedalusVisor : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("DaedalusBreastplate") && legs.type == mod.ItemType("DaedalusLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void DrawHair(ref bool drawHair, ref bool drawAltHair) diff --git a/Items/Armor/DemonshadeBreastplate.cs b/Items/Armor/DemonshadeBreastplate.cs index 4fea71893a..284989b150 100644 --- a/Items/Armor/DemonshadeBreastplate.cs +++ b/Items/Armor/DemonshadeBreastplate.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class DemonshadeBreastplate : ModItem diff --git a/Items/Armor/DemonshadeGreaves.cs b/Items/Armor/DemonshadeGreaves.cs index 729ec0f73c..7fa0fbe0bb 100644 --- a/Items/Armor/DemonshadeGreaves.cs +++ b/Items/Armor/DemonshadeGreaves.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class DemonshadeGreaves : ModItem diff --git a/Items/Armor/DemonshadeHelm.cs b/Items/Armor/DemonshadeHelm.cs index 658b433a9f..1dffc578a5 100644 --- a/Items/Armor/DemonshadeHelm.cs +++ b/Items/Armor/DemonshadeHelm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DemonshadeHelm : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("DemonshadeBreastplate") && legs.type == mod.ItemType("DemonshadeGreaves"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -47,13 +47,13 @@ namespace CalamityMod.Items.Armor if (player.whoAmI == Main.myPlayer && !modPlayer.chibii) { modPlayer.redDevil = true; - if (player.FindBuffIndex(mod.BuffType("RedDevil")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("RedDevil"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("RedDevil")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("RedDevil"), 10000, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), 10000, 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 1f; diff --git a/Items/Armor/DesertScourgeMask.cs b/Items/Armor/DesertScourgeMask.cs index 1ed6631ccb..332a7e3f86 100644 --- a/Items/Armor/DesertScourgeMask.cs +++ b/Items/Armor/DesertScourgeMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DesertScourgeMask : ModItem diff --git a/Items/Armor/DevourerofGodsMask.cs b/Items/Armor/DevourerofGodsMask.cs index 3df18acd3d..645e1259e9 100644 --- a/Items/Armor/DevourerofGodsMask.cs +++ b/Items/Armor/DevourerofGodsMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class DevourerofGodsMask : ModItem diff --git a/Items/Armor/GodSlayerChestplate.cs b/Items/Armor/GodSlayerChestplate.cs index fa2528744d..cdc1a4d0be 100644 --- a/Items/Armor/GodSlayerChestplate.cs +++ b/Items/Armor/GodSlayerChestplate.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class GodSlayerChestplate : ModItem diff --git a/Items/Armor/GodSlayerHelm.cs b/Items/Armor/GodSlayerHelm.cs index 98b421d60b..5684419570 100644 --- a/Items/Armor/GodSlayerHelm.cs +++ b/Items/Armor/GodSlayerHelm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class GodSlayerHelm : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("GodSlayerChestplate") && legs.type == mod.ItemType("GodSlayerLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/GodSlayerHelmet.cs b/Items/Armor/GodSlayerHelmet.cs index 570f05d42c..f974348f27 100644 --- a/Items/Armor/GodSlayerHelmet.cs +++ b/Items/Armor/GodSlayerHelmet.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class GodSlayerHelmet : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("GodSlayerChestplate") && legs.type == mod.ItemType("GodSlayerLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/GodSlayerHornedHelm.cs b/Items/Armor/GodSlayerHornedHelm.cs index efe98acf6f..4fb6ea7306 100644 --- a/Items/Armor/GodSlayerHornedHelm.cs +++ b/Items/Armor/GodSlayerHornedHelm.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class GodSlayerHornedHelm : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("GodSlayerChestplate") && legs.type == mod.ItemType("GodSlayerLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -41,17 +41,17 @@ namespace CalamityMod.Items.Armor modPlayer.godSlayerSummon = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("Mechworm")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("Mechworm"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("MechwormHead")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { int owner = player.whoAmI; - int typeHead = mod.ProjectileType("MechwormHead"); - int typeBody = mod.ProjectileType("MechwormBody"); - int typeBody2 = mod.ProjectileType("MechwormBody2"); - int typeTail = mod.ProjectileType("MechwormTail"); + int typeHead = ModContent.ProjectileType(); + int typeBody = ModContent.ProjectileType(); + int typeBody2 = ModContent.ProjectileType(); + int typeTail = ModContent.ProjectileType(); for (int i = 0; i < Main.maxProjectiles; i++) { if (Main.projectile[i].active && Main.projectile[i].owner == owner) @@ -126,25 +126,25 @@ namespace CalamityMod.Items.Armor velY = 0f; vector2.X = (float)Main.mouseX + Main.screenPosition.X; vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - int curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormHead"), damage, 1f, owner); + int curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner); int prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody"), damage, 1f, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)prev); prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody2"), damage, 1f, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)prev); Main.projectile[prev].localAI[1] = (float)curr; Main.projectile[prev].netUpdate = true; prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormTail"), damage, 1f, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)prev); Main.projectile[prev].localAI[1] = (float)curr; Main.projectile[prev].netUpdate = true; } else if (head != -1 && tail != -1) { - int body = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody"), damage, 1f, owner, Main.projectile[tail].ai[0]); - int back = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody2"), damage, 1f, owner, (float)body); + int body = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, Main.projectile[tail].ai[0]); + int back = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, 1f, owner, (float)body); Main.projectile[body].localAI[1] = (float)back; Main.projectile[body].ai[1] = 1f; diff --git a/Items/Armor/GodSlayerLeggings.cs b/Items/Armor/GodSlayerLeggings.cs index 0ec32134cc..91b56371a1 100644 --- a/Items/Armor/GodSlayerLeggings.cs +++ b/Items/Armor/GodSlayerLeggings.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class GodSlayerLeggings : ModItem diff --git a/Items/Armor/GodSlayerMask.cs b/Items/Armor/GodSlayerMask.cs index 0aaf5f6e47..999766426c 100644 --- a/Items/Armor/GodSlayerMask.cs +++ b/Items/Armor/GodSlayerMask.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class GodSlayerMask : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("GodSlayerChestplate") && legs.type == mod.ItemType("GodSlayerLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/GodSlayerVisage.cs b/Items/Armor/GodSlayerVisage.cs index 57c2649cf7..b938286472 100644 --- a/Items/Armor/GodSlayerVisage.cs +++ b/Items/Armor/GodSlayerVisage.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class GodSlayerVisage : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("GodSlayerChestplate") && legs.type == mod.ItemType("GodSlayerLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/HiveMindMask.cs b/Items/Armor/HiveMindMask.cs index a029fd0db3..a4abcd0dfb 100644 --- a/Items/Armor/HiveMindMask.cs +++ b/Items/Armor/HiveMindMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class HiveMindMask : ModItem diff --git a/Items/Armor/LeviathanMask.cs b/Items/Armor/LeviathanMask.cs index 8394b3fc2f..3552a68052 100644 --- a/Items/Armor/LeviathanMask.cs +++ b/Items/Armor/LeviathanMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class LeviathanMask : ModItem diff --git a/Items/Armor/MolluskShelleggings.cs b/Items/Armor/MolluskShelleggings.cs index 68aba9601c..fd50e19c5b 100644 --- a/Items/Armor/MolluskShelleggings.cs +++ b/Items/Armor/MolluskShelleggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class MolluskShelleggings : ModItem @@ -33,8 +33,8 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 20); - recipe.AddIngredient(mod.ItemType("MolluskHusk"), 10); + recipe.AddIngredient(ModContent.ItemType(), 20); + recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/MolluskShellmet.cs b/Items/Armor/MolluskShellmet.cs index e342cacb4b..fb6efedd15 100644 --- a/Items/Armor/MolluskShellmet.cs +++ b/Items/Armor/MolluskShellmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class MolluskShellmet : ModItem @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("MolluskShellplate") && legs.type == mod.ItemType("MolluskShelleggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) @@ -47,13 +47,13 @@ namespace CalamityMod.Items.Armor player.maxMinions += 4; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("Shellfish")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("Shellfish"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("Shellfish")] < 2) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 2) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Shellfish"), (int)((double)1500 * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)((double)1500 * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.Calamity().wearingRogueArmor = true; @@ -62,8 +62,8 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 15); - recipe.AddIngredient(mod.ItemType("MolluskHusk"), 6); + recipe.AddIngredient(ModContent.ItemType(), 15); + recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/MolluskShellplate.cs b/Items/Armor/MolluskShellplate.cs index 01cf675627..5d9fc7cbc4 100644 --- a/Items/Armor/MolluskShellplate.cs +++ b/Items/Armor/MolluskShellplate.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class MolluskShellplate : ModItem @@ -33,8 +33,8 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 25); - recipe.AddIngredient(mod.ItemType("MolluskHusk"), 15); + recipe.AddIngredient(ModContent.ItemType(), 25); + recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/OmegaBlueChestplate.cs b/Items/Armor/OmegaBlueChestplate.cs index 4a038ae27e..e5f6e12e07 100644 --- a/Items/Armor/OmegaBlueChestplate.cs +++ b/Items/Armor/OmegaBlueChestplate.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class OmegaBlueChestplate : ModItem @@ -37,10 +37,10 @@ No positive life regen"); public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("ReaperTooth"), 16); - recipe.AddIngredient(mod.ItemType("Lumenite"), 8); - recipe.AddIngredient(mod.ItemType("Tenebris"), 8); - recipe.AddIngredient(mod.ItemType("RuinousSoul"), 4); + recipe.AddIngredient(ModContent.ItemType(), 16); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlueHelmet.cs index de0c3cd69c..5422fe7885 100644 --- a/Items/Armor/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlueHelmet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class OmegaBlueHelmet : ModItem @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("OmegaBlueChestplate") && legs.type == mod.ItemType("OmegaBlueLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -92,10 +92,10 @@ This effect has a 30 second cooldown"; public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("ReaperTooth"), 11); - recipe.AddIngredient(mod.ItemType("Lumenite"), 5); - recipe.AddIngredient(mod.ItemType("Tenebris"), 5); - recipe.AddIngredient(mod.ItemType("RuinousSoul"), 2); + recipe.AddIngredient(ModContent.ItemType(), 11); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/OmegaBlueLeggings.cs b/Items/Armor/OmegaBlueLeggings.cs index eaa8c2c5b6..e5a1f9816d 100644 --- a/Items/Armor/OmegaBlueLeggings.cs +++ b/Items/Armor/OmegaBlueLeggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class OmegaBlueLeggings : ModItem @@ -35,10 +35,10 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("ReaperTooth"), 13); - recipe.AddIngredient(mod.ItemType("Lumenite"), 6); - recipe.AddIngredient(mod.ItemType("Tenebris"), 6); - recipe.AddIngredient(mod.ItemType("RuinousSoul"), 3); + recipe.AddIngredient(ModContent.ItemType(), 13); + recipe.AddIngredient(ModContent.ItemType(), 6); + recipe.AddIngredient(ModContent.ItemType(), 6); + recipe.AddIngredient(ModContent.ItemType(), 3); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/PerforatorMask.cs b/Items/Armor/PerforatorMask.cs index 4b01e79184..405f4079be 100644 --- a/Items/Armor/PerforatorMask.cs +++ b/Items/Armor/PerforatorMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class PerforatorMask : ModItem diff --git a/Items/Armor/PlaguebringerGoliathMask.cs b/Items/Armor/PlaguebringerGoliathMask.cs index d6b57b972f..420f1da782 100644 --- a/Items/Armor/PlaguebringerGoliathMask.cs +++ b/Items/Armor/PlaguebringerGoliathMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class PlaguebringerGoliathMask : ModItem diff --git a/Items/Armor/ProvidenceMask.cs b/Items/Armor/ProvidenceMask.cs index 336acca04e..447ccda113 100644 --- a/Items/Armor/ProvidenceMask.cs +++ b/Items/Armor/ProvidenceMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class ProvidenceMask : ModItem diff --git a/Items/Armor/ReaverCap.cs b/Items/Armor/ReaverCap.cs index 0a1c7bd11f..f0991127c0 100644 --- a/Items/Armor/ReaverCap.cs +++ b/Items/Armor/ReaverCap.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class ReaverCap : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("ReaverScaleMail") && legs.type == mod.ItemType("ReaverCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/ReaverCuisses.cs b/Items/Armor/ReaverCuisses.cs index afa27cd47a..6392c01513 100644 --- a/Items/Armor/ReaverCuisses.cs +++ b/Items/Armor/ReaverCuisses.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class ReaverCuisses : ModItem diff --git a/Items/Armor/ReaverHelm.cs b/Items/Armor/ReaverHelm.cs index 3209a5aa70..93908b2b09 100644 --- a/Items/Armor/ReaverHelm.cs +++ b/Items/Armor/ReaverHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class ReaverHelm : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("ReaverScaleMail") && legs.type == mod.ItemType("ReaverCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/ReaverHelmet.cs b/Items/Armor/ReaverHelmet.cs index d72d6cd937..d5a6383acd 100644 --- a/Items/Armor/ReaverHelmet.cs +++ b/Items/Armor/ReaverHelmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class ReaverHelmet : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("ReaverScaleMail") && legs.type == mod.ItemType("ReaverCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -43,13 +43,13 @@ namespace CalamityMod.Items.Armor modPlayer.reaverOrb = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("ReaverOrb")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("ReaverOrb"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("ReaverOrb")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("ReaverOrb"), (int)(80f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(80f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.16f; diff --git a/Items/Armor/ReaverMask.cs b/Items/Armor/ReaverMask.cs index a5cfdf580d..954bf39766 100644 --- a/Items/Armor/ReaverMask.cs +++ b/Items/Armor/ReaverMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class ReaverMask : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("ReaverScaleMail") && legs.type == mod.ItemType("ReaverCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/ReaverScaleMail.cs b/Items/Armor/ReaverScaleMail.cs index 65b7134c2b..9a6eb9480b 100644 --- a/Items/Armor/ReaverScaleMail.cs +++ b/Items/Armor/ReaverScaleMail.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class ReaverScaleMail : ModItem diff --git a/Items/Armor/ReaverVisage.cs b/Items/Armor/ReaverVisage.cs index 1c21837236..494108375c 100644 --- a/Items/Armor/ReaverVisage.cs +++ b/Items/Armor/ReaverVisage.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class ReaverVisage : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("ReaverScaleMail") && legs.type == mod.ItemType("ReaverCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/ShroomiteVisage.cs b/Items/Armor/ShroomiteVisage.cs index 1763766305..50b03d8661 100644 --- a/Items/Armor/ShroomiteVisage.cs +++ b/Items/Armor/ShroomiteVisage.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class ShroomiteVisage : ModItem diff --git a/Items/Armor/SilvaArmor.cs b/Items/Armor/SilvaArmor.cs index 70b82a96e0..6624e1d588 100644 --- a/Items/Armor/SilvaArmor.cs +++ b/Items/Armor/SilvaArmor.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class SilvaArmor : ModItem diff --git a/Items/Armor/SilvaHelm.cs b/Items/Armor/SilvaHelm.cs index 55f613fd61..65a1d6052b 100644 --- a/Items/Armor/SilvaHelm.cs +++ b/Items/Armor/SilvaHelm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class SilvaHelm : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("SilvaArmor") && legs.type == mod.ItemType("SilvaLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index 7f467770ce..31ae5461ef 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class SilvaHelmet : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("SilvaArmor") && legs.type == mod.ItemType("SilvaLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) @@ -49,13 +49,13 @@ namespace CalamityMod.Items.Armor "After the silva invulnerability time your minions will deal 10% more damage and you will gain +2 max minions"; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("SilvaCrystal")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("SilvaCrystal"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("SilvaCrystal")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SilvaCrystal"), (int)(1500f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(1500f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.75f; diff --git a/Items/Armor/SilvaHornedHelm.cs b/Items/Armor/SilvaHornedHelm.cs index b598b58b8c..a8a8324e01 100644 --- a/Items/Armor/SilvaHornedHelm.cs +++ b/Items/Armor/SilvaHornedHelm.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class SilvaHornedHelm : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("SilvaArmor") && legs.type == mod.ItemType("SilvaLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/SilvaLeggings.cs b/Items/Armor/SilvaLeggings.cs index f968d2b660..7041f57509 100644 --- a/Items/Armor/SilvaLeggings.cs +++ b/Items/Armor/SilvaLeggings.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class SilvaLeggings : ModItem diff --git a/Items/Armor/SilvaMask.cs b/Items/Armor/SilvaMask.cs index adbbb8ff3d..0a54967faf 100644 --- a/Items/Armor/SilvaMask.cs +++ b/Items/Armor/SilvaMask.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class SilvaMask : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("SilvaArmor") && legs.type == mod.ItemType("SilvaLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/SilvaMaskedCap.cs b/Items/Armor/SilvaMaskedCap.cs index d23cde639a..706c557d1b 100644 --- a/Items/Armor/SilvaMaskedCap.cs +++ b/Items/Armor/SilvaMaskedCap.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class SilvaMaskedCap : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("SilvaArmor") && legs.type == mod.ItemType("SilvaLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/SirensHeart.cs b/Items/Armor/SirensHeart.cs index 8208ac1dbd..b8791bf3bc 100644 --- a/Items/Armor/SirensHeart.cs +++ b/Items/Armor/SirensHeart.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { public class SirensHeart : ModItem { diff --git a/Items/Armor/SirensHeartAlt.cs b/Items/Armor/SirensHeartAlt.cs index 996323fe60..d9404f4f39 100644 --- a/Items/Armor/SirensHeartAlt.cs +++ b/Items/Armor/SirensHeartAlt.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { public class SirensHeartAlt : ModItem { diff --git a/Items/Armor/SlimeGodMask.cs b/Items/Armor/SlimeGodMask.cs index 02812caeef..adacae4d7d 100644 --- a/Items/Armor/SlimeGodMask.cs +++ b/Items/Armor/SlimeGodMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class SlimeGodMask : ModItem diff --git a/Items/Armor/SlimeGodMask2.cs b/Items/Armor/SlimeGodMask2.cs index 49a49658ab..d9c1993d55 100644 --- a/Items/Armor/SlimeGodMask2.cs +++ b/Items/Armor/SlimeGodMask2.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class SlimeGodMask2 : ModItem diff --git a/Items/Armor/StatigelArmor.cs b/Items/Armor/StatigelArmor.cs index 794ab1ef08..5aa06d074c 100644 --- a/Items/Armor/StatigelArmor.cs +++ b/Items/Armor/StatigelArmor.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class StatigelArmor : ModItem diff --git a/Items/Armor/StatigelCap.cs b/Items/Armor/StatigelCap.cs index 277afbd16f..94f12531cf 100644 --- a/Items/Armor/StatigelCap.cs +++ b/Items/Armor/StatigelCap.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class StatigelCap : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("StatigelArmor") && legs.type == mod.ItemType("StatigelGreaves"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/StatigelGreaves.cs b/Items/Armor/StatigelGreaves.cs index d397b442f2..880b5cad24 100644 --- a/Items/Armor/StatigelGreaves.cs +++ b/Items/Armor/StatigelGreaves.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class StatigelGreaves : ModItem diff --git a/Items/Armor/StatigelHeadgear.cs b/Items/Armor/StatigelHeadgear.cs index 47952a7d05..229d3acce6 100644 --- a/Items/Armor/StatigelHeadgear.cs +++ b/Items/Armor/StatigelHeadgear.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class StatigelHeadgear : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("StatigelArmor") && legs.type == mod.ItemType("StatigelGreaves"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/StatigelHelm.cs b/Items/Armor/StatigelHelm.cs index 4896a84200..90a7938278 100644 --- a/Items/Armor/StatigelHelm.cs +++ b/Items/Armor/StatigelHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class StatigelHelm : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("StatigelArmor") && legs.type == mod.ItemType("StatigelGreaves"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/StatigelHood.cs b/Items/Armor/StatigelHood.cs index a0fb0fa9c4..4d0fd98bf2 100644 --- a/Items/Armor/StatigelHood.cs +++ b/Items/Armor/StatigelHood.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class StatigelHood : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("StatigelArmor") && legs.type == mod.ItemType("StatigelGreaves"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) @@ -42,17 +42,17 @@ namespace CalamityMod.Items.Armor player.minionDamage += 0.18f; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("SlimeGod")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("SlimeGod"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (WorldGen.crimson && player.ownedProjectileCounts[mod.ProjectileType("SlimeGodAlt")] < 1) + if (WorldGen.crimson && player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SlimeGodAlt"), (int)(33f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(33f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } - else if (!WorldGen.crimson && player.ownedProjectileCounts[mod.ProjectileType("SlimeGod")] < 1) + else if (!WorldGen.crimson && player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SlimeGod"), (int)(33f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(33f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Armor/StatigelMask.cs b/Items/Armor/StatigelMask.cs index d0b19ebb0d..f13e53c3dc 100644 --- a/Items/Armor/StatigelMask.cs +++ b/Items/Armor/StatigelMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class StatigelMask : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("StatigelArmor") && legs.type == mod.ItemType("StatigelGreaves"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/TarragonBreastplate.cs b/Items/Armor/TarragonBreastplate.cs index 980492ed14..aabb442a0f 100644 --- a/Items/Armor/TarragonBreastplate.cs +++ b/Items/Armor/TarragonBreastplate.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class TarragonBreastplate : ModItem diff --git a/Items/Armor/TarragonHelm.cs b/Items/Armor/TarragonHelm.cs index 09fdc2fd5f..51115935f2 100644 --- a/Items/Armor/TarragonHelm.cs +++ b/Items/Armor/TarragonHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class TarragonHelm : ModItem @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("TarragonBreastplate") && legs.type == mod.ItemType("TarragonLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/TarragonHelmet.cs b/Items/Armor/TarragonHelmet.cs index d7eb599c6f..64d6253227 100644 --- a/Items/Armor/TarragonHelmet.cs +++ b/Items/Armor/TarragonHelmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class TarragonHelmet : ModItem @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("TarragonBreastplate") && legs.type == mod.ItemType("TarragonLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/TarragonHornedHelm.cs b/Items/Armor/TarragonHornedHelm.cs index 198f16003f..e1db95e95b 100644 --- a/Items/Armor/TarragonHornedHelm.cs +++ b/Items/Armor/TarragonHornedHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class TarragonHornedHelm : ModItem @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("TarragonBreastplate") && legs.type == mod.ItemType("TarragonLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/TarragonLeggings.cs b/Items/Armor/TarragonLeggings.cs index 2d272acfaf..99d20bebbc 100644 --- a/Items/Armor/TarragonLeggings.cs +++ b/Items/Armor/TarragonLeggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class TarragonLeggings : ModItem diff --git a/Items/Armor/TarragonMask.cs b/Items/Armor/TarragonMask.cs index 300861e756..2daaac2a9e 100644 --- a/Items/Armor/TarragonMask.cs +++ b/Items/Armor/TarragonMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class TarragonMask : ModItem @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("TarragonBreastplate") && legs.type == mod.ItemType("TarragonLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/TarragonVisage.cs b/Items/Armor/TarragonVisage.cs index 942bdf6dff..6681b91e55 100644 --- a/Items/Armor/TarragonVisage.cs +++ b/Items/Armor/TarragonVisage.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class TarragonVisage : ModItem @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("TarragonBreastplate") && legs.type == mod.ItemType("TarragonLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/VictideBreastplate.cs b/Items/Armor/VictideBreastplate.cs index 424162e184..894090214c 100644 --- a/Items/Armor/VictideBreastplate.cs +++ b/Items/Armor/VictideBreastplate.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class VictideBreastplate : ModItem diff --git a/Items/Armor/VictideHeadgear.cs b/Items/Armor/VictideHeadgear.cs index 88d015bdd9..2f6a090f22 100644 --- a/Items/Armor/VictideHeadgear.cs +++ b/Items/Armor/VictideHeadgear.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class VictideHeadgear : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("VictideBreastplate") && legs.type == mod.ItemType("VictideLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/VictideHelm.cs b/Items/Armor/VictideHelm.cs index 4d972665b6..6aca1682e2 100644 --- a/Items/Armor/VictideHelm.cs +++ b/Items/Armor/VictideHelm.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class VictideHelm : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("VictideBreastplate") && legs.type == mod.ItemType("VictideLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/VictideHelmet.cs b/Items/Armor/VictideHelmet.cs index af752b906c..1f889c30aa 100644 --- a/Items/Armor/VictideHelmet.cs +++ b/Items/Armor/VictideHelmet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class VictideHelmet : ModItem @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("VictideBreastplate") && legs.type == mod.ItemType("VictideLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) @@ -41,13 +41,13 @@ namespace CalamityMod.Items.Armor modPlayer.urchin = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("Urchin")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("Urchin"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("Urchin")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Urchin"), (int)(7f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(7f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.ignoreWater = true; diff --git a/Items/Armor/VictideLeggings.cs b/Items/Armor/VictideLeggings.cs index a1c4aae9f6..63774ed3fa 100644 --- a/Items/Armor/VictideLeggings.cs +++ b/Items/Armor/VictideLeggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class VictideLeggings : ModItem diff --git a/Items/Armor/VictideMask.cs b/Items/Armor/VictideMask.cs index a6ef864c01..614212398d 100644 --- a/Items/Armor/VictideMask.cs +++ b/Items/Armor/VictideMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class VictideMask : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("VictideBreastplate") && legs.type == mod.ItemType("VictideLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/VictideVisage.cs b/Items/Armor/VictideVisage.cs index e7747eb870..3d827d34d9 100644 --- a/Items/Armor/VictideVisage.cs +++ b/Items/Armor/VictideVisage.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class VictideVisage : ModItem @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("VictideBreastplate") && legs.type == mod.ItemType("VictideLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/WulfrumArmor.cs b/Items/Armor/WulfrumArmor.cs index a2b3b3b053..fcb958ace8 100644 --- a/Items/Armor/WulfrumArmor.cs +++ b/Items/Armor/WulfrumArmor.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class WulfrumArmor : ModItem diff --git a/Items/Armor/WulfrumHeadgear.cs b/Items/Armor/WulfrumHeadgear.cs index 1b6a9b2de4..1d0df018e1 100644 --- a/Items/Armor/WulfrumHeadgear.cs +++ b/Items/Armor/WulfrumHeadgear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class WulfrumHeadgear : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("WulfrumArmor") && legs.type == mod.ItemType("WulfrumLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/WulfrumHelm.cs b/Items/Armor/WulfrumHelm.cs index 95a4bebd45..23523ae30e 100644 --- a/Items/Armor/WulfrumHelm.cs +++ b/Items/Armor/WulfrumHelm.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class WulfrumHelm : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("WulfrumArmor") && legs.type == mod.ItemType("WulfrumLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/WulfrumHelmet.cs b/Items/Armor/WulfrumHelmet.cs index 02584f18c2..f1e9fb565c 100644 --- a/Items/Armor/WulfrumHelmet.cs +++ b/Items/Armor/WulfrumHelmet.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class WulfrumHelmet : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("WulfrumArmor") && legs.type == mod.ItemType("WulfrumLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/WulfrumHood.cs b/Items/Armor/WulfrumHood.cs index 74156c5b61..16c352b3da 100644 --- a/Items/Armor/WulfrumHood.cs +++ b/Items/Armor/WulfrumHood.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class WulfrumHood : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("WulfrumArmor") && legs.type == mod.ItemType("WulfrumLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/WulfrumLeggings.cs b/Items/Armor/WulfrumLeggings.cs index 16b6e3d377..5a9437ade3 100644 --- a/Items/Armor/WulfrumLeggings.cs +++ b/Items/Armor/WulfrumLeggings.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class WulfrumLeggings : ModItem diff --git a/Items/Armor/WulfrumMask.cs b/Items/Armor/WulfrumMask.cs index c0375d49fe..79e2d0ed1a 100644 --- a/Items/Armor/WulfrumMask.cs +++ b/Items/Armor/WulfrumMask.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class WulfrumMask : ModItem @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("WulfrumArmor") && legs.type == mod.ItemType("WulfrumLeggings"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/XerocCuisses.cs b/Items/Armor/XerocCuisses.cs index 266135cac7..8db64da826 100644 --- a/Items/Armor/XerocCuisses.cs +++ b/Items/Armor/XerocCuisses.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Legs)] public class XerocCuisses : ModItem diff --git a/Items/Armor/XerocMask.cs b/Items/Armor/XerocMask.cs index 6af132dec8..7bbcb7189e 100644 --- a/Items/Armor/XerocMask.cs +++ b/Items/Armor/XerocMask.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class XerocMask : ModItem @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == mod.ItemType("XerocPlateMail") && legs.type == mod.ItemType("XerocCuisses"); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/XerocPlateMail.cs b/Items/Armor/XerocPlateMail.cs index 989253b435..7392cbca77 100644 --- a/Items/Armor/XerocPlateMail.cs +++ b/Items/Armor/XerocPlateMail.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class XerocPlateMail : ModItem diff --git a/Items/Armor/YharonMask.cs b/Items/Armor/YharonMask.cs index 5ca894b73a..0c81baa5a6 100644 --- a/Items/Armor/YharonMask.cs +++ b/Items/Armor/YharonMask.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class YharonMask : ModItem diff --git a/Items/Astrageldon/AstrageldonBag.cs b/Items/Astrageldon/AstrageldonBag.cs index 3e850ccdc0..1741cc25c8 100644 --- a/Items/Astrageldon/AstrageldonBag.cs +++ b/Items/Astrageldon/AstrageldonBag.cs @@ -1,14 +1,15 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Astrageldon +namespace CalamityMod.Items { public class AstrageldonBag : ModItem { - public override int BossBagNPC => mod.NPCType("Astrageldon"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -36,21 +37,21 @@ namespace CalamityMod.Items.Astrageldon player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("AstralJelly"), 12, 16); - DropHelper.DropItem(player, mod.ItemType("Stardust"), 30, 40); + DropHelper.DropItem(player, ModContent.ItemType(), 12, 16); + DropHelper.DropItem(player, ModContent.ItemType(), 30, 40); DropHelper.DropItem(player, ItemID.FallenStar, 30, 50); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("Nebulash"), 4); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4); // Equipment - DropHelper.DropItemCondition(player, mod.ItemType("SquishyBeanMount"), CalamityWorld.revenge && NPC.downedMoonlord); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge && NPC.downedMoonlord); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("AureusMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); // Other - DropHelper.DropItemCondition(player, mod.ItemType("StarlightFuelCell"), CalamityWorld.revenge); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); DropHelper.DropItemChance(player, ItemID.HallowedKey, 5); } } diff --git a/Items/Astrageldon/AstralChunk.cs b/Items/Astrageldon/AstralChunk.cs index e0bfdc0f19..ba1e67b733 100644 --- a/Items/Astrageldon/AstralChunk.cs +++ b/Items/Astrageldon/AstralChunk.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Astrageldon +namespace CalamityMod.Items { public class AstralChunk : ModItem { @@ -26,14 +26,14 @@ namespace CalamityMod.Items.Astrageldon public override bool CanUseItem(Player player) { - return !Main.dayTime && !NPC.AnyNPCs(mod.NPCType("Astrageldon")); + return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { if (Main.netMode != NetmodeID.MultiplayerClient) { - int num = NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-50, 50)), (int)(player.position.Y - 150f), mod.NPCType("Astrageldon"), 0, 0f, 0f, 0f, 0f, 255); + int num = NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-50, 50)), (int)(player.position.Y - 150f), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); Main.PlaySound(SoundID.Roar, player.position, 0); } return true; diff --git a/Items/Astrageldon/AstralJelly.cs b/Items/Astrageldon/AstralJelly.cs index 68b8663f29..360af31352 100644 --- a/Items/Astrageldon/AstralJelly.cs +++ b/Items/Astrageldon/AstralJelly.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Astrageldon +namespace CalamityMod.Items { public class AstralJelly : ModItem { diff --git a/Items/AstrumDeus/AstrumDeusBag.cs b/Items/AstrumDeus/AstrumDeusBag.cs index f158de2c0e..147f64334b 100644 --- a/Items/AstrumDeus/AstrumDeusBag.cs +++ b/Items/AstrumDeus/AstrumDeusBag.cs @@ -1,12 +1,13 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AstrumDeus +namespace CalamityMod.Items { public class AstrumDeusBag : ModItem { - public override int BossBagNPC => mod.NPCType("AstrumDeusHeadSpectral"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -34,20 +35,20 @@ namespace CalamityMod.Items.AstrumDeus player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("Stardust"), 60, 90); + DropHelper.DropItem(player, ModContent.ItemType(), 60, 90); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("Starfall"), 4); - DropHelper.DropItemChance(player, mod.ItemType("Quasar"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Equipment float f = Main.rand.NextFloat(); bool replaceWithRare = f <= DropHelper.RareVariantDropRateFloat; // 1/40 chance of getting Hide of Astrum Deus - DropHelper.DropItemCondition(player, mod.ItemType("AstralBulwark"), !replaceWithRare); - DropHelper.DropItemCondition(player, mod.ItemType("HideofAstrumDeus"), replaceWithRare); + DropHelper.DropItemCondition(player, ModContent.ItemType(), !replaceWithRare); + DropHelper.DropItemCondition(player, ModContent.ItemType(), replaceWithRare); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("AstrumDeusMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); } } } diff --git a/Items/AstrumDeus/Starcore.cs b/Items/AstrumDeus/Starcore.cs index 2df60c3e28..9f34742f5c 100644 --- a/Items/AstrumDeus/Starcore.cs +++ b/Items/AstrumDeus/Starcore.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.AstrumDeus +namespace CalamityMod.Items { public class Starcore : ModItem { @@ -27,16 +27,16 @@ namespace CalamityMod.Items.AstrumDeus public override bool CanUseItem(Player player) { - return !Main.dayTime && !NPC.AnyNPCs(mod.NPCType("AstrumDeusHead")) && !NPC.AnyNPCs(mod.NPCType("AstrumDeusHeadSpectral")); + return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { for (int x = 0; x < 10; x++) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("AstrumDeusHead")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); } - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("AstrumDeusHeadSpectral")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/BrimstoneKey.cs b/Items/BrimstoneKey.cs index 97db86910f..3e89fd24ac 100644 --- a/Items/BrimstoneKey.cs +++ b/Items/BrimstoneKey.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Items { diff --git a/Items/BrimstoneWaifu/Abaddon.cs b/Items/BrimstoneWaifu/Abaddon.cs index 7400c66214..5ab987c78e 100644 --- a/Items/BrimstoneWaifu/Abaddon.cs +++ b/Items/BrimstoneWaifu/Abaddon.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.BrimstoneWaifu +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Head)] public class Abaddon : ModItem @@ -23,7 +23,7 @@ namespace CalamityMod.Items.BrimstoneWaifu public override void UpdateAccessory(Player player, bool hideVisual) { - player.buffImmune[mod.BuffType("BrimstoneFlames")] = true; + player.buffImmune[ModContent.BuffType()] = true; } } } diff --git a/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs b/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs index c1b03fc07b..50268a7555 100644 --- a/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs +++ b/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs @@ -1,14 +1,15 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.BrimstoneWaifu +namespace CalamityMod.Items { public class BrimstoneWaifuBag : ModItem { - public override int BossBagNPC => mod.NPCType("BrimstoneElemental"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -37,21 +38,21 @@ namespace CalamityMod.Items.BrimstoneWaifu // Materials DropHelper.DropItem(player, ItemID.SoulofFright, 25, 40); - DropHelper.DropItem(player, mod.ItemType("EssenceofChaos"), 5, 9); - DropHelper.DropItemCondition(player, mod.ItemType("Bloodstone"), CalamityWorld.downedProvidence, 25, 35); + DropHelper.DropItem(player, ModContent.ItemType(), 5, 9); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence, 25, 35); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("Brimlance"), 3); - DropHelper.DropItemChance(player, mod.ItemType("SeethingDischarge"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Equipment - DropHelper.DropItem(player, mod.ItemType("Abaddon")); - DropHelper.DropItem(player, mod.ItemType("Gehenna")); - DropHelper.DropItemChance(player, mod.ItemType("RoseStone"), 10); - DropHelper.DropItemCondition(player, mod.ItemType("Brimrose"), CalamityWorld.revenge && CalamityWorld.downedProvidence); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemChance(player, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge && CalamityWorld.downedProvidence); // Vanity - DropHelper.DropItemCondition(player, mod.ItemType("CharredRelic"), CalamityWorld.revenge); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); } } } diff --git a/Items/BrimstoneWaifu/CharredIdol.cs b/Items/BrimstoneWaifu/CharredIdol.cs index 9ebc782b95..540a73be1e 100644 --- a/Items/BrimstoneWaifu/CharredIdol.cs +++ b/Items/BrimstoneWaifu/CharredIdol.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.BrimstoneWaifu +namespace CalamityMod.Items { public class CharredIdol : ModItem { @@ -29,12 +29,12 @@ namespace CalamityMod.Items.BrimstoneWaifu public override bool CanUseItem(Player player) { CalamityPlayer modPlayer = player.Calamity(); - return modPlayer.ZoneCalamity && !NPC.AnyNPCs(mod.NPCType("BrimstoneElemental")); + return modPlayer.ZoneCalamity && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("BrimstoneElemental")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/BrimstoneWaifu/Gehenna.cs b/Items/BrimstoneWaifu/Gehenna.cs index 8f91be432b..1ac3b9c49a 100644 --- a/Items/BrimstoneWaifu/Gehenna.cs +++ b/Items/BrimstoneWaifu/Gehenna.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.BrimstoneWaifu +namespace CalamityMod.Items { public class Gehenna : ModItem { @@ -52,7 +52,7 @@ namespace CalamityMod.Items.BrimstoneWaifu spawn.X = spawn.X + i * 30 - (FireProjectiles * 15); Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-FireAngleSpread / 2 + (FireAngleSpread * i / (float)FireProjectiles))); velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; - int projectile = Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, mod.ProjectileType("BrimstoneHellfireballFriendly2"), 54, 5f, Main.myPlayer, 0f, 0f); + int projectile = Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), 54, 5f, Main.myPlayer, 0f, 0f); Main.projectile[projectile].tileCollide = false; Main.projectile[projectile].timeLeft = 50; } diff --git a/Items/BrimstoneWaifu/RoseStone.cs b/Items/BrimstoneWaifu/RoseStone.cs index 4c02943cb1..d6f5f759c9 100644 --- a/Items/BrimstoneWaifu/RoseStone.cs +++ b/Items/BrimstoneWaifu/RoseStone.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.BrimstoneWaifu +namespace CalamityMod.Items { public class RoseStone : ModItem { @@ -43,13 +43,13 @@ namespace CalamityMod.Items.BrimstoneWaifu modPlayer.brimstoneWaifu = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("BrimstoneWaifu")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("BrimstoneWaifu"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("BigBustyRose"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Bumblefuck/BirbPheromones.cs b/Items/Bumblefuck/BirbPheromones.cs index 82ea4137d5..4514bf7f94 100644 --- a/Items/Bumblefuck/BirbPheromones.cs +++ b/Items/Bumblefuck/BirbPheromones.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Bumblefuck +namespace CalamityMod.Items { public class BirbPheromones : ModItem { @@ -26,12 +26,12 @@ namespace CalamityMod.Items.Bumblefuck public override bool CanUseItem(Player player) { - return player.ZoneJungle && !NPC.AnyNPCs(mod.NPCType("Bumblefuck")); + return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Bumblefuck")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Bumblefuck/BumblebirbBag.cs b/Items/Bumblefuck/BumblebirbBag.cs index 92844d746e..87a0e64cf7 100644 --- a/Items/Bumblefuck/BumblebirbBag.cs +++ b/Items/Bumblefuck/BumblebirbBag.cs @@ -1,13 +1,14 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Bumblefuck +namespace CalamityMod.Items { public class BumblebirbBag : ModItem { - public override int BossBagNPC => mod.NPCType("Bumblefuck"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -35,14 +36,14 @@ namespace CalamityMod.Items.Bumblefuck player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("EffulgentFeather"), 9, 14); + DropHelper.DropItem(player, ModContent.ItemType(), 9, 14); // Weapons - DropHelper.DropItemFromSet(player, mod.ItemType("GildedProboscis"), mod.ItemType("GoldenEagle"), mod.ItemType("RougeSlash")); - DropHelper.DropItemChance(player, mod.ItemType("Swordsplosion"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemFromSet(player, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Equipment - DropHelper.DropItemCondition(player, mod.ItemType("RedLightningContainer"), CalamityWorld.revenge); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); } } } diff --git a/Items/Bumblefuck/EffulgentFeather.cs b/Items/Bumblefuck/EffulgentFeather.cs index d45e3eb045..8b42bad31e 100644 --- a/Items/Bumblefuck/EffulgentFeather.cs +++ b/Items/Bumblefuck/EffulgentFeather.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Bumblefuck +namespace CalamityMod.Items { public class EffulgentFeather : ModItem { diff --git a/Items/Calamitas/BlightedEyeball.cs b/Items/Calamitas/BlightedEyeball.cs index e38fe179f6..ee6124b015 100644 --- a/Items/Calamitas/BlightedEyeball.cs +++ b/Items/Calamitas/BlightedEyeball.cs @@ -1,8 +1,9 @@ -using Terraria; +using CalamityMod.NPCs; +using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Calamitas +namespace CalamityMod.Items { public class BlightedEyeball : ModItem { @@ -27,12 +28,12 @@ namespace CalamityMod.Items.Calamitas public override bool CanUseItem(Player player) { - return !Main.dayTime && !NPC.AnyNPCs(mod.NPCType("Calamitas")) && !NPC.AnyNPCs(mod.NPCType("CalamitasRun3")); + return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Calamitas")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Calamitas/CalamitasBag.cs b/Items/Calamitas/CalamitasBag.cs index f3a854078c..e62ed672d0 100644 --- a/Items/Calamitas/CalamitasBag.cs +++ b/Items/Calamitas/CalamitasBag.cs @@ -1,13 +1,14 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Calamitas +namespace CalamityMod.Items { public class CalamitasBag : ModItem { - public override int BossBagNPC => mod.NPCType("CalamitasRun3"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -35,23 +36,23 @@ namespace CalamityMod.Items.Calamitas player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("CalamityDust"), 14, 18); - DropHelper.DropItem(player, mod.ItemType("BlightedLens"), 1, 3); - DropHelper.DropItem(player, mod.ItemType("EssenceofChaos"), 5, 9); - DropHelper.DropItemCondition(player, mod.ItemType("Bloodstone"), CalamityWorld.downedProvidence, 35, 45); + DropHelper.DropItem(player, ModContent.ItemType(), 14, 18); + DropHelper.DropItem(player, ModContent.ItemType(), 1, 3); + DropHelper.DropItem(player, ModContent.ItemType(), 5, 9); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence, 35, 45); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("TheEyeofCalamitas"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Animosity"), 3); - DropHelper.DropItemChance(player, mod.ItemType("CalamitasInferno"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BlightedEyeStaff"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Equipment - DropHelper.DropItem(player, mod.ItemType("CalamityRing")); - DropHelper.DropItemChance(player, mod.ItemType("ChaosStone"), 10); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemChance(player, ModContent.ItemType(), 10); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("CalamitasMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); } } } diff --git a/Items/Calamitas/CalamityDust.cs b/Items/Calamitas/CalamityDust.cs index 717e9dfe00..650945ee4d 100644 --- a/Items/Calamitas/CalamityDust.cs +++ b/Items/Calamitas/CalamityDust.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Calamitas +namespace CalamityMod.Items { public class CalamityDust : ModItem { diff --git a/Items/Calamitas/CalamityRing.cs b/Items/Calamitas/CalamityRing.cs index faadba1ba1..1beb4811a7 100644 --- a/Items/Calamitas/CalamityRing.cs +++ b/Items/Calamitas/CalamityRing.cs @@ -1,10 +1,11 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles; using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Calamitas +namespace CalamityMod.Items { public class CalamityRing : ModItem { @@ -59,7 +60,7 @@ namespace CalamityMod.Items.Calamitas num18 = (float)num17 / num18; num15 *= num18; num16 *= num18; - int num19 = Projectile.NewProjectile(x, y, num15, num16, mod.ProjectileType("StandingFire"), 30, 5f, player.whoAmI, 0f, 0f); + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), 30, 5f, player.whoAmI, 0f, 0f); Main.projectile[num19].ai[1] = player.position.Y; } } diff --git a/Items/Calamitas/ChaosStone.cs b/Items/Calamitas/ChaosStone.cs index 658ad3ac14..f911a376c0 100644 --- a/Items/Calamitas/ChaosStone.cs +++ b/Items/Calamitas/ChaosStone.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Calamitas +namespace CalamityMod.Items { public class ChaosStone : ModItem { diff --git a/Items/CalamityCustomThrowingDamage/AccretionDisk.cs b/Items/CalamityCustomThrowingDamage/AccretionDisk.cs index a3fa0ff41a..a2ad599018 100644 --- a/Items/CalamityCustomThrowingDamage/AccretionDisk.cs +++ b/Items/CalamityCustomThrowingDamage/AccretionDisk.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class AccretionDisk : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 38; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("AccretionDisk"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 12; diff --git a/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs b/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs index ed16111d6b..fc65f4f782 100644 --- a/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs +++ b/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class AdamantiteThrowingAxe : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1600; item.rare = 4; - item.shoot = mod.ProjectileType("AdamantiteThrowingAxeProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs b/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs index e524ae75d5..d98856f48b 100644 --- a/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs +++ b/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class BallisticPoisonBomb : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 38; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("BallisticPoisonBomb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/BlastBarrel.cs b/Items/CalamityCustomThrowingDamage/BlastBarrel.cs index 0c0b12dbec..0adbdbd14c 100644 --- a/Items/CalamityCustomThrowingDamage/BlastBarrel.cs +++ b/Items/CalamityCustomThrowingDamage/BlastBarrel.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class BlastBarrel : CalamityDamageItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(0, 12, 0, 0); //2 gold 40 silver sellprice item.rare = 4; - item.shoot = mod.ProjectileType("BlastBarrelProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/BlazingStar.cs b/Items/CalamityCustomThrowingDamage/BlazingStar.cs index 3a6e99aa52..821f18a311 100644 --- a/Items/CalamityCustomThrowingDamage/BlazingStar.cs +++ b/Items/CalamityCustomThrowingDamage/BlazingStar.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class BlazingStar : CalamityDamageItem { @@ -35,7 +35,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 3; item.shootSpeed = Speed; - item.shoot = mod.ProjectileType("BlazingStarProj"); + item.shoot = ModContent.ProjectileType(); } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) @@ -47,7 +47,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage for (int i = 0; i < item.stack; i++) { Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-MathHelper.ToRadians(8f), MathHelper.ToRadians(8f), i / (float)(item.stack - 1))); - Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, i == 1 ? type : mod.ProjectileType("BlazingStarProj"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, i == 1 ? type : ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); int projectileIndex = Projectile.NewProjectile(position, perturbedSpeed, type, damage, knockBack, player.whoAmI, 0f); Main.projectile[projectileIndex].penetrate = -1; } diff --git a/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs b/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs index f8701caae3..689ca9de71 100644 --- a/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs +++ b/Items/CalamityCustomThrowingDamage/BloodsoakedCrasher.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class BloodsoakedCrasher : CalamityDamageItem //This weapon has been coded by Achilles|Termi|Ben { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.Calamity().postMoonLordRarity = 13; - item.shoot = mod.ProjectileType("BloodsoakedCrashax"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { - int p = Projectile.NewProjectile(position, new Vector2(speedX, speedY), mod.ProjectileType("BloodsoakedCrashax"), damage, knockBack, player.whoAmI, 0f, 1f); + int p = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 1f); Main.projectile[p].Calamity().stealthStrike = true; return false; } @@ -50,8 +50,8 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); //post-Prov rogue weapon - recipe.AddIngredient(mod.ItemType("CrushsawCrasher"), 1); - recipe.AddIngredient(mod.ItemType("BloodstoneCore"), 12); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.AddIngredient(ModContent.ItemType(), 12); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/CalamityCustomThrowingDamage/BouncingEyeball.cs b/Items/CalamityCustomThrowingDamage/BouncingEyeball.cs index f65ee2a40c..86ccc5816a 100644 --- a/Items/CalamityCustomThrowingDamage/BouncingEyeball.cs +++ b/Items/CalamityCustomThrowingDamage/BouncingEyeball.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class BouncingEyeball : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.Calamity().rogue = true; item.noUseGraphic = true; item.UseSound = SoundID.Item1; - item.shoot = mod.ProjectileType("BouncingEyeballProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.autoReuse = true; } @@ -42,14 +42,14 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage if (player.Calamity().StealthStrikeAvailable()) { initialVelocity *= 2f; - int p = Projectile.NewProjectile(position, initialVelocity, mod.ProjectileType("BouncingEyeballProjectileStealthStrike"), damage, knockBack, player.whoAmI); + int p = Projectile.NewProjectile(position, initialVelocity, ModContent.ProjectileType(), damage, knockBack, player.whoAmI); Main.projectile[p].Calamity().stealthStrike = true; } else { initialVelocity *= Main.rand.NextFloat(0.85f, 1.3f); initialVelocity = initialVelocity.RotatedByRandom(MathHelper.ToRadians(10f)); //random spread - Projectile.NewProjectile(position, initialVelocity, mod.ProjectileType("BouncingEyeballProjectile"), damage, knockBack, player.whoAmI); + Projectile.NewProjectile(position, initialVelocity, ModContent.ProjectileType(), damage, knockBack, player.whoAmI); } return false; } diff --git a/Items/CalamityCustomThrowingDamage/BrackishFlask.cs b/Items/CalamityCustomThrowingDamage/BrackishFlask.cs index 504f031000..e4b81804e8 100644 --- a/Items/CalamityCustomThrowingDamage/BrackishFlask.cs +++ b/Items/CalamityCustomThrowingDamage/BrackishFlask.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class BrackishFlask : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 30; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("BrackishFlask"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Brimblade.cs b/Items/CalamityCustomThrowingDamage/Brimblade.cs index ce7375afa5..8b4f7d69bd 100644 --- a/Items/CalamityCustomThrowingDamage/Brimblade.cs +++ b/Items/CalamityCustomThrowingDamage/Brimblade.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Brimblade : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 26; item.value = Item.buyPrice(0, 48, 0, 0); item.rare = 6; - item.shoot = mod.ProjectileType("Brimblade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs b/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs index b5ffd8f679..ae5b7cee37 100644 --- a/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs +++ b/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public abstract class CalamityDamageItem : ModItem { diff --git a/Items/CalamityCustomThrowingDamage/CelestialReaper.cs b/Items/CalamityCustomThrowingDamage/CelestialReaper.cs index 31cb0166fe..78e43595a2 100644 --- a/Items/CalamityCustomThrowingDamage/CelestialReaper.cs +++ b/Items/CalamityCustomThrowingDamage/CelestialReaper.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class CelestialReaper : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.UseSound = SoundID.Item71; item.autoReuse = true; item.value = Item.buyPrice(platinum: 1); //sell price of 20 gold - item.shoot = mod.ProjectileType("CelestialReaperProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; } @@ -39,7 +39,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { Vector2 velocity = new Vector2(speedX, speedY); float strikeValue = player.Calamity().StealthStrikeAvailable().ToInt(); //0 if false, 1 if true - int p = Projectile.NewProjectile(position, velocity, mod.ProjectileType("CelestialReaperProjectile"), damage, knockBack, player.whoAmI, strikeValue); + int p = Projectile.NewProjectile(position, velocity, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, strikeValue); if (player.Calamity().StealthStrikeAvailable()) Main.projectile[p].Calamity().stealthStrike = true; return false; diff --git a/Items/CalamityCustomThrowingDamage/Celestus.cs b/Items/CalamityCustomThrowingDamage/Celestus.cs index 924f6deaf9..d02e6e91ac 100644 --- a/Items/CalamityCustomThrowingDamage/Celestus.cs +++ b/Items/CalamityCustomThrowingDamage/Celestus.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Celestus : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 20; item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Celestus"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 15; diff --git a/Items/CalamityCustomThrowingDamage/Cinquedea.cs b/Items/CalamityCustomThrowingDamage/Cinquedea.cs index 93f2263817..275b83a06d 100644 --- a/Items/CalamityCustomThrowingDamage/Cinquedea.cs +++ b/Items/CalamityCustomThrowingDamage/Cinquedea.cs @@ -2,7 +2,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Cinquedea : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.UseSound = SoundID.Item1; item.noMelee = true; item.noUseGraphic = true; - item.shoot = mod.ProjectileType("CinquedeaProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; item.value = Item.buyPrice(0, 4, 0, 0); item.Calamity().rogue = true; @@ -41,7 +41,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.Calamity().StealthStrikeAvailable()) { - int p = Projectile.NewProjectile(position, new Vector2(speedX, speedY), mod.ProjectileType("CinquedeaProj"), damage, knockBack, player.whoAmI, 0f, 1f); + int p = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 1f); Main.projectile[p].Calamity().stealthStrike = true; return false; } diff --git a/Items/CalamityCustomThrowingDamage/CobaltKunai.cs b/Items/CalamityCustomThrowingDamage/CobaltKunai.cs index f546d71b91..91b8af6b7a 100644 --- a/Items/CalamityCustomThrowingDamage/CobaltKunai.cs +++ b/Items/CalamityCustomThrowingDamage/CobaltKunai.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class CobaltKunai : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 900; item.rare = 4; - item.shoot = mod.ProjectileType("CobaltKunaiProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/ConsecratedWater.cs b/Items/CalamityCustomThrowingDamage/ConsecratedWater.cs index 2d6c7829d1..2b64afe461 100644 --- a/Items/CalamityCustomThrowingDamage/ConsecratedWater.cs +++ b/Items/CalamityCustomThrowingDamage/ConsecratedWater.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ConsecratedWater : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.UseSound = SoundID.Item106; item.autoReuse = true; item.value = Item.buyPrice(gold: 48); //sell price of 9 gold 60 silver - item.shoot = mod.ProjectileType("ConsecratedWaterProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; } @@ -39,7 +39,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { Vector2 velocity = new Vector2(speedX, speedY); float strikeValue = player.Calamity().StealthStrikeAvailable().ToInt(); //0 if false, 1 if true - int p = Projectile.NewProjectile(position, velocity, mod.ProjectileType("ConsecratedWaterProjectile"), damage, knockBack, player.whoAmI, ai1: strikeValue); + int p = Projectile.NewProjectile(position, velocity, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, ai1: strikeValue); if (player.Calamity().StealthStrikeAvailable()) Main.projectile[p].Calamity().stealthStrike = true; return false; diff --git a/Items/CalamityCustomThrowingDamage/CosmicKunai.cs b/Items/CalamityCustomThrowingDamage/CosmicKunai.cs index 1998525cc8..eaa5870e42 100644 --- a/Items/CalamityCustomThrowingDamage/CosmicKunai.cs +++ b/Items/CalamityCustomThrowingDamage/CosmicKunai.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class CosmicKunai : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 48; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("CosmicKunai"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; item.rare = 9; item.Calamity().rogue = true; diff --git a/Items/CalamityCustomThrowingDamage/CraniumSmasher.cs b/Items/CalamityCustomThrowingDamage/CraniumSmasher.cs index ee5127fa5c..7a1de3ee95 100644 --- a/Items/CalamityCustomThrowingDamage/CraniumSmasher.cs +++ b/Items/CalamityCustomThrowingDamage/CraniumSmasher.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class CraniumSmasher : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.UseSound = SoundID.Item1; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("CraniumSmasher"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; } @@ -36,11 +36,11 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage if (Main.rand.Next(0, 5) == 0) { damage = (int)(damage * 1.25f); - type = mod.ProjectileType("CraniumSmasherExplosive"); + type = ModContent.ProjectileType(); } else { - type = mod.ProjectileType("CraniumSmasher"); + type = ModContent.ProjectileType(); } Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; diff --git a/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs b/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs index 4c6deb7bb1..e07f07da9b 100644 --- a/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs +++ b/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class CrushsawCrasher : CalamityDamageItem { @@ -24,14 +24,14 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 22; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("Crushax"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; item.Calamity().rogue = true; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs b/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs index ffad24640a..2b725f0f7a 100644 --- a/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs +++ b/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class CrystalPiercer : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 2500; item.rare = 5; - item.shoot = mod.ProjectileType("CrystalPiercerProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Crystalline.cs b/Items/CalamityCustomThrowingDamage/Crystalline.cs index c1eb3ae30c..d3601bf8b9 100644 --- a/Items/CalamityCustomThrowingDamage/Crystalline.cs +++ b/Items/CalamityCustomThrowingDamage/Crystalline.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Crystalline : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 44; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("Crystalline"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/CursedDagger.cs b/Items/CalamityCustomThrowingDamage/CursedDagger.cs index 762b6810ab..b7ee4d4eb1 100644 --- a/Items/CalamityCustomThrowingDamage/CursedDagger.cs +++ b/Items/CalamityCustomThrowingDamage/CursedDagger.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class CursedDagger : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 34; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("CursedDagger"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/DuststormInABottle.cs b/Items/CalamityCustomThrowingDamage/DuststormInABottle.cs index 64bd3121c4..42f8dd483d 100644 --- a/Items/CalamityCustomThrowingDamage/DuststormInABottle.cs +++ b/Items/CalamityCustomThrowingDamage/DuststormInABottle.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class DuststormInABottle : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 24; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("DuststormInABottle"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/EclipsesFall.cs b/Items/CalamityCustomThrowingDamage/EclipsesFall.cs index fa7ce08668..be6e1741a3 100644 --- a/Items/CalamityCustomThrowingDamage/EclipsesFall.cs +++ b/Items/CalamityCustomThrowingDamage/EclipsesFall.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class EclipsesFall : CalamityDamageItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.Calamity().postMoonLordRarity = 14; - item.shoot = mod.ProjectileType("EclipsesFallMain"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; } @@ -38,7 +38,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.Calamity().StealthStrikeAvailable()) { - int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("EclipsesStealth"), damage, knockBack, player.whoAmI, 0f, 0f); + int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[p].Calamity().stealthStrike = true; } else @@ -52,8 +52,8 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.DayBreak, 1); - recipe.AddIngredient(mod.ItemType("DarksunFragment"), 15); - recipe.AddIngredient(mod.ItemType("CoreofCinder"), 6); + recipe.AddIngredient(ModContent.ItemType(), 15); + recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/CalamityCustomThrowingDamage/EmpyreanKnivesThrown.cs b/Items/CalamityCustomThrowingDamage/EmpyreanKnivesThrown.cs index 3970605fe3..b78c20b344 100644 --- a/Items/CalamityCustomThrowingDamage/EmpyreanKnivesThrown.cs +++ b/Items/CalamityCustomThrowingDamage/EmpyreanKnivesThrown.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class EmpyreanKnivesThrown : CalamityDamageItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 20; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EmpyreanKnives"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/CalamityCustomThrowingDamage/EnchantedAxe.cs b/Items/CalamityCustomThrowingDamage/EnchantedAxe.cs index 1195a4e02f..cab38daa72 100644 --- a/Items/CalamityCustomThrowingDamage/EnchantedAxe.cs +++ b/Items/CalamityCustomThrowingDamage/EnchantedAxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class EnchantedAxe : CalamityDamageItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = 1000; item.rare = 3; item.value = Item.buyPrice(0, 4, 0, 0); - item.shoot = mod.ProjectileType("EnchantedAxe"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().rogue = true; } @@ -51,17 +51,17 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("IronFrancisca"), 100); + recipe.AddIngredient(ModContent.ItemType(), 100); recipe.AddIngredient(ItemID.FallenStar, 5); - recipe.AddIngredient(mod.ItemType("VictoryShard"), 10); + recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddIngredient(ItemID.Bone, 30); recipe.AddTile(TileID.Anvils); recipe.SetResult(this, 1); recipe.AddRecipe(); recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("LeadTomahawk"), 100); + recipe.AddIngredient(ModContent.ItemType(), 100); recipe.AddIngredient(ItemID.FallenStar, 5); - recipe.AddIngredient(mod.ItemType("VictoryShard"), 10); + recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddIngredient(ItemID.Bone, 30); recipe.AddTile(TileID.Anvils); recipe.SetResult(this, 1); diff --git a/Items/CalamityCustomThrowingDamage/Eradicator.cs b/Items/CalamityCustomThrowingDamage/Eradicator.cs index 10e60daf2a..ebac6d2b30 100644 --- a/Items/CalamityCustomThrowingDamage/Eradicator.cs +++ b/Items/CalamityCustomThrowingDamage/Eradicator.cs @@ -3,7 +3,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Eradicator : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 54; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EradicatorProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 13; diff --git a/Items/CalamityCustomThrowingDamage/ExecutionersBlade.cs b/Items/CalamityCustomThrowingDamage/ExecutionersBlade.cs index 6d861fa92a..074497c07a 100644 --- a/Items/CalamityCustomThrowingDamage/ExecutionersBlade.cs +++ b/Items/CalamityCustomThrowingDamage/ExecutionersBlade.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ExecutionersBlade : CalamityDamageItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 64; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("ExecutionersBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 26f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/CalamityCustomThrowingDamage/FeatherKnife.cs b/Items/CalamityCustomThrowingDamage/FeatherKnife.cs index f79314364a..369c959d10 100644 --- a/Items/CalamityCustomThrowingDamage/FeatherKnife.cs +++ b/Items/CalamityCustomThrowingDamage/FeatherKnife.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class FeatherKnife : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 300; item.rare = 3; - item.shoot = mod.ProjectileType("FeatherKnifeProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/FlameScythe.cs b/Items/CalamityCustomThrowingDamage/FlameScythe.cs index 1361e2f32c..43448d6ebb 100644 --- a/Items/CalamityCustomThrowingDamage/FlameScythe.cs +++ b/Items/CalamityCustomThrowingDamage/FlameScythe.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class FlameScythe : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 48; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("FlameScytheProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/FrostyFlare.cs b/Items/CalamityCustomThrowingDamage/FrostyFlare.cs index a2fb0a09a4..8774d7c9cc 100644 --- a/Items/CalamityCustomThrowingDamage/FrostyFlare.cs +++ b/Items/CalamityCustomThrowingDamage/FrostyFlare.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class FrostyFlare : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.knockBack = 2f; item.value = Item.buyPrice(0, 0, 5, 0); item.rare = 5; - item.shoot = mod.ProjectileType("FrostyFlare"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 22f; item.maxStack = 999; item.consumable = true; diff --git a/Items/CalamityCustomThrowingDamage/GacruxianMollusk.cs b/Items/CalamityCustomThrowingDamage/GacruxianMollusk.cs index e40307f53e..0a548ef90d 100644 --- a/Items/CalamityCustomThrowingDamage/GacruxianMollusk.cs +++ b/Items/CalamityCustomThrowingDamage/GacruxianMollusk.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class GacruxianMollusk : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.UseSound = SoundID.Item1; item.noMelee = true; item.noUseGraphic = true; - item.shoot = mod.ProjectileType("GacruxianProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; item.value = Item.buyPrice(0, 36, 0, 0); item.Calamity().rogue = true; @@ -43,7 +43,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { - int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), mod.ProjectileType("GacruxianProj"), damage, knockBack, player.whoAmI, 0f, 1f); + int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 1f); Main.projectile[stealth].Calamity().stealthStrike = true; return false; } diff --git a/Items/CalamityCustomThrowingDamage/GalaxySmasherRogue.cs b/Items/CalamityCustomThrowingDamage/GalaxySmasherRogue.cs index 68220231b7..d7bf26e936 100644 --- a/Items/CalamityCustomThrowingDamage/GalaxySmasherRogue.cs +++ b/Items/CalamityCustomThrowingDamage/GalaxySmasherRogue.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class GalaxySmasherRogue : CalamityDamageItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = Item.buyPrice(1, 80, 0, 0); item.Calamity().rogue = true; - item.shoot = mod.ProjectileType("GalaxySmasherHammer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/CalamityCustomThrowingDamage/GelDart.cs b/Items/CalamityCustomThrowingDamage/GelDart.cs index a6b96c568c..02bc1a36b3 100644 --- a/Items/CalamityCustomThrowingDamage/GelDart.cs +++ b/Items/CalamityCustomThrowingDamage/GelDart.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class GelDart : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1000; item.rare = 4; - item.shoot = mod.ProjectileType("GelDartProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/GhoulishGouger.cs b/Items/CalamityCustomThrowingDamage/GhoulishGouger.cs index b8a5315a0d..7136ba05ba 100644 --- a/Items/CalamityCustomThrowingDamage/GhoulishGouger.cs +++ b/Items/CalamityCustomThrowingDamage/GhoulishGouger.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class GhoulishGouger : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 60; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("GhoulishGouger"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 13; diff --git a/Items/CalamityCustomThrowingDamage/Glaive.cs b/Items/CalamityCustomThrowingDamage/Glaive.cs index 2e1bbd7bbc..170acdec30 100644 --- a/Items/CalamityCustomThrowingDamage/Glaive.cs +++ b/Items/CalamityCustomThrowingDamage/Glaive.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Glaive : CalamityDamageItem { @@ -37,7 +37,7 @@ Stealth strikes are super fast and pierce infinitely"); item.maxStack = 3; item.shootSpeed = Speed; - item.shoot = mod.ProjectileType("GlaiveProj"); + item.shoot = ModContent.ProjectileType(); } 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/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs b/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs index 8e6fa0a3a6..2984eb9362 100644 --- a/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs +++ b/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class HeavenfallenStardisk : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("HeavenfallenStardisk"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/IceStar.cs b/Items/CalamityCustomThrowingDamage/IceStar.cs index 95744d19e7..bbd50a71cb 100644 --- a/Items/CalamityCustomThrowingDamage/IceStar.cs +++ b/Items/CalamityCustomThrowingDamage/IceStar.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class IceStar : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = Item.sellPrice(0, 0, 1, 20); item.rare = 5; - item.shoot = mod.ProjectileType("IceStarProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Icebreaker.cs b/Items/CalamityCustomThrowingDamage/Icebreaker.cs index 98e23a8d22..0545d6bb7f 100644 --- a/Items/CalamityCustomThrowingDamage/Icebreaker.cs +++ b/Items/CalamityCustomThrowingDamage/Icebreaker.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Icebreaker : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 60; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("Icebreaker"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/IchorSpear.cs b/Items/CalamityCustomThrowingDamage/IchorSpear.cs index 87b7fcaafa..0e36333c97 100644 --- a/Items/CalamityCustomThrowingDamage/IchorSpear.cs +++ b/Items/CalamityCustomThrowingDamage/IchorSpear.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class IchorSpear : CalamityDamageItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 52; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("IchorSpear"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/IronFrancisca.cs b/Items/CalamityCustomThrowingDamage/IronFrancisca.cs index 7a2c633e59..ca5ec3d4fd 100644 --- a/Items/CalamityCustomThrowingDamage/IronFrancisca.cs +++ b/Items/CalamityCustomThrowingDamage/IronFrancisca.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class IronFrancisca : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1000; item.rare = 0; - item.shoot = mod.ProjectileType("IronFrancisca"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Kylie.cs b/Items/CalamityCustomThrowingDamage/Kylie.cs index 7f03e06f09..42d03ff925 100644 --- a/Items/CalamityCustomThrowingDamage/Kylie.cs +++ b/Items/CalamityCustomThrowingDamage/Kylie.cs @@ -3,7 +3,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Kylie : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.useStyle = 1; item.UseSound = SoundID.Item1; item.shootSpeed = 11f; - item.shoot = mod.ProjectileType("KylieBoomerang"); + item.shoot = ModContent.ProjectileType(); item.noMelee = true; item.noUseGraphic = true; item.Calamity().rogue = true; @@ -44,7 +44,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage for (int i = 0; i < 3; i++) { Vector2 perturbedspeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(spread)); - int proj = Projectile.NewProjectile(position.X, position.Y, perturbedspeed.X, perturbedspeed.Y, mod.ProjectileType("KylieBoomerang"), item.damage, item.knockBack, player.whoAmI, 0f, 1f); + int proj = Projectile.NewProjectile(position.X, position.Y, perturbedspeed.X, perturbedspeed.Y, ModContent.ProjectileType(), item.damage, item.knockBack, player.whoAmI, 0f, 1f); Main.projectile[proj].Calamity().stealthStrike = true; spread -= 10; } diff --git a/Items/CalamityCustomThrowingDamage/LeadTomahawk.cs b/Items/CalamityCustomThrowingDamage/LeadTomahawk.cs index aa80413696..9270d408cc 100644 --- a/Items/CalamityCustomThrowingDamage/LeadTomahawk.cs +++ b/Items/CalamityCustomThrowingDamage/LeadTomahawk.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class LeadTomahawk : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1000; item.rare = 0; - item.shoot = mod.ProjectileType("LeadTomahawk"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Lionfish.cs b/Items/CalamityCustomThrowingDamage/Lionfish.cs index d78989ae73..f19c121c64 100644 --- a/Items/CalamityCustomThrowingDamage/Lionfish.cs +++ b/Items/CalamityCustomThrowingDamage/Lionfish.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Lionfish : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 40; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.shoot = mod.ProjectileType("Lionfish"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Malachite.cs b/Items/CalamityCustomThrowingDamage/Malachite.cs index 425db81ac2..255f46c13c 100644 --- a/Items/CalamityCustomThrowingDamage/Malachite.cs +++ b/Items/CalamityCustomThrowingDamage/Malachite.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Malachite : CalamityDamageItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 58; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("Malachite"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 17; @@ -61,11 +61,11 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("MalachiteBolt"), (int)((double)damage * 1.75), knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.75), knockBack, player.whoAmI, 0f, 0f); } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Malachite"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/CalamityCustomThrowingDamage/MangroveChakram.cs b/Items/CalamityCustomThrowingDamage/MangroveChakram.cs index ab03d60938..fae34dca89 100644 --- a/Items/CalamityCustomThrowingDamage/MangroveChakram.cs +++ b/Items/CalamityCustomThrowingDamage/MangroveChakram.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class MangroveChakram : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 38; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("MangroveChakramProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/MeteorFist.cs b/Items/CalamityCustomThrowingDamage/MeteorFist.cs index 3b8a2b5dc6..667c420b9a 100644 --- a/Items/CalamityCustomThrowingDamage/MeteorFist.cs +++ b/Items/CalamityCustomThrowingDamage/MeteorFist.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class MeteorFist : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 28; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("MeteorFist"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs b/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs index d4ff93760d..48273c569b 100644 --- a/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs +++ b/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class MoltenAmputator : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 60; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("MoltenAmputator"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 12; diff --git a/Items/CalamityCustomThrowingDamage/MonkeyDarts.cs b/Items/CalamityCustomThrowingDamage/MonkeyDarts.cs index 8bf05aec79..efb822d166 100644 --- a/Items/CalamityCustomThrowingDamage/MonkeyDarts.cs +++ b/Items/CalamityCustomThrowingDamage/MonkeyDarts.cs @@ -1,10 +1,10 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class MonkeyDarts : CalamityDamageItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = Item.buyPrice(0, 0, 1, 0); item.rare = 3; item.shootSpeed = 10.5f; - item.shoot = mod.ProjectileType("MonkeyDart"); + item.shoot = ModContent.ProjectileType(); item.autoReuse = true; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Mycoroot.cs b/Items/CalamityCustomThrowingDamage/Mycoroot.cs index 777f93fa85..3186c010c2 100644 --- a/Items/CalamityCustomThrowingDamage/Mycoroot.cs +++ b/Items/CalamityCustomThrowingDamage/Mycoroot.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Mycoroot : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 32; item.rare = 2; item.value = Item.buyPrice(0, 2, 0, 0); - item.shoot = mod.ProjectileType("Mycoroot"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/MythrilKnife.cs b/Items/CalamityCustomThrowingDamage/MythrilKnife.cs index 0d0a1d21d5..17776522de 100644 --- a/Items/CalamityCustomThrowingDamage/MythrilKnife.cs +++ b/Items/CalamityCustomThrowingDamage/MythrilKnife.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class MythrilKnife : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1100; item.rare = 4; - item.shoot = mod.ProjectileType("MythrilKnifeProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/NanoblackReaperRogue.cs b/Items/CalamityCustomThrowingDamage/NanoblackReaperRogue.cs index a08b3b309d..2236c8bd73 100644 --- a/Items/CalamityCustomThrowingDamage/NanoblackReaperRogue.cs +++ b/Items/CalamityCustomThrowingDamage/NanoblackReaperRogue.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class NanoblackReaperRogue : CalamityDamageItem { @@ -37,7 +37,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = Item.buyPrice(5, 0, 0, 0); item.Calamity().rogue = true; - item.shoot = mod.ProjectileType("NanoblackMain"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs b/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs index 57185e919f..180bca360d 100644 --- a/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs +++ b/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class OrichalcumSpikedGemstone : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1200; item.rare = 4; - item.shoot = mod.ProjectileType("OrichalcumSpikedGemstoneProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs b/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs index 49ae52af36..46450693e9 100644 --- a/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs +++ b/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class PalladiumJavelin : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1200; item.rare = 4; - item.shoot = mod.ProjectileType("PalladiumJavelinProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Patreon/CorpusAvertor.cs b/Items/CalamityCustomThrowingDamage/Patreon/CorpusAvertor.cs index 57480e4337..c1990cef2f 100644 --- a/Items/CalamityCustomThrowingDamage/Patreon/CorpusAvertor.cs +++ b/Items/CalamityCustomThrowingDamage/Patreon/CorpusAvertor.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon +namespace CalamityMod.Items { public class CorpusAvertor : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.Calamity().postMoonLordRarity = 21; - item.shoot = mod.ProjectileType("CorpusAvertor"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Patreon/DeepSeaDumbbell.cs b/Items/CalamityCustomThrowingDamage/Patreon/DeepSeaDumbbell.cs index 875e1dafce..404376660c 100644 --- a/Items/CalamityCustomThrowingDamage/Patreon/DeepSeaDumbbell.cs +++ b/Items/CalamityCustomThrowingDamage/Patreon/DeepSeaDumbbell.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon +namespace CalamityMod.Items { public class DeepSeaDumbbell : CalamityDamageItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon item.height = 24; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("DeepSeaDumbbell1"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 21; diff --git a/Items/CalamityCustomThrowingDamage/Patreon/KelvinCatalyst.cs b/Items/CalamityCustomThrowingDamage/Patreon/KelvinCatalyst.cs index d01c5d651a..49ec9068b4 100644 --- a/Items/CalamityCustomThrowingDamage/Patreon/KelvinCatalyst.cs +++ b/Items/CalamityCustomThrowingDamage/Patreon/KelvinCatalyst.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon +namespace CalamityMod.Items { public class KelvinCatalyst : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon item.height = 20; item.value = Item.buyPrice(0, 48, 0, 0); item.rare = 6; - item.shoot = mod.ProjectileType("KelvinCatalyst"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 21; diff --git a/Items/CalamityCustomThrowingDamage/Patreon/Plaguenade.cs b/Items/CalamityCustomThrowingDamage/Patreon/Plaguenade.cs index fc7a92762d..d2e197535d 100644 --- a/Items/CalamityCustomThrowingDamage/Patreon/Plaguenade.cs +++ b/Items/CalamityCustomThrowingDamage/Patreon/Plaguenade.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon +namespace CalamityMod.Items { public class Plaguenade : CalamityDamageItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon item.height = 28; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("Plaguenade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 21; diff --git a/Items/CalamityCustomThrowingDamage/Patreon/TimeBolt.cs b/Items/CalamityCustomThrowingDamage/Patreon/TimeBolt.cs index aad10463b3..1bcfaa4764 100644 --- a/Items/CalamityCustomThrowingDamage/Patreon/TimeBolt.cs +++ b/Items/CalamityCustomThrowingDamage/Patreon/TimeBolt.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon +namespace CalamityMod.Items { public class TimeBolt : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.Patreon item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.Calamity().postMoonLordRarity = 21; - item.shoot = mod.ProjectileType("TimeBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/Prismalline.cs b/Items/CalamityCustomThrowingDamage/Prismalline.cs index c844740190..0bb7089b8f 100644 --- a/Items/CalamityCustomThrowingDamage/Prismalline.cs +++ b/Items/CalamityCustomThrowingDamage/Prismalline.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Prismalline : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 46; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("Prismalline"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/ProfanedTrident.cs b/Items/CalamityCustomThrowingDamage/ProfanedTrident.cs index 3cd99084d8..42dd67574d 100644 --- a/Items/CalamityCustomThrowingDamage/ProfanedTrident.cs +++ b/Items/CalamityCustomThrowingDamage/ProfanedTrident.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ProfanedTrident : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 72; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("ProfanedTrident"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs b/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs index 531a8fe4d1..934a758aa8 100644 --- a/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs +++ b/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Pwnagehammer : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 68; item.value = Item.buyPrice(0, 48, 0, 0); item.rare = 6; - item.shoot = mod.ProjectileType("Pwnagehammer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/RadiantStar.cs b/Items/CalamityCustomThrowingDamage/RadiantStar.cs index 3e75d18e99..aa4c79dbce 100644 --- a/Items/CalamityCustomThrowingDamage/RadiantStar.cs +++ b/Items/CalamityCustomThrowingDamage/RadiantStar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class RadiantStar : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 48; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; - item.shoot = mod.ProjectileType("RadiantStar"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/RareVariants/DuneHopper.cs b/Items/CalamityCustomThrowingDamage/RareVariants/DuneHopper.cs index 92230b2e26..d9e7ff4609 100644 --- a/Items/CalamityCustomThrowingDamage/RareVariants/DuneHopper.cs +++ b/Items/CalamityCustomThrowingDamage/RareVariants/DuneHopper.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants +namespace CalamityMod.Items { public class DuneHopper : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants item.height = 44; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("ScourgeoftheDesert2"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 22; diff --git a/Items/CalamityCustomThrowingDamage/RareVariants/Quasar.cs b/Items/CalamityCustomThrowingDamage/RareVariants/Quasar.cs index 4019f10402..47c2495090 100644 --- a/Items/CalamityCustomThrowingDamage/RareVariants/Quasar.cs +++ b/Items/CalamityCustomThrowingDamage/RareVariants/Quasar.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants +namespace CalamityMod.Items { public class Quasar : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants item.height = 48; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; - item.shoot = mod.ProjectileType("Quasar"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 22; diff --git a/Items/CalamityCustomThrowingDamage/RareVariants/SpearofDestiny.cs b/Items/CalamityCustomThrowingDamage/RareVariants/SpearofDestiny.cs index 5340c8f7d3..fd812ba23b 100644 --- a/Items/CalamityCustomThrowingDamage/RareVariants/SpearofDestiny.cs +++ b/Items/CalamityCustomThrowingDamage/RareVariants/SpearofDestiny.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants +namespace CalamityMod.Items { public class SpearofDestiny : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants item.height = 52; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("IchorSpear"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 22; @@ -40,7 +40,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, i == 1 ? type : mod.ProjectileType("IchorSpear2"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, i == 1 ? type : ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/CalamityCustomThrowingDamage/RareVariants/TheReaper.cs b/Items/CalamityCustomThrowingDamage/RareVariants/TheReaper.cs index 18b7354fb5..f66087dd20 100644 --- a/Items/CalamityCustomThrowingDamage/RareVariants/TheReaper.cs +++ b/Items/CalamityCustomThrowingDamage/RareVariants/TheReaper.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants +namespace CalamityMod.Items { public class TheReaper : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage.RareVariants item.height = 64; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Valediction2"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 22; diff --git a/Items/CalamityCustomThrowingDamage/RotBall.cs b/Items/CalamityCustomThrowingDamage/RotBall.cs index 397c8c0449..86e2714477 100644 --- a/Items/CalamityCustomThrowingDamage/RotBall.cs +++ b/Items/CalamityCustomThrowingDamage/RotBall.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class RotBall : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1000; item.rare = 3; - item.shoot = mod.ProjectileType("RotBallProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/RoyalKnives.cs b/Items/CalamityCustomThrowingDamage/RoyalKnives.cs index 8c8eb360bb..1fd80bd5fe 100644 --- a/Items/CalamityCustomThrowingDamage/RoyalKnives.cs +++ b/Items/CalamityCustomThrowingDamage/RoyalKnives.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class RoyalKnives : CalamityDamageItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 20; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("RoyalKnife"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 16; @@ -90,7 +90,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage num149 *= num80; float x4 = vector2.X; float y4 = vector2.Y; - Projectile.NewProjectile(x4, y4, num148, num149, mod.ProjectileType("RoyalKnife"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/CalamityCustomThrowingDamage/SandDollar.cs b/Items/CalamityCustomThrowingDamage/SandDollar.cs index 67c6b42ea7..75d17a6880 100644 --- a/Items/CalamityCustomThrowingDamage/SandDollar.cs +++ b/Items/CalamityCustomThrowingDamage/SandDollar.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class SandDollar : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.UseSound = SoundID.Item1; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("SandDollarProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/ScarletDevil.cs b/Items/CalamityCustomThrowingDamage/ScarletDevil.cs index 6787488bae..d35a2dd960 100644 --- a/Items/CalamityCustomThrowingDamage/ScarletDevil.cs +++ b/Items/CalamityCustomThrowingDamage/ScarletDevil.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ScarletDevil : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("ScarletDevilProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 16; diff --git a/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs b/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs index 2b2c7daf2f..ec1bde793f 100644 --- a/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs +++ b/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ScourgeoftheCosmosThrown : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 20; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("ScourgeoftheCosmos"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs b/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs index e41bf5f631..5b994e4736 100644 --- a/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs +++ b/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ScourgeoftheDesert : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 44; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("ScourgeoftheDesert"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs b/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs index 8d3ba72e20..65d64dd916 100644 --- a/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs +++ b/Items/CalamityCustomThrowingDamage/ScourgeoftheSeas.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ScourgeoftheSeas : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 82; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("ScourgeoftheSeasProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.Calamity().rogue = true; } @@ -36,7 +36,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.Calamity().StealthStrikeAvailable()) { - int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ScourgeoftheSeasStealth"), damage, knockBack, player.whoAmI, 0f, 0f); + int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[p].Calamity().stealthStrike = true; } else diff --git a/Items/CalamityCustomThrowingDamage/SeafoamBomb.cs b/Items/CalamityCustomThrowingDamage/SeafoamBomb.cs index 043185f432..0effa5df97 100644 --- a/Items/CalamityCustomThrowingDamage/SeafoamBomb.cs +++ b/Items/CalamityCustomThrowingDamage/SeafoamBomb.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class SeafoamBomb : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("SeafoamBomb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/SeashellBoomerang.cs b/Items/CalamityCustomThrowingDamage/SeashellBoomerang.cs index d0e0962ce0..b3744a98d6 100644 --- a/Items/CalamityCustomThrowingDamage/SeashellBoomerang.cs +++ b/Items/CalamityCustomThrowingDamage/SeashellBoomerang.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class SeashellBoomerang : CalamityDamageItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 34; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("SeashellBoomerangProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11.5f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/ShatteredSun.cs b/Items/CalamityCustomThrowingDamage/ShatteredSun.cs index c8a28f08ba..a602ce4450 100644 --- a/Items/CalamityCustomThrowingDamage/ShatteredSun.cs +++ b/Items/CalamityCustomThrowingDamage/ShatteredSun.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ShatteredSun : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("ShatteredSun"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 12; diff --git a/Items/CalamityCustomThrowingDamage/SlickCane.cs b/Items/CalamityCustomThrowingDamage/SlickCane.cs index fb23bf6032..33f08a5778 100644 --- a/Items/CalamityCustomThrowingDamage/SlickCane.cs +++ b/Items/CalamityCustomThrowingDamage/SlickCane.cs @@ -1,11 +1,9 @@ using Microsoft.Xna.Framework; -using System; -using System.Collections.Generic; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class SlickCane : CalamityDamageItem { @@ -33,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; - item.shoot = mod.ProjectileType("SlickCaneProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 42f; } diff --git a/Items/CalamityCustomThrowingDamage/SnapClam.cs b/Items/CalamityCustomThrowingDamage/SnapClam.cs index edeef7c221..ac024d57a9 100644 --- a/Items/CalamityCustomThrowingDamage/SnapClam.cs +++ b/Items/CalamityCustomThrowingDamage/SnapClam.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class SnapClam : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("SnapClamProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/SpearofPaleolith.cs b/Items/CalamityCustomThrowingDamage/SpearofPaleolith.cs index 97eda5983c..f23f9f5bff 100644 --- a/Items/CalamityCustomThrowingDamage/SpearofPaleolith.cs +++ b/Items/CalamityCustomThrowingDamage/SpearofPaleolith.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class SpearofPaleolith : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 54; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("SpearofPaleolith"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 35f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/StellarContemptRogue.cs b/Items/CalamityCustomThrowingDamage/StellarContemptRogue.cs index e902ed0be3..7286202e33 100644 --- a/Items/CalamityCustomThrowingDamage/StellarContemptRogue.cs +++ b/Items/CalamityCustomThrowingDamage/StellarContemptRogue.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class StellarContemptRogue : CalamityDamageItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = Item.buyPrice(1, 20, 0, 0); item.Calamity().rogue = true; - item.shoot = mod.ProjectileType("StellarContemptHammer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/CalamityCustomThrowingDamage/StellarKnife.cs b/Items/CalamityCustomThrowingDamage/StellarKnife.cs index 7cc355a271..56ba71ec66 100644 --- a/Items/CalamityCustomThrowingDamage/StellarKnife.cs +++ b/Items/CalamityCustomThrowingDamage/StellarKnife.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class StellarKnife : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.autoReuse = true; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("StellarKnife"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/StormfrontRazor.cs b/Items/CalamityCustomThrowingDamage/StormfrontRazor.cs index 7ee69cf9a1..f383735662 100644 --- a/Items/CalamityCustomThrowingDamage/StormfrontRazor.cs +++ b/Items/CalamityCustomThrowingDamage/StormfrontRazor.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class StormfrontRazor : CalamityDamageItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.damage = 50; item.crit += 8; item.knockBack = 7f; - item.shoot = mod.ProjectileType("Stormfrontproj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7f; item.Calamity().rogue = true; } @@ -52,13 +52,13 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.Calamity().StealthStrikeAvailable()) { - int p = Projectile.NewProjectile(position, new Vector2(speedX * 1.6f, speedY * 1.6f), mod.ProjectileType("Stormfrontproj"), damage, knockBack, player.whoAmI, 0, 40f); + int p = Projectile.NewProjectile(position, new Vector2(speedX * 1.6f, speedY * 1.6f), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0, 40f); Main.projectile[p].Calamity().stealthStrike = true; return false; } else { - Projectile.NewProjectile(position, new Vector2(speedX, speedY), mod.ProjectileType("Stormfrontproj"), damage, knockBack, player.whoAmI, 0, 1); + Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0, 1); return false; } } diff --git a/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs b/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs index f5690d1d85..eecda88a33 100644 --- a/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs +++ b/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class TarragonThrowingDart : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 34; item.maxStack = 999; item.value = 25000; - item.shoot = mod.ProjectileType("TarragonThrowingDartProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 12; diff --git a/Items/CalamityCustomThrowingDamage/ThrowingBrick.cs b/Items/CalamityCustomThrowingDamage/ThrowingBrick.cs index 0ce0355871..beda2801e7 100644 --- a/Items/CalamityCustomThrowingDamage/ThrowingBrick.cs +++ b/Items/CalamityCustomThrowingDamage/ThrowingBrick.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ThrowingBrick : CalamityDamageItem { @@ -17,7 +17,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { item.damage = 20; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("Brick"); + item.shoot = ModContent.ProjectileType(); item.width = 26; item.height = 20; item.useTime = 20; @@ -39,7 +39,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage //Check if stealth is full if (player.Calamity().StealthStrikeAvailable()) { - int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Brick"), damage, knockBack, player.whoAmI, 1); + int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 1); Main.projectile[p].Calamity().stealthStrike = true; return false; } diff --git a/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs b/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs index 0da21575d1..2ca8845b1a 100644 --- a/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs +++ b/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class TitaniumShuriken : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 2000; item.rare = 4; - item.shoot = mod.ProjectileType("TitaniumShurikenProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/ToothBall.cs b/Items/CalamityCustomThrowingDamage/ToothBall.cs index 3ece5ebd50..1525650f1e 100644 --- a/Items/CalamityCustomThrowingDamage/ToothBall.cs +++ b/Items/CalamityCustomThrowingDamage/ToothBall.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class ToothBall : CalamityDamageItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 1000; item.rare = 3; - item.shoot = mod.ProjectileType("ToothBallProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs b/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs index 5cfef69374..c1c8445c7c 100644 --- a/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs +++ b/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class TriactisTruePaladinianMageHammerofMight : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 160; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("TriactisOPHammer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 16; diff --git a/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs b/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs index 999e216835..1738b70851 100644 --- a/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs +++ b/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class TruePaladinsHammer : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 28; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("OPHammer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/UrchinStinger.cs b/Items/CalamityCustomThrowingDamage/UrchinStinger.cs index 565ea89eb1..8da93fd3fa 100644 --- a/Items/CalamityCustomThrowingDamage/UrchinStinger.cs +++ b/Items/CalamityCustomThrowingDamage/UrchinStinger.cs @@ -1,6 +1,6 @@ using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class UrchinStinger : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 200; item.rare = 1; - item.shoot = mod.ProjectileType("UrchinStinger"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/UtensilPoker.cs b/Items/CalamityCustomThrowingDamage/UtensilPoker.cs index ad3a3e02fc..8e41c75165 100644 --- a/Items/CalamityCustomThrowingDamage/UtensilPoker.cs +++ b/Items/CalamityCustomThrowingDamage/UtensilPoker.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class UtensilPoker : CalamityDamageItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.Calamity().postMoonLordRarity = 12; - item.shoot = mod.ProjectileType("Fork"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } @@ -40,32 +40,32 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage { if (player.Calamity().StealthStrikeAvailable()) { - int p = Projectile.NewProjectile(position.X, position.Y, (int)((double)speedX * 1.2), (int)((double)speedY * 1.2), mod.ProjectileType("ButcherKnife"), (int)((double)damage * 3), knockBack, Main.myPlayer); + int p = Projectile.NewProjectile(position.X, position.Y, (int)((double)speedX * 1.2), (int)((double)speedY * 1.2), ModContent.ProjectileType(), (int)((double)damage * 3), knockBack, Main.myPlayer); Main.projectile[p].Calamity().stealthStrike = true; if (Main.rand.NextBool(3)) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Fork"), (int)((double)damage * 1.1), knockBack * 2f, Main.myPlayer); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.1), knockBack * 2f, Main.myPlayer); } else if (Main.rand.NextBool(2)) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Knife"), (int)((double)damage * 1.2), knockBack, Main.myPlayer); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.2), knockBack, Main.myPlayer); } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("CarvingFork"), damage, knockBack, Main.myPlayer); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, Main.myPlayer); } } else if (Main.rand.NextBool(3)) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Fork"), (int)((double)damage * 1.1), knockBack * 2f, Main.myPlayer); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.1), knockBack * 2f, Main.myPlayer); } else if (Main.rand.NextBool(2)) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Knife"), (int)((double)damage * 1.2), knockBack, Main.myPlayer); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.2), knockBack, Main.myPlayer); } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("CarvingFork"), damage, knockBack, Main.myPlayer); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, Main.myPlayer); } return false; } diff --git a/Items/CalamityCustomThrowingDamage/Valediction.cs b/Items/CalamityCustomThrowingDamage/Valediction.cs index 57177464b4..5ee5839584 100644 --- a/Items/CalamityCustomThrowingDamage/Valediction.cs +++ b/Items/CalamityCustomThrowingDamage/Valediction.cs @@ -1,7 +1,7 @@ using Terraria; using Terraria.ID; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class Valediction : CalamityDamageItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.height = 64; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Valediction"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; item.Calamity().postMoonLordRarity = 13; diff --git a/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs b/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs index 81ecafddc4..f882422efa 100644 --- a/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs +++ b/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class WulfrumKnife : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 100; item.rare = 1; - item.shoot = mod.ProjectileType("WulfrumKnife"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().rogue = true; } diff --git a/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs b/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs index 496a48655d..2f0c9a60a4 100644 --- a/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs +++ b/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.CalamityCustomThrowingDamage +namespace CalamityMod.Items { public class XerocPitchfork : CalamityDamageItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.CalamityCustomThrowingDamage item.maxStack = 999; item.value = 10000; item.rare = 9; - item.shoot = mod.ProjectileType("XerocPitchforkProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().rogue = true; } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index ccb180d555..83b879398a 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -8,7 +8,7 @@ using System.IO; using System.Linq; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ModLoader.IO; namespace CalamityMod.Items @@ -137,20 +137,20 @@ namespace CalamityMod.Items if (player.whoAmI == Main.myPlayer) { - if (item.melee && item.type != mod.ItemType("Murasama")) - Projectile.NewProjectile(position.X, position.Y, speedX * 0.5f, speedY * 0.5f, mod.ProjectileType("LuxorsGiftMelee"), (int)(newDamage * 0.6), 0f, player.whoAmI, 0f, 0f); + if (item.melee && item.type != ModContent.ItemType()) + Projectile.NewProjectile(position.X, position.Y, speedX * 0.5f, speedY * 0.5f, ModContent.ProjectileType(), (int)(newDamage * 0.6), 0f, player.whoAmI, 0f, 0f); else if (rogue) - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("LuxorsGiftRogue"), (int)(newDamage * 0.5), 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)(newDamage * 0.5), 0f, player.whoAmI, 0f, 0f); else if (item.ranged) - Projectile.NewProjectile(position.X, position.Y, speedX * 1.5f, speedY * 1.5f, mod.ProjectileType("LuxorsGiftRanged"), (int)(newDamage * 0.4), 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.5f, speedY * 1.5f, ModContent.ProjectileType(), (int)(newDamage * 0.4), 0f, player.whoAmI, 0f, 0f); else if (item.magic) - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("LuxorsGiftMagic"), (int)(newDamage * 0.8), 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)(newDamage * 0.8), 0f, player.whoAmI, 0f, 0f); - else if (item.summon && player.ownedProjectileCounts[mod.ProjectileType("LuxorsGiftSummon")] < 1) - Projectile.NewProjectile(position.X, position.Y, 0f, 0f, mod.ProjectileType("LuxorsGiftSummon"), damage, 0f, player.whoAmI, 0f, 0f); + else if (item.summon && player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) + Projectile.NewProjectile(position.X, position.Y, 0f, 0f, ModContent.ProjectileType(), damage, 0f, player.whoAmI, 0f, 0f); } } if (player.Calamity().eArtifact && item.ranged && !rogue) @@ -164,7 +164,7 @@ namespace CalamityMod.Items { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("GhostlyBolt"), (int)((double)damage * (player.Calamity().auricSet ? 4.2 : 2.6)), 1f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * (player.Calamity().auricSet ? 4.2 : 2.6)), 1f, player.whoAmI, 0f, 0f); } } } @@ -174,7 +174,7 @@ namespace CalamityMod.Items { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BloodBomb"), (int)((double)damage * (player.Calamity().auricSet ? 2.2 : 1.6)), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * (player.Calamity().auricSet ? 2.2 : 1.6)), 2f, player.whoAmI, 0f, 0f); } } } @@ -203,7 +203,7 @@ namespace CalamityMod.Items { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("ChaosFlare"), (int)((double)damage * 0.25), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)((double)damage * 0.25), 2f, player.whoAmI, 0f, 0f); } } } @@ -213,7 +213,7 @@ namespace CalamityMod.Items { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("GodSlayerShrapnelRound"), (int)((double)damage * (player.Calamity().auricSet ? 3.2 : 2.1)), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)((double)damage * (player.Calamity().auricSet ? 3.2 : 2.1)), 2f, player.whoAmI, 0f, 0f); } } } @@ -233,8 +233,8 @@ namespace CalamityMod.Items { Vector2 vector2 = new Vector2(player.Center.X, player.Center.Y); offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ChaosFlare2"), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ChaosFlare2"), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); } } } @@ -245,7 +245,7 @@ namespace CalamityMod.Items { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("MiniRocket"), (int)((double)damage * 1.3), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)((double)damage * 1.3), 2f, player.whoAmI, 0f, 0f); } } } @@ -256,7 +256,7 @@ namespace CalamityMod.Items { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("Seashell"), damage * 2, 1f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), damage * 2, 1f, player.whoAmI, 0f, 0f); } } } @@ -336,7 +336,7 @@ namespace CalamityMod.Items if (item.type == ItemID.Heart || item.type == ItemID.CandyApple || item.type == ItemID.CandyCane) { bool boostedHeart = player.Calamity().photosynthesis; - if (NPC.AnyNPCs(mod.NPCType("SupremeCalamitas"))) + if (NPC.AnyNPCs(ModContent.NPCType())) { player.statLife -= boostedHeart ? 5 : 10; if (Main.myPlayer == player.whoAmI) @@ -398,19 +398,19 @@ namespace CalamityMod.Items } return true; } - if ((item.type == ItemID.RegenerationPotion || item.type == ItemID.LifeforcePotion) && player.FindBuffIndex(mod.BuffType("Cadence")) > -1) + if ((item.type == ItemID.RegenerationPotion || item.type == ItemID.LifeforcePotion) && player.FindBuffIndex(ModContent.BuffType()) > -1) { return false; } - if (item.type == mod.ItemType("CrumblingPotion") && player.FindBuffIndex(mod.BuffType("ArmorShattering")) > -1) + if (item.type == ModContent.ItemType() && player.FindBuffIndex(ModContent.BuffType()) > -1) { return false; } - if (item.type == ItemID.WrathPotion && player.FindBuffIndex(mod.BuffType("HolyWrathBuff")) > -1) + if (item.type == ItemID.WrathPotion && player.FindBuffIndex(ModContent.BuffType()) > -1) { return false; } - if (item.type == ItemID.RagePotion && player.FindBuffIndex(mod.BuffType("ProfanedRageBuff")) > -1) + if (item.type == ItemID.RagePotion && player.FindBuffIndex(ModContent.BuffType()) > -1) { return false; } @@ -420,7 +420,7 @@ namespace CalamityMod.Items } if (item.type == ItemID.MagicMirror || item.type == ItemID.IceMirror || item.type == ItemID.CellPhone || item.type == ItemID.RecallPotion) { - return !NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")); + return !NPC.AnyNPCs(ModContent.NPCType()); } if (item.type == ItemID.RodofDiscord) { @@ -457,19 +457,19 @@ namespace CalamityMod.Items tt2.overrideColor = new Color(255, 0, 255); break; case 17: //Legendary Weapons - if (item.type == mod.ItemType("Malachite")) + if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(Main.DiscoR, 203, 103); - if (item.type == mod.ItemType("AegisBlade") || item.type == mod.ItemType("YharimsCrystal")) + if (item.type == ModContent.ItemType() || item.type == ModContent.ItemType()) tt2.overrideColor = new Color(255, Main.DiscoG, 53); - if (item.type == mod.ItemType("BrinyBaron")) + if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(53, Main.DiscoG, 255); - if (item.type == mod.ItemType("CosmicDischarge")) + if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(150, Main.DiscoG, 255); - if (item.type == mod.ItemType("BlossomFlux")) + if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(Main.DiscoR, 203, 103); - if (item.type == mod.ItemType("SHPC")) + if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(255, Main.DiscoG, 155); - if (item.type == mod.ItemType("Vesuvius")) + if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(255, Main.DiscoG, 0); break; case 18: //Fabstaff @@ -1704,69 +1704,69 @@ namespace CalamityMod.Items { // King Slime case ItemID.KingSlimeBossBag: - DropHelper.DropItemCondition(player, mod.ItemType("CrownJewel"), CalamityWorld.revenge); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); break; // Eye of Cthulhu case ItemID.EyeOfCthulhuBossBag: - DropHelper.DropItem(player, mod.ItemType("VictoryShard"), 3, 5); - DropHelper.DropItemChance(player, mod.ItemType("TeardropCleaver"), 3); - DropHelper.DropItemCondition(player, mod.ItemType("CounterScarf"), CalamityWorld.revenge); + DropHelper.DropItem(player, ModContent.ItemType(), 3, 5); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); break; // Skeletron case ItemID.SkeletronBossBag: - DropHelper.DropItemChance(player, mod.ItemType("ClothiersWrath"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); break; // Wall of Flesh case ItemID.WallOfFleshBossBag: - DropHelper.DropItemChance(player, mod.ItemType("Meowthrower"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BlackHawkRemote"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BlastBarrel"), 3); - DropHelper.DropItemChance(player, mod.ItemType("RogueEmblem"), 4); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4); DropHelper.DropItemFromSetChance(player, 5, ItemID.CorruptionKey, ItemID.CrimsonKey); - DropHelper.DropItem(player, mod.ItemType("MLGRune")); // Demon Trophy + DropHelper.DropItem(player, ModContent.ItemType()); // Demon Trophy break; // Destroyer case ItemID.DestroyerBossBag: float shpcChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("SHPC"), CalamityWorld.revenge, shpcChance); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, shpcChance); break; // Plantera case ItemID.PlanteraBossBag: - DropHelper.DropItem(player, mod.ItemType("LivingShard"), 8, 11); + DropHelper.DropItem(player, ModContent.ItemType(), 8, 11); float bFluxChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("BlossomFlux"), CalamityWorld.revenge, bFluxChance); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, bFluxChance); DropHelper.DropItemChance(player, ItemID.JungleKey, 5); break; // Golem case ItemID.GolemBossBag: float aegisChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("AegisBlade"), CalamityWorld.revenge, aegisChance); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, aegisChance); break; // Duke Fishron case ItemID.FishronBossBag: float baronChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("BrinyBaron"), CalamityWorld.revenge, baronChance); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, baronChance); break; // Betsy case ItemID.BossBagBetsy: float vesuviusChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("Vesuvius"), CalamityWorld.revenge, vesuviusChance); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, vesuviusChance); break; // Moon Lord case ItemID.MoonLordBossBag: - DropHelper.DropItem(player, mod.ItemType("MLGRune2")); // Celestial Onion - DropHelper.DropItemChance(player, mod.ItemType("UtensilPoker"), 8); - DropHelper.DropItemChance(player, mod.ItemType("GrandDad"), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(player, mod.ItemType("Infinity"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItem(player, ModContent.ItemType()); // Celestial Onion + DropHelper.DropItemChance(player, ModContent.ItemType(), 8); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); break; } } @@ -2379,7 +2379,7 @@ namespace CalamityMod.Items #region Goblin Money Theft (PostReforge) public override void PostReforge(Item item) { - if (NPC.AnyNPCs(mod.NPCType("Bandit"))) + if (NPC.AnyNPCs(ModContent.NPCType())) { int value = item.value; ItemLoader.ReforgePrice(item, ref value, ref Main.LocalPlayer.discount); diff --git a/Items/Crabulon/CrabulonBag.cs b/Items/Crabulon/CrabulonBag.cs index 1ef0d9fe56..7fe74ec277 100644 --- a/Items/Crabulon/CrabulonBag.cs +++ b/Items/Crabulon/CrabulonBag.cs @@ -1,14 +1,15 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Crabulon +namespace CalamityMod.Items { public class CrabulonBag : ModItem { - public override int BossBagNPC => mod.NPCType("CrabulonIdle"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -38,17 +39,17 @@ namespace CalamityMod.Items.Crabulon DropHelper.DropItem(player, ItemID.MushroomGrassSeeds, 5, 10); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("MycelialClaws"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Fungicide"), 3); - DropHelper.DropItemChance(player, mod.ItemType("HyphaeRod"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Mycoroot"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Equipment - DropHelper.DropItem(player, mod.ItemType("FungalClump")); - DropHelper.DropItemCondition(player, mod.ItemType("MushroomPlasmaRoot"), CalamityWorld.revenge); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("CrabulonMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); } } } diff --git a/Items/Crabulon/DecapoditaSprout.cs b/Items/Crabulon/DecapoditaSprout.cs index fb2cf6012d..43bcbf5854 100644 --- a/Items/Crabulon/DecapoditaSprout.cs +++ b/Items/Crabulon/DecapoditaSprout.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Crabulon +namespace CalamityMod.Items { public class DecapoditaSprout : ModItem { @@ -26,14 +26,14 @@ namespace CalamityMod.Items.Crabulon public override bool CanUseItem(Player player) { - return player.ZoneGlowshroom && !NPC.AnyNPCs(mod.NPCType("CrabulonIdle")); + return player.ZoneGlowshroom && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { if (Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-50, 51)), (int)(player.position.Y - 50f), mod.NPCType("CrabulonIdle"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-50, 51)), (int)(player.position.Y - 50f), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); Main.PlaySound(SoundID.Roar, player.position, 0); } return true; diff --git a/Items/Crabulon/FungalClump.cs b/Items/Crabulon/FungalClump.cs index 35baa294c2..51e88289fd 100644 --- a/Items/Crabulon/FungalClump.cs +++ b/Items/Crabulon/FungalClump.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Crabulon +namespace CalamityMod.Items { public class FungalClump : ModItem { @@ -39,13 +39,13 @@ namespace CalamityMod.Items.Crabulon modPlayer.fungalClump = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("FungalClump")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("FungalClump"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("FungalClump"), (int)(10f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(10f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Cryogen/CryoBar.cs b/Items/Cryogen/CryoBar.cs index 64b093b783..1d7627f1e2 100644 --- a/Items/Cryogen/CryoBar.cs +++ b/Items/Cryogen/CryoBar.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Cryogen +namespace CalamityMod.Items { public class CryoBar : ModItem { diff --git a/Items/Cryogen/CryoKey.cs b/Items/Cryogen/CryoKey.cs index dea7bbe1d1..fcf45dfb23 100644 --- a/Items/Cryogen/CryoKey.cs +++ b/Items/Cryogen/CryoKey.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Cryogen +namespace CalamityMod.Items { public class CryoKey : ModItem { @@ -26,12 +26,12 @@ namespace CalamityMod.Items.Cryogen public override bool CanUseItem(Player player) { - return player.ZoneSnow && !NPC.AnyNPCs(mod.NPCType("Cryogen")); + return player.ZoneSnow && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Cryogen")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Cryogen/CryoStone.cs b/Items/Cryogen/CryoStone.cs index 0421a18cde..b31634fa26 100644 --- a/Items/Cryogen/CryoStone.cs +++ b/Items/Cryogen/CryoStone.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Cryogen +namespace CalamityMod.Items { public class CryoStone : ModItem { diff --git a/Items/Cryogen/CryogenBag.cs b/Items/Cryogen/CryogenBag.cs index 98ad432ba2..98eae6683d 100644 --- a/Items/Cryogen/CryogenBag.cs +++ b/Items/Cryogen/CryogenBag.cs @@ -1,14 +1,15 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Cryogen +namespace CalamityMod.Items { public class CryogenBag : ModItem { - public override int BossBagNPC => mod.NPCType("Cryogen"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -37,27 +38,27 @@ namespace CalamityMod.Items.Cryogen // Materials DropHelper.DropItem(player, ItemID.SoulofMight, 25, 40); - DropHelper.DropItem(player, mod.ItemType("CryoBar"), 20, 40); - DropHelper.DropItem(player, mod.ItemType("EssenceofEleum"), 5, 9); + DropHelper.DropItem(player, ModContent.ItemType(), 20, 40); + DropHelper.DropItem(player, ModContent.ItemType(), 5, 9); DropHelper.DropItem(player, ItemID.FrostCore); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("Avalanche"), 3); - DropHelper.DropItemChance(player, mod.ItemType("GlacialCrusher"), 3); - DropHelper.DropItemChance(player, mod.ItemType("EffluviumBow"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BittercoldStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("SnowstormStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Icebreaker"), 3); - DropHelper.DropItemChance(player, mod.ItemType("IceStar"), 3, 150, 200); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3, 150, 200); // Equipment - DropHelper.DropItem(player, mod.ItemType("SoulofCryogen")); - DropHelper.DropItemCondition(player, mod.ItemType("FrostFlare"), CalamityWorld.revenge); - DropHelper.DropItemChance(player, mod.ItemType("CryoStone"), 10); - DropHelper.DropItemChance(player, mod.ItemType("Regenator"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); + DropHelper.DropItemChance(player, ModContent.ItemType(), 10); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("CryogenMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); // Other DropHelper.DropItemChance(player, ItemID.FrozenKey, 5); diff --git a/Items/Cryogen/SoulofCryogen.cs b/Items/Cryogen/SoulofCryogen.cs index 006c7c163c..fe6635a098 100644 --- a/Items/Cryogen/SoulofCryogen.cs +++ b/Items/Cryogen/SoulofCryogen.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Cryogen +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class SoulofCryogen : ModItem diff --git a/Items/DesertScourge/AeroStone.cs b/Items/DesertScourge/AeroStone.cs index e420fb3e9a..d4f2281f65 100644 --- a/Items/DesertScourge/AeroStone.cs +++ b/Items/DesertScourge/AeroStone.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DesertScourge +namespace CalamityMod.Items { public class AeroStone : ModItem { diff --git a/Items/DesertScourge/DesertScourgeBag.cs b/Items/DesertScourge/DesertScourgeBag.cs index ab444770b6..1f12266613 100644 --- a/Items/DesertScourge/DesertScourgeBag.cs +++ b/Items/DesertScourge/DesertScourgeBag.cs @@ -1,13 +1,14 @@ +using CalamityMod.NPCs; using CalamityMod.Utilities; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DesertScourge +namespace CalamityMod.Items { public class DesertScourgeBag : ModItem { - public override int BossBagNPC => mod.NPCType("DesertScourgeHead"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -33,31 +34,31 @@ namespace CalamityMod.Items.DesertScourge public override void OpenBossBag(Player player) { // Materials - DropHelper.DropItem(player, mod.ItemType("VictoryShard"), 10, 16); + DropHelper.DropItem(player, ModContent.ItemType(), 10, 16); DropHelper.DropItem(player, ItemID.Coral, 7, 11); DropHelper.DropItem(player, ItemID.Seashell, 7, 11); DropHelper.DropItem(player, ItemID.Starfish, 7, 11); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("AquaticDischarge"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Barinade"), 3); - DropHelper.DropItemChance(player, mod.ItemType("StormSpray"), 3); - DropHelper.DropItemChance(player, mod.ItemType("SeaboundStaff"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); float f = Main.rand.NextFloat(); bool replaceWithRare = f <= DropHelper.RareVariantDropRateFloat; // 1/40 chance overall of getting Dune Hopper if (f < 0.3333f) // 1/3 chance of getting Scourge of the Desert OR Dune Hopper replacing it { - DropHelper.DropItemCondition(player, mod.ItemType("ScourgeoftheDesert"), !replaceWithRare); - DropHelper.DropItemCondition(player, mod.ItemType("DuneHopper"), replaceWithRare); + DropHelper.DropItemCondition(player, ModContent.ItemType(), !replaceWithRare); + DropHelper.DropItemCondition(player, ModContent.ItemType(), replaceWithRare); } // Equipment - DropHelper.DropItem(player, mod.ItemType("OceanCrest")); - DropHelper.DropItemChance(player, mod.ItemType("AeroStone"), 9); - DropHelper.DropItemChance(player, mod.ItemType("DeepDiver"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemChance(player, ModContent.ItemType(), 9); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("DesertScourgeMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); // Fishing DropHelper.DropItemChance(player, ItemID.HighTestFishingLine, 12); diff --git a/Items/DesertScourge/DriedSeafood.cs b/Items/DesertScourge/DriedSeafood.cs index bd6065037f..cb88801935 100644 --- a/Items/DesertScourge/DriedSeafood.cs +++ b/Items/DesertScourge/DriedSeafood.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DesertScourge +namespace CalamityMod.Items { public class DriedSeafood : ModItem { @@ -28,16 +28,16 @@ namespace CalamityMod.Items.DesertScourge public override bool CanUseItem(Player player) { - return player.ZoneDesert && !NPC.AnyNPCs(mod.NPCType("DesertScourgeHead")); + return player.ZoneDesert && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("DesertScourgeHead")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); if (CalamityWorld.revenge) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("DesertScourgeHeadSmall")); - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("DesertScourgeHeadSmall")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); } Main.PlaySound(SoundID.Roar, player.position, 0); return true; diff --git a/Items/DesertScourge/OceanCrest.cs b/Items/DesertScourge/OceanCrest.cs index 0bf2eaca42..eb6259b5ee 100644 --- a/Items/DesertScourge/OceanCrest.cs +++ b/Items/DesertScourge/OceanCrest.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DesertScourge +namespace CalamityMod.Items { public class OceanCrest : ModItem { diff --git a/Items/DevourerMunsters/ArmoredShell.cs b/Items/DevourerMunsters/ArmoredShell.cs index 3c2b3ed7f6..05cedc741e 100644 --- a/Items/DevourerMunsters/ArmoredShell.cs +++ b/Items/DevourerMunsters/ArmoredShell.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DevourerMunsters +namespace CalamityMod.Items { public class ArmoredShell : ModItem { diff --git a/Items/DevourerMunsters/DarkPlasma.cs b/Items/DevourerMunsters/DarkPlasma.cs index 07cd90794c..e601c7b862 100644 --- a/Items/DevourerMunsters/DarkPlasma.cs +++ b/Items/DevourerMunsters/DarkPlasma.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DevourerMunsters +namespace CalamityMod.Items { public class DarkPlasma : ModItem { diff --git a/Items/DevourerMunsters/RuneofCos.cs b/Items/DevourerMunsters/RuneofCos.cs index fcad120a73..c024ef0f6d 100644 --- a/Items/DevourerMunsters/RuneofCos.cs +++ b/Items/DevourerMunsters/RuneofCos.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DevourerMunsters +namespace CalamityMod.Items { public class RuneofCos : ModItem { @@ -25,14 +25,14 @@ namespace CalamityMod.Items.DevourerMunsters item.rare = 9; item.UseSound = SoundID.Item44; item.consumable = false; - item.shoot = mod.ProjectileType("VoidSpawn"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } public override bool CanUseItem(Player player) { return (player.ZoneSkyHeight || player.ZoneUnderworldHeight || player.ZoneDungeon) && - !NPC.AnyNPCs(mod.NPCType("StormWeaverHead")) && !NPC.AnyNPCs(mod.NPCType("StormWeaverHeadNaked")) && !NPC.AnyNPCs(mod.NPCType("CeaselessVoid")) && !NPC.AnyNPCs(mod.NPCType("CosmicWraith")); + !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) @@ -41,17 +41,17 @@ namespace CalamityMod.Items.DevourerMunsters { for (int num662 = 0; num662 < 2; num662++) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("DarkEnergySpawn"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("CeaselessVoid")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); } else if (player.ZoneUnderworldHeight) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("CosmicWraith")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); } else if (player.ZoneSkyHeight) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("StormWeaverHead")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); } Main.PlaySound(SoundID.Roar, player.position, 0); return true; diff --git a/Items/DevourerMunsters/TwistingNether.cs b/Items/DevourerMunsters/TwistingNether.cs index 1a938fce82..91f57d5c15 100644 --- a/Items/DevourerMunsters/TwistingNether.cs +++ b/Items/DevourerMunsters/TwistingNether.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DevourerMunsters +namespace CalamityMod.Items { public class TwistingNether : ModItem { diff --git a/Items/DifficultyItems/Armageddon.cs b/Items/DifficultyItems/Armageddon.cs index ce34c5f296..2ca2fcdf79 100644 --- a/Items/DifficultyItems/Armageddon.cs +++ b/Items/DifficultyItems/Armageddon.cs @@ -4,9 +4,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DifficultyItems +namespace CalamityMod.Items { public class Armageddon : ModItem { @@ -45,8 +45,8 @@ namespace CalamityMod.Items.DifficultyItems { for (int doom = 0; doom < 200; doom++) { - if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == mod.NPCType("SlimeGodRun") || - Main.npc[doom].type == mod.NPCType("SlimeGodRunSplit") || Main.npc[doom].type == mod.NPCType("SlimeGod") || Main.npc[doom].type == mod.NPCType("SlimeGodSplit"))) + if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == ModContent.NPCType() || + Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType())) { player.KillMe(PlayerDeathReason.ByOther(12), 1000.0, 0, false); Main.npc[doom].active = false; diff --git a/Items/DifficultyItems/Death.cs b/Items/DifficultyItems/Death.cs index c80940275f..70e10b75cd 100644 --- a/Items/DifficultyItems/Death.cs +++ b/Items/DifficultyItems/Death.cs @@ -4,9 +4,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DifficultyItems +namespace CalamityMod.Items { public class Death : ModItem { @@ -48,8 +48,8 @@ namespace CalamityMod.Items.DifficultyItems { for (int doom = 0; doom < 200; doom++) { - if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == mod.NPCType("SlimeGodRun") || - Main.npc[doom].type == mod.NPCType("SlimeGodRunSplit") || Main.npc[doom].type == mod.NPCType("SlimeGod") || Main.npc[doom].type == mod.NPCType("SlimeGodSplit"))) + if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == ModContent.NPCType() || + Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType())) { player.KillMe(PlayerDeathReason.ByOther(12), 1000.0, 0, false); Main.npc[doom].active = false; diff --git a/Items/DifficultyItems/DefiledRune.cs b/Items/DifficultyItems/DefiledRune.cs index cdcb2b641d..d0961ec41d 100644 --- a/Items/DifficultyItems/DefiledRune.cs +++ b/Items/DifficultyItems/DefiledRune.cs @@ -4,9 +4,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DifficultyItems +namespace CalamityMod.Items { public class DefiledRune : ModItem { @@ -45,8 +45,8 @@ namespace CalamityMod.Items.DifficultyItems { for (int doom = 0; doom < 200; doom++) { - if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == mod.NPCType("SlimeGodRun") || - Main.npc[doom].type == mod.NPCType("SlimeGodRunSplit") || Main.npc[doom].type == mod.NPCType("SlimeGod") || Main.npc[doom].type == mod.NPCType("SlimeGodSplit"))) + if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == ModContent.NPCType() || + Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType())) { player.KillMe(PlayerDeathReason.ByOther(12), 1000.0, 0, false); Main.npc[doom].active = false; diff --git a/Items/DifficultyItems/IronHeart.cs b/Items/DifficultyItems/IronHeart.cs index 2e7eb2649b..ff9e082d1b 100644 --- a/Items/DifficultyItems/IronHeart.cs +++ b/Items/DifficultyItems/IronHeart.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DifficultyItems +namespace CalamityMod.Items { public class IronHeart : ModItem { diff --git a/Items/DifficultyItems/MLGRune.cs b/Items/DifficultyItems/MLGRune.cs index cdb8ef2931..d0044fba68 100644 --- a/Items/DifficultyItems/MLGRune.cs +++ b/Items/DifficultyItems/MLGRune.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DifficultyItems +namespace CalamityMod.Items { public class MLGRune : ModItem { diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/Revenge.cs index 0b0b7bef15..cb08ef6f37 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/Revenge.cs @@ -4,9 +4,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.DifficultyItems +namespace CalamityMod.Items { public class Revenge : ModItem { @@ -61,8 +61,8 @@ namespace CalamityMod.Items.DifficultyItems { for (int doom = 0; doom < 200; doom++) { - if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == mod.NPCType("SlimeGodRun") || - Main.npc[doom].type == mod.NPCType("SlimeGodRunSplit") || Main.npc[doom].type == mod.NPCType("SlimeGod") || Main.npc[doom].type == mod.NPCType("SlimeGodSplit"))) + if (Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == ModContent.NPCType() || + Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType() || Main.npc[doom].type == ModContent.NPCType())) { player.KillMe(PlayerDeathReason.ByOther(12), 1000.0, 0, false); Main.npc[doom].active = false; diff --git a/Items/FabsolStuff/BloodyMary.cs b/Items/FabsolStuff/BloodyMary.cs index 91e4269ef8..c4292046db 100644 --- a/Items/FabsolStuff/BloodyMary.cs +++ b/Items/FabsolStuff/BloodyMary.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class BloodyMary : ModItem { @@ -26,7 +26,7 @@ Extra spicy and bloody!"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("BloodyMary"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 10, 0, 0); } diff --git a/Items/FabsolStuff/BlueCandle.cs b/Items/FabsolStuff/BlueCandle.cs index d6a1d29105..6635830e08 100644 --- a/Items/FabsolStuff/BlueCandle.cs +++ b/Items/FabsolStuff/BlueCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class BlueCandle : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.FabsolStuff item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; - item.createTile = mod.TileType("BlueCandle"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/FabsolStuff/CaribbeanRum.cs b/Items/FabsolStuff/CaribbeanRum.cs index 25654cae56..4ef437f91e 100644 --- a/Items/FabsolStuff/CaribbeanRum.cs +++ b/Items/FabsolStuff/CaribbeanRum.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class CaribbeanRum : ModItem { @@ -26,7 +26,7 @@ Why is the rum gone?"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("CaribbeanRum"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 20, 0, 0); } diff --git a/Items/FabsolStuff/CinnamonRoll.cs b/Items/FabsolStuff/CinnamonRoll.cs index 22d61c3b2f..8f1cb50c77 100644 --- a/Items/FabsolStuff/CinnamonRoll.cs +++ b/Items/FabsolStuff/CinnamonRoll.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class CinnamonRoll : ModItem { @@ -28,7 +28,7 @@ A great-tasting cinnamon whiskey with a touch of cream soda"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("CinnamonRoll"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 16, 60, 0); } diff --git a/Items/FabsolStuff/Everclear.cs b/Items/FabsolStuff/Everclear.cs index aa39f6b5b1..c6b7eeecca 100644 --- a/Items/FabsolStuff/Everclear.cs +++ b/Items/FabsolStuff/Everclear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Everclear : ModItem { @@ -26,7 +26,7 @@ This is the most potent booze I have, be careful with it"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Everclear"); + item.buffType = ModContent.BuffType(); item.buffTime = 900; //15 seconds item.value = Item.buyPrice(0, 6, 60, 0); } diff --git a/Items/FabsolStuff/EvergreenGin.cs b/Items/FabsolStuff/EvergreenGin.cs index 38ddacad84..83e3322e03 100644 --- a/Items/FabsolStuff/EvergreenGin.cs +++ b/Items/FabsolStuff/EvergreenGin.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class EvergreenGin : ModItem { @@ -26,7 +26,7 @@ It tastes like a Christmas tree if you can imagine that"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("EvergreenGin"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 16, 60, 0); } diff --git a/Items/FabsolStuff/FabsolsVodka.cs b/Items/FabsolStuff/FabsolsVodka.cs index 0eaa394434..82e0804033 100644 --- a/Items/FabsolStuff/FabsolsVodka.cs +++ b/Items/FabsolStuff/FabsolsVodka.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class FabsolsVodka : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.FabsolStuff item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("FabsolVodka"); + item.buffType = ModContent.BuffType(); item.buffTime = 54000; item.value = Item.buyPrice(0, 10, 0, 0); } diff --git a/Items/FabsolStuff/Fireball.cs b/Items/FabsolStuff/Fireball.cs index 180b9f98c8..d85102b067 100644 --- a/Items/FabsolStuff/Fireball.cs +++ b/Items/FabsolStuff/Fireball.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Fireball : ModItem { @@ -28,7 +28,7 @@ A great-tasting cinnamon whiskey"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Fireball"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 6, 60, 0); } diff --git a/Items/FabsolStuff/GrapeBeer.cs b/Items/FabsolStuff/GrapeBeer.cs index 4d7eba2e8c..24ab9b3904 100644 --- a/Items/FabsolStuff/GrapeBeer.cs +++ b/Items/FabsolStuff/GrapeBeer.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class GrapeBeer : ModItem { @@ -55,7 +55,7 @@ This crap is abhorrent but you might like it"); player.HealEffect(100, true); player.ManaEffect(100); } - player.AddBuff(mod.BuffType("GrapeBeer"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); } // Zeroes out the hardcoded healing function from having a healLife value. The item still heals in the UseItem hook. diff --git a/Items/FabsolStuff/Margarita.cs b/Items/FabsolStuff/Margarita.cs index 156356e652..949aef99e5 100644 --- a/Items/FabsolStuff/Margarita.cs +++ b/Items/FabsolStuff/Margarita.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Margarita : ModItem { @@ -30,7 +30,7 @@ One of the best drinks ever created, enjoy it while it lasts"); item.consumable = true; item.potion = true; item.healLife = 200; - item.buffType = mod.BuffType("Margarita"); + item.buffType = ModContent.BuffType(); item.buffTime = 10800; item.value = Item.buyPrice(0, 23, 30, 0); } @@ -58,7 +58,7 @@ One of the best drinks ever created, enjoy it while it lasts"); player.HealEffect(200, true); player.ManaEffect(200); } - player.AddBuff(mod.BuffType("Margarita"), 10800); + player.AddBuff(ModContent.BuffType(), 10800); } // Zeroes out the hardcoded healing function from having a healLife value. The item still heals in the UseItem hook. diff --git a/Items/FabsolStuff/Moonshine.cs b/Items/FabsolStuff/Moonshine.cs index f278b14383..628cd38662 100644 --- a/Items/FabsolStuff/Moonshine.cs +++ b/Items/FabsolStuff/Moonshine.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Moonshine : ModItem { @@ -26,7 +26,7 @@ This stuff is pretty strong but I'm sure you can handle it"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Moonshine"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 3, 30, 0); } diff --git a/Items/FabsolStuff/MoscowMule.cs b/Items/FabsolStuff/MoscowMule.cs index 6e721849af..5aee1a7cf0 100644 --- a/Items/FabsolStuff/MoscowMule.cs +++ b/Items/FabsolStuff/MoscowMule.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class MoscowMule : ModItem { @@ -26,7 +26,7 @@ I once heard the copper mug can be toxic and I told 'em 'listen dummy, I'm alrea item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("MoscowMule"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 16, 60, 0); } diff --git a/Items/FabsolStuff/OddMushroom.cs b/Items/FabsolStuff/OddMushroom.cs index 2d60aac377..20f65d5cfb 100644 --- a/Items/FabsolStuff/OddMushroom.cs +++ b/Items/FabsolStuff/OddMushroom.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class OddMushroom : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.FabsolStuff item.useStyle = 2; item.UseSound = SoundID.Item2; item.consumable = true; - item.buffType = mod.BuffType("Trippy"); + item.buffType = ModContent.BuffType(); item.buffTime = 216000; item.value = Item.buyPrice(1, 0, 0, 0); } diff --git a/Items/FabsolStuff/PinkCandle.cs b/Items/FabsolStuff/PinkCandle.cs index 5d15cae332..a3dbe0792a 100644 --- a/Items/FabsolStuff/PinkCandle.cs +++ b/Items/FabsolStuff/PinkCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class PinkCandle : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.FabsolStuff item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; - item.createTile = mod.TileType("PinkCandle"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/FabsolStuff/PurpleCandle.cs b/Items/FabsolStuff/PurpleCandle.cs index 91f72977e2..c43ae2240c 100644 --- a/Items/FabsolStuff/PurpleCandle.cs +++ b/Items/FabsolStuff/PurpleCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class PurpleCandle : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.FabsolStuff item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; - item.createTile = mod.TileType("PurpleCandle"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/FabsolStuff/RedWine.cs b/Items/FabsolStuff/RedWine.cs index 3a52e6e810..5219d7f573 100644 --- a/Items/FabsolStuff/RedWine.cs +++ b/Items/FabsolStuff/RedWine.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class RedWine : ModItem { @@ -37,7 +37,7 @@ Too dry for my taste"); public override bool UseItem(Player player) { - player.AddBuff(mod.BuffType("RedWine"), 900); + player.AddBuff(ModContent.BuffType(), 900); return true; } } diff --git a/Items/FabsolStuff/Rum.cs b/Items/FabsolStuff/Rum.cs index 44af0d1a08..61da19a8cb 100644 --- a/Items/FabsolStuff/Rum.cs +++ b/Items/FabsolStuff/Rum.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Rum : ModItem { @@ -26,7 +26,7 @@ Sweet and potent, just how I like it"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Rum"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 5, 0, 0); } diff --git a/Items/FabsolStuff/Screwdriver.cs b/Items/FabsolStuff/Screwdriver.cs index 4e3f1519e3..7fb66ceeb4 100644 --- a/Items/FabsolStuff/Screwdriver.cs +++ b/Items/FabsolStuff/Screwdriver.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Screwdriver : ModItem { @@ -26,7 +26,7 @@ Do you have a screw loose?"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Screwdriver"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 16, 60, 0); } diff --git a/Items/FabsolStuff/StarBeamRye.cs b/Items/FabsolStuff/StarBeamRye.cs index 1c80d7cdea..27e18f4adf 100644 --- a/Items/FabsolStuff/StarBeamRye.cs +++ b/Items/FabsolStuff/StarBeamRye.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class StarBeamRye : ModItem { @@ -27,7 +27,7 @@ Made from some stuff I found near the Astral Meteor crash site, don't worry it's item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("StarBeamRye"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 13, 30, 0); } diff --git a/Items/FabsolStuff/Tequila.cs b/Items/FabsolStuff/Tequila.cs index faf4166001..c68d0e125d 100644 --- a/Items/FabsolStuff/Tequila.cs +++ b/Items/FabsolStuff/Tequila.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Tequila : ModItem { @@ -26,7 +26,7 @@ Great for mixing up daytime drinks"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Tequila"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 5, 0, 0); } diff --git a/Items/FabsolStuff/TequilaSunrise.cs b/Items/FabsolStuff/TequilaSunrise.cs index ac8cfdea39..1f5ea63968 100644 --- a/Items/FabsolStuff/TequilaSunrise.cs +++ b/Items/FabsolStuff/TequilaSunrise.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class TequilaSunrise : ModItem { @@ -26,7 +26,7 @@ The greatest daytime drink I've ever had"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("TequilaSunrise"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 20, 0, 0); } diff --git a/Items/FabsolStuff/Vodka.cs b/Items/FabsolStuff/Vodka.cs index 993dec00c7..6396cceae5 100644 --- a/Items/FabsolStuff/Vodka.cs +++ b/Items/FabsolStuff/Vodka.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Vodka : ModItem { @@ -26,7 +26,7 @@ The number one alcohol for creating great mixed drinks"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Vodka"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 3, 30, 0); } diff --git a/Items/FabsolStuff/Whiskey.cs b/Items/FabsolStuff/Whiskey.cs index 966b7fd7fc..073f0dc1ed 100644 --- a/Items/FabsolStuff/Whiskey.cs +++ b/Items/FabsolStuff/Whiskey.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class Whiskey : ModItem { @@ -26,7 +26,7 @@ The burning sensation makes it tastier"); item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Whiskey"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; //5 minutes item.value = Item.buyPrice(0, 3, 30, 0); } diff --git a/Items/FabsolStuff/WhiteWine.cs b/Items/FabsolStuff/WhiteWine.cs index eed2ce44f7..ed09566754 100644 --- a/Items/FabsolStuff/WhiteWine.cs +++ b/Items/FabsolStuff/WhiteWine.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class WhiteWine : ModItem { @@ -27,14 +27,14 @@ I drank a full barrel of this stuff once in one night, I couldn't remember who I item.UseSound = SoundID.Item3; item.consumable = true; item.healMana = 400; - item.buffType = mod.BuffType("WhiteWine"); + item.buffType = ModContent.BuffType(); item.buffTime = 10800; //3 minutes item.value = Item.buyPrice(0, 16, 60, 0); } public override void OnConsumeItem(Player player) { - player.AddBuff(mod.BuffType("WhiteWine"), 10800); + player.AddBuff(ModContent.BuffType(), 10800); } } } diff --git a/Items/FabsolStuff/YellowCandle.cs b/Items/FabsolStuff/YellowCandle.cs index 5bc09346bf..fd6c15cc07 100644 --- a/Items/FabsolStuff/YellowCandle.cs +++ b/Items/FabsolStuff/YellowCandle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.FabsolStuff +namespace CalamityMod.Items { public class YellowCandle : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.FabsolStuff item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; - item.createTile = mod.TileType("YellowCandle"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/Fishing/ArcturusAstroidean.cs b/Items/Fishing/ArcturusAstroidean.cs index 390240d8b4..429b0ec937 100644 --- a/Items/Fishing/ArcturusAstroidean.cs +++ b/Items/Fishing/ArcturusAstroidean.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items { public class ArcturusAstroidean : ModItem { diff --git a/Items/Fishing/AstralCrate.cs b/Items/Fishing/AstralCrate.cs index 78ce05cf2c..fcf21ddb53 100644 --- a/Items/Fishing/AstralCrate.cs +++ b/Items/Fishing/AstralCrate.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items { public class AstralCrate : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Fishing item.height = 32; item.rare = 2; item.value = Item.sellPrice(gold: 1); - item.createTile = mod.TileType("AstralCrate"); + item.createTile = ModContent.TileType(); item.useTurn = true; item.autoReuse = true; item.useAnimation = 15; @@ -38,34 +38,34 @@ namespace CalamityMod.Items.Fishing public override void RightClick(Player player) { //Modded materials - DropHelper.DropItem(player, mod.ItemType("Stardust"), 10, 20); + DropHelper.DropItem(player, ModContent.ItemType(), 10, 20); DropHelper.DropItem(player, ItemID.FallenStar, 10, 20); if (CalamityWorld.downedAstrageldon) { - DropHelper.DropItemChance(player, mod.ItemType("AstralJelly"), 0.5f, 5, 10); + DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f, 5, 10); } if (CalamityWorld.downedStarGod) { - DropHelper.DropItemChance(player, mod.ItemType("AstralOre"), 0.5f, 10, 20); - DropHelper.DropItemChance(player, mod.ItemType("AstralBar"), 0.25f, 5, 10); + DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f, 10, 20); + DropHelper.DropItemChance(player, ModContent.ItemType(), 0.25f, 5, 10); } // Weapons DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedAstrageldon, 0.2f, - mod.ItemType("StellarKnife"), - mod.ItemType("AstralachneaStaff"), - mod.ItemType("TitanArm"), - mod.ItemType("HivePod"), - mod.ItemType("AstralScythe"), - mod.ItemType("StellarCannon")); + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType()); //Pet - DropHelper.DropItemChance(player, mod.ItemType("AstrophageItem"), 10); + DropHelper.DropItemChance(player, ModContent.ItemType(), 10); //Bait - DropHelper.DropItemChance(player, mod.ItemType("Twinkler"), 5, 1, 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 5, 1, 3); DropHelper.DropItemChance(player, ItemID.EnchantedNightcrawler, 5, 1, 3); - DropHelper.DropItemChance(player, mod.ItemType("ArcturusAstroidean"), 5, 1, 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 5, 1, 3); DropHelper.DropItemChance(player, ItemID.Firefly, 3, 1, 3); //Potions @@ -87,8 +87,8 @@ namespace CalamityMod.Items.Fishing } if (CalamityWorld.downedAstrageldon) { - DropHelper.DropItemChance(player, mod.ItemType("AstralInjection"), 4, 1, 3); - DropHelper.DropItemChance(player, mod.ItemType("GravityNormalizerPotion"), 4, 1, 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 1, 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 4, 1, 3); } //Money diff --git a/Items/Fishing/AstrophageItem.cs b/Items/Fishing/AstrophageItem.cs index cfc8f18b35..5ed4fed2dc 100644 --- a/Items/Fishing/AstrophageItem.cs +++ b/Items/Fishing/AstrophageItem.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items { public class AstrophageItem : ModItem { @@ -15,8 +15,8 @@ namespace CalamityMod.Items.Fishing public override void SetDefaults() { item.CloneDefaults(ItemID.ZephyrFish); - item.shoot = mod.ProjectileType("Astrophage"); - item.buffType = mod.BuffType("AstrophageBuff"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 5; } diff --git a/Items/Fishing/PolarisParrotfish.cs b/Items/Fishing/PolarisParrotfish.cs index 682e534e71..0d2310d62f 100644 --- a/Items/Fishing/PolarisParrotfish.cs +++ b/Items/Fishing/PolarisParrotfish.cs @@ -1,10 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using CalamityMod.CalPlayer; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items { public class PolarisParrotfish : ModItem { @@ -32,7 +31,7 @@ namespace CalamityMod.Items.Fishing item.rare = 5; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon"); //pew pew item.autoReuse = true; - item.shoot = mod.ProjectileType("PolarStar"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; } @@ -41,12 +40,12 @@ namespace CalamityMod.Items.Fishing CalamityPlayer modPlayer = player.Calamity(); if (modPlayer.polarisBoostThree) { - Projectile.NewProjectile(position, new Vector2(speedX, speedY), mod.ProjectileType("PolarStar"), damage, knockBack, player.whoAmI, 0f, 2f); + Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 2f); return false; } else if (modPlayer.polarisBoostTwo) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("PolarStar"), (int)((double)damage * 1.25), knockBack, player.whoAmI, 0f, 1f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.25), knockBack, player.whoAmI, 0f, 1f); return false; } return true; diff --git a/Items/Fishing/ProcyonidPrawn.cs b/Items/Fishing/ProcyonidPrawn.cs index 1b63156ff4..6a5ec0eb3d 100644 --- a/Items/Fishing/ProcyonidPrawn.cs +++ b/Items/Fishing/ProcyonidPrawn.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items { public class ProcyonidPrawn : ModItem { diff --git a/Items/Fishing/TwinklingPollox.cs b/Items/Fishing/TwinklingPollox.cs index 6c7c06ef2f..c43712d5f9 100644 --- a/Items/Fishing/TwinklingPollox.cs +++ b/Items/Fishing/TwinklingPollox.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items { public class TwinklingPollox : ModItem { diff --git a/Items/Fishing/UrsaSergeant.cs b/Items/Fishing/UrsaSergeant.cs index 40695f2041..4e4203999b 100644 --- a/Items/Fishing/UrsaSergeant.cs +++ b/Items/Fishing/UrsaSergeant.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Fishing +namespace CalamityMod.Items { public class UrsaSergeant : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Fishing CalamityPlayer modPlayer = player.Calamity(); modPlayer.ursaSergeant = true; player.statDefense += 20; - player.buffImmune[mod.BuffType("AstralInfectionDebuff")] = true; + player.buffImmune[ModContent.BuffType()] = true; player.buffImmune[148] = true; //Feral Bite } } diff --git a/Items/GreatSandShark/GrandScale.cs b/Items/GreatSandShark/GrandScale.cs index 3d2e029caa..febeee0be1 100644 --- a/Items/GreatSandShark/GrandScale.cs +++ b/Items/GreatSandShark/GrandScale.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.GreatSandShark +namespace CalamityMod.Items { public class GrandScale : ModItem { diff --git a/Items/GreatSandShark/SandstormsCore.cs b/Items/GreatSandShark/SandstormsCore.cs index 1e6b38529b..271f363b58 100644 --- a/Items/GreatSandShark/SandstormsCore.cs +++ b/Items/GreatSandShark/SandstormsCore.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.GreatSandShark +namespace CalamityMod.Items { public class SandstormsCore : ModItem { @@ -26,12 +26,12 @@ namespace CalamityMod.Items.GreatSandShark public override bool CanUseItem(Player player) { - return player.ZoneDesert && !NPC.AnyNPCs(mod.NPCType("GreatSandShark")); + return player.ZoneDesert && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("GreatSandShark")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/HiveMind/HiveMindBag.cs b/Items/HiveMind/HiveMindBag.cs index 3edbbb8d1f..fa1cbbe3bf 100644 --- a/Items/HiveMind/HiveMindBag.cs +++ b/Items/HiveMind/HiveMindBag.cs @@ -1,13 +1,12 @@ -using CalamityMod.Utilities; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.HiveMind +namespace CalamityMod.Items { public class HiveMindBag : ModItem { - public override int BossBagNPC => mod.NPCType("HiveMindP2"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -35,23 +34,23 @@ namespace CalamityMod.Items.HiveMind // Materials DropHelper.DropItem(player, ItemID.RottenChunk, 10, 20); DropHelper.DropItem(player, ItemID.DemoniteBar, 9, 14); - DropHelper.DropItem(player, mod.ItemType("TrueShadowScale"), 30, 40); + DropHelper.DropItem(player, ModContent.ItemType(), 30, 40); DropHelper.DropItemCondition(player, ItemID.CursedFlame, Main.hardMode, 15, 30); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("PerfectDark"), 3); - DropHelper.DropItemChance(player, mod.ItemType("LeechingDagger"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Shadethrower"), 3); - DropHelper.DropItemChance(player, mod.ItemType("ShadowdropStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("ShaderainStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("DankStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("RotBall"), 3, 50, 75); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3, 50, 75); // Equipment - DropHelper.DropItem(player, mod.ItemType("RottenBrain")); + DropHelper.DropItem(player, ModContent.ItemType()); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("HiveMindMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); } } } diff --git a/Items/HiveMind/RottenBrain.cs b/Items/HiveMind/RottenBrain.cs index dd13387d24..c40326b2d0 100644 --- a/Items/HiveMind/RottenBrain.cs +++ b/Items/HiveMind/RottenBrain.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.HiveMind +namespace CalamityMod.Items { public class RottenBrain : ModItem { @@ -45,7 +45,7 @@ namespace CalamityMod.Items.HiveMind num18 = (float)num17 / num18; num15 *= num18; num16 *= num18; - int num19 = Projectile.NewProjectile(x, y, num15, num16, mod.ProjectileType("AuraRain"), 18, 2f, player.whoAmI, 0f, 0f); + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), 18, 2f, player.whoAmI, 0f, 0f); Main.projectile[num19].ai[1] = player.position.Y; Main.projectile[num19].tileCollide = false; } diff --git a/Items/HiveMind/Teratoma.cs b/Items/HiveMind/Teratoma.cs index 60a679d508..b38bcb419d 100644 --- a/Items/HiveMind/Teratoma.cs +++ b/Items/HiveMind/Teratoma.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.HiveMind +namespace CalamityMod.Items { public class Teratoma : ModItem { @@ -26,14 +26,14 @@ namespace CalamityMod.Items.HiveMind public override bool CanUseItem(Player player) { - return player.ZoneCorrupt && !NPC.AnyNPCs(mod.NPCType("HiveMind")) && !NPC.AnyNPCs(mod.NPCType("HiveMindP2")); + return player.ZoneCorrupt && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { if (Main.netMode != NetmodeID.MultiplayerClient) { - int num = NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-100, 100)), (int)(player.position.Y - 150f), mod.NPCType("HiveMind"), 0, 0f, 0f, 0f, 0f, 255); + int num = NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-100, 100)), (int)(player.position.Y - 150f), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); Main.PlaySound(SoundID.Roar, player.position, 0); } return true; diff --git a/Items/HiveMind/TrueShadowScale.cs b/Items/HiveMind/TrueShadowScale.cs index 1cbe0fd298..de891678e8 100644 --- a/Items/HiveMind/TrueShadowScale.cs +++ b/Items/HiveMind/TrueShadowScale.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.HiveMind +namespace CalamityMod.Items { public class TrueShadowScale : ModItem { diff --git a/Items/Leviathan/EnchantedPearl.cs b/Items/Leviathan/EnchantedPearl.cs index 20a28bc8b5..f506088fc6 100644 --- a/Items/Leviathan/EnchantedPearl.cs +++ b/Items/Leviathan/EnchantedPearl.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Leviathan +namespace CalamityMod.Items { public class EnchantedPearl : ModItem { diff --git a/Items/Leviathan/IOU.cs b/Items/Leviathan/IOU.cs index d88de0363c..1079dbbdee 100644 --- a/Items/Leviathan/IOU.cs +++ b/Items/Leviathan/IOU.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Leviathan +namespace CalamityMod.Items { public class IOU : ModItem { diff --git a/Items/Leviathan/LeviathanAmbergris.cs b/Items/Leviathan/LeviathanAmbergris.cs index 4ee315a2a4..5f8f0c2d87 100644 --- a/Items/Leviathan/LeviathanAmbergris.cs +++ b/Items/Leviathan/LeviathanAmbergris.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Leviathan +namespace CalamityMod.Items { public class LeviathanAmbergris : ModItem { @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Leviathan { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("PoisonousSeawater"), 50, 5f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 50, 5f, player.whoAmI, 0f, 0f); } } int seaCounter = 0; diff --git a/Items/Leviathan/LeviathanBag.cs b/Items/Leviathan/LeviathanBag.cs index dd231699ed..9d41b4af70 100644 --- a/Items/Leviathan/LeviathanBag.cs +++ b/Items/Leviathan/LeviathanBag.cs @@ -1,14 +1,13 @@ -using CalamityMod.Utilities; using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Leviathan +namespace CalamityMod.Items { public class LeviathanBag : ModItem { - public override int BossBagNPC => mod.NPCType("Siren"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -38,23 +37,23 @@ namespace CalamityMod.Items.Leviathan player.TryGettingDevArmor(); // Weapons - DropHelper.DropItemCondition(player, mod.ItemType("Greentide"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("Leviatitan"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("SirensSong"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("Atlantis"), Main.hardMode, 3, 1, 1); - DropHelper.DropItemCondition(player, mod.ItemType("BrackishFlask"), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); // Equipment - DropHelper.DropItemCondition(player, mod.ItemType("LeviathanAmbergris"), Main.hardMode); - DropHelper.DropItemCondition(player, mod.ItemType("LureofEnthrallment"), Main.hardMode, 3, 1, 1); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode); + DropHelper.DropItemCondition(player, ModContent.ItemType(), Main.hardMode, 3, 1, 1); float communityChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("TheCommunity"), CalamityWorld.revenge, communityChance); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, communityChance); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("LeviathanMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); // Fishing - DropHelper.DropItem(player, mod.ItemType("EnchantedPearl")); + DropHelper.DropItem(player, ModContent.ItemType()); DropHelper.DropItemChance(player, ItemID.HotlineFishingHook, 10); DropHelper.DropItemChance(player, ItemID.BottomlessBucket, 10); DropHelper.DropItemChance(player, ItemID.SuperAbsorbantSponge, 10); @@ -63,7 +62,7 @@ namespace CalamityMod.Items.Leviathan DropHelper.DropItemChance(player, ItemID.CratePotion, 5, 5, 8); // Other - DropHelper.DropItemCondition(player, mod.ItemType("IOU"), !Main.hardMode); + DropHelper.DropItemCondition(player, ModContent.ItemType(), !Main.hardMode); } } } diff --git a/Items/LoreItems/KnowledgeAquaticScourge.cs b/Items/LoreItems/KnowledgeAquaticScourge.cs index e45c0a47d5..38db5039df 100644 --- a/Items/LoreItems/KnowledgeAquaticScourge.cs +++ b/Items/LoreItems/KnowledgeAquaticScourge.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeAquaticScourge : ModItem { diff --git a/Items/LoreItems/KnowledgeAstralInfection.cs b/Items/LoreItems/KnowledgeAstralInfection.cs index 5eaee112d1..13134bc85d 100644 --- a/Items/LoreItems/KnowledgeAstralInfection.cs +++ b/Items/LoreItems/KnowledgeAstralInfection.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeAstralInfection : ModItem { diff --git a/Items/LoreItems/KnowledgeAstrumAureus.cs b/Items/LoreItems/KnowledgeAstrumAureus.cs index cf8a3e79a6..279924c292 100644 --- a/Items/LoreItems/KnowledgeAstrumAureus.cs +++ b/Items/LoreItems/KnowledgeAstrumAureus.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeAstrumAureus : ModItem { diff --git a/Items/LoreItems/KnowledgeAstrumDeus.cs b/Items/LoreItems/KnowledgeAstrumDeus.cs index 6fefb097e3..cbc515dae7 100644 --- a/Items/LoreItems/KnowledgeAstrumDeus.cs +++ b/Items/LoreItems/KnowledgeAstrumDeus.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeAstrumDeus : ModItem { diff --git a/Items/LoreItems/KnowledgeBloodMoon.cs b/Items/LoreItems/KnowledgeBloodMoon.cs index 22ce1c12bc..3975e499c6 100644 --- a/Items/LoreItems/KnowledgeBloodMoon.cs +++ b/Items/LoreItems/KnowledgeBloodMoon.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeBloodMoon : ModItem { diff --git a/Items/LoreItems/KnowledgeBrainofCthulhu.cs b/Items/LoreItems/KnowledgeBrainofCthulhu.cs index 49374458fc..3e52a7cb06 100644 --- a/Items/LoreItems/KnowledgeBrainofCthulhu.cs +++ b/Items/LoreItems/KnowledgeBrainofCthulhu.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeBrainofCthulhu : ModItem { diff --git a/Items/LoreItems/KnowledgeBrimstoneCrag.cs b/Items/LoreItems/KnowledgeBrimstoneCrag.cs index d11e610e99..cdb27617b6 100644 --- a/Items/LoreItems/KnowledgeBrimstoneCrag.cs +++ b/Items/LoreItems/KnowledgeBrimstoneCrag.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeBrimstoneCrag : ModItem { diff --git a/Items/LoreItems/KnowledgeBrimstoneElemental.cs b/Items/LoreItems/KnowledgeBrimstoneElemental.cs index a595f81907..a1858c021f 100644 --- a/Items/LoreItems/KnowledgeBrimstoneElemental.cs +++ b/Items/LoreItems/KnowledgeBrimstoneElemental.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeBrimstoneElemental : ModItem { diff --git a/Items/LoreItems/KnowledgeBumblebirb.cs b/Items/LoreItems/KnowledgeBumblebirb.cs index 10fbe867f5..5c05b6a3f3 100644 --- a/Items/LoreItems/KnowledgeBumblebirb.cs +++ b/Items/LoreItems/KnowledgeBumblebirb.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeBumblebirb : ModItem { diff --git a/Items/LoreItems/KnowledgeCalamitas.cs b/Items/LoreItems/KnowledgeCalamitas.cs index 75b5f5b71e..dfef2f710c 100644 --- a/Items/LoreItems/KnowledgeCalamitas.cs +++ b/Items/LoreItems/KnowledgeCalamitas.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeCalamitas : ModItem { diff --git a/Items/LoreItems/KnowledgeCalamitasClone.cs b/Items/LoreItems/KnowledgeCalamitasClone.cs index fc43b17709..d067cd211c 100644 --- a/Items/LoreItems/KnowledgeCalamitasClone.cs +++ b/Items/LoreItems/KnowledgeCalamitasClone.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeCalamitasClone : ModItem { diff --git a/Items/LoreItems/KnowledgeCorruption.cs b/Items/LoreItems/KnowledgeCorruption.cs index eb56047040..b923fad0a8 100644 --- a/Items/LoreItems/KnowledgeCorruption.cs +++ b/Items/LoreItems/KnowledgeCorruption.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeCorruption : ModItem { diff --git a/Items/LoreItems/KnowledgeCrabulon.cs b/Items/LoreItems/KnowledgeCrabulon.cs index 6043363532..52c4d1aba2 100644 --- a/Items/LoreItems/KnowledgeCrabulon.cs +++ b/Items/LoreItems/KnowledgeCrabulon.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeCrabulon : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.LoreItems { if (Main.myPlayer == player.whoAmI) { - player.AddBuff(mod.BuffType("Mushy"), 2); + player.AddBuff(ModContent.BuffType(), 2); } } } diff --git a/Items/LoreItems/KnowledgeCrimson.cs b/Items/LoreItems/KnowledgeCrimson.cs index 254cc9d79d..29f05dadca 100644 --- a/Items/LoreItems/KnowledgeCrimson.cs +++ b/Items/LoreItems/KnowledgeCrimson.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeCrimson : ModItem { diff --git a/Items/LoreItems/KnowledgeCryogen.cs b/Items/LoreItems/KnowledgeCryogen.cs index 8aa9e40d34..8f24eb8f75 100644 --- a/Items/LoreItems/KnowledgeCryogen.cs +++ b/Items/LoreItems/KnowledgeCryogen.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeCryogen : ModItem { diff --git a/Items/LoreItems/KnowledgeDesertScourge.cs b/Items/LoreItems/KnowledgeDesertScourge.cs index fbcf48a011..be7b60008c 100644 --- a/Items/LoreItems/KnowledgeDesertScourge.cs +++ b/Items/LoreItems/KnowledgeDesertScourge.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeDesertScourge : ModItem { diff --git a/Items/LoreItems/KnowledgeDestroyer.cs b/Items/LoreItems/KnowledgeDestroyer.cs index 5bbc3722d7..f83dde1b58 100644 --- a/Items/LoreItems/KnowledgeDestroyer.cs +++ b/Items/LoreItems/KnowledgeDestroyer.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeDestroyer : ModItem { diff --git a/Items/LoreItems/KnowledgeDevourerofGods.cs b/Items/LoreItems/KnowledgeDevourerofGods.cs index 18a9450582..96469cf841 100644 --- a/Items/LoreItems/KnowledgeDevourerofGods.cs +++ b/Items/LoreItems/KnowledgeDevourerofGods.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeDevourerofGods : ModItem { diff --git a/Items/LoreItems/KnowledgeDukeFishron.cs b/Items/LoreItems/KnowledgeDukeFishron.cs index b7c7733953..cb113add1a 100644 --- a/Items/LoreItems/KnowledgeDukeFishron.cs +++ b/Items/LoreItems/KnowledgeDukeFishron.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeDukeFishron : ModItem { diff --git a/Items/LoreItems/KnowledgeEaterofWorlds.cs b/Items/LoreItems/KnowledgeEaterofWorlds.cs index 74312ef947..7042dadc64 100644 --- a/Items/LoreItems/KnowledgeEaterofWorlds.cs +++ b/Items/LoreItems/KnowledgeEaterofWorlds.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeEaterofWorlds : ModItem { diff --git a/Items/LoreItems/KnowledgeEyeofCthulhu.cs b/Items/LoreItems/KnowledgeEyeofCthulhu.cs index 6801620185..9134477e73 100644 --- a/Items/LoreItems/KnowledgeEyeofCthulhu.cs +++ b/Items/LoreItems/KnowledgeEyeofCthulhu.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeEyeofCthulhu : ModItem { diff --git a/Items/LoreItems/KnowledgeGolem.cs b/Items/LoreItems/KnowledgeGolem.cs index 09d9ab052b..671b403eb7 100644 --- a/Items/LoreItems/KnowledgeGolem.cs +++ b/Items/LoreItems/KnowledgeGolem.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeGolem : ModItem { diff --git a/Items/LoreItems/KnowledgeHiveMind.cs b/Items/LoreItems/KnowledgeHiveMind.cs index 09ffed6df9..cde432c049 100644 --- a/Items/LoreItems/KnowledgeHiveMind.cs +++ b/Items/LoreItems/KnowledgeHiveMind.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeHiveMind : ModItem { diff --git a/Items/LoreItems/KnowledgeLeviathanandSiren.cs b/Items/LoreItems/KnowledgeLeviathanandSiren.cs index 6730fa567a..f9d97287a4 100644 --- a/Items/LoreItems/KnowledgeLeviathanandSiren.cs +++ b/Items/LoreItems/KnowledgeLeviathanandSiren.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeLeviathanandSiren : ModItem { diff --git a/Items/LoreItems/KnowledgeLunaticCultist.cs b/Items/LoreItems/KnowledgeLunaticCultist.cs index e3006a2d61..dc0239b380 100644 --- a/Items/LoreItems/KnowledgeLunaticCultist.cs +++ b/Items/LoreItems/KnowledgeLunaticCultist.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeLunaticCultist : ModItem { diff --git a/Items/LoreItems/KnowledgeMechs.cs b/Items/LoreItems/KnowledgeMechs.cs index b561e362b7..fdee65fe72 100644 --- a/Items/LoreItems/KnowledgeMechs.cs +++ b/Items/LoreItems/KnowledgeMechs.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeMechs : ModItem { diff --git a/Items/LoreItems/KnowledgeMoonLord.cs b/Items/LoreItems/KnowledgeMoonLord.cs index 21e2a55dfd..06e95dd0df 100644 --- a/Items/LoreItems/KnowledgeMoonLord.cs +++ b/Items/LoreItems/KnowledgeMoonLord.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeMoonLord : ModItem { diff --git a/Items/LoreItems/KnowledgeOcean.cs b/Items/LoreItems/KnowledgeOcean.cs index dcd754f1fe..915463a8c6 100644 --- a/Items/LoreItems/KnowledgeOcean.cs +++ b/Items/LoreItems/KnowledgeOcean.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeOcean : ModItem { diff --git a/Items/LoreItems/KnowledgePerforators.cs b/Items/LoreItems/KnowledgePerforators.cs index 0bb9626c0b..d18f05be19 100644 --- a/Items/LoreItems/KnowledgePerforators.cs +++ b/Items/LoreItems/KnowledgePerforators.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgePerforators : ModItem { diff --git a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs index 4f643a914c..c1f4b77b15 100644 --- a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs +++ b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgePlaguebringerGoliath : ModItem { diff --git a/Items/LoreItems/KnowledgePlantera.cs b/Items/LoreItems/KnowledgePlantera.cs index 8440d64ae7..2f7fa7f2b5 100644 --- a/Items/LoreItems/KnowledgePlantera.cs +++ b/Items/LoreItems/KnowledgePlantera.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgePlantera : ModItem { diff --git a/Items/LoreItems/KnowledgePolterghast.cs b/Items/LoreItems/KnowledgePolterghast.cs index d4c3f839d6..7ec5cb5d0c 100644 --- a/Items/LoreItems/KnowledgePolterghast.cs +++ b/Items/LoreItems/KnowledgePolterghast.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgePolterghast : ModItem { diff --git a/Items/LoreItems/KnowledgeProfanedGuardians.cs b/Items/LoreItems/KnowledgeProfanedGuardians.cs index 10ed3d2c43..55fa361434 100644 --- a/Items/LoreItems/KnowledgeProfanedGuardians.cs +++ b/Items/LoreItems/KnowledgeProfanedGuardians.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeProfanedGuardians : ModItem { diff --git a/Items/LoreItems/KnowledgeProvidence.cs b/Items/LoreItems/KnowledgeProvidence.cs index 9dc04ae9ee..29e037e5b0 100644 --- a/Items/LoreItems/KnowledgeProvidence.cs +++ b/Items/LoreItems/KnowledgeProvidence.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeProvidence : ModItem { diff --git a/Items/LoreItems/KnowledgeQueenBee.cs b/Items/LoreItems/KnowledgeQueenBee.cs index 023c7393f6..ea82ba0a60 100644 --- a/Items/LoreItems/KnowledgeQueenBee.cs +++ b/Items/LoreItems/KnowledgeQueenBee.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeQueenBee : ModItem { diff --git a/Items/LoreItems/KnowledgeRavager.cs b/Items/LoreItems/KnowledgeRavager.cs index 2101321b24..5adb322294 100644 --- a/Items/LoreItems/KnowledgeRavager.cs +++ b/Items/LoreItems/KnowledgeRavager.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeRavager : ModItem { diff --git a/Items/LoreItems/KnowledgeSentinels.cs b/Items/LoreItems/KnowledgeSentinels.cs index 1128bf0661..a5e64f92d4 100644 --- a/Items/LoreItems/KnowledgeSentinels.cs +++ b/Items/LoreItems/KnowledgeSentinels.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeSentinels : ModItem { diff --git a/Items/LoreItems/KnowledgeSkeletron.cs b/Items/LoreItems/KnowledgeSkeletron.cs index 43e9dd86d3..e07418bae4 100644 --- a/Items/LoreItems/KnowledgeSkeletron.cs +++ b/Items/LoreItems/KnowledgeSkeletron.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeSkeletron : ModItem { diff --git a/Items/LoreItems/KnowledgeSkeletronPrime.cs b/Items/LoreItems/KnowledgeSkeletronPrime.cs index f54d487ee4..169ae014e9 100644 --- a/Items/LoreItems/KnowledgeSkeletronPrime.cs +++ b/Items/LoreItems/KnowledgeSkeletronPrime.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeSkeletronPrime : ModItem { diff --git a/Items/LoreItems/KnowledgeSlimeGod.cs b/Items/LoreItems/KnowledgeSlimeGod.cs index 4b4345c78f..5e068cea5c 100644 --- a/Items/LoreItems/KnowledgeSlimeGod.cs +++ b/Items/LoreItems/KnowledgeSlimeGod.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeSlimeGod : ModItem { diff --git a/Items/LoreItems/KnowledgeSulphurSea.cs b/Items/LoreItems/KnowledgeSulphurSea.cs index 6d4fb7906d..e097aebc6f 100644 --- a/Items/LoreItems/KnowledgeSulphurSea.cs +++ b/Items/LoreItems/KnowledgeSulphurSea.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeSulphurSea : ModItem { diff --git a/Items/LoreItems/KnowledgeTwins.cs b/Items/LoreItems/KnowledgeTwins.cs index aef608c9ef..677702ef18 100644 --- a/Items/LoreItems/KnowledgeTwins.cs +++ b/Items/LoreItems/KnowledgeTwins.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeTwins : ModItem { diff --git a/Items/LoreItems/KnowledgeUnderworld.cs b/Items/LoreItems/KnowledgeUnderworld.cs index cbd93f7dc3..e2d9588b59 100644 --- a/Items/LoreItems/KnowledgeUnderworld.cs +++ b/Items/LoreItems/KnowledgeUnderworld.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeUnderworld : ModItem { diff --git a/Items/LoreItems/KnowledgeWallofFlesh.cs b/Items/LoreItems/KnowledgeWallofFlesh.cs index bd40e655af..955e2b8054 100644 --- a/Items/LoreItems/KnowledgeWallofFlesh.cs +++ b/Items/LoreItems/KnowledgeWallofFlesh.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeWallofFlesh : ModItem { diff --git a/Items/LoreItems/KnowledgeYharon.cs b/Items/LoreItems/KnowledgeYharon.cs index 1464ff7657..29a6b07bd3 100644 --- a/Items/LoreItems/KnowledgeYharon.cs +++ b/Items/LoreItems/KnowledgeYharon.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.LoreItems +namespace CalamityMod.Items { public class KnowledgeYharon : ModItem { diff --git a/Items/Materials/AerialiteBar.cs b/Items/Materials/AerialiteBar.cs index 7cd4a245f6..cb1beba8ef 100644 --- a/Items/Materials/AerialiteBar.cs +++ b/Items/Materials/AerialiteBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class AerialiteBar : ModItem { diff --git a/Items/Materials/AncientBoneDust.cs b/Items/Materials/AncientBoneDust.cs index 25b75d6ca3..6a43bdbda6 100644 --- a/Items/Materials/AncientBoneDust.cs +++ b/Items/Materials/AncientBoneDust.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class AncientBoneDust : ModItem { diff --git a/Items/Materials/BarofLife.cs b/Items/Materials/BarofLife.cs index cc41c6b345..39a1d61230 100644 --- a/Items/Materials/BarofLife.cs +++ b/Items/Materials/BarofLife.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class BarofLife : ModItem { diff --git a/Items/Materials/BeetleJuice.cs b/Items/Materials/BeetleJuice.cs index 8e66dd710a..f3f29d5498 100644 --- a/Items/Materials/BeetleJuice.cs +++ b/Items/Materials/BeetleJuice.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class BeetleJuice : ModItem { diff --git a/Items/Materials/BlightedLens.cs b/Items/Materials/BlightedLens.cs index dd940f14b8..5d4a156c07 100644 --- a/Items/Materials/BlightedLens.cs +++ b/Items/Materials/BlightedLens.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class BlightedLens : ModItem { diff --git a/Items/Materials/BloodOrb.cs b/Items/Materials/BloodOrb.cs index 7bdcaee455..8efe00784c 100644 --- a/Items/Materials/BloodOrb.cs +++ b/Items/Materials/BloodOrb.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class BloodOrb : ModItem { diff --git a/Items/Materials/BloodlettingEssence.cs b/Items/Materials/BloodlettingEssence.cs index 39efc7c864..a8ce886bc7 100644 --- a/Items/Materials/BloodlettingEssence.cs +++ b/Items/Materials/BloodlettingEssence.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class BloodlettingEssence : ModItem { diff --git a/Items/Materials/Bloodstone.cs b/Items/Materials/Bloodstone.cs index d8586e7e11..8b3d2f8e58 100644 --- a/Items/Materials/Bloodstone.cs +++ b/Items/Materials/Bloodstone.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class Bloodstone : ModItem { diff --git a/Items/Materials/BloodstoneCore.cs b/Items/Materials/BloodstoneCore.cs index e3461eb33a..5b85f6fee7 100644 --- a/Items/Materials/BloodstoneCore.cs +++ b/Items/Materials/BloodstoneCore.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class BloodstoneCore : ModItem { diff --git a/Items/Materials/CalamitousEssence.cs b/Items/Materials/CalamitousEssence.cs index 4c43d78363..db2cb11e67 100644 --- a/Items/Materials/CalamitousEssence.cs +++ b/Items/Materials/CalamitousEssence.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class CalamitousEssence : ModItem { diff --git a/Items/Materials/CoreofCalamity.cs b/Items/Materials/CoreofCalamity.cs index 262518d64c..0e1d7402c4 100644 --- a/Items/Materials/CoreofCalamity.cs +++ b/Items/Materials/CoreofCalamity.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class CoreofCalamity : ModItem { diff --git a/Items/Materials/CoreofChaos.cs b/Items/Materials/CoreofChaos.cs index 2b9348c3ce..1ceb0fb28b 100644 --- a/Items/Materials/CoreofChaos.cs +++ b/Items/Materials/CoreofChaos.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class CoreofChaos : ModItem { diff --git a/Items/Materials/CoreofCinder.cs b/Items/Materials/CoreofCinder.cs index e5dc7b72f3..ac80f822bd 100644 --- a/Items/Materials/CoreofCinder.cs +++ b/Items/Materials/CoreofCinder.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class CoreofCinder : ModItem { diff --git a/Items/Materials/CoreofEleum.cs b/Items/Materials/CoreofEleum.cs index d50eb6c17f..436f0b7f3c 100644 --- a/Items/Materials/CoreofEleum.cs +++ b/Items/Materials/CoreofEleum.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class CoreofEleum : ModItem { diff --git a/Items/Materials/CruptixBar.cs b/Items/Materials/CruptixBar.cs index 2313bd335e..7bf4e41eae 100644 --- a/Items/Materials/CruptixBar.cs +++ b/Items/Materials/CruptixBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class CruptixBar : ModItem { diff --git a/Items/Materials/DarksunFragment.cs b/Items/Materials/DarksunFragment.cs index 047f3a67d8..6a246f456d 100644 --- a/Items/Materials/DarksunFragment.cs +++ b/Items/Materials/DarksunFragment.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class DarksunFragment : ModItem { diff --git a/Items/Materials/DemonicBoneAsh.cs b/Items/Materials/DemonicBoneAsh.cs index 4cfc97b397..6771fc7861 100644 --- a/Items/Materials/DemonicBoneAsh.cs +++ b/Items/Materials/DemonicBoneAsh.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class DemonicBoneAsh : ModItem { diff --git a/Items/Materials/DesertFeather.cs b/Items/Materials/DesertFeather.cs index 504cbcc9f4..3fde2ba9e0 100644 --- a/Items/Materials/DesertFeather.cs +++ b/Items/Materials/DesertFeather.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class DesertFeather : ModItem { diff --git a/Items/Materials/DraedonBar.cs b/Items/Materials/DraedonBar.cs index 165e49bdd0..d72451ac44 100644 --- a/Items/Materials/DraedonBar.cs +++ b/Items/Materials/DraedonBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class DraedonBar : ModItem { diff --git a/Items/Materials/EbonianGel.cs b/Items/Materials/EbonianGel.cs index 0c8676a2f5..80ca567c22 100644 --- a/Items/Materials/EbonianGel.cs +++ b/Items/Materials/EbonianGel.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class EbonianGel : ModItem { diff --git a/Items/Materials/Ectoblood.cs b/Items/Materials/Ectoblood.cs index d4c7665ac7..0f4ea09396 100644 --- a/Items/Materials/Ectoblood.cs +++ b/Items/Materials/Ectoblood.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class Ectoblood : ModItem { diff --git a/Items/Materials/EndothermicEnergy.cs b/Items/Materials/EndothermicEnergy.cs index c38fed76c9..c7995b5296 100644 --- a/Items/Materials/EndothermicEnergy.cs +++ b/Items/Materials/EndothermicEnergy.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class EndothermicEnergy : ModItem { diff --git a/Items/Materials/EssenceofChaos.cs b/Items/Materials/EssenceofChaos.cs index f291c8d270..c80c47176a 100644 --- a/Items/Materials/EssenceofChaos.cs +++ b/Items/Materials/EssenceofChaos.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class EssenceofChaos : ModItem { diff --git a/Items/Materials/EssenceofCinder.cs b/Items/Materials/EssenceofCinder.cs index 10ca9fb959..44c7c31cfa 100644 --- a/Items/Materials/EssenceofCinder.cs +++ b/Items/Materials/EssenceofCinder.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class EssenceofCinder : ModItem { diff --git a/Items/Materials/EssenceofEleum.cs b/Items/Materials/EssenceofEleum.cs index 55fcd2e1f2..e5ebf2d093 100644 --- a/Items/Materials/EssenceofEleum.cs +++ b/Items/Materials/EssenceofEleum.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class EssenceofEleum : ModItem { diff --git a/Items/Materials/FetidEssence.cs b/Items/Materials/FetidEssence.cs index a589911a05..32eb898049 100644 --- a/Items/Materials/FetidEssence.cs +++ b/Items/Materials/FetidEssence.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class FetidEssence : ModItem { diff --git a/Items/Materials/GalacticaSingularity.cs b/Items/Materials/GalacticaSingularity.cs index a5440be669..c8acab88a5 100644 --- a/Items/Materials/GalacticaSingularity.cs +++ b/Items/Materials/GalacticaSingularity.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class GalacticaSingularity : ModItem { diff --git a/Items/Materials/GypsyPowder.cs b/Items/Materials/GypsyPowder.cs index 8163113127..423a063287 100644 --- a/Items/Materials/GypsyPowder.cs +++ b/Items/Materials/GypsyPowder.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class GypsyPowder : ModItem { diff --git a/Items/Materials/HadarianMembrane.cs b/Items/Materials/HadarianMembrane.cs index cda17a6504..64a1ebc903 100644 --- a/Items/Materials/HadarianMembrane.cs +++ b/Items/Materials/HadarianMembrane.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class HadarianMembrane : ModItem { diff --git a/Items/Materials/HellcasterFragment.cs b/Items/Materials/HellcasterFragment.cs index 40bf9019ec..6b98e6cebe 100644 --- a/Items/Materials/HellcasterFragment.cs +++ b/Items/Materials/HellcasterFragment.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class HellcasterFragment : ModItem { diff --git a/Items/Materials/LivingShard.cs b/Items/Materials/LivingShard.cs index cb951d8ed8..3a3b44aca9 100644 --- a/Items/Materials/LivingShard.cs +++ b/Items/Materials/LivingShard.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class LivingShard : ModItem { diff --git a/Items/Materials/Lumenite.cs b/Items/Materials/Lumenite.cs index e4e6987658..2c41a6fd9c 100644 --- a/Items/Materials/Lumenite.cs +++ b/Items/Materials/Lumenite.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class Lumenite : ModItem { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Materials public override void SetDefaults() { - item.createTile = mod.TileType("LumenylCrystals"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Materials/ManeaterBulb.cs b/Items/Materials/ManeaterBulb.cs index eed1f7ade4..e81ef87ab7 100644 --- a/Items/Materials/ManeaterBulb.cs +++ b/Items/Materials/ManeaterBulb.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class ManeaterBulb : ModItem { diff --git a/Items/Materials/MeldBlob.cs b/Items/Materials/MeldBlob.cs index 678c68f4bd..fb0b00e0f5 100644 --- a/Items/Materials/MeldBlob.cs +++ b/Items/Materials/MeldBlob.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class MeldBlob : ModItem { diff --git a/Items/Materials/MeldiateBar.cs b/Items/Materials/MeldiateBar.cs index 742af80dbf..5691870699 100644 --- a/Items/Materials/MeldiateBar.cs +++ b/Items/Materials/MeldiateBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class MeldiateBar : ModItem { diff --git a/Items/Materials/MurkyPaste.cs b/Items/Materials/MurkyPaste.cs index 314eba74eb..9591a7a6f9 100644 --- a/Items/Materials/MurkyPaste.cs +++ b/Items/Materials/MurkyPaste.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class MurkyPaste : ModItem { diff --git a/Items/Materials/MurkySludge.cs b/Items/Materials/MurkySludge.cs index e9a67e2ce7..26034b4af5 100644 --- a/Items/Materials/MurkySludge.cs +++ b/Items/Materials/MurkySludge.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class MurkySludge : ModItem { diff --git a/Items/Materials/NightmareFuel.cs b/Items/Materials/NightmareFuel.cs index 6e8f2fb1f3..1e5601c740 100644 --- a/Items/Materials/NightmareFuel.cs +++ b/Items/Materials/NightmareFuel.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class NightmareFuel : ModItem { diff --git a/Items/Materials/Phantoplasm.cs b/Items/Materials/Phantoplasm.cs index 578c39fe7a..bad4720f6a 100644 --- a/Items/Materials/Phantoplasm.cs +++ b/Items/Materials/Phantoplasm.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class Phantoplasm : ModItem { diff --git a/Items/Materials/ShadowspecBar.cs b/Items/Materials/ShadowspecBar.cs index 3067f97c5e..518c282814 100644 --- a/Items/Materials/ShadowspecBar.cs +++ b/Items/Materials/ShadowspecBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class ShadowspecBar : ModItem { diff --git a/Items/Materials/Stardust.cs b/Items/Materials/Stardust.cs index 88b9a1cec7..22fca42ad0 100644 --- a/Items/Materials/Stardust.cs +++ b/Items/Materials/Stardust.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class Stardust : ModItem { diff --git a/Items/Materials/StormlionMandible.cs b/Items/Materials/StormlionMandible.cs index f310a98d56..bebc83d372 100644 --- a/Items/Materials/StormlionMandible.cs +++ b/Items/Materials/StormlionMandible.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class StormlionMandible : ModItem { diff --git a/Items/Materials/TrapperBulb.cs b/Items/Materials/TrapperBulb.cs index 9cb6a69b38..f0dcb7a994 100644 --- a/Items/Materials/TrapperBulb.cs +++ b/Items/Materials/TrapperBulb.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class TrapperBulb : ModItem { diff --git a/Items/Materials/UeliaceBar.cs b/Items/Materials/UeliaceBar.cs index fee38fab57..8aeb6eb9a4 100644 --- a/Items/Materials/UeliaceBar.cs +++ b/Items/Materials/UeliaceBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class UeliaceBar : ModItem { diff --git a/Items/Materials/UnholyCore.cs b/Items/Materials/UnholyCore.cs index 57ca02056d..bc0e91056f 100644 --- a/Items/Materials/UnholyCore.cs +++ b/Items/Materials/UnholyCore.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class UnholyCore : ModItem { diff --git a/Items/Materials/VerstaltiteBar.cs b/Items/Materials/VerstaltiteBar.cs index 1ad90631d9..32a4055bb0 100644 --- a/Items/Materials/VerstaltiteBar.cs +++ b/Items/Materials/VerstaltiteBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class VerstaltiteBar : ModItem { diff --git a/Items/Materials/VictideBar.cs b/Items/Materials/VictideBar.cs index 8091626c7a..55e540b034 100644 --- a/Items/Materials/VictideBar.cs +++ b/Items/Materials/VictideBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class VictideBar : ModItem { diff --git a/Items/Materials/VictoryShard.cs b/Items/Materials/VictoryShard.cs index 9ed0b2932d..716a5790e9 100644 --- a/Items/Materials/VictoryShard.cs +++ b/Items/Materials/VictoryShard.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class VictoryShard : ModItem { diff --git a/Items/Materials/WulfrumShard.cs b/Items/Materials/WulfrumShard.cs index 112239b7d8..5c00339b49 100644 --- a/Items/Materials/WulfrumShard.cs +++ b/Items/Materials/WulfrumShard.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Materials +namespace CalamityMod.Items { public class WulfrumShard : ModItem { diff --git a/Items/Mounts/Fab.cs b/Items/Mounts/AlicornMount.cs similarity index 92% rename from Items/Mounts/Fab.cs rename to Items/Mounts/AlicornMount.cs index dac95caedd..d87e102b20 100644 --- a/Items/Mounts/Fab.cs +++ b/Items/Mounts/AlicornMount.cs @@ -3,17 +3,17 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { - class Fab : ModMountData + class AlicornMount : ModMountData { public override void SetDefaults() { mountData.spawnDust = 234; mountData.spawnDustNoGravity = true; - mountData.buff = mod.BuffType("Fab"); + mountData.buff = ModContent.BuffType(); mountData.heightBoost = 34; mountData.fallDamage = 0f; //0.5 mountData.runSpeed = 7f; //12 @@ -63,7 +63,7 @@ namespace CalamityMod.Items.Mounts mountData.swimFrameStart = mountData.inAirFrameStart; if (Main.netMode != NetmodeID.Server) { - mountData.frontTextureExtra = mod.GetTexture("Items/Mounts/FabExtra"); + mountData.frontTextureExtra = mod.GetTexture("Items/Mounts/AlicornMountExtra"); mountData.textureWidth = mountData.backTexture.Width; mountData.textureHeight = mountData.backTexture.Height; } diff --git a/Items/Mounts/FabExtra.png b/Items/Mounts/AlicornMountExtra.png similarity index 100% rename from Items/Mounts/FabExtra.png rename to Items/Mounts/AlicornMountExtra.png diff --git a/Items/Mounts/Fab_Back.png b/Items/Mounts/AlicornMount_Back.png similarity index 100% rename from Items/Mounts/Fab_Back.png rename to Items/Mounts/AlicornMount_Back.png diff --git a/Items/Mounts/Fab_Front.png b/Items/Mounts/AlicornMount_Front.png similarity index 100% rename from Items/Mounts/Fab_Front.png rename to Items/Mounts/AlicornMount_Front.png diff --git a/Items/Mounts/AngryDog.cs b/Items/Mounts/AngryDogMount.cs similarity index 93% rename from Items/Mounts/AngryDog.cs rename to Items/Mounts/AngryDogMount.cs index 56dedbfce4..7ae8408587 100644 --- a/Items/Mounts/AngryDog.cs +++ b/Items/Mounts/AngryDogMount.cs @@ -1,19 +1,20 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { - class AngryDog : ModMountData + class AngryDogMount : ModMountData { public override void SetDefaults() { mountData.spawnDust = 192; mountData.spawnDustNoGravity = true; - mountData.buff = mod.BuffType("TundraLeashBuff"); + mountData.buff = ModContent.BuffType(); mountData.heightBoost = 36; //8 mountData.fallDamage = 0.3f; mountData.runSpeed = 6.5f; diff --git a/Items/Mounts/AngryDog_Back.png b/Items/Mounts/AngryDogMount_Back.png similarity index 100% rename from Items/Mounts/AngryDog_Back.png rename to Items/Mounts/AngryDogMount_Back.png diff --git a/Items/Mounts/AngryDog_Front.png b/Items/Mounts/AngryDogMount_Front.png similarity index 100% rename from Items/Mounts/AngryDog_Front.png rename to Items/Mounts/AngryDogMount_Front.png diff --git a/Items/Mounts/Brimrose.cs b/Items/Mounts/Brimrose.cs index ef8ee4127d..89340dfc32 100644 --- a/Items/Mounts/Brimrose.cs +++ b/Items/Mounts/Brimrose.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { class Brimrose : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Mounts item.expert = true; item.UseSound = SoundID.Item3; item.noMelee = true; - item.mountType = mod.MountType("PhuppersChair"); + item.mountType = ModContent.MountType(); } } } diff --git a/Items/Mounts/Crysthamyr.cs b/Items/Mounts/Crysthamyr.cs index 92eb7ce861..ff93ae917f 100644 --- a/Items/Mounts/Crysthamyr.cs +++ b/Items/Mounts/Crysthamyr.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { class Crysthamyr : ModMountData { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Mounts { mountData.spawnDust = 173; mountData.spawnDustNoGravity = true; - mountData.buff = mod.BuffType("GazeOfCrysthamyrBuff"); + mountData.buff = ModContent.BuffType(); mountData.heightBoost = 36; mountData.fallDamage = 0f; mountData.runSpeed = 5f; diff --git a/Items/Mounts/Fabsol.cs b/Items/Mounts/Fabsol.cs index b96a07982f..17e20ac2c5 100644 --- a/Items/Mounts/Fabsol.cs +++ b/Items/Mounts/Fabsol.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { class Fabsol : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Mounts item.expert = true; item.UseSound = SoundID.Item3; item.noMelee = true; - item.mountType = mod.MountType("Fab"); + item.mountType = ModContent.MountType(); } } } diff --git a/Items/Mounts/OnyxExcavator.cs b/Items/Mounts/OnyxExcavator.cs index 6370488fc6..fd6d41a629 100644 --- a/Items/Mounts/OnyxExcavator.cs +++ b/Items/Mounts/OnyxExcavator.cs @@ -5,9 +5,9 @@ using Terraria; using Terraria.GameContent.Achievements; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { class OnyxExcavator : ModMountData { @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Mounts { mountData.spawnDust = 109; mountData.spawnDustNoGravity = true; - mountData.buff = mod.BuffType("OnyxExcavatorBuff"); + mountData.buff = ModContent.BuffType(); mountData.heightBoost = 10; mountData.fallDamage = 0f; mountData.runSpeed = 8f; @@ -136,12 +136,12 @@ namespace CalamityMod.Items.Mounts Tile tile = Framing.GetTileSafely(num824, num825); if (num828 < (double)num814) { - if (tile != null && tile.active() && tile.type != (ushort)mod.TileType("AbyssGravel") && - tile.type != (ushort)mod.TileType("Voidstone") && (tile.type != TileID.Hellstone || Main.hardMode) && + if (tile != null && tile.active() && tile.type != (ushort)ModContent.TileType() && + tile.type != (ushort)ModContent.TileType() && (tile.type != TileID.Hellstone || Main.hardMode) && (tile.type != TileID.LihzahrdBrick || NPC.downedGolemBoss) && tile.type != TileID.BlueDungeonBrick && tile.type != TileID.GreenDungeonBrick && tile.type != TileID.PinkDungeonBrick && tile.type != TileID.DemonAltar && - (tile.type != (ushort)mod.TileType("AstralOre") || CalamityWorld.downedStarGod) && - ((tile.type != (ushort)mod.TileType("Tenebris") && tile.type != (ushort)mod.TileType("PlantyMush")) || NPC.downedPlantBoss || CalamityWorld.downedCalamitas) && + (tile.type != (ushort)ModContent.TileType() || CalamityWorld.downedStarGod) && + ((tile.type != (ushort)ModContent.TileType() && tile.type != (ushort)ModContent.TileType()) || NPC.downedPlantBoss || CalamityWorld.downedCalamitas) && (!player.Calamity().ZoneSunkenSea || CalamityWorld.downedDesertScourge) && (Main.tileValue[tile.type] < tileValueLimit || tile.type == TileID.Heart || tile.type == TileID.LifeFruit) && !player.noBuilding && tile.type != TileID.ElderCrystalStand && tile.type != TileID.Containers) diff --git a/Items/Mounts/PhuppersChair.cs b/Items/Mounts/PhuppersChair.cs index 81b3b9862f..8cd439aed5 100644 --- a/Items/Mounts/PhuppersChair.cs +++ b/Items/Mounts/PhuppersChair.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { class PhuppersChair : ModMountData { @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Mounts { mountData.spawnDust = 235; mountData.spawnDustNoGravity = true; - mountData.buff = mod.BuffType("BrimstoneMount"); + mountData.buff = ModContent.BuffType(); mountData.heightBoost = 12; mountData.flightTimeMax = int.MaxValue - 1; mountData.fatigueMax = int.MaxValue - 1; diff --git a/Items/Mounts/SquishyBean.cs b/Items/Mounts/SquishyBean.cs index 1574c7588c..6e64ee2a4f 100644 --- a/Items/Mounts/SquishyBean.cs +++ b/Items/Mounts/SquishyBean.cs @@ -1,14 +1,14 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { class SquishyBean : ModMountData { public override void SetDefaults() { - mountData.buff = mod.BuffType("SquishyBeanBuff"); + mountData.buff = ModContent.BuffType(); mountData.heightBoost = 58; mountData.fallDamage = -1; mountData.runSpeed = 5f; diff --git a/Items/Mounts/SquishyBeanMount.cs b/Items/Mounts/SquishyBeanMount.cs index e0ee556c0e..bac621b329 100644 --- a/Items/Mounts/SquishyBeanMount.cs +++ b/Items/Mounts/SquishyBeanMount.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Mounts +namespace CalamityMod.Items { class SquishyBeanMount : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Mounts item.expert = true; item.UseSound = SoundID.Item3; item.noMelee = true; - item.mountType = mod.MountType("SquishyBean"); + item.mountType = ModContent.MountType(); } } } diff --git a/Items/Patreon/AngelicShotgun.cs b/Items/Patreon/AngelicShotgun.cs index 0d33935f0e..f7fbe3abf3 100644 --- a/Items/Patreon/AngelicShotgun.cs +++ b/Items/Patreon/AngelicShotgun.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class AngelicShotgun : ModItem { @@ -40,7 +40,7 @@ Fighting 'til the war's won"); item.Calamity().postMoonLordRarity = 21; item.shootSpeed = BulletSpeed; - item.shoot = mod.ProjectileType("IlluminatedBullet"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -59,7 +59,7 @@ Fighting 'til the war's won"); float dx = Main.rand.NextFloat(-1.5f, 1.5f); float dy = Main.rand.NextFloat(-1.5f, 1.5f); Vector2 randomVelocity = baseVelocity + new Vector2(dx, dy); - Projectile.NewProjectile(position, randomVelocity, mod.ProjectileType("IlluminatedBullet"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position, randomVelocity, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } // Spawn a beam from the sky ala Deathhail Staff or Lunar Flare @@ -103,7 +103,7 @@ Fighting 'til the war's won"); mouseDist = laserSpeed / mouseDist; mouseDX *= mouseDist; mouseDY *= mouseDist; - Projectile.NewProjectile(rrp, new Vector2(mouseDX, mouseDY + Main.rand.NextFloat(-0.8f, 0.8f)), mod.ProjectileType("AngelicBeam"), laserDamage, laserKB, player.whoAmI); + Projectile.NewProjectile(rrp, new Vector2(mouseDX, mouseDY + Main.rand.NextFloat(-0.8f, 0.8f)), ModContent.ProjectileType(), laserDamage, laserKB, player.whoAmI); // Play the sound of the laser beam Main.PlaySound(SoundID.Item72, player.Center); @@ -115,9 +115,9 @@ Fighting 'til the war's won"); { ModRecipe r = new ModRecipe(mod); r.AddIngredient(ItemID.SunplateBlock, 75); - r.AddIngredient(mod.ItemType("UeliaceBar"), 10); - r.AddIngredient(mod.ItemType("DivineGeode"), 15); - r.AddIngredient(mod.ItemType("CoreofCinder"), 7); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddIngredient(ModContent.ItemType(), 15); + r.AddIngredient(ModContent.ItemType(), 7); r.AddTile(TileID.LunarCraftingStation); r.SetResult(this); r.AddRecipe(); diff --git a/Items/Patreon/ApronOfAffection.cs b/Items/Patreon/ApronOfAffection.cs index 4800415e06..49a6a79333 100644 --- a/Items/Patreon/ApronOfAffection.cs +++ b/Items/Patreon/ApronOfAffection.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Body)] public class ApronOfAffection : ModItem diff --git a/Items/Patreon/Ataraxia.cs b/Items/Patreon/Ataraxia.cs index 8ae9f6af20..127b486389 100644 --- a/Items/Patreon/Ataraxia.cs +++ b/Items/Patreon/Ataraxia.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class Ataraxia : ModItem { @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Patreon item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(2, 50, 0, 0); - item.shoot = mod.ProjectileType("AtaraxiaMain"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } @@ -45,13 +45,13 @@ namespace CalamityMod.Items.Patreon Main.PlaySound(SoundID.Item60, position); // Center projectile - int centerID = mod.ProjectileType("AtaraxiaMain"); + int centerID = ModContent.ProjectileType(); int centerDamage = damage; Vector2 centerVec = new Vector2(speedX, speedY); int center = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, centerID, centerDamage, knockBack, player.whoAmI, 0.0f, 0.0f); // Side projectiles (these deal 75% damage) - int sideID = mod.ProjectileType("AtaraxiaSide"); + int sideID = ModContent.ProjectileType(); int sideDamage = (int)(0.75f * centerDamage); Vector2 speed = new Vector2(speedX, speedY); speed.Normalize(); @@ -78,7 +78,7 @@ namespace CalamityMod.Items.Patreon // Individual true melee homing missiles deal 10% of the weapon's base damage. int numSplits = 5; - int trueMeleeID = mod.ProjectileType("AtaraxiaHoming"); + int trueMeleeID = ModContent.ProjectileType(); int trueMeleeDamage = (int)(0.1f * damage); float angleVariance = MathHelper.TwoPi / (float)numSplits; float spinOffsetAngle = MathHelper.Pi / (2f * numSplits); diff --git a/Items/Patreon/BloodyVein.cs b/Items/Patreon/BloodyVein.cs index f16f10ffc4..559f06c0ee 100644 --- a/Items/Patreon/BloodyVein.cs +++ b/Items/Patreon/BloodyVein.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class BloodyVein : ModItem { @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Patreon item.height = 48; item.value = Item.buyPrice(0, 4, 0, 0); item.UseSound = SoundID.NPCHit9; - item.shoot = mod.ProjectileType("PerforaMini"); - item.buffType = mod.BuffType("BloodBound"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 3; item.Calamity().postMoonLordRarity = 21; } diff --git a/Items/Patreon/CorpusAvertorMelee.cs b/Items/Patreon/CorpusAvertorMelee.cs index 531a6c662e..189c3e6e4f 100644 --- a/Items/Patreon/CorpusAvertorMelee.cs +++ b/Items/Patreon/CorpusAvertorMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class CorpusAvertorMelee : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Patreon item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.Calamity().postMoonLordRarity = 21; - item.shoot = mod.ProjectileType("CorpusAvertor"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; item.melee = true; } diff --git a/Items/Patreon/DarkSpark.cs b/Items/Patreon/DarkSpark.cs index b0da40a80d..f8cd14bf8b 100644 --- a/Items/Patreon/DarkSpark.cs +++ b/Items/Patreon/DarkSpark.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class DarkSpark : ModItem { @@ -33,14 +33,14 @@ namespace CalamityMod.Items.Patreon item.knockBack = 0f; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("DarkSpark"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().postMoonLordRarity = 21; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("DarkSpark"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Patreon/DevilsSunrise.cs b/Items/Patreon/DevilsSunrise.cs index ba984b5861..d9eec6ad48 100644 --- a/Items/Patreon/DevilsSunrise.cs +++ b/Items/Patreon/DevilsSunrise.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class DevilsSunrise : ModItem { @@ -34,14 +34,14 @@ namespace CalamityMod.Items.Patreon item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(1, 40, 0, 0); - item.shoot = mod.ProjectileType("DevilsSunrise"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("DevilsSunrise"), damage, knockBack, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("DevilsSunriseCyclone"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Patreon/DivineRetribution.cs b/Items/Patreon/DivineRetribution.cs index f49a55cb3f..d7e35095b8 100644 --- a/Items/Patreon/DivineRetribution.cs +++ b/Items/Patreon/DivineRetribution.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class DivineRetribution : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Patreon item.UseSound = SoundID.Item73; item.autoReuse = true; item.shootSpeed = 19f; - item.shoot = mod.ProjectileType("DivineRetribution"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 21; } diff --git a/Items/Patreon/DodusHandcannon.cs b/Items/Patreon/DodusHandcannon.cs index b35d14f64f..ac96582a7d 100644 --- a/Items/Patreon/DodusHandcannon.cs +++ b/Items/Patreon/DodusHandcannon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class DodusHandcannon : ModItem { diff --git a/Items/Patreon/DragonPow.cs b/Items/Patreon/DragonPow.cs index ba6195aed6..695d289017 100644 --- a/Items/Patreon/DragonPow.cs +++ b/Items/Patreon/DragonPow.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class DragonPow : ModItem { @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Patreon item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(2, 50, 0, 0); - item.shoot = mod.ProjectileType("DragonPowFlail"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/Patreon/FaceMelter.cs b/Items/Patreon/FaceMelter.cs index 1d7e5581f1..5f98e668e1 100644 --- a/Items/Patreon/FaceMelter.cs +++ b/Items/Patreon/FaceMelter.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class FaceMelter : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Patreon item.rare = 10; item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(1, 80, 0, 0); - item.shoot = mod.ProjectileType("MelterNote1"); + item.shoot = ModContent.ProjectileType(); item.UseSound = SoundID.Item47; item.autoReuse = true; item.shootSpeed = 20f; @@ -70,7 +70,7 @@ namespace CalamityMod.Items.Patreon item.useTime = 20; item.useAnimation = 20; item.reuseDelay = 0; - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("MelterAmp"), damage, knockBack, player.whoAmI); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI); return false; } else @@ -83,13 +83,13 @@ namespace CalamityMod.Items.Patreon if (note == 0) { damage = (int)(damage * 1.5f); - type = mod.ProjectileType("MelterNote1"); + type = ModContent.ProjectileType(); } else { SpeedX *= 1.5f; SpeedY *= 1.5f; - type = mod.ProjectileType("MelterNote2"); + type = ModContent.ProjectileType(); } Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); return false; diff --git a/Items/Patreon/ForgottenDragonEgg.cs b/Items/Patreon/ForgottenDragonEgg.cs index 26940d0326..64bf8767a4 100644 --- a/Items/Patreon/ForgottenDragonEgg.cs +++ b/Items/Patreon/ForgottenDragonEgg.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class ForgottenDragonEgg : ModItem { @@ -15,8 +15,8 @@ namespace CalamityMod.Items.Patreon public override void SetDefaults() { item.CloneDefaults(ItemID.ZephyrFish); - item.shoot = mod.ProjectileType("Akato"); - item.buffType = mod.BuffType("AkatoYharonBuff"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 10; item.Calamity().postMoonLordRarity = 21; } diff --git a/Items/Patreon/GazeOfCrysthamyr.cs b/Items/Patreon/GazeOfCrysthamyr.cs index e9dc0e3de1..9e2baf59df 100644 --- a/Items/Patreon/GazeOfCrysthamyr.cs +++ b/Items/Patreon/GazeOfCrysthamyr.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { class GazeOfCrysthamyr : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Patreon item.value = Item.buyPrice(3, 0, 0, 0); item.UseSound = SoundID.NPCHit56; item.noMelee = true; - item.mountType = mod.MountType("Crysthamyr"); + item.mountType = ModContent.MountType(); item.Calamity().postMoonLordRarity = 21; } diff --git a/Items/Patreon/HandheldTank.cs b/Items/Patreon/HandheldTank.cs index 87cbdf37c3..3c61c20342 100644 --- a/Items/Patreon/HandheldTank.cs +++ b/Items/Patreon/HandheldTank.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class HandheldTank : ModItem { @@ -32,14 +32,14 @@ namespace CalamityMod.Items.Patreon item.rare = 10; item.Calamity().postMoonLordRarity = 21; - item.shoot = mod.ProjectileType("HandheldTankShell"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.useAmmo = AmmoID.Rocket; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("HandheldTankShell"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Patreon/Karasawa.cs b/Items/Patreon/Karasawa.cs index b4eecfc25d..45c70cc7f7 100644 --- a/Items/Patreon/Karasawa.cs +++ b/Items/Patreon/Karasawa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class Karasawa : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Patreon item.rare = 10; item.Calamity().postMoonLordRarity = 21; - item.shoot = mod.ProjectileType("KarasawaShot"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; item.useAmmo = AmmoID.Bullet; } @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Patreon velocity.Normalize(); velocity *= 5f; } - Projectile.NewProjectile(position.X, position.Y, velocity.X, velocity.Y, mod.ProjectileType("KarasawaShot"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); // Consume 5 ammo per shot CalamityGlobalItem.ConsumeAdditionalAmmo(player, item, 5); diff --git a/Items/Patreon/Keelhaul.cs b/Items/Patreon/Keelhaul.cs index 640e0bfe0e..a452fa8007 100644 --- a/Items/Patreon/Keelhaul.cs +++ b/Items/Patreon/Keelhaul.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class Keelhaul : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Patreon item.rare = 8; item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(0, 80, 0, 0); - item.shoot = mod.ProjectileType("KeelhaulBubble"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; } } diff --git a/Items/Patreon/KelvinCatalystMelee.cs b/Items/Patreon/KelvinCatalystMelee.cs index 0b8ea05f17..2691659f83 100644 --- a/Items/Patreon/KelvinCatalystMelee.cs +++ b/Items/Patreon/KelvinCatalystMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class KelvinCatalystMelee : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Patreon item.height = 20; item.value = Item.buyPrice(0, 48, 0, 0); item.rare = 6; - item.shoot = mod.ProjectileType("KelvinCatalyst"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.melee = true; item.Calamity().postMoonLordRarity = 21; diff --git a/Items/Patreon/LightGodsBrilliance.cs b/Items/Patreon/LightGodsBrilliance.cs index 86a25b9e16..e3b084294d 100644 --- a/Items/Patreon/LightGodsBrilliance.cs +++ b/Items/Patreon/LightGodsBrilliance.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class LightGodsBrilliance : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Patreon item.rare = 10; item.UseSound = SoundID.Item9; item.autoReuse = true; - item.shoot = mod.ProjectileType("LightBead"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().postMoonLordRarity = 21; } @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Patreon } if (Main.rand.NextBool(3)) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("LightBall"), (int)((double)damage * 2.0), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 2.0), knockBack, player.whoAmI, 0.0f, 0.0f); } return false; diff --git a/Items/Patreon/MadAlchemistsCocktailGlove.cs b/Items/Patreon/MadAlchemistsCocktailGlove.cs index 5ccaa00998..9fe92a4974 100644 --- a/Items/Patreon/MadAlchemistsCocktailGlove.cs +++ b/Items/Patreon/MadAlchemistsCocktailGlove.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class MadAlchemistsCocktailGlove : ModItem { @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Patreon item.rare = 10; item.UseSound = SoundID.Item106; item.autoReuse = true; - item.shoot = mod.ProjectileType("MadAlchemistsCocktailRed"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 21; } @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Patreon { if (player.altFunctionUse == 2) { - type = mod.ProjectileType("MadAlchemistsCocktailAlt"); + type = ModContent.ProjectileType(); Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)((float)BaseDamage * 1.5f * player.magicDamage), knockBack, player.whoAmI, 0f, 0f); } else @@ -65,16 +65,16 @@ namespace CalamityMod.Items.Patreon switch (FlaskType) { case 0: - type = mod.ProjectileType("MadAlchemistsCocktailRed"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("MadAlchemistsCocktailBlue"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("MadAlchemistsCocktailGreen"); + type = ModContent.ProjectileType(); break; case 3: - type = mod.ProjectileType("MadAlchemistsCocktailPurple"); + type = ModContent.ProjectileType(); break; default: break; diff --git a/Items/Patreon/Nadir.cs b/Items/Patreon/Nadir.cs index 1c4f1b49e3..0bfe89d9d8 100644 --- a/Items/Patreon/Nadir.cs +++ b/Items/Patreon/Nadir.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class Nadir : ModItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Patreon item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(1, 80, 0, 0); - item.shoot = mod.ProjectileType("NadirSpear"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = ShootSpeed; } diff --git a/Items/Patreon/NormalityRelocator.cs b/Items/Patreon/NormalityRelocator.cs index c0f62cb64e..4cf50c5125 100644 --- a/Items/Patreon/NormalityRelocator.cs +++ b/Items/Patreon/NormalityRelocator.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class NormalityRelocator : ModItem { diff --git a/Items/Patreon/Oracle.cs b/Items/Patreon/Oracle.cs index 3f5b9d0a52..7850ea8d30 100644 --- a/Items/Patreon/Oracle.cs +++ b/Items/Patreon/Oracle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class Oracle : ModItem { @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Patreon item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(2, 50, 0, 0); - item.shoot = mod.ProjectileType("OracleYoyo"); + item.shoot = ModContent.ProjectileType(); } 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/Patreon/ProfanedSoulArtifact.cs b/Items/Patreon/ProfanedSoulArtifact.cs index 8b6733ddb6..b92d73b317 100644 --- a/Items/Patreon/ProfanedSoulArtifact.cs +++ b/Items/Patreon/ProfanedSoulArtifact.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class ProfanedSoulArtifact : ModItem { diff --git a/Items/Patreon/ResurrectionButterfly.cs b/Items/Patreon/ResurrectionButterfly.cs index 80688d35a6..aba5464c3c 100644 --- a/Items/Patreon/ResurrectionButterfly.cs +++ b/Items/Patreon/ResurrectionButterfly.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class ResurrectionButterfly : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Patreon item.Calamity().postMoonLordRarity = 21; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("PinkButterfly"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } @@ -67,9 +67,9 @@ namespace CalamityMod.Items.Patreon vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; Vector2 spinningpoint = new Vector2(num78, num79); spinningpoint = spinningpoint.RotatedBy(1.5707963705062866, default); - Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, mod.ProjectileType("PinkButterfly"), damage, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, ModContent.ProjectileType(), damage, num74, i, 0f, 0f); spinningpoint = spinningpoint.RotatedBy(-3.1415927410125732, default); - Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, mod.ProjectileType("PurpleButterfly"), damage, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, ModContent.ProjectileType(), damage, num74, i, 0f, 0f); return false; } diff --git a/Items/Patreon/Roxcalibur.cs b/Items/Patreon/Roxcalibur.cs index 8b04f191aa..9d809feb6d 100644 --- a/Items/Patreon/Roxcalibur.cs +++ b/Items/Patreon/Roxcalibur.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class Roxcalibur : ModItem { @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Patreon item.useAnimation = 45; item.useTime = 45; - item.shoot = mod.ProjectileType("Rox1"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.value = Item.buyPrice(0, 36, 0, 0); @@ -76,7 +76,7 @@ namespace CalamityMod.Items.Patreon Main.PlaySound(2, player.position, 70); } // Resets the weapon usage if the alt fire collides with the ground - if (RoxAlt && player.ownedProjectileCounts[mod.ProjectileType("RoxSlam")] <= 0) + if (RoxAlt && player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0) { player.itemAnimation = 0; player.itemTime = 0; @@ -85,7 +85,7 @@ namespace CalamityMod.Items.Patreon Didrefresh = false; } // Controls what happens when the alt fire is active - if (RoxAlt && player.ownedProjectileCounts[mod.ProjectileType("RoxSlam")] > 0) + if (RoxAlt && player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { if (player.mount.Active) { @@ -226,7 +226,7 @@ namespace CalamityMod.Items.Patreon { positionx = position.X - 8; } - Projectile.NewProjectile(positionx, positiony, player.velocity.X, player.velocity.Y, mod.ProjectileType("RoxSlam"), 0, 0, player.whoAmI, cooldown); + Projectile.NewProjectile(positionx, positiony, player.velocity.X, player.velocity.Y, ModContent.ProjectileType(), 0, 0, player.whoAmI, cooldown); //Resets the cooldown after shooting if (Roxcooldown >= 600) { @@ -243,7 +243,7 @@ namespace CalamityMod.Items.Patreon //Else shoot the spread of rock shards int rotation = Main.rand.Next(-10, 11); Vector2 pertubedspeed = new Vector2(speedX / 2, -10f * player.gravDir).RotatedBy(MathHelper.ToRadians(rotation)); - Projectile.NewProjectile(position.X, position.Y, pertubedspeed.X, pertubedspeed.Y, mod.ProjectileType("Rox1"), (int)((double)damage * 0.5), 1f, player.whoAmI, Main.rand.Next(3)); + Projectile.NewProjectile(position.X, position.Y, pertubedspeed.X, pertubedspeed.Y, ModContent.ProjectileType(), (int)((double)damage * 0.5), 1f, player.whoAmI, Main.rand.Next(3)); } RoxCanAlt = 0; diff --git a/Items/Patreon/TheLastMourning.cs b/Items/Patreon/TheLastMourning.cs index f38a736d47..a65cdb26d6 100644 --- a/Items/Patreon/TheLastMourning.cs +++ b/Items/Patreon/TheLastMourning.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class TheLastMourning : ModItem { @@ -69,7 +69,7 @@ namespace CalamityMod.Items.Patreon num5 = speed / num5; num3 *= num5; num4 *= num5; - Projectile.NewProjectile((float)num, (float)num2, num3, num4, mod.ProjectileType("MourningSkull"), (int)((float)item.damage * player.meleeDamage * 1.5f), knockback, player.whoAmI, (float)target.whoAmI, 0f); + Projectile.NewProjectile((float)num, (float)num2, num3, num4, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage * 1.5f), knockback, player.whoAmI, (float)target.whoAmI, 0f); CalamityGlobalItem.HorsemansBladeOnHit(player, target.whoAmI, (int)(item.damage * player.meleeDamage * 1.5f), knockback, true); } diff --git a/Items/Patreon/ThePack.cs b/Items/Patreon/ThePack.cs index a73156a551..123c6b4119 100644 --- a/Items/Patreon/ThePack.cs +++ b/Items/Patreon/ThePack.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class ThePack : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Patreon item.UseSound = SoundID.Item11; item.autoReuse = true; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("ThePackMissile"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 771; } @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Patreon 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ThePackMissile"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Patreon/YateveoBloom.cs b/Items/Patreon/YateveoBloom.cs index 9e67094e74..dce8df1fe7 100644 --- a/Items/Patreon/YateveoBloom.cs +++ b/Items/Patreon/YateveoBloom.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Patreon +namespace CalamityMod.Items { public class YateveoBloom : ModItem { @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Patreon item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(0, 2, 0, 0); - item.shoot = mod.ProjectileType("YateveoBloom"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = ShootSpeed; } @@ -73,9 +73,9 @@ namespace CalamityMod.Items.Patreon 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) { if (player.altFunctionUse == 2) - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("YateveoBloomSpear"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); else - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("YateveoBloom"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Perforator/BloodSample.cs b/Items/Perforator/BloodSample.cs index 1ca5eedd1e..416f48d230 100644 --- a/Items/Perforator/BloodSample.cs +++ b/Items/Perforator/BloodSample.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Perforator +namespace CalamityMod.Items { public class BloodSample : ModItem { diff --git a/Items/Perforator/BloodyWormFood.cs b/Items/Perforator/BloodyWormFood.cs index 930041143a..f2a1a40cda 100644 --- a/Items/Perforator/BloodyWormFood.cs +++ b/Items/Perforator/BloodyWormFood.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Perforator +namespace CalamityMod.Items { public class BloodyWormFood : ModItem { @@ -26,12 +26,12 @@ namespace CalamityMod.Items.Perforator public override bool CanUseItem(Player player) { - return player.ZoneCrimson && !NPC.AnyNPCs(mod.NPCType("PerforatorHive")); + return player.ZoneCrimson && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("PerforatorHive")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Perforator/BloodyWormTooth.cs b/Items/Perforator/BloodyWormTooth.cs index 0280675cc3..9516c7bc2a 100644 --- a/Items/Perforator/BloodyWormTooth.cs +++ b/Items/Perforator/BloodyWormTooth.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Perforator +namespace CalamityMod.Items { public class BloodyWormTooth : ModItem { diff --git a/Items/Perforator/PerforatorBag.cs b/Items/Perforator/PerforatorBag.cs index d8c307c656..aca8481032 100644 --- a/Items/Perforator/PerforatorBag.cs +++ b/Items/Perforator/PerforatorBag.cs @@ -1,13 +1,12 @@ -using CalamityMod.Utilities; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Perforator +namespace CalamityMod.Items { public class PerforatorBag : ModItem { - public override int BossBagNPC => mod.NPCType("PerforatorHive"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -35,25 +34,25 @@ namespace CalamityMod.Items.Perforator // Materials DropHelper.DropItem(player, ItemID.Vertebrae, 10, 20); DropHelper.DropItem(player, ItemID.CrimtaneBar, 9, 14); - DropHelper.DropItem(player, mod.ItemType("BloodSample"), 30, 40); + DropHelper.DropItem(player, ModContent.ItemType(), 30, 40); DropHelper.DropItemCondition(player, ItemID.Ichor, Main.hardMode, 15, 30); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("VeinBurster"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BloodyRupture"), 3); - DropHelper.DropItemChance(player, mod.ItemType("SausageMaker"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Aorta"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Eviscerator"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BloodBath"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BloodClotStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("ToothBall"), 3, 50, 75); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3, 50, 75); // Equipment - DropHelper.DropItem(player, mod.ItemType("BloodyWormTooth")); + DropHelper.DropItem(player, ModContent.ItemType()); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("PerforatorMask"), 7); - DropHelper.DropItemChance(player, mod.ItemType("BloodyVein"), 10); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 10); } } } diff --git a/Items/Permafrost/AbsoluteZero.cs b/Items/Permafrost/AbsoluteZero.cs index 5cff4c479b..2df4486e77 100644 --- a/Items/Permafrost/AbsoluteZero.cs +++ b/Items/Permafrost/AbsoluteZero.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class AbsoluteZero : ModItem { @@ -27,15 +27,15 @@ namespace CalamityMod.Items.Permafrost item.rare = 5; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.shoot = mod.ProjectileType("DarkIceZero"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { target.AddBuff(BuffID.Frostburn, 600); - target.AddBuff(mod.BuffType("GlacialState"), 300); + target.AddBuff(ModContent.BuffType(), 300); - int p = Projectile.NewProjectile(target.Center, Vector2.Zero, mod.ProjectileType("DarkIceZero"), damage, knockBack * 3f, player.whoAmI); + int p = Projectile.NewProjectile(target.Center, Vector2.Zero, ModContent.ProjectileType(), damage, knockBack * 3f, player.whoAmI); Main.projectile[p].Kill(); } } diff --git a/Items/Permafrost/ArcticBearPaw.cs b/Items/Permafrost/ArcticBearPaw.cs index 2c6eaf87c7..eec0b596b8 100644 --- a/Items/Permafrost/ArcticBearPaw.cs +++ b/Items/Permafrost/ArcticBearPaw.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class ArcticBearPaw : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Permafrost item.rare = 5; item.UseSound = SoundID.Item8; item.autoReuse = true; - item.shoot = mod.ProjectileType("ArcticBearPaw"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 27f; } } diff --git a/Items/Permafrost/ColdheartIcicle.cs b/Items/Permafrost/ColdheartIcicle.cs index 2456b3bfa1..375ab6f1c9 100644 --- a/Items/Permafrost/ColdheartIcicle.cs +++ b/Items/Permafrost/ColdheartIcicle.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class ColdheartIcicle : ModItem { @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Permafrost { damage = 1; crit = false; - if (target.type != NPCID.TargetDummy && target.type != mod.NPCType("Providence")) + if (target.type != NPCID.TargetDummy && target.type != ModContent.NPCType()) target.life -= target.lifeMax * 2 / 100; target.checkDead(); } diff --git a/Items/Permafrost/CryogenicStaff.cs b/Items/Permafrost/CryogenicStaff.cs index 6d56344819..84ce0cfe05 100644 --- a/Items/Permafrost/CryogenicStaff.cs +++ b/Items/Permafrost/CryogenicStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class CryogenicStaff : ModItem { @@ -30,7 +30,7 @@ Fire rate and range increase the longer it targets an enemy"); item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.UseSound = SoundID.Item78; - item.shoot = mod.ProjectileType("IceSentry"); + item.shoot = ModContent.ProjectileType(); } public override bool AltFunctionUse(Player player) diff --git a/Items/Permafrost/DeliciousMeat.cs b/Items/Permafrost/DeliciousMeat.cs index 095c8ba1cb..db9477ebde 100644 --- a/Items/Permafrost/DeliciousMeat.cs +++ b/Items/Permafrost/DeliciousMeat.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class DeliciousMeat : ModItem { diff --git a/Items/Permafrost/EnchantedMetal.cs b/Items/Permafrost/EnchantedMetal.cs index 7c2fc5643e..2de0aee83f 100644 --- a/Items/Permafrost/EnchantedMetal.cs +++ b/Items/Permafrost/EnchantedMetal.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class EnchantedMetal : ModItem { diff --git a/Items/Permafrost/EternalBlizzard.cs b/Items/Permafrost/EternalBlizzard.cs index 7a071a61e3..2cc0e6d144 100644 --- a/Items/Permafrost/EternalBlizzard.cs +++ b/Items/Permafrost/EternalBlizzard.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class EternalBlizzard : ModItem { @@ -29,13 +29,13 @@ namespace CalamityMod.Items.Permafrost item.useAmmo = AmmoID.Arrow; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("IcicleArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { if (type == ProjectileID.WoodenArrowFriendly) - type = mod.ProjectileType("IcicleArrow"); + type = ModContent.ProjectileType(); return true; } diff --git a/Items/Permafrost/FrostbiteBlaster.cs b/Items/Permafrost/FrostbiteBlaster.cs index 80be5fc7af..0a97f6f1fa 100644 --- a/Items/Permafrost/FrostbiteBlaster.cs +++ b/Items/Permafrost/FrostbiteBlaster.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class FrostbiteBlaster : ModItem { diff --git a/Items/Permafrost/IcicleArrow.cs b/Items/Permafrost/IcicleArrow.cs index 681fd6f6a5..ac287c903d 100644 --- a/Items/Permafrost/IcicleArrow.cs +++ b/Items/Permafrost/IcicleArrow.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class IcicleArrow : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Permafrost item.knockBack = 2.5f; item.value = Item.buyPrice(0, 0, 0, 15); item.rare = 3; - item.shoot = mod.ProjectileType("IcicleArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1.0f; item.ammo = AmmoID.Arrow; item.maxStack = 999; diff --git a/Items/Permafrost/IcicleTrident.cs b/Items/Permafrost/IcicleTrident.cs index a4e796fec3..bde1f2b754 100644 --- a/Items/Permafrost/IcicleTrident.cs +++ b/Items/Permafrost/IcicleTrident.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class IcicleTrident : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Permafrost item.rare = 5; item.UseSound = SoundID.Item8; item.autoReuse = true; - item.shoot = mod.ProjectileType("TridentIcicle"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } 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/Permafrost/IcyBullet.cs b/Items/Permafrost/IcyBullet.cs index 08314aac22..9d36896d5f 100644 --- a/Items/Permafrost/IcyBullet.cs +++ b/Items/Permafrost/IcyBullet.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class IcyBullet : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Permafrost item.knockBack = 2f; item.value = Item.buyPrice(0, 0, 0, 15); item.rare = 3; - item.shoot = mod.ProjectileType("IcyBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; item.ammo = AmmoID.Bullet; item.maxStack = 999; diff --git a/Items/Permafrost/PermafrostsConcoction.cs b/Items/Permafrost/PermafrostsConcoction.cs index 3871cac048..0664af1f34 100644 --- a/Items/Permafrost/PermafrostsConcoction.cs +++ b/Items/Permafrost/PermafrostsConcoction.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class PermafrostsConcoction : ModItem { diff --git a/Items/Permafrost/Popo.cs b/Items/Permafrost/Popo.cs index 37c13d9a32..034433a4dc 100644 --- a/Items/Permafrost/Popo.cs +++ b/Items/Permafrost/Popo.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class Popo : ModItem { diff --git a/Items/Permafrost/WintersFury.cs b/Items/Permafrost/WintersFury.cs index 17ed4f1b6c..f9e3ae67a8 100644 --- a/Items/Permafrost/WintersFury.cs +++ b/Items/Permafrost/WintersFury.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Permafrost +namespace CalamityMod.Items { public class WintersFury : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Permafrost item.UseSound = SoundID.Item9; item.scale = 0.9f; item.autoReuse = true; - item.shoot = mod.ProjectileType("Icicle"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) @@ -42,14 +42,14 @@ namespace CalamityMod.Items.Permafrost speed.Normalize(); speed *= 15f; speed.Y -= Math.Abs(speed.X) * 0.2f; - int p = Projectile.NewProjectile(position, speed, mod.ProjectileType("FrostShardFriendly"), damage, knockBack, player.whoAmI); + int p = Projectile.NewProjectile(position, speed, ModContent.ProjectileType(), damage, knockBack, player.whoAmI); Main.projectile[p].minion = false; Main.projectile[p].magic = true; } if (Main.rand.NextBool(3)) { Main.PlaySound(SoundID.Item1, position); - Projectile.NewProjectile(position.X, position.Y, speedX * 1.2f, speedY * 1.2f, mod.ProjectileType("Snowball"), damage, knockBack * 2f, player.whoAmI); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.2f, speedY * 1.2f, ModContent.ProjectileType(), damage, knockBack * 2f, player.whoAmI); } speedX += Main.rand.Next(-40, 41) * 0.05f; speedY += Main.rand.Next(-40, 41) * 0.05f; diff --git a/Items/PermanentBoosters/BloodOrange.cs b/Items/PermanentBoosters/BloodOrange.cs index 79dfab5ada..643e1a858d 100644 --- a/Items/PermanentBoosters/BloodOrange.cs +++ b/Items/PermanentBoosters/BloodOrange.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class BloodOrange : ModItem { diff --git a/Items/PermanentBoosters/CometShard.cs b/Items/PermanentBoosters/CometShard.cs index 07e71ae26e..618c40ddbd 100644 --- a/Items/PermanentBoosters/CometShard.cs +++ b/Items/PermanentBoosters/CometShard.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class CometShard : ModItem { diff --git a/Items/PermanentBoosters/Dragonfruit.cs b/Items/PermanentBoosters/Dragonfruit.cs index 806b43271c..dd1d3e338a 100644 --- a/Items/PermanentBoosters/Dragonfruit.cs +++ b/Items/PermanentBoosters/Dragonfruit.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class Dragonfruit : ModItem { diff --git a/Items/PermanentBoosters/Ectoheart.cs b/Items/PermanentBoosters/Ectoheart.cs index b09f95bfd6..158eb94f12 100644 --- a/Items/PermanentBoosters/Ectoheart.cs +++ b/Items/PermanentBoosters/Ectoheart.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class Ectoheart : ModItem { diff --git a/Items/PermanentBoosters/Elderberry.cs b/Items/PermanentBoosters/Elderberry.cs index 175c402538..659ec07ca8 100644 --- a/Items/PermanentBoosters/Elderberry.cs +++ b/Items/PermanentBoosters/Elderberry.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class Elderberry : ModItem { diff --git a/Items/PermanentBoosters/ElectrolyteGelPack.cs b/Items/PermanentBoosters/ElectrolyteGelPack.cs index dd0ca7caa1..f44affccca 100644 --- a/Items/PermanentBoosters/ElectrolyteGelPack.cs +++ b/Items/PermanentBoosters/ElectrolyteGelPack.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class ElectrolyteGelPack : ModItem { diff --git a/Items/PermanentBoosters/EtherealCore.cs b/Items/PermanentBoosters/EtherealCore.cs index 72d77e8a11..f5b90e9132 100644 --- a/Items/PermanentBoosters/EtherealCore.cs +++ b/Items/PermanentBoosters/EtherealCore.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class EtherealCore : ModItem { diff --git a/Items/PermanentBoosters/InfernalBlood.cs b/Items/PermanentBoosters/InfernalBlood.cs index 8b9e98d074..09273fc784 100644 --- a/Items/PermanentBoosters/InfernalBlood.cs +++ b/Items/PermanentBoosters/InfernalBlood.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class InfernalBlood : ModItem { diff --git a/Items/PermanentBoosters/MLGRune2.cs b/Items/PermanentBoosters/MLGRune2.cs index 3a6e1c39e7..174d77e9fc 100644 --- a/Items/PermanentBoosters/MLGRune2.cs +++ b/Items/PermanentBoosters/MLGRune2.cs @@ -2,9 +2,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class MLGRune2 : ModItem { diff --git a/Items/PermanentBoosters/MiracleFruit.cs b/Items/PermanentBoosters/MiracleFruit.cs index f2063d72fe..e84d766957 100644 --- a/Items/PermanentBoosters/MiracleFruit.cs +++ b/Items/PermanentBoosters/MiracleFruit.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class MiracleFruit : ModItem { diff --git a/Items/PermanentBoosters/MushroomPlasmaRoot.cs b/Items/PermanentBoosters/MushroomPlasmaRoot.cs index 9779a9a3f7..01b798586d 100644 --- a/Items/PermanentBoosters/MushroomPlasmaRoot.cs +++ b/Items/PermanentBoosters/MushroomPlasmaRoot.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class MushroomPlasmaRoot : ModItem { diff --git a/Items/PermanentBoosters/PhantomHeart.cs b/Items/PermanentBoosters/PhantomHeart.cs index ccef446bac..b1842cb44b 100644 --- a/Items/PermanentBoosters/PhantomHeart.cs +++ b/Items/PermanentBoosters/PhantomHeart.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class PhantomHeart : ModItem { diff --git a/Items/PermanentBoosters/RedLightningContainer.cs b/Items/PermanentBoosters/RedLightningContainer.cs index 2563d35e6f..352d15a0ad 100644 --- a/Items/PermanentBoosters/RedLightningContainer.cs +++ b/Items/PermanentBoosters/RedLightningContainer.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class RedLightningContainer : ModItem { diff --git a/Items/PermanentBoosters/StarlightFuelCell.cs b/Items/PermanentBoosters/StarlightFuelCell.cs index db4149db7c..41a81bdb98 100644 --- a/Items/PermanentBoosters/StarlightFuelCell.cs +++ b/Items/PermanentBoosters/StarlightFuelCell.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PermanentBoosters +namespace CalamityMod.Items { public class StarlightFuelCell : ModItem { diff --git a/Items/Pets/BearEye.cs b/Items/Pets/BearEye.cs index 33765597f7..7f1963d0bf 100644 --- a/Items/Pets/BearEye.cs +++ b/Items/Pets/BearEye.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class BearEye : ModItem { @@ -21,8 +21,8 @@ namespace CalamityMod.Items.Pets item.width = 30; item.height = 30; item.value = Item.sellPrice(1, 0, 0, 0); - item.shoot = mod.ProjectileType("Bear"); - item.buffType = mod.BuffType("BearBuff"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 5; item.UseSound = new Terraria.Audio.LegacySoundStyle(SoundID.Meowmere, 5); } diff --git a/Items/Pets/CharredRelic.cs b/Items/Pets/CharredRelic.cs index 573842520f..794e8bcd40 100644 --- a/Items/Pets/CharredRelic.cs +++ b/Items/Pets/CharredRelic.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class CharredRelic : ModItem { @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { - item.shoot = mod.ProjectileType("Brimgling"); - item.buffType = mod.BuffType("BrimlingBuff"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 4; item.UseSound = SoundID.NPCHit51; } diff --git a/Items/Pets/CosmicPlushie.cs b/Items/Pets/CosmicPlushie.cs index 1efe6e2a1e..083453812e 100644 --- a/Items/Pets/CosmicPlushie.cs +++ b/Items/Pets/CosmicPlushie.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class CosmicPlushie : ModItem { @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Pets item.width = 28; item.height = 36; item.value = Item.sellPrice(0, 7, 0, 0); - item.shoot = mod.ProjectileType("ChibiiDoggo"); - item.buffType = mod.BuffType("ChibiiBuff"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 10; item.UseSound = new Terraria.Audio.LegacySoundStyle(SoundID.Meowmere, 5); item.Calamity().postMoonLordRarity = 14; diff --git a/Items/Pets/FoxDrive.cs b/Items/Pets/FoxDrive.cs index aa326eb2b7..3fd7c5ea96 100644 --- a/Items/Pets/FoxDrive.cs +++ b/Items/Pets/FoxDrive.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class FoxDrive : ModItem { @@ -15,8 +15,8 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.CloneDefaults(ItemID.ZephyrFish); - item.shoot = mod.ProjectileType("Fox"); - item.buffType = mod.BuffType("Fox"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 9; item.expert = true; } diff --git a/Items/Pets/IbarakiBox.cs b/Items/Pets/IbarakiBox.cs index 32325fec86..ff2f7f4ed0 100644 --- a/Items/Pets/IbarakiBox.cs +++ b/Items/Pets/IbarakiBox.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class IbarakiBox : ModItem { @@ -27,8 +27,8 @@ namespace CalamityMod.Items.Pets item.height = 30; item.UseSound = SoundID.Item3; item.value = Item.buyPrice(0, 5, 0, 0); - item.shoot = mod.ProjectileType("ThirdSage"); - item.buffType = mod.BuffType("ThirdSageBuff"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 5; } diff --git a/Items/Pets/Levi.cs b/Items/Pets/Levi.cs index 7f4562cbfc..4aa2105022 100644 --- a/Items/Pets/Levi.cs +++ b/Items/Pets/Levi.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class Levi : ModItem { @@ -15,8 +15,8 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.CloneDefaults(ItemID.ZephyrFish); - item.shoot = mod.ProjectileType("Levi"); - item.buffType = mod.BuffType("Levi"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 10; } diff --git a/Items/Pets/RomajedaOrchid.cs b/Items/Pets/RomajedaOrchid.cs index b74535827a..6732d5cf0e 100644 --- a/Items/Pets/RomajedaOrchid.cs +++ b/Items/Pets/RomajedaOrchid.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class RomajedaOrchid : ModItem { @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Pets item.width = 30; item.height = 30; item.value = Item.sellPrice(1, 0, 0, 0); - item.shoot = mod.ProjectileType("Kendra"); - item.buffType = mod.BuffType("Kendra"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 5; item.UseSound = SoundID.Item44; } diff --git a/Items/Pets/TrashmanTrashcan.cs b/Items/Pets/TrashmanTrashcan.cs index 9560bca032..3c61a94dbd 100644 --- a/Items/Pets/TrashmanTrashcan.cs +++ b/Items/Pets/TrashmanTrashcan.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Pets +namespace CalamityMod.Items { public class TrashmanTrashcan : ModItem { @@ -21,8 +21,8 @@ namespace CalamityMod.Items.Pets item.width = 30; item.height = 30; item.value = Item.sellPrice(0, 1, 0, 0); - item.shoot = mod.ProjectileType("DannyDevito"); - item.buffType = mod.BuffType("DannyDevito"); + item.shoot = ModContent.ProjectileType(); + item.buffType = ModContent.BuffType(); item.rare = 5; item.UseSound = SoundID.NPCDeath13; } diff --git a/Items/Placeables/AbyssGravel.cs b/Items/Placeables/AbyssGravel.cs index 4c7b303a8d..618e2e2042 100644 --- a/Items/Placeables/AbyssGravel.cs +++ b/Items/Placeables/AbyssGravel.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AbyssGravel : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AbyssGravel"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/AerialiteBrick.cs b/Items/Placeables/AerialiteBrick.cs index abdd37f2f2..d4ca91d381 100644 --- a/Items/Placeables/AerialiteBrick.cs +++ b/Items/Placeables/AerialiteBrick.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AerialiteBrick : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("AerialiteBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/AerialiteBrickWall.cs b/Items/Placeables/AerialiteBrickWall.cs index 86e6705852..cea83f362b 100644 --- a/Items/Placeables/AerialiteBrickWall.cs +++ b/Items/Placeables/AerialiteBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AerialiteBrickWall : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("AerialiteBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("AerialiteBrick")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddTile(18); recipe.AddRecipe(); diff --git a/Items/Placeables/AerialiteOre.cs b/Items/Placeables/AerialiteOre.cs index 45623fc739..246d127306 100644 --- a/Items/Placeables/AerialiteOre.cs +++ b/Items/Placeables/AerialiteOre.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AerialiteOre : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AerialiteOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/AstrageldonTrophy.cs b/Items/Placeables/AstrageldonTrophy.cs index 7015e9c0b1..5d13948f67 100644 --- a/Items/Placeables/AstrageldonTrophy.cs +++ b/Items/Placeables/AstrageldonTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstrageldonTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 19; } } diff --git a/Items/Placeables/AstralBar.cs b/Items/Placeables/AstralBar.cs index 238e421d76..ea7b5fc867 100644 --- a/Items/Placeables/AstralBar.cs +++ b/Items/Placeables/AstralBar.cs @@ -1,9 +1,9 @@  using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralBar : ModItem { @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AstralBar"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "Stardust", 3); - recipe.AddIngredient(mod.ItemType("AstralOre"), 2); + recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Placeables/AstralBrick.cs b/Items/Placeables/AstralBrick.cs index 05a1a42b0e..e331e84cf2 100644 --- a/Items/Placeables/AstralBrick.cs +++ b/Items/Placeables/AstralBrick.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralBrick : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("AstralBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/AstralBrickWall.cs b/Items/Placeables/AstralBrickWall.cs index 5607d92739..5bcfde0957 100644 --- a/Items/Placeables/AstralBrickWall.cs +++ b/Items/Placeables/AstralBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralBrickWall : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("AstralBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("AstralBrick")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddTile(18); recipe.AddRecipe(); diff --git a/Items/Placeables/AstralChest.cs b/Items/Placeables/AstralChest.cs index b35e4993d9..49e8879fd4 100644 --- a/Items/Placeables/AstralChest.cs +++ b/Items/Placeables/AstralChest.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables item.useStyle = 1; item.consumable = true; item.value = 500; - item.createTile = mod.TileType("AstralChestLocked"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/Placeables/AstralDirt.cs b/Items/Placeables/AstralDirt.cs index c1238919dc..ce9d5a8152 100644 --- a/Items/Placeables/AstralDirt.cs +++ b/Items/Placeables/AstralDirt.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralDirt : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AstralDirt"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralDirtWall"), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstralDirtWall.cs b/Items/Placeables/AstralDirtWall.cs index b8d9ccc500..6099a6cbeb 100644 --- a/Items/Placeables/AstralDirtWall.cs +++ b/Items/Placeables/AstralDirtWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralDirtWall : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createWall = mod.WallType("AstralDirtWall"); + item.createWall = ModContent.WallType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralDirt")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstralGrassWall.cs b/Items/Placeables/AstralGrassWall.cs index 7bfb431cdb..f744c846d0 100644 --- a/Items/Placeables/AstralGrassWall.cs +++ b/Items/Placeables/AstralGrassWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralGrassWall : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createWall = mod.WallType("AstralGrassWall"); + item.createWall = ModContent.WallType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/AstralIce.cs b/Items/Placeables/AstralIce.cs index 69da07197b..fd599e0b65 100644 --- a/Items/Placeables/AstralIce.cs +++ b/Items/Placeables/AstralIce.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralIce : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AstralIce"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralIceWall"), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstralIceWall.cs b/Items/Placeables/AstralIceWall.cs index edc29255ef..e7055e8b48 100644 --- a/Items/Placeables/AstralIceWall.cs +++ b/Items/Placeables/AstralIceWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralIceWall : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createWall = mod.WallType("AstralIceWall"); + item.createWall = ModContent.WallType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralIce")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstralMonolith.cs b/Items/Placeables/AstralMonolith.cs index 9ce2fa1192..2b7f43a109 100644 --- a/Items/Placeables/AstralMonolith.cs +++ b/Items/Placeables/AstralMonolith.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralMonolith : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("AstralMonolith"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/AstralMonolithWall.cs b/Items/Placeables/AstralMonolithWall.cs index f3964477ce..b08b83d961 100644 --- a/Items/Placeables/AstralMonolithWall.cs +++ b/Items/Placeables/AstralMonolithWall.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralMonolithWall : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("AstralMonolithWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/AstralOre.cs b/Items/Placeables/AstralOre.cs index 04dffac6d2..de1e13f0df 100644 --- a/Items/Placeables/AstralOre.cs +++ b/Items/Placeables/AstralOre.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralOre : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AstralOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/AstralSand.cs b/Items/Placeables/AstralSand.cs index af2af86287..fef7a44c4e 100644 --- a/Items/Placeables/AstralSand.cs +++ b/Items/Placeables/AstralSand.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralSand : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AstralSand"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/AstralSandstone.cs b/Items/Placeables/AstralSandstone.cs index 9ee28a6698..ea21bb8ddc 100644 --- a/Items/Placeables/AstralSandstone.cs +++ b/Items/Placeables/AstralSandstone.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralSandstone : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AstralSandstone"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralSandstoneWall"), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstralSandstoneWall.cs b/Items/Placeables/AstralSandstoneWall.cs index 60c9744a8c..492e8d7972 100644 --- a/Items/Placeables/AstralSandstoneWall.cs +++ b/Items/Placeables/AstralSandstoneWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralSandstoneWall : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createWall = mod.WallType("AstralSandstoneWall"); + item.createWall = ModContent.WallType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralSandstone")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstralStone.cs b/Items/Placeables/AstralStone.cs index 2e39f8ff6f..c4968e5722 100644 --- a/Items/Placeables/AstralStone.cs +++ b/Items/Placeables/AstralStone.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralStone : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AstralStone"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralStoneWall"), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstralStoneWall.cs b/Items/Placeables/AstralStoneWall.cs index 7bff3d03c3..90e33dddb1 100644 --- a/Items/Placeables/AstralStoneWall.cs +++ b/Items/Placeables/AstralStoneWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstralStoneWall : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createWall = mod.WallType("AstralStoneWall"); + item.createWall = ModContent.WallType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("AstralStone")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/AstrumDeusTrophy.cs b/Items/Placeables/AstrumDeusTrophy.cs index 1350af098a..dd3f31a899 100644 --- a/Items/Placeables/AstrumDeusTrophy.cs +++ b/Items/Placeables/AstrumDeusTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AstrumDeusTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 20; } } diff --git a/Items/Placeables/AuricOre.cs b/Items/Placeables/AuricOre.cs index ec01f181f9..243bb32aaf 100644 --- a/Items/Placeables/AuricOre.cs +++ b/Items/Placeables/AuricOre.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class AuricOre : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("AuricOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/Banners/AeroSlimeBanner.cs b/Items/Placeables/Banners/AeroSlimeBanner.cs index fcd5138a78..48f5e01b77 100644 --- a/Items/Placeables/Banners/AeroSlimeBanner.cs +++ b/Items/Placeables/Banners/AeroSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AeroSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 90; } } diff --git a/Items/Placeables/Banners/AmberCrawlerBanner.cs b/Items/Placeables/Banners/AmberCrawlerBanner.cs index f480d9a34f..08c5c238e5 100644 --- a/Items/Placeables/Banners/AmberCrawlerBanner.cs +++ b/Items/Placeables/Banners/AmberCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AmberCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 72; } } diff --git a/Items/Placeables/Banners/AmethystCrawlerBanner.cs b/Items/Placeables/Banners/AmethystCrawlerBanner.cs index 3e34603c24..b87c85df9a 100644 --- a/Items/Placeables/Banners/AmethystCrawlerBanner.cs +++ b/Items/Placeables/Banners/AmethystCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AmethystCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 66; } } diff --git a/Items/Placeables/Banners/AngryDogBanner.cs b/Items/Placeables/Banners/AngryDogBanner.cs index b274256c85..ddbcc1e91c 100644 --- a/Items/Placeables/Banners/AngryDogBanner.cs +++ b/Items/Placeables/Banners/AngryDogBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AngryDogBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 59; } } diff --git a/Items/Placeables/Banners/AquaticAberrationBanner.cs b/Items/Placeables/Banners/AquaticAberrationBanner.cs index 07e916374a..b6cd5b084e 100644 --- a/Items/Placeables/Banners/AquaticAberrationBanner.cs +++ b/Items/Placeables/Banners/AquaticAberrationBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AquaticAberrationBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 10; } } diff --git a/Items/Placeables/Banners/AquaticParasiteBanner.cs b/Items/Placeables/Banners/AquaticParasiteBanner.cs index bc2c54ac34..695877d164 100644 --- a/Items/Placeables/Banners/AquaticParasiteBanner.cs +++ b/Items/Placeables/Banners/AquaticParasiteBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AquaticParasiteBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 0; } } diff --git a/Items/Placeables/Banners/AquaticSeekerBanner.cs b/Items/Placeables/Banners/AquaticSeekerBanner.cs index 3f0f21ee11..f564179a1e 100644 --- a/Items/Placeables/Banners/AquaticSeekerBanner.cs +++ b/Items/Placeables/Banners/AquaticSeekerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AquaticSeekerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 6; } } diff --git a/Items/Placeables/Banners/AquaticUrchinBanner.cs b/Items/Placeables/Banners/AquaticUrchinBanner.cs index 418ab1d281..ef7806103d 100644 --- a/Items/Placeables/Banners/AquaticUrchinBanner.cs +++ b/Items/Placeables/Banners/AquaticUrchinBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AquaticUrchinBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 7; } } diff --git a/Items/Placeables/Banners/AriesBanner.cs b/Items/Placeables/Banners/AriesBanner.cs index 7ba199a968..1b9c6b4763 100644 --- a/Items/Placeables/Banners/AriesBanner.cs +++ b/Items/Placeables/Banners/AriesBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AriesBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 34; } } diff --git a/Items/Placeables/Banners/ArmoredDiggerBanner.cs b/Items/Placeables/Banners/ArmoredDiggerBanner.cs index 8814619b24..10823396e3 100644 --- a/Items/Placeables/Banners/ArmoredDiggerBanner.cs +++ b/Items/Placeables/Banners/ArmoredDiggerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ArmoredDiggerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 77; } } diff --git a/Items/Placeables/Banners/AstralProbeBanner.cs b/Items/Placeables/Banners/AstralProbeBanner.cs index 2c08dc7c1a..f88d9b4125 100644 --- a/Items/Placeables/Banners/AstralProbeBanner.cs +++ b/Items/Placeables/Banners/AstralProbeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AstralProbeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 31; } } diff --git a/Items/Placeables/Banners/AstralSlimeBanner.cs b/Items/Placeables/Banners/AstralSlimeBanner.cs index 83ba3bcf57..1cc76ccd26 100644 --- a/Items/Placeables/Banners/AstralSlimeBanner.cs +++ b/Items/Placeables/Banners/AstralSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AstralSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 35; } } diff --git a/Items/Placeables/Banners/AstralachneaBanner.cs b/Items/Placeables/Banners/AstralachneaBanner.cs index 1ac1f28343..905ca761f7 100644 --- a/Items/Placeables/Banners/AstralachneaBanner.cs +++ b/Items/Placeables/Banners/AstralachneaBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AstralachneaBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 39; } } diff --git a/Items/Placeables/Banners/AtlasBanner.cs b/Items/Placeables/Banners/AtlasBanner.cs index 474ef69221..0fe8c3eadf 100644 --- a/Items/Placeables/Banners/AtlasBanner.cs +++ b/Items/Placeables/Banners/AtlasBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class AtlasBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 36; } } diff --git a/Items/Placeables/Banners/BOHLDOHRBanner.cs b/Items/Placeables/Banners/BOHLDOHRBanner.cs index 18b242ec80..2fac860461 100644 --- a/Items/Placeables/Banners/BOHLDOHRBanner.cs +++ b/Items/Placeables/Banners/BOHLDOHRBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BOHLDOHRBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 87; } } diff --git a/Items/Placeables/Banners/BigSightseerBanner.cs b/Items/Placeables/Banners/BigSightseerBanner.cs index 6772d5db30..2df8782210 100644 --- a/Items/Placeables/Banners/BigSightseerBanner.cs +++ b/Items/Placeables/Banners/BigSightseerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BigSightseerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 33; } } diff --git a/Items/Placeables/Banners/BlightedEyeBanner.cs b/Items/Placeables/Banners/BlightedEyeBanner.cs index b1a49d5599..6bd1f755b2 100644 --- a/Items/Placeables/Banners/BlightedEyeBanner.cs +++ b/Items/Placeables/Banners/BlightedEyeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BlightedEyeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 54; } } diff --git a/Items/Placeables/Banners/BlindedAnglerBanner.cs b/Items/Placeables/Banners/BlindedAnglerBanner.cs index 8f3ad2509c..6884cc8523 100644 --- a/Items/Placeables/Banners/BlindedAnglerBanner.cs +++ b/Items/Placeables/Banners/BlindedAnglerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BlindedAnglerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 104; } } diff --git a/Items/Placeables/Banners/BloatfishBanner.cs b/Items/Placeables/Banners/BloatfishBanner.cs index 8d279b1dde..03aef4251a 100644 --- a/Items/Placeables/Banners/BloatfishBanner.cs +++ b/Items/Placeables/Banners/BloatfishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BloatfishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 28; } } diff --git a/Items/Placeables/Banners/BloomSlimeBanner.cs b/Items/Placeables/Banners/BloomSlimeBanner.cs index 07862dcbfa..3dfbb721d2 100644 --- a/Items/Placeables/Banners/BloomSlimeBanner.cs +++ b/Items/Placeables/Banners/BloomSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BloomSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 94; } } diff --git a/Items/Placeables/Banners/BobbitWormBanner.cs b/Items/Placeables/Banners/BobbitWormBanner.cs index 1c6ac28144..ea836fd56e 100644 --- a/Items/Placeables/Banners/BobbitWormBanner.cs +++ b/Items/Placeables/Banners/BobbitWormBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BobbitWormBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 29; } } diff --git a/Items/Placeables/Banners/BoxJellyfishBanner.cs b/Items/Placeables/Banners/BoxJellyfishBanner.cs index d8b9de83fc..f108aa0a20 100644 --- a/Items/Placeables/Banners/BoxJellyfishBanner.cs +++ b/Items/Placeables/Banners/BoxJellyfishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class BoxJellyfishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 13; } } diff --git a/Items/Placeables/Banners/CalamityEyeBanner.cs b/Items/Placeables/Banners/CalamityEyeBanner.cs index ed64e612f1..d282df4bc7 100644 --- a/Items/Placeables/Banners/CalamityEyeBanner.cs +++ b/Items/Placeables/Banners/CalamityEyeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CalamityEyeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 55; } } diff --git a/Items/Placeables/Banners/CatfishBanner.cs b/Items/Placeables/Banners/CatfishBanner.cs index aa8bfef0e2..fb62f8f111 100644 --- a/Items/Placeables/Banners/CatfishBanner.cs +++ b/Items/Placeables/Banners/CatfishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CatfishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 4; } } diff --git a/Items/Placeables/Banners/ChaoticPufferBanner.cs b/Items/Placeables/Banners/ChaoticPufferBanner.cs index c37d73c200..e46786220a 100644 --- a/Items/Placeables/Banners/ChaoticPufferBanner.cs +++ b/Items/Placeables/Banners/ChaoticPufferBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ChaoticPufferBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 30; } } diff --git a/Items/Placeables/Banners/CharredSlimeBanner.cs b/Items/Placeables/Banners/CharredSlimeBanner.cs index 710ac986cd..c3ad631ee9 100644 --- a/Items/Placeables/Banners/CharredSlimeBanner.cs +++ b/Items/Placeables/Banners/CharredSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CharredSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 93; } } diff --git a/Items/Placeables/Banners/ClamBanner.cs b/Items/Placeables/Banners/ClamBanner.cs index 6157938db1..f0af5e2ae0 100644 --- a/Items/Placeables/Banners/ClamBanner.cs +++ b/Items/Placeables/Banners/ClamBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ClamBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 99; } } diff --git a/Items/Placeables/Banners/CloudElementalBanner.cs b/Items/Placeables/Banners/CloudElementalBanner.cs index 630e56be04..c0b8577f00 100644 --- a/Items/Placeables/Banners/CloudElementalBanner.cs +++ b/Items/Placeables/Banners/CloudElementalBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CloudElementalBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 58; } } diff --git a/Items/Placeables/Banners/CnidrionBanner.cs b/Items/Placeables/Banners/CnidrionBanner.cs index 521116317d..689cc7020e 100644 --- a/Items/Placeables/Banners/CnidrionBanner.cs +++ b/Items/Placeables/Banners/CnidrionBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CnidrionBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 63; } } diff --git a/Items/Placeables/Banners/ColossalSquidBanner.cs b/Items/Placeables/Banners/ColossalSquidBanner.cs index 697c87395a..d340205334 100644 --- a/Items/Placeables/Banners/ColossalSquidBanner.cs +++ b/Items/Placeables/Banners/ColossalSquidBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ColossalSquidBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 23; } } diff --git a/Items/Placeables/Banners/CosmicElementalBanner.cs b/Items/Placeables/Banners/CosmicElementalBanner.cs index 007181251a..a1fdebf801 100644 --- a/Items/Placeables/Banners/CosmicElementalBanner.cs +++ b/Items/Placeables/Banners/CosmicElementalBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CosmicElementalBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 75; } } diff --git a/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs b/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs index 6c7c8fa1ec..951f36d9e2 100644 --- a/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs +++ b/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CrimulanBlightSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 89; } } diff --git a/Items/Placeables/Banners/CryoSlimeBanner.cs b/Items/Placeables/Banners/CryoSlimeBanner.cs index 7be46a3336..434f87d784 100644 --- a/Items/Placeables/Banners/CryoSlimeBanner.cs +++ b/Items/Placeables/Banners/CryoSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CryoSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 91; } } diff --git a/Items/Placeables/Banners/CryonBanner.cs b/Items/Placeables/Banners/CryonBanner.cs index b1cc439525..488fa37a3e 100644 --- a/Items/Placeables/Banners/CryonBanner.cs +++ b/Items/Placeables/Banners/CryonBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CryonBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 60; } } diff --git a/Items/Placeables/Banners/CrystalCrawlerBanner.cs b/Items/Placeables/Banners/CrystalCrawlerBanner.cs index a860768392..97b941b07e 100644 --- a/Items/Placeables/Banners/CrystalCrawlerBanner.cs +++ b/Items/Placeables/Banners/CrystalCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CrystalCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 73; } } diff --git a/Items/Placeables/Banners/CultistAssassinBanner.cs b/Items/Placeables/Banners/CultistAssassinBanner.cs index cc06208a9f..9a6904b70d 100644 --- a/Items/Placeables/Banners/CultistAssassinBanner.cs +++ b/Items/Placeables/Banners/CultistAssassinBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CultistAssassinBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 95; } } diff --git a/Items/Placeables/Banners/CuttlefishBanner.cs b/Items/Placeables/Banners/CuttlefishBanner.cs index a093e6881e..eeeff5c628 100644 --- a/Items/Placeables/Banners/CuttlefishBanner.cs +++ b/Items/Placeables/Banners/CuttlefishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class CuttlefishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 16; } } diff --git a/Items/Placeables/Banners/DespairStoneBanner.cs b/Items/Placeables/Banners/DespairStoneBanner.cs index 7c0cfaa1e1..e66d319beb 100644 --- a/Items/Placeables/Banners/DespairStoneBanner.cs +++ b/Items/Placeables/Banners/DespairStoneBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class DespairStoneBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 46; } } diff --git a/Items/Placeables/Banners/DevilFishBanner.cs b/Items/Placeables/Banners/DevilFishBanner.cs index 7fcb71627d..c933729169 100644 --- a/Items/Placeables/Banners/DevilFishBanner.cs +++ b/Items/Placeables/Banners/DevilFishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class DevilFishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 15; } } diff --git a/Items/Placeables/Banners/DiamondCrawlerBanner.cs b/Items/Placeables/Banners/DiamondCrawlerBanner.cs index e4950c1f78..ae245a6f4d 100644 --- a/Items/Placeables/Banners/DiamondCrawlerBanner.cs +++ b/Items/Placeables/Banners/DiamondCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class DiamondCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 71; } } diff --git a/Items/Placeables/Banners/EarthElementalBanner.cs b/Items/Placeables/Banners/EarthElementalBanner.cs index b73f48d787..70348294b8 100644 --- a/Items/Placeables/Banners/EarthElementalBanner.cs +++ b/Items/Placeables/Banners/EarthElementalBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class EarthElementalBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 76; } } diff --git a/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs b/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs index 7cc931c7be..5d743732f7 100644 --- a/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs +++ b/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class EbonianBlightSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 88; } } diff --git a/Items/Placeables/Banners/EidolistBanner.cs b/Items/Placeables/Banners/EidolistBanner.cs index 832a960638..e5269c3028 100644 --- a/Items/Placeables/Banners/EidolistBanner.cs +++ b/Items/Placeables/Banners/EidolistBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class EidolistBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 25; } } diff --git a/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs b/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs index f191383942..1de8486dad 100644 --- a/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs +++ b/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class EidolonWyrmJuvenileBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 27; } } diff --git a/Items/Placeables/Banners/EmeraldCrawlerBanner.cs b/Items/Placeables/Banners/EmeraldCrawlerBanner.cs index aa25ac50fa..8a8a24268e 100644 --- a/Items/Placeables/Banners/EmeraldCrawlerBanner.cs +++ b/Items/Placeables/Banners/EmeraldCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class EmeraldCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 69; } } diff --git a/Items/Placeables/Banners/EutrophicRayBanner.cs b/Items/Placeables/Banners/EutrophicRayBanner.cs index ca9c1c8256..af6f4445fb 100644 --- a/Items/Placeables/Banners/EutrophicRayBanner.cs +++ b/Items/Placeables/Banners/EutrophicRayBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class EutrophicRayBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 100; } } diff --git a/Items/Placeables/Banners/FlounderBanner.cs b/Items/Placeables/Banners/FlounderBanner.cs index 95f6070962..16d39bab9b 100644 --- a/Items/Placeables/Banners/FlounderBanner.cs +++ b/Items/Placeables/Banners/FlounderBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class FlounderBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 1; } } diff --git a/Items/Placeables/Banners/FrogfishBanner.cs b/Items/Placeables/Banners/FrogfishBanner.cs index 3ff7c470af..f2a585ebd1 100644 --- a/Items/Placeables/Banners/FrogfishBanner.cs +++ b/Items/Placeables/Banners/FrogfishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class FrogfishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 8; } } diff --git a/Items/Placeables/Banners/FusionFeederBanner.cs b/Items/Placeables/Banners/FusionFeederBanner.cs index e400761378..075e93fc06 100644 --- a/Items/Placeables/Banners/FusionFeederBanner.cs +++ b/Items/Placeables/Banners/FusionFeederBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class FusionFeederBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 42; } } diff --git a/Items/Placeables/Banners/GhostBellBanner.cs b/Items/Placeables/Banners/GhostBellBanner.cs index 4576c29971..3c05fd0621 100644 --- a/Items/Placeables/Banners/GhostBellBanner.cs +++ b/Items/Placeables/Banners/GhostBellBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class GhostBellBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 101; } } diff --git a/Items/Placeables/Banners/GhostBellSmallBanner.cs b/Items/Placeables/Banners/GhostBellSmallBanner.cs index 0dd4c6fbd7..4c9b12b0d6 100644 --- a/Items/Placeables/Banners/GhostBellSmallBanner.cs +++ b/Items/Placeables/Banners/GhostBellSmallBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class GhostBellSmallBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 102; } } diff --git a/Items/Placeables/Banners/GiantClamBanner.cs b/Items/Placeables/Banners/GiantClamBanner.cs index 72056aecb4..aa2290132a 100644 --- a/Items/Placeables/Banners/GiantClamBanner.cs +++ b/Items/Placeables/Banners/GiantClamBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class GiantClamBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 107; } } diff --git a/Items/Placeables/Banners/GiantSquidBanner.cs b/Items/Placeables/Banners/GiantSquidBanner.cs index 4aea6eff2c..dd53884405 100644 --- a/Items/Placeables/Banners/GiantSquidBanner.cs +++ b/Items/Placeables/Banners/GiantSquidBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class GiantSquidBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 20; } } diff --git a/Items/Placeables/Banners/GnasherBanner.cs b/Items/Placeables/Banners/GnasherBanner.cs index 1d3793987d..4739c1f95b 100644 --- a/Items/Placeables/Banners/GnasherBanner.cs +++ b/Items/Placeables/Banners/GnasherBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class GnasherBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 2; } } diff --git a/Items/Placeables/Banners/GreatSandSharkBanner.cs b/Items/Placeables/Banners/GreatSandSharkBanner.cs index 21393a045a..c7dc385108 100644 --- a/Items/Placeables/Banners/GreatSandSharkBanner.cs +++ b/Items/Placeables/Banners/GreatSandSharkBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class GreatSandSharkBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 65; } } diff --git a/Items/Placeables/Banners/GulperEelBanner.cs b/Items/Placeables/Banners/GulperEelBanner.cs index bd94d36436..508806e44a 100644 --- a/Items/Placeables/Banners/GulperEelBanner.cs +++ b/Items/Placeables/Banners/GulperEelBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class GulperEelBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 26; } } diff --git a/Items/Placeables/Banners/HadarianBanner.cs b/Items/Placeables/Banners/HadarianBanner.cs index ce02c15cb9..f15e19199d 100644 --- a/Items/Placeables/Banners/HadarianBanner.cs +++ b/Items/Placeables/Banners/HadarianBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class HadarianBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 43; } } diff --git a/Items/Placeables/Banners/HeatSpiritBanner.cs b/Items/Placeables/Banners/HeatSpiritBanner.cs index a564c7d0df..7167576b2e 100644 --- a/Items/Placeables/Banners/HeatSpiritBanner.cs +++ b/Items/Placeables/Banners/HeatSpiritBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class HeatSpiritBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 44; } } diff --git a/Items/Placeables/Banners/HiveBanner.cs b/Items/Placeables/Banners/HiveBanner.cs index 74e4871556..9221e88e08 100644 --- a/Items/Placeables/Banners/HiveBanner.cs +++ b/Items/Placeables/Banners/HiveBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class HiveBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 40; } } diff --git a/Items/Placeables/Banners/IceClasperBanner.cs b/Items/Placeables/Banners/IceClasperBanner.cs index 30deeab751..39867f42fa 100644 --- a/Items/Placeables/Banners/IceClasperBanner.cs +++ b/Items/Placeables/Banners/IceClasperBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class IceClasperBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 61; } } diff --git a/Items/Placeables/Banners/ImpiousImmolatorBanner.cs b/Items/Placeables/Banners/ImpiousImmolatorBanner.cs index 5a1257dfc4..36f8142f82 100644 --- a/Items/Placeables/Banners/ImpiousImmolatorBanner.cs +++ b/Items/Placeables/Banners/ImpiousImmolatorBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ImpiousImmolatorBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 48; } } diff --git a/Items/Placeables/Banners/IrradiatedSlimeBanner.cs b/Items/Placeables/Banners/IrradiatedSlimeBanner.cs index 742e7f907a..931ea592b5 100644 --- a/Items/Placeables/Banners/IrradiatedSlimeBanner.cs +++ b/Items/Placeables/Banners/IrradiatedSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class IrradiatedSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 97; } } diff --git a/Items/Placeables/Banners/LaserfishBanner.cs b/Items/Placeables/Banners/LaserfishBanner.cs index af2cb34ef4..18f69842be 100644 --- a/Items/Placeables/Banners/LaserfishBanner.cs +++ b/Items/Placeables/Banners/LaserfishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class LaserfishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 21; } } diff --git a/Items/Placeables/Banners/LuminousCorvinaBanner.cs b/Items/Placeables/Banners/LuminousCorvinaBanner.cs index e48d4b7efa..a32ae4be0a 100644 --- a/Items/Placeables/Banners/LuminousCorvinaBanner.cs +++ b/Items/Placeables/Banners/LuminousCorvinaBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class LuminousCorvinaBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 19; } } diff --git a/Items/Placeables/Banners/MantisBanner.cs b/Items/Placeables/Banners/MantisBanner.cs index 5df060d36b..aa6778230e 100644 --- a/Items/Placeables/Banners/MantisBanner.cs +++ b/Items/Placeables/Banners/MantisBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class MantisBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 37; } } diff --git a/Items/Placeables/Banners/MantisShrimpBanner.cs b/Items/Placeables/Banners/MantisShrimpBanner.cs index 31c39137af..d0271493e6 100644 --- a/Items/Placeables/Banners/MantisShrimpBanner.cs +++ b/Items/Placeables/Banners/MantisShrimpBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class MantisShrimpBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 9; } } diff --git a/Items/Placeables/Banners/MaulerBanner.cs b/Items/Placeables/Banners/MaulerBanner.cs index 1ce65f60f1..78fa9c6754 100644 --- a/Items/Placeables/Banners/MaulerBanner.cs +++ b/Items/Placeables/Banners/MaulerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class MaulerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 5; } } diff --git a/Items/Placeables/Banners/MelterBanner.cs b/Items/Placeables/Banners/MelterBanner.cs index 6b646f1a40..8f737595cc 100644 --- a/Items/Placeables/Banners/MelterBanner.cs +++ b/Items/Placeables/Banners/MelterBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class MelterBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 78; } } diff --git a/Items/Placeables/Banners/MirageJellyBanner.cs b/Items/Placeables/Banners/MirageJellyBanner.cs index 024ac0abd2..ae3ef0b7e6 100644 --- a/Items/Placeables/Banners/MirageJellyBanner.cs +++ b/Items/Placeables/Banners/MirageJellyBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class MirageJellyBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 24; } } diff --git a/Items/Placeables/Banners/MorayEelBanner.cs b/Items/Placeables/Banners/MorayEelBanner.cs index 695760d107..b69cadbef6 100644 --- a/Items/Placeables/Banners/MorayEelBanner.cs +++ b/Items/Placeables/Banners/MorayEelBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class MorayEelBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 14; } } diff --git a/Items/Placeables/Banners/NovaBanner.cs b/Items/Placeables/Banners/NovaBanner.cs index b07bdff51e..dc618bcc9a 100644 --- a/Items/Placeables/Banners/NovaBanner.cs +++ b/Items/Placeables/Banners/NovaBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class NovaBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 38; } } diff --git a/Items/Placeables/Banners/OarfishBanner.cs b/Items/Placeables/Banners/OarfishBanner.cs index e5c1df706b..5fe5fbab33 100644 --- a/Items/Placeables/Banners/OarfishBanner.cs +++ b/Items/Placeables/Banners/OarfishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class OarfishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 22; } } diff --git a/Items/Placeables/Banners/OverloadedSoldierBanner.cs b/Items/Placeables/Banners/OverloadedSoldierBanner.cs index 8c25c17779..957a942cab 100644 --- a/Items/Placeables/Banners/OverloadedSoldierBanner.cs +++ b/Items/Placeables/Banners/OverloadedSoldierBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class OverloadedSoldierBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 85; } } diff --git a/Items/Placeables/Banners/ParaseaBanner.cs b/Items/Placeables/Banners/ParaseaBanner.cs index d8bb1536f3..366480004d 100644 --- a/Items/Placeables/Banners/ParaseaBanner.cs +++ b/Items/Placeables/Banners/ParaseaBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ParaseaBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 11; } } diff --git a/Items/Placeables/Banners/PerennialSlimeBanner.cs b/Items/Placeables/Banners/PerennialSlimeBanner.cs index edd05a00e4..033f049d20 100644 --- a/Items/Placeables/Banners/PerennialSlimeBanner.cs +++ b/Items/Placeables/Banners/PerennialSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PerennialSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 92; } } diff --git a/Items/Placeables/Banners/PestilentSlimeBanner.cs b/Items/Placeables/Banners/PestilentSlimeBanner.cs index a37a03f283..de2aa54e09 100644 --- a/Items/Placeables/Banners/PestilentSlimeBanner.cs +++ b/Items/Placeables/Banners/PestilentSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PestilentSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 79; } } diff --git a/Items/Placeables/Banners/PhantomDebrisBanner.cs b/Items/Placeables/Banners/PhantomDebrisBanner.cs index 59de71dd58..ec987668ff 100644 --- a/Items/Placeables/Banners/PhantomDebrisBanner.cs +++ b/Items/Placeables/Banners/PhantomDebrisBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PhantomDebrisBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 86; } } diff --git a/Items/Placeables/Banners/PhantomSpiritBanner.cs b/Items/Placeables/Banners/PhantomSpiritBanner.cs index 8c4eb5abaf..bb59bd5bd7 100644 --- a/Items/Placeables/Banners/PhantomSpiritBanner.cs +++ b/Items/Placeables/Banners/PhantomSpiritBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PhantomSpiritBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 84; } } diff --git a/Items/Placeables/Banners/PiggyBanner.cs b/Items/Placeables/Banners/PiggyBanner.cs index 316c34aa2a..cd5801dba8 100644 --- a/Items/Placeables/Banners/PiggyBanner.cs +++ b/Items/Placeables/Banners/PiggyBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PiggyBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 108; } } diff --git a/Items/Placeables/Banners/PitbullBanner.cs b/Items/Placeables/Banners/PitbullBanner.cs index 50e1497ada..473c7d644b 100644 --- a/Items/Placeables/Banners/PitbullBanner.cs +++ b/Items/Placeables/Banners/PitbullBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PitbullBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 53; } } diff --git a/Items/Placeables/Banners/PlagueChargerBanner.cs b/Items/Placeables/Banners/PlagueChargerBanner.cs index e02fabd0b0..33148864cf 100644 --- a/Items/Placeables/Banners/PlagueChargerBanner.cs +++ b/Items/Placeables/Banners/PlagueChargerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PlagueChargerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 81; } } diff --git a/Items/Placeables/Banners/PlaguebringerBanner.cs b/Items/Placeables/Banners/PlaguebringerBanner.cs index c26de4c873..cbc6d280bc 100644 --- a/Items/Placeables/Banners/PlaguebringerBanner.cs +++ b/Items/Placeables/Banners/PlaguebringerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PlaguebringerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 83; } } diff --git a/Items/Placeables/Banners/PlagueshellBanner.cs b/Items/Placeables/Banners/PlagueshellBanner.cs index 10e30c892a..cb8b30ef4c 100644 --- a/Items/Placeables/Banners/PlagueshellBanner.cs +++ b/Items/Placeables/Banners/PlagueshellBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PlagueshellBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 80; } } diff --git a/Items/Placeables/Banners/PrismTurtleBanner.cs b/Items/Placeables/Banners/PrismTurtleBanner.cs index 812804f73f..5a8f883813 100644 --- a/Items/Placeables/Banners/PrismTurtleBanner.cs +++ b/Items/Placeables/Banners/PrismTurtleBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class PrismTurtleBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 98; } } diff --git a/Items/Placeables/Banners/ProfanedEnergyBanner.cs b/Items/Placeables/Banners/ProfanedEnergyBanner.cs index 54990cc594..e374003be5 100644 --- a/Items/Placeables/Banners/ProfanedEnergyBanner.cs +++ b/Items/Placeables/Banners/ProfanedEnergyBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ProfanedEnergyBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 50; } } diff --git a/Items/Placeables/Banners/ReaperSharkBanner.cs b/Items/Placeables/Banners/ReaperSharkBanner.cs index 94966ffd21..f016d79f05 100644 --- a/Items/Placeables/Banners/ReaperSharkBanner.cs +++ b/Items/Placeables/Banners/ReaperSharkBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ReaperSharkBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 96; } } diff --git a/Items/Placeables/Banners/RubyCrawlerBanner.cs b/Items/Placeables/Banners/RubyCrawlerBanner.cs index 19b1c228b7..6dda94d6d8 100644 --- a/Items/Placeables/Banners/RubyCrawlerBanner.cs +++ b/Items/Placeables/Banners/RubyCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class RubyCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 70; } } diff --git a/Items/Placeables/Banners/SandTortoiseBanner.cs b/Items/Placeables/Banners/SandTortoiseBanner.cs index e6603e3713..7a8ca49f7c 100644 --- a/Items/Placeables/Banners/SandTortoiseBanner.cs +++ b/Items/Placeables/Banners/SandTortoiseBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SandTortoiseBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 64; } } diff --git a/Items/Placeables/Banners/SapphireCrawlerBanner.cs b/Items/Placeables/Banners/SapphireCrawlerBanner.cs index d52f21ec56..d079bc6bcd 100644 --- a/Items/Placeables/Banners/SapphireCrawlerBanner.cs +++ b/Items/Placeables/Banners/SapphireCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SapphireCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 68; } } diff --git a/Items/Placeables/Banners/ScornEaterBanner.cs b/Items/Placeables/Banners/ScornEaterBanner.cs index b87c9c0f73..a4ff0730af 100644 --- a/Items/Placeables/Banners/ScornEaterBanner.cs +++ b/Items/Placeables/Banners/ScornEaterBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ScornEaterBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 49; } } diff --git a/Items/Placeables/Banners/ScryllarBanner.cs b/Items/Placeables/Banners/ScryllarBanner.cs index 5c9ec3ede0..13b8fbbe92 100644 --- a/Items/Placeables/Banners/ScryllarBanner.cs +++ b/Items/Placeables/Banners/ScryllarBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ScryllarBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 45; } } diff --git a/Items/Placeables/Banners/SeaFloatyBanner.cs b/Items/Placeables/Banners/SeaFloatyBanner.cs index b61dd04947..693b0b9d1c 100644 --- a/Items/Placeables/Banners/SeaFloatyBanner.cs +++ b/Items/Placeables/Banners/SeaFloatyBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SeaFloatyBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 103; } } diff --git a/Items/Placeables/Banners/SeaMinnowBanner.cs b/Items/Placeables/Banners/SeaMinnowBanner.cs index f1953c6233..3e183e61c7 100644 --- a/Items/Placeables/Banners/SeaMinnowBanner.cs +++ b/Items/Placeables/Banners/SeaMinnowBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SeaMinnowBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 105; } } diff --git a/Items/Placeables/Banners/SeaSerpentBanner.cs b/Items/Placeables/Banners/SeaSerpentBanner.cs index 7a4d9d163d..03f5e9f1d5 100644 --- a/Items/Placeables/Banners/SeaSerpentBanner.cs +++ b/Items/Placeables/Banners/SeaSerpentBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SeaSerpentBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 106; } } diff --git a/Items/Placeables/Banners/SeaUrchinBanner.cs b/Items/Placeables/Banners/SeaUrchinBanner.cs index 5a71ef1ef2..f2bad04e27 100644 --- a/Items/Placeables/Banners/SeaUrchinBanner.cs +++ b/Items/Placeables/Banners/SeaUrchinBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SeaUrchinBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 12; } } diff --git a/Items/Placeables/Banners/ShockstormShuttleBanner.cs b/Items/Placeables/Banners/ShockstormShuttleBanner.cs index 199cdccd48..de8dfcfa05 100644 --- a/Items/Placeables/Banners/ShockstormShuttleBanner.cs +++ b/Items/Placeables/Banners/ShockstormShuttleBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ShockstormShuttleBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 57; } } diff --git a/Items/Placeables/Banners/SmallSightseerBanner.cs b/Items/Placeables/Banners/SmallSightseerBanner.cs index e26e903071..4c53e5e994 100644 --- a/Items/Placeables/Banners/SmallSightseerBanner.cs +++ b/Items/Placeables/Banners/SmallSightseerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SmallSightseerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 32; } } diff --git a/Items/Placeables/Banners/SoulSluperBanner.cs b/Items/Placeables/Banners/SoulSluperBanner.cs index 5bca028407..46c475f620 100644 --- a/Items/Placeables/Banners/SoulSluperBanner.cs +++ b/Items/Placeables/Banners/SoulSluperBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SoulSlurperBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 47; } } diff --git a/Items/Placeables/Banners/StellarCulexBanner.cs b/Items/Placeables/Banners/StellarCulexBanner.cs index 438e7f3204..89986a0ed1 100644 --- a/Items/Placeables/Banners/StellarCulexBanner.cs +++ b/Items/Placeables/Banners/StellarCulexBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class StellarCulexBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 41; } } diff --git a/Items/Placeables/Banners/StormlionBanner.cs b/Items/Placeables/Banners/StormlionBanner.cs index 878a8ff5aa..24394d26fa 100644 --- a/Items/Placeables/Banners/StormlionBanner.cs +++ b/Items/Placeables/Banners/StormlionBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class StormlionBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 62; } } diff --git a/Items/Placeables/Banners/SunBatBanner.cs b/Items/Placeables/Banners/SunBatBanner.cs index a4c6cd8ce1..0bb6b18676 100644 --- a/Items/Placeables/Banners/SunBatBanner.cs +++ b/Items/Placeables/Banners/SunBatBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SunBatBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 74; } } diff --git a/Items/Placeables/Banners/SunskaterBanner.cs b/Items/Placeables/Banners/SunskaterBanner.cs index 6f31f9a06a..86ec79f7de 100644 --- a/Items/Placeables/Banners/SunskaterBanner.cs +++ b/Items/Placeables/Banners/SunskaterBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class SunskaterBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 56; } } diff --git a/Items/Placeables/Banners/TopazCrawlerBanner.cs b/Items/Placeables/Banners/TopazCrawlerBanner.cs index 5a01e90abd..3e4c0f2800 100644 --- a/Items/Placeables/Banners/TopazCrawlerBanner.cs +++ b/Items/Placeables/Banners/TopazCrawlerBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class TopazCrawlerBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 67; } } diff --git a/Items/Placeables/Banners/ToxicMinnowBanner.cs b/Items/Placeables/Banners/ToxicMinnowBanner.cs index 952aac97cb..1922255036 100644 --- a/Items/Placeables/Banners/ToxicMinnowBanner.cs +++ b/Items/Placeables/Banners/ToxicMinnowBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ToxicMinnowBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 17; } } diff --git a/Items/Placeables/Banners/TrasherBanner.cs b/Items/Placeables/Banners/TrasherBanner.cs index 1d1c3a5898..a47d9b7cf1 100644 --- a/Items/Placeables/Banners/TrasherBanner.cs +++ b/Items/Placeables/Banners/TrasherBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class TrasherBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 3; } } diff --git a/Items/Placeables/Banners/ViperfishBanner.cs b/Items/Placeables/Banners/ViperfishBanner.cs index 9035a5e72e..03e688b0f5 100644 --- a/Items/Placeables/Banners/ViperfishBanner.cs +++ b/Items/Placeables/Banners/ViperfishBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class ViperfishBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 18; } } diff --git a/Items/Placeables/Banners/VirulingBanner.cs b/Items/Placeables/Banners/VirulingBanner.cs index 13a546e875..a4a69013cc 100644 --- a/Items/Placeables/Banners/VirulingBanner.cs +++ b/Items/Placeables/Banners/VirulingBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class VirulingBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 82; } } diff --git a/Items/Placeables/Banners/WulfrumDroneBanner.cs b/Items/Placeables/Banners/WulfrumDroneBanner.cs index f0f1ce682d..fec5413f2d 100644 --- a/Items/Placeables/Banners/WulfrumDroneBanner.cs +++ b/Items/Placeables/Banners/WulfrumDroneBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class WulfrumDroneBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 52; } } diff --git a/Items/Placeables/Banners/WulfrumSlimeBanner.cs b/Items/Placeables/Banners/WulfrumSlimeBanner.cs index 0609e604ef..213be6fba4 100644 --- a/Items/Placeables/Banners/WulfrumSlimeBanner.cs +++ b/Items/Placeables/Banners/WulfrumSlimeBanner.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.Banners +namespace CalamityMod.Items { public class WulfrumSlimeBanner : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Banners item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); - item.createTile = mod.TileType("MonsterBanner"); + item.createTile = ModContent.TileType(); item.placeStyle = 51; } } diff --git a/Items/Placeables/BlueBrickWallUnsafe.cs b/Items/Placeables/BlueBrickWallUnsafe.cs index 3ddf6c7f3e..28049ba2e6 100644 --- a/Items/Placeables/BlueBrickWallUnsafe.cs +++ b/Items/Placeables/BlueBrickWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class BlueBrickWallUnsafe : ModItem { diff --git a/Items/Placeables/BlueSlabWallUnsafe.cs b/Items/Placeables/BlueSlabWallUnsafe.cs index 4be95f47f8..8ef360f26e 100644 --- a/Items/Placeables/BlueSlabWallUnsafe.cs +++ b/Items/Placeables/BlueSlabWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class BlueSlabWallUnsafe : ModItem { diff --git a/Items/Placeables/BlueTiledWallUnsafe.cs b/Items/Placeables/BlueTiledWallUnsafe.cs index 6f9b53caa5..9c04edb011 100644 --- a/Items/Placeables/BlueTiledWallUnsafe.cs +++ b/Items/Placeables/BlueTiledWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class BlueTiledWallUnsafe : ModItem { diff --git a/Items/Placeables/BrimstoneElementalTrophy.cs b/Items/Placeables/BrimstoneElementalTrophy.cs index 545246e8e7..348b91aa45 100644 --- a/Items/Placeables/BrimstoneElementalTrophy.cs +++ b/Items/Placeables/BrimstoneElementalTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class BrimstoneElementalTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 21; } } diff --git a/Items/Placeables/BrimstoneSlag.cs b/Items/Placeables/BrimstoneSlag.cs index e3ef01992a..fa49fd1ad4 100644 --- a/Items/Placeables/BrimstoneSlag.cs +++ b/Items/Placeables/BrimstoneSlag.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class BrimstoneSlag : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("BrimstoneSlag"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/BrimstoneSlagWall.cs b/Items/Placeables/BrimstoneSlagWall.cs index a6bd47543b..ef76d46bc1 100644 --- a/Items/Placeables/BrimstoneSlagWall.cs +++ b/Items/Placeables/BrimstoneSlagWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class BrimstoneSlagWall : ModItem { @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("BrimstoneSlagWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/BumblebirbTrophy.cs b/Items/Placeables/BumblebirbTrophy.cs index ab790db5ab..fd081c1b79 100644 --- a/Items/Placeables/BumblebirbTrophy.cs +++ b/Items/Placeables/BumblebirbTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class BumblebirbTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 18; } } diff --git a/Items/Placeables/CalamitasTrophy.cs b/Items/Placeables/CalamitasTrophy.cs index 16e6639b2f..afbcc7ee9f 100644 --- a/Items/Placeables/CalamitasTrophy.cs +++ b/Items/Placeables/CalamitasTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CalamitasTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 7; } } diff --git a/Items/Placeables/CataclysmTrophy.cs b/Items/Placeables/CataclysmTrophy.cs index d92957dd20..ed934f6540 100644 --- a/Items/Placeables/CataclysmTrophy.cs +++ b/Items/Placeables/CataclysmTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CataclysmTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 16; } } diff --git a/Items/Placeables/CatastropheTrophy.cs b/Items/Placeables/CatastropheTrophy.cs index 82e714c177..3d5dba1fdd 100644 --- a/Items/Placeables/CatastropheTrophy.cs +++ b/Items/Placeables/CatastropheTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CatastropheTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 15; } } diff --git a/Items/Placeables/CeaselessVoidTrophy.cs b/Items/Placeables/CeaselessVoidTrophy.cs index 7e2c7304c7..c8ce41b038 100644 --- a/Items/Placeables/CeaselessVoidTrophy.cs +++ b/Items/Placeables/CeaselessVoidTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CeaselessVoidTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 13; } } diff --git a/Items/Placeables/ChaosCandle.cs b/Items/Placeables/ChaosCandle.cs index 24d2feecf2..c62f25a480 100644 --- a/Items/Placeables/ChaosCandle.cs +++ b/Items/Placeables/ChaosCandle.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class ChaosCandle : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables item.useStyle = 1; item.consumable = true; item.value = 500; - item.createTile = mod.TileType("ChaosCandle"); + item.createTile = ModContent.TileType(); } public override void HoldItem(Player player) diff --git a/Items/Placeables/ChaoticBrick.cs b/Items/Placeables/ChaoticBrick.cs index e65e610950..225af337d4 100644 --- a/Items/Placeables/ChaoticBrick.cs +++ b/Items/Placeables/ChaoticBrick.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class ChaoticBrick : ModItem { @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ChaoticBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/ChaoticBrickWall.cs b/Items/Placeables/ChaoticBrickWall.cs index 08f89da006..dd1f50452d 100644 --- a/Items/Placeables/ChaoticBrickWall.cs +++ b/Items/Placeables/ChaoticBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class ChaoticBrickWall : ModItem { @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("ChaoticBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/ChaoticOre.cs b/Items/Placeables/ChaoticOre.cs index ffde86ab6c..62f791e95b 100644 --- a/Items/Placeables/ChaoticOre.cs +++ b/Items/Placeables/ChaoticOre.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class ChaoticOre : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("ChaoticOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/CharredOre.cs b/Items/Placeables/CharredOre.cs index d4f619aea7..f3a3e5bdd8 100644 --- a/Items/Placeables/CharredOre.cs +++ b/Items/Placeables/CharredOre.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CharredOre : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("CharredOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/Cinderplate.cs b/Items/Placeables/Cinderplate.cs index 07b966b07d..0097f65a3e 100644 --- a/Items/Placeables/Cinderplate.cs +++ b/Items/Placeables/Cinderplate.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class Cinderplate : ModItem { @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("Cinderplate"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/CinderplateWall.cs b/Items/Placeables/CinderplateWall.cs index 332ef535a9..476a315769 100644 --- a/Items/Placeables/CinderplateWall.cs +++ b/Items/Placeables/CinderplateWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CinderplateWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("CinderplateWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/CrabulonTrophy.cs b/Items/Placeables/CrabulonTrophy.cs index e8543a7f64..546281ec4c 100644 --- a/Items/Placeables/CrabulonTrophy.cs +++ b/Items/Placeables/CrabulonTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CrabulonTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 9; } } diff --git a/Items/Placeables/CryogenTrophy.cs b/Items/Placeables/CryogenTrophy.cs index 02a2957ba7..ee1124a312 100644 --- a/Items/Placeables/CryogenTrophy.cs +++ b/Items/Placeables/CryogenTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CryogenTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 3; } } diff --git a/Items/Placeables/CryonicBrick.cs b/Items/Placeables/CryonicBrick.cs index b7fea5479f..89a86d5e05 100644 --- a/Items/Placeables/CryonicBrick.cs +++ b/Items/Placeables/CryonicBrick.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CryonicBrick : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CryonicBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/CryonicBrickWall.cs b/Items/Placeables/CryonicBrickWall.cs index 3792fc869d..9255787581 100644 --- a/Items/Placeables/CryonicBrickWall.cs +++ b/Items/Placeables/CryonicBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CryonicBrickWall : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("CryonicBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("CryonicBrick")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddTile(18); recipe.AddRecipe(); diff --git a/Items/Placeables/CryonicOre.cs b/Items/Placeables/CryonicOre.cs index 654bf9b27d..7d51f009b3 100644 --- a/Items/Placeables/CryonicOre.cs +++ b/Items/Placeables/CryonicOre.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class CryonicOre : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("CryonicOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/DesertScourgeTrophy.cs b/Items/Placeables/DesertScourgeTrophy.cs index a50f78d2f7..34224d3fb7 100644 --- a/Items/Placeables/DesertScourgeTrophy.cs +++ b/Items/Placeables/DesertScourgeTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class DesertScourgeTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 0; } } diff --git a/Items/Placeables/DevourerofGodsTrophy.cs b/Items/Placeables/DevourerofGodsTrophy.cs index c545640f9d..03b0db4743 100644 --- a/Items/Placeables/DevourerofGodsTrophy.cs +++ b/Items/Placeables/DevourerofGodsTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class DevourerofGodsTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 14; } } diff --git a/Items/Placeables/DraedonsForge.cs b/Items/Placeables/DraedonsForge.cs index ff1a3d7730..4ef6efe52b 100644 --- a/Items/Placeables/DraedonsForge.cs +++ b/Items/Placeables/DraedonsForge.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class DraedonsForge : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 5000000; item.rare = 10; - item.createTile = mod.TileType("DraedonsForge"); + item.createTile = ModContent.TileType(); item.Calamity().postMoonLordRarity = 20; } diff --git a/Items/Placeables/EutrophicSand.cs b/Items/Placeables/EutrophicSand.cs index ec43f76e4a..6a64f22749 100644 --- a/Items/Placeables/EutrophicSand.cs +++ b/Items/Placeables/EutrophicSand.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class EutrophicSand : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("EutrophicSand"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/EutrophicSandWall.cs b/Items/Placeables/EutrophicSandWall.cs index 7deda22992..f45f04d2a8 100644 --- a/Items/Placeables/EutrophicSandWall.cs +++ b/Items/Placeables/EutrophicSandWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class EutrophicSandWall : ModItem { @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("EutrophicSandWall"); + item.createWall = ModContent.WallType(); } } } diff --git a/Items/Placeables/EutrophicSandWallSafe.cs b/Items/Placeables/EutrophicSandWallSafe.cs index 9d9d4a5c1b..2b23da4e9a 100644 --- a/Items/Placeables/EutrophicSandWallSafe.cs +++ b/Items/Placeables/EutrophicSandWallSafe.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class EutrophicSandWallSafe : ModItem { @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("EutrophicSandWallSafe"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/ExodiumClusterOre.cs b/Items/Placeables/ExodiumClusterOre.cs index 9810491ea0..c84661aa26 100644 --- a/Items/Placeables/ExodiumClusterOre.cs +++ b/Items/Placeables/ExodiumClusterOre.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class ExodiumClusterOre : ModItem { @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("ExodiumOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/FurnitureAbyss/AbyssBath.cs b/Items/Placeables/FurnitureAbyss/AbyssBath.cs index adf21923ae..16477286f8 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssBath.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssBath.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssBath : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("AbyssBath"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssBed.cs b/Items/Placeables/FurnitureAbyss/AbyssBed.cs index f9ffc4e422..f4e4ed9119 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssBed.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssBed : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs b/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs index 7b00f04698..9dad1a89da 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssBookcase : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs b/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs index 34912e7c1b..6cd705ca2f 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssCandelabra : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssCandle.cs b/Items/Placeables/FurnitureAbyss/AbyssCandle.cs index ff4828f682..70184a1894 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssCandle.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssCandle.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssCandle : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssChair.cs b/Items/Placeables/FurnitureAbyss/AbyssChair.cs index d7d801648b..3a82e7312e 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssChair.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssChair : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs b/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs index 181ea79933..c2d431f571 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssChandelier : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssChest.cs b/Items/Placeables/FurnitureAbyss/AbyssChest.cs index 55c1084918..345f607753 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssChest.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssChest : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssClock.cs b/Items/Placeables/FurnitureAbyss/AbyssClock.cs index 8653d2947a..5395974071 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssClock.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssClock : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssDoor.cs b/Items/Placeables/FurnitureAbyss/AbyssDoor.cs index 2aafd90f6e..8b6f726f99 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssDoor.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssDoor : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssDresser.cs b/Items/Placeables/FurnitureAbyss/AbyssDresser.cs index d26dbc33d9..e21e160957 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssDresser.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssDresser : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssLamp.cs b/Items/Placeables/FurnitureAbyss/AbyssLamp.cs index 873487143f..68a62b7282 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssLamp.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssLamp : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssLantern.cs b/Items/Placeables/FurnitureAbyss/AbyssLantern.cs index c5ac85c14e..d06aad9af0 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssLantern.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssLantern.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssLantern : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssPiano.cs b/Items/Placeables/FurnitureAbyss/AbyssPiano.cs index 5b0bd433d8..106218d5c9 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssPiano.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssPiano : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssSink.cs b/Items/Placeables/FurnitureAbyss/AbyssSink.cs index 68268ccf80..6ad58b6886 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssSink.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssSink : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssSofa.cs b/Items/Placeables/FurnitureAbyss/AbyssSofa.cs index e45934a622..c80287e9b2 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssSofa.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssSofa : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssTable.cs b/Items/Placeables/FurnitureAbyss/AbyssTable.cs index 5f04b9ccd3..c7e20fbac0 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssTable.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssTable : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/AbyssTorch.cs b/Items/Placeables/FurnitureAbyss/AbyssTorch.cs index 4e29363e3f..3ca4fe0e90 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssTorch.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssTorch.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssTorch : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("AbyssTorch"); + item.createTile = ModContent.TileType(); item.flame = false; item.value = 500; } @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss { if (Main.rand.Next(player.itemAnimation > 0 ? 40 : 80) == 0) { - Dust.NewDust(new Vector2(player.itemLocation.X + 16f * player.direction, player.itemLocation.Y - 14f * player.gravDir), 4, 4, mod.DustType("Sparkle")); + Dust.NewDust(new Vector2(player.itemLocation.X + 16f * player.direction, player.itemLocation.Y - 14f * player.gravDir), 4, 4, ModContent.DustType()); } Vector2 position = player.RotatedRelativePoint(new Vector2(player.itemLocation.X + 12f * player.direction + player.velocity.X, player.itemLocation.Y - 14f + player.velocity.Y), true); Lighting.AddLight(position, 1f, 1f, 1f); diff --git a/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs b/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs index 4e1b235b83..141a97fe96 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class AbyssWorkbench : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AbyssWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs index b4b594ad4a..9098b6ab33 100644 --- a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs +++ b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class SmoothAbyssGravel : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SmoothAbyssGravel"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs index a4e937402b..4d80cb7be9 100644 --- a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs +++ b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class SmoothAbyssGravelPlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SmoothAbyssGravelPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelWall.cs b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelWall.cs index 5cecf94118..0b5505df05 100644 --- a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelWall.cs +++ b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAbyss +namespace CalamityMod.Items { public class SmoothAbyssGravelWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("SmoothAbyssGravelWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientAltar.cs b/Items/Placeables/FurnitureAncient/AncientAltar.cs index 39100a67a3..a0fa4eba9f 100644 --- a/Items/Placeables/FurnitureAncient/AncientAltar.cs +++ b/Items/Placeables/FurnitureAncient/AncientAltar.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientAltar : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientAltar"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientBasin.cs b/Items/Placeables/FurnitureAncient/AncientBasin.cs index ed7d21979c..bde7bda0ac 100644 --- a/Items/Placeables/FurnitureAncient/AncientBasin.cs +++ b/Items/Placeables/FurnitureAncient/AncientBasin.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientBasin : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientBasin"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientBath.cs b/Items/Placeables/FurnitureAncient/AncientBath.cs index 5c3a641b61..16e6671d3a 100644 --- a/Items/Placeables/FurnitureAncient/AncientBath.cs +++ b/Items/Placeables/FurnitureAncient/AncientBath.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientBath : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientBath"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientBed.cs b/Items/Placeables/FurnitureAncient/AncientBed.cs index eeeabc849e..79322b6406 100644 --- a/Items/Placeables/FurnitureAncient/AncientBed.cs +++ b/Items/Placeables/FurnitureAncient/AncientBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientBed : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientBookcase.cs b/Items/Placeables/FurnitureAncient/AncientBookcase.cs index ebf3f39448..1049148b74 100644 --- a/Items/Placeables/FurnitureAncient/AncientBookcase.cs +++ b/Items/Placeables/FurnitureAncient/AncientBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientBookcase : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("AncientBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientChair.cs b/Items/Placeables/FurnitureAncient/AncientChair.cs index 8ac4348b3b..4ea3e57be9 100644 --- a/Items/Placeables/FurnitureAncient/AncientChair.cs +++ b/Items/Placeables/FurnitureAncient/AncientChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientChair : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientChandelier.cs b/Items/Placeables/FurnitureAncient/AncientChandelier.cs index b13895218c..c27a900f60 100644 --- a/Items/Placeables/FurnitureAncient/AncientChandelier.cs +++ b/Items/Placeables/FurnitureAncient/AncientChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientChandelier : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientDoor.cs b/Items/Placeables/FurnitureAncient/AncientDoor.cs index 915f78de1a..0b7d51ffd1 100644 --- a/Items/Placeables/FurnitureAncient/AncientDoor.cs +++ b/Items/Placeables/FurnitureAncient/AncientDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientDoor : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientDresser.cs b/Items/Placeables/FurnitureAncient/AncientDresser.cs index 56184b216a..8a19d784a3 100644 --- a/Items/Placeables/FurnitureAncient/AncientDresser.cs +++ b/Items/Placeables/FurnitureAncient/AncientDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientDresser : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientLamp.cs b/Items/Placeables/FurnitureAncient/AncientLamp.cs index afd3aeed6f..adf12184de 100644 --- a/Items/Placeables/FurnitureAncient/AncientLamp.cs +++ b/Items/Placeables/FurnitureAncient/AncientLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientLamp : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientLantern.cs b/Items/Placeables/FurnitureAncient/AncientLantern.cs index 0f3c381584..d17f3aa3eb 100644 --- a/Items/Placeables/FurnitureAncient/AncientLantern.cs +++ b/Items/Placeables/FurnitureAncient/AncientLantern.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientLantern : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientMonolith.cs b/Items/Placeables/FurnitureAncient/AncientMonolith.cs index 95f3f70d42..d7b1ee05c3 100644 --- a/Items/Placeables/FurnitureAncient/AncientMonolith.cs +++ b/Items/Placeables/FurnitureAncient/AncientMonolith.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientMonolith : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientMonolith"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientPiano.cs b/Items/Placeables/FurnitureAncient/AncientPiano.cs index cbfaa5589b..83486fa4e4 100644 --- a/Items/Placeables/FurnitureAncient/AncientPiano.cs +++ b/Items/Placeables/FurnitureAncient/AncientPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientPiano : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientSink.cs b/Items/Placeables/FurnitureAncient/AncientSink.cs index 529a928e71..3e25fe278d 100644 --- a/Items/Placeables/FurnitureAncient/AncientSink.cs +++ b/Items/Placeables/FurnitureAncient/AncientSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientSink : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientSofa.cs b/Items/Placeables/FurnitureAncient/AncientSofa.cs index c3300c559f..3b8b5c4b0c 100644 --- a/Items/Placeables/FurnitureAncient/AncientSofa.cs +++ b/Items/Placeables/FurnitureAncient/AncientSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientSofa : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientTable.cs b/Items/Placeables/FurnitureAncient/AncientTable.cs index e3d88be76c..d6aca6ff4f 100644 --- a/Items/Placeables/FurnitureAncient/AncientTable.cs +++ b/Items/Placeables/FurnitureAncient/AncientTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientTable : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAncient/AncientWorkbench.cs b/Items/Placeables/FurnitureAncient/AncientWorkbench.cs index 9c4231781b..73ab9e9247 100644 --- a/Items/Placeables/FurnitureAncient/AncientWorkbench.cs +++ b/Items/Placeables/FurnitureAncient/AncientWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAncient +namespace CalamityMod.Items { public class AncientWorkbench : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AncientWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenAltar.cs b/Items/Placeables/FurnitureAshen/AshenAltar.cs index 61fa7d7f1a..c34d7c3b28 100644 --- a/Items/Placeables/FurnitureAshen/AshenAltar.cs +++ b/Items/Placeables/FurnitureAshen/AshenAltar.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenAltar : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("AshenAltar"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenBasin.cs b/Items/Placeables/FurnitureAshen/AshenBasin.cs index 4438881f69..aba259b16d 100644 --- a/Items/Placeables/FurnitureAshen/AshenBasin.cs +++ b/Items/Placeables/FurnitureAshen/AshenBasin.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenBasin : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("AshenBasin"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenBath.cs b/Items/Placeables/FurnitureAshen/AshenBath.cs index 5f6708159f..03ec0f7df1 100644 --- a/Items/Placeables/FurnitureAshen/AshenBath.cs +++ b/Items/Placeables/FurnitureAshen/AshenBath.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenBath : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("AshenBath"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenBed.cs b/Items/Placeables/FurnitureAshen/AshenBed.cs index ee0fab2c22..2fd0f0f2b8 100644 --- a/Items/Placeables/FurnitureAshen/AshenBed.cs +++ b/Items/Placeables/FurnitureAshen/AshenBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenBed : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenBookcase.cs b/Items/Placeables/FurnitureAshen/AshenBookcase.cs index 0212db75fd..36a8afe17f 100644 --- a/Items/Placeables/FurnitureAshen/AshenBookcase.cs +++ b/Items/Placeables/FurnitureAshen/AshenBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenBookcase : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenCandelabra.cs b/Items/Placeables/FurnitureAshen/AshenCandelabra.cs index 757e3698d7..042df7d264 100644 --- a/Items/Placeables/FurnitureAshen/AshenCandelabra.cs +++ b/Items/Placeables/FurnitureAshen/AshenCandelabra.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenCandelabra : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenCandle.cs b/Items/Placeables/FurnitureAshen/AshenCandle.cs index f0be6b9855..30c44bb43d 100644 --- a/Items/Placeables/FurnitureAshen/AshenCandle.cs +++ b/Items/Placeables/FurnitureAshen/AshenCandle.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenCandle : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenChair.cs b/Items/Placeables/FurnitureAshen/AshenChair.cs index f3a8f0d539..5e6b1e0df8 100644 --- a/Items/Placeables/FurnitureAshen/AshenChair.cs +++ b/Items/Placeables/FurnitureAshen/AshenChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenChair : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.useStyle = 1; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenChandelier.cs b/Items/Placeables/FurnitureAshen/AshenChandelier.cs index d8bc1ba617..91ee0083ac 100644 --- a/Items/Placeables/FurnitureAshen/AshenChandelier.cs +++ b/Items/Placeables/FurnitureAshen/AshenChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenChandelier : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenChest.cs b/Items/Placeables/FurnitureAshen/AshenChest.cs index 62c8639298..2a435ae891 100644 --- a/Items/Placeables/FurnitureAshen/AshenChest.cs +++ b/Items/Placeables/FurnitureAshen/AshenChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenChest : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenDoor.cs b/Items/Placeables/FurnitureAshen/AshenDoor.cs index 70adcdb834..e21df69c15 100644 --- a/Items/Placeables/FurnitureAshen/AshenDoor.cs +++ b/Items/Placeables/FurnitureAshen/AshenDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenDoor : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenDresser.cs b/Items/Placeables/FurnitureAshen/AshenDresser.cs index 7f3856e53e..7b4bbcf230 100644 --- a/Items/Placeables/FurnitureAshen/AshenDresser.cs +++ b/Items/Placeables/FurnitureAshen/AshenDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenDresser : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenLamp.cs b/Items/Placeables/FurnitureAshen/AshenLamp.cs index 7f4311f893..f2ae914155 100644 --- a/Items/Placeables/FurnitureAshen/AshenLamp.cs +++ b/Items/Placeables/FurnitureAshen/AshenLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenLamp : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenLantern.cs b/Items/Placeables/FurnitureAshen/AshenLantern.cs index d21ddda450..ae674935fc 100644 --- a/Items/Placeables/FurnitureAshen/AshenLantern.cs +++ b/Items/Placeables/FurnitureAshen/AshenLantern.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenLantern : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenMonolith.cs b/Items/Placeables/FurnitureAshen/AshenMonolith.cs index e8ff64e257..f7946ff108 100644 --- a/Items/Placeables/FurnitureAshen/AshenMonolith.cs +++ b/Items/Placeables/FurnitureAshen/AshenMonolith.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenMonolith : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenMonolith"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenPiano.cs b/Items/Placeables/FurnitureAshen/AshenPiano.cs index 1cbacc0e52..1f35147b32 100644 --- a/Items/Placeables/FurnitureAshen/AshenPiano.cs +++ b/Items/Placeables/FurnitureAshen/AshenPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenPiano : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenPlatform.cs b/Items/Placeables/FurnitureAshen/AshenPlatform.cs index 81fc598f3f..82b72db48c 100644 --- a/Items/Placeables/FurnitureAshen/AshenPlatform.cs +++ b/Items/Placeables/FurnitureAshen/AshenPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenPlatform : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.useStyle = 1; item.rare = 3; item.consumable = true; - item.createTile = mod.TileType("AshenPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenSink.cs b/Items/Placeables/FurnitureAshen/AshenSink.cs index 4bb1a77572..175c329f8d 100644 --- a/Items/Placeables/FurnitureAshen/AshenSink.cs +++ b/Items/Placeables/FurnitureAshen/AshenSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenSink : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenSlab.cs b/Items/Placeables/FurnitureAshen/AshenSlab.cs index 840dcfac0a..dd70812f72 100644 --- a/Items/Placeables/FurnitureAshen/AshenSlab.cs +++ b/Items/Placeables/FurnitureAshen/AshenSlab.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenSlab : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.useStyle = 1; item.rare = 3; item.consumable = true; - item.createTile = mod.TileType("AshenSlab"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenSlabWall.cs b/Items/Placeables/FurnitureAshen/AshenSlabWall.cs index a322becd98..9a46ad796d 100644 --- a/Items/Placeables/FurnitureAshen/AshenSlabWall.cs +++ b/Items/Placeables/FurnitureAshen/AshenSlabWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenSlabWall : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.useStyle = 1; item.rare = 3; item.consumable = true; - item.createWall = mod.WallType("AshenSlabWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenSofa.cs b/Items/Placeables/FurnitureAshen/AshenSofa.cs index 559ddddc7e..5d9423d113 100644 --- a/Items/Placeables/FurnitureAshen/AshenSofa.cs +++ b/Items/Placeables/FurnitureAshen/AshenSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenSofa : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenTable.cs b/Items/Placeables/FurnitureAshen/AshenTable.cs index 1d0c3d4253..5027925c11 100644 --- a/Items/Placeables/FurnitureAshen/AshenTable.cs +++ b/Items/Placeables/FurnitureAshen/AshenTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenTable : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/AshenWorkbench.cs b/Items/Placeables/FurnitureAshen/AshenWorkbench.cs index af3c7ad667..7ba1be7cb1 100644 --- a/Items/Placeables/FurnitureAshen/AshenWorkbench.cs +++ b/Items/Placeables/FurnitureAshen/AshenWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class AshenWorkbench : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.rare = 3; item.consumable = true; item.value = 0; - item.createTile = mod.TileType("AshenWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs b/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs index d0ff6cae18..da769b5681 100644 --- a/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs +++ b/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class SmoothBrimstoneSlag : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.useStyle = 1; item.rare = 3; item.consumable = true; - item.createTile = mod.TileType("SmoothBrimstoneSlag"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlagWall.cs b/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlagWall.cs index a05143b4a9..739b734fa0 100644 --- a/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlagWall.cs +++ b/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlagWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureAshen +namespace CalamityMod.Items { public class SmoothBrimstoneSlagWall : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.useStyle = 1; item.rare = 3; item.consumable = true; - item.createWall = mod.WallType("SmoothBrimstoneSlagWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs b/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs index 5cb32b92e6..b12bcf9cdf 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicBathtub : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicBathtub"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicBed.cs b/Items/Placeables/FurnitureBotanic/BotanicBed.cs index be1a1e67ac..03fff58397 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBed.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicBed : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicBench.cs b/Items/Placeables/FurnitureBotanic/BotanicBench.cs index 452097b1e2..6e2707bde9 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBench.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBench.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicBench : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs b/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs index 44b0b69d02..34108ce82a 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicBookcase : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs b/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs index bda9065ff3..19052e4389 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicCandelabra : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicCandle.cs b/Items/Placeables/FurnitureBotanic/BotanicCandle.cs index c6d4025cb5..7a50129fc7 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicCandle.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicCandle.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicCandle : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicChair.cs b/Items/Placeables/FurnitureBotanic/BotanicChair.cs index 2e27a5bed4..0171f17394 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicChair.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicChair : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs b/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs index 8368953432..5e94ff3bc4 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicChandelier : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicChest.cs b/Items/Placeables/FurnitureBotanic/BotanicChest.cs index c298f46fed..5d76cb9f8b 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicChest.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicChest : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicClock.cs b/Items/Placeables/FurnitureBotanic/BotanicClock.cs index 3f6cdc66ac..c48f7c0d3b 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicClock.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicClock : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicDoor.cs b/Items/Placeables/FurnitureBotanic/BotanicDoor.cs index cde3ad9646..5bf3e79d13 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicDoor.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicDoor : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicDresser.cs b/Items/Placeables/FurnitureBotanic/BotanicDresser.cs index 3f1e7e69a1..014009a0bb 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicDresser.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicDresser : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicLamp.cs b/Items/Placeables/FurnitureBotanic/BotanicLamp.cs index af83e1c3a7..f264cdc462 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicLamp.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicLamp.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicLamp : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicLantern.cs b/Items/Placeables/FurnitureBotanic/BotanicLantern.cs index 2b88f3959d..685e6441d0 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicLantern.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicLantern.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicLantern : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicPiano.cs b/Items/Placeables/FurnitureBotanic/BotanicPiano.cs index 1a7b063dec..6a76b476bb 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicPiano.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicPiano : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicPlanter.cs b/Items/Placeables/FurnitureBotanic/BotanicPlanter.cs index 3d6c464beb..cea5ce874d 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicPlanter.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicPlanter.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicPlanter : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicPlanter"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs b/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs index 61a11cfa61..166d87d8d7 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicPlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("BotanicPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicSink.cs b/Items/Placeables/FurnitureBotanic/BotanicSink.cs index a49f7f46df..68eb2c4b81 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicSink.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicSink : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicTable.cs b/Items/Placeables/FurnitureBotanic/BotanicTable.cs index ada9ddcbf1..1e0bf9f61f 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicTable.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicTable : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs b/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs index 81ff325f4d..8d53d9b079 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureBotanic +namespace CalamityMod.Items { public class BotanicWorkBench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.useStyle = 1; item.value = 0; item.consumable = true; - item.createTile = mod.TileType("BotanicWorkBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs index f72ba26d71..3ad3eaaa0a 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteBath : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteBath"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs index cef6a34a46..4c93126b39 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteBed : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs index cb9064881d..38bb8042f6 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteBookcase : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs index 95f75139db..26f6847e53 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteBrick : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBrickWall.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBrickWall.cs index 4bed0bd9fb..1e0da014e8 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBrickWall.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteBrickWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("CosmiliteBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs index e22dd32fd6..8c30ccde85 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteCandelabra : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs index f8c92dcb3c..8cc1618082 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteCandle : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs index 95f9274b8d..8cd078e88d 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteChair : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs index cdd9976cc7..1bd25ada42 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteChandelier : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs index cc41db0ed8..eb03a6cd9c 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs index 0ce5428ccc..6c1156a92c 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteClock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs index 53e4d4b3a1..92fcebfa02 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteDoor : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs index d92539ac5a..753d34ab2c 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteDresser : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs index 9fee299432..6bfb4b3443 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteLamp : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs index c62515abb2..f9ad256ea2 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteLantern : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs b/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs index ea21beaa70..2262b59ae3 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmilitePiano : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmilitePiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs b/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs index 2e3772d459..be2a9c6dc3 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmilitePlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmilitePlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs index 52a75c278c..56a4531cd8 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteSconce : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteSconce"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs index 7cc2724347..799871c3f8 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteSink : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs index 7829d4d8b4..647ea4f1a7 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteSofa : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs index f6fc96ab85..6131eeb37e 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteTable : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs index 42ce1e021d..2adffc1261 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureCosmilite +namespace CalamityMod.Items { public class CosmiliteWorkbench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("CosmiliteWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs index ed43ebe38a..4bf30f6142 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicBathtub : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicBathtub"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 14); + recipe.AddIngredient(ModContent.ItemType(), 14); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs index 3faa2c89d9..f1079d540a 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicBed : ModItem { @@ -20,13 +20,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 15); + recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddIngredient(ItemID.Silk, 5); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs index b7165ec1d4..7e3dd5047c 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicBench : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 10); + recipe.AddIngredient(ModContent.ItemType(), 10); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs index 1e5d68bb5e..ebbed77c14 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicBookcase : ModItem { @@ -20,13 +20,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 20); + recipe.AddIngredient(ModContent.ItemType(), 20); recipe.AddIngredient(ItemID.Book, 10); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs b/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs index ee82040dc6..21030ce7d4 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicCandelabra : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 5); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 3); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 3); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs b/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs index 91485a1ad0..888e0f7674 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicCandle : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 4); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 1); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs b/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs index 5bc2e2333c..d1ed8f69b0 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicChair : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs b/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs index 6753864361..d5383097c1 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicChandelier : ModItem { @@ -19,15 +19,15 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 4); - recipe.AddIngredient(mod.ItemType("PrismShard"), 4); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 1); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs b/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs index 08d35257b2..b01be28ac2 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicChest : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 8); - recipe.AddIngredient(mod.ItemType("PrismShard"), 1); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs b/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs index f627266d9d..daa444ffa0 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicClock : ModItem { @@ -19,15 +19,15 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 10); - recipe.AddIngredient(mod.ItemType("PrismShard"), 3); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 6); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 3); + recipe.AddIngredient(ModContent.ItemType(), 6); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicCrafting.cs b/Items/Placeables/FurnitureEutrophic/EutrophicCrafting.cs index 4bf1386f68..060c4f591c 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicCrafting.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicCrafting.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicCrafting : ModItem { @@ -22,15 +22,15 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicCrafting"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 10); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 5); - recipe.AddIngredient(mod.ItemType("PrismShard"), 5); + recipe.AddIngredient(ModContent.ItemType(), 10); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 5); recipe.SetResult(this, 1); recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs b/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs index 312ae9816a..6db47f61c1 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicDoor : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 6); + recipe.AddIngredient(ModContent.ItemType(), 6); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs b/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs index f16d2c498d..9e9237fc35 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicDresser : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 16); + recipe.AddIngredient(ModContent.ItemType(), 16); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs b/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs index 3f28fc6659..d8b53a46d6 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicLamp : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 3); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 1); + recipe.AddIngredient(ModContent.ItemType(), 3); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs b/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs index d160767a65..f783eae4a8 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicLantern : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 6); - recipe.AddIngredient(mod.ItemType("SeaPrism"), 1); + recipe.AddIngredient(ModContent.ItemType(), 6); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs b/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs index 92dc446832..88c0348fde 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicPiano : ModItem { @@ -20,13 +20,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 15); + recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddIngredient(ItemID.Bone, 4); recipe.AddIngredient(ItemID.Book); recipe.SetResult(this, 1); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs b/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs index f16ba0c167..3c889c816c 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicPlatform : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 2); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs b/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs index 4c3a7c5a43..c597571a40 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicSink : ModItem { @@ -21,13 +21,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 6); + recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddIngredient(ItemID.WaterBucket); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs b/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs index 1317e209d2..932ad9372c 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicTable : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 8); + recipe.AddIngredient(ModContent.ItemType(), 8); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs b/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs index 616c49c489..25b950e7c3 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class EutrophicWorkBench : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("EutrophicWorkBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 10); + recipe.AddIngredient(ModContent.ItemType(), 10); recipe.SetResult(this, 1); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs b/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs index 311cfa4c5f..8a024ffea0 100644 --- a/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs +++ b/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class SmoothNavystone : ModItem { @@ -21,13 +21,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SmoothNavystone"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("Navystone"), 1); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this); recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureEutrophic/SmoothNavystoneWall.cs b/Items/Placeables/FurnitureEutrophic/SmoothNavystoneWall.cs index 405b50d9a0..71318c978d 100644 --- a/Items/Placeables/FurnitureEutrophic/SmoothNavystoneWall.cs +++ b/Items/Placeables/FurnitureEutrophic/SmoothNavystoneWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureEutrophic +namespace CalamityMod.Items { public class SmoothNavystoneWall : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("SmoothNavystoneWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("SmoothNavystone")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddTile(18); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureOccult/OccultBathtub.cs b/Items/Placeables/FurnitureOccult/OccultBathtub.cs index 939506fd1b..e243551713 100644 --- a/Items/Placeables/FurnitureOccult/OccultBathtub.cs +++ b/Items/Placeables/FurnitureOccult/OccultBathtub.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultBathtub : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultBathtub"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultBed.cs b/Items/Placeables/FurnitureOccult/OccultBed.cs index 5a8c5813cd..911f11257c 100644 --- a/Items/Placeables/FurnitureOccult/OccultBed.cs +++ b/Items/Placeables/FurnitureOccult/OccultBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultBed : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultBookcase.cs b/Items/Placeables/FurnitureOccult/OccultBookcase.cs index 3e7b598f9e..fac29d968e 100644 --- a/Items/Placeables/FurnitureOccult/OccultBookcase.cs +++ b/Items/Placeables/FurnitureOccult/OccultBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultBookcase : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultCandelabra.cs b/Items/Placeables/FurnitureOccult/OccultCandelabra.cs index 04c56dacb7..3d50033713 100644 --- a/Items/Placeables/FurnitureOccult/OccultCandelabra.cs +++ b/Items/Placeables/FurnitureOccult/OccultCandelabra.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultCandelabra : ModItem { @@ -20,14 +20,14 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "OccultStone", 15); - recipe.AddIngredient(mod.ItemType("CosmiliteBrick"), 3); + recipe.AddIngredient(ModContent.ItemType(), 3); recipe.SetResult(this, 1); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureOccult/OccultCandle.cs b/Items/Placeables/FurnitureOccult/OccultCandle.cs index c5d211bd16..07856d8ca8 100644 --- a/Items/Placeables/FurnitureOccult/OccultCandle.cs +++ b/Items/Placeables/FurnitureOccult/OccultCandle.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultCandle : ModItem { @@ -20,14 +20,14 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "OccultStone", 12); - recipe.AddIngredient(mod.ItemType("CosmiliteBrick"), 1); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureOccult/OccultChair.cs b/Items/Placeables/FurnitureOccult/OccultChair.cs index 5c44a1aee4..0d2844df2a 100644 --- a/Items/Placeables/FurnitureOccult/OccultChair.cs +++ b/Items/Placeables/FurnitureOccult/OccultChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultChair : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultChandelier.cs b/Items/Placeables/FurnitureOccult/OccultChandelier.cs index c1b5a470a3..1bedd99ae2 100644 --- a/Items/Placeables/FurnitureOccult/OccultChandelier.cs +++ b/Items/Placeables/FurnitureOccult/OccultChandelier.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultChandelier : ModItem { @@ -20,14 +20,14 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "OccultStone", 12); - recipe.AddIngredient(mod.ItemType("CosmiliteBrick"), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureOccult/OccultChest.cs b/Items/Placeables/FurnitureOccult/OccultChest.cs index ba3512885b..1270d66dc7 100644 --- a/Items/Placeables/FurnitureOccult/OccultChest.cs +++ b/Items/Placeables/FurnitureOccult/OccultChest.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultChest : ModItem { @@ -20,14 +20,14 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "OccultStone", 8); - recipe.AddIngredient(mod.ItemType("CosmiliteBrick"), 2); + recipe.AddIngredient(ModContent.ItemType(), 2); recipe.SetResult(this, 1); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureOccult/OccultClock.cs b/Items/Placeables/FurnitureOccult/OccultClock.cs index db6d6e4baf..f2b5264a12 100644 --- a/Items/Placeables/FurnitureOccult/OccultClock.cs +++ b/Items/Placeables/FurnitureOccult/OccultClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultClock : ModItem { @@ -21,14 +21,14 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "OccultStone", 10); - recipe.AddIngredient(mod.ItemType("CosmiliteBrick"), 3); + recipe.AddIngredient(ModContent.ItemType(), 3); recipe.AddIngredient(ItemID.Glass, 6); recipe.SetResult(this, 1); recipe.AddTile(null, "DraedonsForge"); diff --git a/Items/Placeables/FurnitureOccult/OccultDoor.cs b/Items/Placeables/FurnitureOccult/OccultDoor.cs index 2093bc0c93..cf491b78b2 100644 --- a/Items/Placeables/FurnitureOccult/OccultDoor.cs +++ b/Items/Placeables/FurnitureOccult/OccultDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultDoor : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultDresser.cs b/Items/Placeables/FurnitureOccult/OccultDresser.cs index dae0870917..9a7f1cb5c7 100644 --- a/Items/Placeables/FurnitureOccult/OccultDresser.cs +++ b/Items/Placeables/FurnitureOccult/OccultDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultDresser : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultLamp.cs b/Items/Placeables/FurnitureOccult/OccultLamp.cs index 88b5648ecb..fa088c65a8 100644 --- a/Items/Placeables/FurnitureOccult/OccultLamp.cs +++ b/Items/Placeables/FurnitureOccult/OccultLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultLamp : ModItem { @@ -20,14 +20,14 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "OccultStone", 9); - recipe.AddIngredient(mod.ItemType("CosmiliteBrick"), 1); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureOccult/OccultLantern.cs b/Items/Placeables/FurnitureOccult/OccultLantern.cs index 34709816c0..f5534fb654 100644 --- a/Items/Placeables/FurnitureOccult/OccultLantern.cs +++ b/Items/Placeables/FurnitureOccult/OccultLantern.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultLantern : ModItem { @@ -20,14 +20,14 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "OccultStone", 18); - recipe.AddIngredient(mod.ItemType("CosmiliteBrick"), 1); + recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureOccult/OccultPiano.cs b/Items/Placeables/FurnitureOccult/OccultPiano.cs index 5de31f2738..5caae78055 100644 --- a/Items/Placeables/FurnitureOccult/OccultPiano.cs +++ b/Items/Placeables/FurnitureOccult/OccultPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultPiano : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultPlatform.cs b/Items/Placeables/FurnitureOccult/OccultPlatform.cs index f8e8e5421d..c4957bbacd 100644 --- a/Items/Placeables/FurnitureOccult/OccultPlatform.cs +++ b/Items/Placeables/FurnitureOccult/OccultPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultPlatform : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultSink.cs b/Items/Placeables/FurnitureOccult/OccultSink.cs index 15fa760dbe..3c1fa7f721 100644 --- a/Items/Placeables/FurnitureOccult/OccultSink.cs +++ b/Items/Placeables/FurnitureOccult/OccultSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultSink : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultSofa.cs b/Items/Placeables/FurnitureOccult/OccultSofa.cs index f5e57f9efc..1e0984fb94 100644 --- a/Items/Placeables/FurnitureOccult/OccultSofa.cs +++ b/Items/Placeables/FurnitureOccult/OccultSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultSofa : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultStone.cs b/Items/Placeables/FurnitureOccult/OccultStone.cs index bf6cc794f5..9bea78d010 100644 --- a/Items/Placeables/FurnitureOccult/OccultStone.cs +++ b/Items/Placeables/FurnitureOccult/OccultStone.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultStone : ModItem { @@ -21,16 +21,16 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultStone"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.StoneBlock, 150); - recipe.AddIngredient(mod.ItemType("DarkPlasma")); - recipe.AddIngredient(mod.ItemType("ArmoredShell")); - recipe.AddIngredient(mod.ItemType("TwistingNether")); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ItemID.Silk, 15); recipe.SetResult(this, 150); recipe.AddTile(null, "DraedonsForge"); diff --git a/Items/Placeables/FurnitureOccult/OccultStoneWall.cs b/Items/Placeables/FurnitureOccult/OccultStoneWall.cs index 97ae1226db..5deb59bda2 100644 --- a/Items/Placeables/FurnitureOccult/OccultStoneWall.cs +++ b/Items/Placeables/FurnitureOccult/OccultStoneWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultStoneWall : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("OccultStoneWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultTable.cs b/Items/Placeables/FurnitureOccult/OccultTable.cs index ecdacdda69..819998f70f 100644 --- a/Items/Placeables/FurnitureOccult/OccultTable.cs +++ b/Items/Placeables/FurnitureOccult/OccultTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultTable : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureOccult/OccultWorkBench.cs b/Items/Placeables/FurnitureOccult/OccultWorkBench.cs index aeb48671a5..55d3a7e08b 100644 --- a/Items/Placeables/FurnitureOccult/OccultWorkBench.cs +++ b/Items/Placeables/FurnitureOccult/OccultWorkBench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureOccult +namespace CalamityMod.Items { public class OccultWorkBench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("OccultWorkBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlagueInfuser.cs b/Items/Placeables/FurniturePlaguedPlate/PlagueInfuser.cs index 6329560721..3f25825b05 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlagueInfuser.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlagueInfuser.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlagueInfuser : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlagueInfuser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs index e773a40034..81c06f45f8 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlate : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlate"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs index f5f83bd276..e16332b6fb 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateBasin : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateBasin"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs index c20fe2709a..4e3fbe88c5 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateBathtub : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateBathtub"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs index f2425e194d..dad474f026 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateBed : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs index 8c15e4f5d6..077ad1383c 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateBookcase : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs index 8fde21176f..4b3a59cd88 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateCandelabra : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs index 92d668c900..baf3eef6bb 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateCandle : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs index 2b93f1a317..7313af0324 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateChair : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs index 4e1d3b7e5a..f3a91c2199 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateChandelier : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs index 3d7563d1bd..bfb1968821 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs index 6e3e9d4adc..0c8d1f4c4d 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateClock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs index a5377a503d..f659ea1619 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateDoor : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs index 3f28c4cf61..3ffaf0ffa6 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateDresser : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs index b4e63e02b9..8c34a6d08b 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateLamp : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs index 5bfeddbdf0..a1c42f87e8 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateLantern : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs index eb92298cf9..0451749d16 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlatePiano : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlatePiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs index 1c30473daa..c59e3a5348 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlatePlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlatePlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs index 7c32b3b8e1..ce853d358b 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateSink : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs index 14bdc3e8ad..fb7d595391 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateSofa : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs index db3b0096d0..c6b34563b3 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateTable : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWall.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWall.cs index 7bf1335a33..ffe668afba 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWall.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("PlaguedPlateWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs index a1dfceedd0..4118305c20 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate +namespace CalamityMod.Items { public class PlaguedPlateWorkbench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PlaguedPlateWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBasin.cs b/Items/Placeables/FurnitureProfaned/ProfanedBasin.cs index f45a396897..4ae1fe31c2 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBasin.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBasin.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedBasin : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedBasin"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBath.cs b/Items/Placeables/FurnitureProfaned/ProfanedBath.cs index ed512239dd..e2298d3510 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBath.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBath.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedBath : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedBath"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBed.cs b/Items/Placeables/FurnitureProfaned/ProfanedBed.cs index b48b5f0a83..ed7b8a7baf 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBed.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedBed : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBench.cs b/Items/Placeables/FurnitureProfaned/ProfanedBench.cs index 091a34ca08..70dfa3d23b 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBench.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBench.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedBench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs b/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs index facdd2612b..8c1c2b36fc 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedBookcase : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs b/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs index 5e4b6a7a60..5e90d3e390 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedCandelabra : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs b/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs index 1902a583a7..8c4f4fc1e2 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedCandle : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedChair.cs b/Items/Placeables/FurnitureProfaned/ProfanedChair.cs index f15a8977a2..2d43f9ebbc 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedChair.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedChair : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs b/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs index 5d75606cb8..9ec54d69ae 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedChandelier : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedChest.cs b/Items/Placeables/FurnitureProfaned/ProfanedChest.cs index 0a178b7b45..b30eaf6518 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedChest.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedClock.cs b/Items/Placeables/FurnitureProfaned/ProfanedClock.cs index 30f4e9d9aa..363be97898 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedClock.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedClock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs b/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs index 86af77c60d..81b8b4b273 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedCrystal : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedCrystal"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCrystalWall.cs b/Items/Placeables/FurnitureProfaned/ProfanedCrystalWall.cs index f97223c1b2..ef7c2d2e5b 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedCrystalWall.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedCrystalWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedCrystalWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("ProfanedCrystalWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs b/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs index 752d542b9f..c36376e053 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedDoor : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs b/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs index 5350250e8b..d7270adea2 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedDresser : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs b/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs index 5ded573805..f8504dd827 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedLamp : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs b/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs index 63f44cb650..8617bb89d2 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedLantern : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs b/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs index 7a5e3b55d2..4731ac58f3 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedPiano : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs b/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs index b5ad5cd6df..a019e7616e 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedPlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedRock.cs b/Items/Placeables/FurnitureProfaned/ProfanedRock.cs index 8b1f25bd09..8497a033b0 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedRock.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedRock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedRock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedRock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedRockWall.cs b/Items/Placeables/FurnitureProfaned/ProfanedRockWall.cs index 156f2534ef..671aab0b93 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedRockWall.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedRockWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedRockWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("ProfanedRockWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedSink.cs b/Items/Placeables/FurnitureProfaned/ProfanedSink.cs index 7e256d3c84..9b88bc5232 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedSink.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedSink : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs b/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs index 78eaab5a0e..0018c1d14a 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedSlab : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedSlab"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedSlabWall.cs b/Items/Placeables/FurnitureProfaned/ProfanedSlabWall.cs index 6aa29bca2e..406feb00e5 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedSlabWall.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedSlabWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedSlabWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("ProfanedSlabWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedTable.cs b/Items/Placeables/FurnitureProfaned/ProfanedTable.cs index bb7f425ccf..6f54a5581c 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedTable.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedTable : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs b/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs index 4efaff3960..351fe6aa1c 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class ProfanedWorkbench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("ProfanedWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs b/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs index c77cb9a84d..68ea4a35e9 100644 --- a/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs +++ b/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class RunicProfanedBrick : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("RunicProfanedBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureProfaned/RunicProfanedBrickWall.cs b/Items/Placeables/FurnitureProfaned/RunicProfanedBrickWall.cs index 901f8a3930..aaa1184313 100644 --- a/Items/Placeables/FurnitureProfaned/RunicProfanedBrickWall.cs +++ b/Items/Placeables/FurnitureProfaned/RunicProfanedBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureProfaned +namespace CalamityMod.Items { public class RunicProfanedBrickWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("RunicProfanedBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaBasin.cs b/Items/Placeables/FurnitureSilva/SilvaBasin.cs index 6e3f35c2c6..15aec22bd5 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBasin.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBasin.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaBasin : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaBasin"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaBathtub.cs b/Items/Placeables/FurnitureSilva/SilvaBathtub.cs index 366d33d494..1346d3766f 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBathtub.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBathtub.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaBathtub : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaBathtub"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaBed.cs b/Items/Placeables/FurnitureSilva/SilvaBed.cs index 05ab1babf2..be71a64ace 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBed.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaBed : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaBench.cs b/Items/Placeables/FurnitureSilva/SilvaBench.cs index 75388293e2..e68df209e4 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBench.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaBench : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaBookcase.cs b/Items/Placeables/FurnitureSilva/SilvaBookcase.cs index 6a397271c4..fd3bc13213 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBookcase.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaBookcase : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs b/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs index 8984f02183..830d60f045 100644 --- a/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs +++ b/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaCandelabra : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "SilvaCrystal", 5); - recipe.AddIngredient(mod.ItemType("EffulgentFeather"), 3); + recipe.AddIngredient(ModContent.ItemType(), 3); recipe.SetResult(this); recipe.AddTile(null, "SilvaBasin"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureSilva/SilvaCandle.cs b/Items/Placeables/FurnitureSilva/SilvaCandle.cs index dbf9dab5a7..61c17216f8 100644 --- a/Items/Placeables/FurnitureSilva/SilvaCandle.cs +++ b/Items/Placeables/FurnitureSilva/SilvaCandle.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaCandle : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "SilvaCrystal", 4); - recipe.AddIngredient(mod.ItemType("EffulgentFeather")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this); recipe.AddTile(null, "SilvaBasin"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureSilva/SilvaChair.cs b/Items/Placeables/FurnitureSilva/SilvaChair.cs index 5245705d9e..43a65e1801 100644 --- a/Items/Placeables/FurnitureSilva/SilvaChair.cs +++ b/Items/Placeables/FurnitureSilva/SilvaChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaChair : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaChandelier.cs b/Items/Placeables/FurnitureSilva/SilvaChandelier.cs index 091fa2fab2..02b715c3ce 100644 --- a/Items/Placeables/FurnitureSilva/SilvaChandelier.cs +++ b/Items/Placeables/FurnitureSilva/SilvaChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaChandelier : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaChest.cs b/Items/Placeables/FurnitureSilva/SilvaChest.cs index 6cfa73a077..ef05d57bad 100644 --- a/Items/Placeables/FurnitureSilva/SilvaChest.cs +++ b/Items/Placeables/FurnitureSilva/SilvaChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaClock.cs b/Items/Placeables/FurnitureSilva/SilvaClock.cs index 8d12a86988..89bf89cb20 100644 --- a/Items/Placeables/FurnitureSilva/SilvaClock.cs +++ b/Items/Placeables/FurnitureSilva/SilvaClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaClock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaCrystal.cs b/Items/Placeables/FurnitureSilva/SilvaCrystal.cs index c252df85b2..6a9630706b 100644 --- a/Items/Placeables/FurnitureSilva/SilvaCrystal.cs +++ b/Items/Placeables/FurnitureSilva/SilvaCrystal.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaCrystal : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaCrystal"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() @@ -28,22 +28,22 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.CrystalBlock, 200); recipe.AddIngredient(ItemID.GoldBar, 25); - recipe.AddIngredient(mod.ItemType("DarksunFragment")); - recipe.AddIngredient(mod.ItemType("EffulgentFeather"), 5); - recipe.AddIngredient(mod.ItemType("CosmiliteBar"), 5); - recipe.AddIngredient(mod.ItemType("NightmareFuel")); - recipe.AddIngredient(mod.ItemType("EndothermicEnergy")); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 400); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.CrystalBlock, 200); recipe.AddIngredient(ItemID.PlatinumBar, 25); - recipe.AddIngredient(mod.ItemType("DarksunFragment")); - recipe.AddIngredient(mod.ItemType("EffulgentFeather"), 5); - recipe.AddIngredient(mod.ItemType("CosmiliteBar"), 5); - recipe.AddIngredient(mod.ItemType("NightmareFuel")); - recipe.AddIngredient(mod.ItemType("EndothermicEnergy")); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 400); recipe.AddTile(null, "DraedonsForge"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureSilva/SilvaDoor.cs b/Items/Placeables/FurnitureSilva/SilvaDoor.cs index c7d1a1e068..b5a5569f09 100644 --- a/Items/Placeables/FurnitureSilva/SilvaDoor.cs +++ b/Items/Placeables/FurnitureSilva/SilvaDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaDoor : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaDresser.cs b/Items/Placeables/FurnitureSilva/SilvaDresser.cs index ff8b06f83e..6bba40a07b 100644 --- a/Items/Placeables/FurnitureSilva/SilvaDresser.cs +++ b/Items/Placeables/FurnitureSilva/SilvaDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaDresser : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaLamp.cs b/Items/Placeables/FurnitureSilva/SilvaLamp.cs index 0e03a3bb37..a64462901b 100644 --- a/Items/Placeables/FurnitureSilva/SilvaLamp.cs +++ b/Items/Placeables/FurnitureSilva/SilvaLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaLamp : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "SilvaCrystal", 3); - recipe.AddIngredient(mod.ItemType("EffulgentFeather")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this); recipe.AddTile(null, "SilvaBasin"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureSilva/SilvaLantern.cs b/Items/Placeables/FurnitureSilva/SilvaLantern.cs index d8069c4eda..6ba8379c7f 100644 --- a/Items/Placeables/FurnitureSilva/SilvaLantern.cs +++ b/Items/Placeables/FurnitureSilva/SilvaLantern.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaLantern : ModItem { @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "SilvaCrystal", 6); - recipe.AddIngredient(mod.ItemType("EffulgentFeather")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this); recipe.AddTile(null, "SilvaBasin"); recipe.AddRecipe(); diff --git a/Items/Placeables/FurnitureSilva/SilvaPiano.cs b/Items/Placeables/FurnitureSilva/SilvaPiano.cs index 45d78005a9..8bb06485e8 100644 --- a/Items/Placeables/FurnitureSilva/SilvaPiano.cs +++ b/Items/Placeables/FurnitureSilva/SilvaPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaPiano : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaPlatform.cs b/Items/Placeables/FurnitureSilva/SilvaPlatform.cs index 66d0e4fc2d..72e61dc624 100644 --- a/Items/Placeables/FurnitureSilva/SilvaPlatform.cs +++ b/Items/Placeables/FurnitureSilva/SilvaPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaPlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaSink.cs b/Items/Placeables/FurnitureSilva/SilvaSink.cs index f828204d8a..58e4f73aad 100644 --- a/Items/Placeables/FurnitureSilva/SilvaSink.cs +++ b/Items/Placeables/FurnitureSilva/SilvaSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaSink : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaTable.cs b/Items/Placeables/FurnitureSilva/SilvaTable.cs index 10baea9406..704a492be2 100644 --- a/Items/Placeables/FurnitureSilva/SilvaTable.cs +++ b/Items/Placeables/FurnitureSilva/SilvaTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaTable : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaWall.cs b/Items/Placeables/FurnitureSilva/SilvaWall.cs index 6997d1ff3e..5f980629af 100644 --- a/Items/Placeables/FurnitureSilva/SilvaWall.cs +++ b/Items/Placeables/FurnitureSilva/SilvaWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("SilvaWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs b/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs index 880e8c8161..baf4c5086b 100644 --- a/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs +++ b/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureSilva +namespace CalamityMod.Items { public class SilvaWorkBench : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SilvaWorkBench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StaticRefiner.cs b/Items/Placeables/FurnitureStatigel/StaticRefiner.cs index 4df8a7ca69..bab27da860 100644 --- a/Items/Placeables/FurnitureStatigel/StaticRefiner.cs +++ b/Items/Placeables/FurnitureStatigel/StaticRefiner.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StaticRefiner : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StaticRefiner"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/Placeables/FurnitureStatigel/StatigelBath.cs b/Items/Placeables/FurnitureStatigel/StatigelBath.cs index 06006a3e0e..21a2240685 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBath.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBath.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelBath : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelBath"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelBed.cs b/Items/Placeables/FurnitureStatigel/StatigelBed.cs index 7cfc2ab96b..c194cb6d34 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBed.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelBed : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelBlock.cs b/Items/Placeables/FurnitureStatigel/StatigelBlock.cs index a1fee32e4b..6e5a9571da 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBlock.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBlock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelBlock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelBlock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs b/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs index 72ad63b290..605f1f6a08 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelBookcase : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs b/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs index f6338a24c0..7a935ea7bb 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelCandelabra : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelCandle.cs b/Items/Placeables/FurnitureStatigel/StatigelCandle.cs index 4325a4058d..f0af8f5cf7 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelCandle.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelCandle.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelCandle : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelChair.cs b/Items/Placeables/FurnitureStatigel/StatigelChair.cs index 430897fa69..be59684da2 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelChair.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelChair : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs b/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs index 174d6d1339..71c1b505a8 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelChandelier : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelChest.cs b/Items/Placeables/FurnitureStatigel/StatigelChest.cs index 2edbce97ec..c1b5918d10 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelChest.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelClock.cs b/Items/Placeables/FurnitureStatigel/StatigelClock.cs index 5fae7cca11..26cbf15426 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelClock.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelClock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelDoor.cs b/Items/Placeables/FurnitureStatigel/StatigelDoor.cs index e43b84b6af..be16a405c2 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelDoor.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelDoor : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelDresser.cs b/Items/Placeables/FurnitureStatigel/StatigelDresser.cs index 6d4c395700..0bffed7550 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelDresser.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelDresser : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelLamp.cs b/Items/Placeables/FurnitureStatigel/StatigelLamp.cs index d4b43c1ac2..730bfd6c8f 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelLamp.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelLamp.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelLamp : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelLantern.cs b/Items/Placeables/FurnitureStatigel/StatigelLantern.cs index ae8ea44090..3e3c919775 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelLantern.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelLantern.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelLantern : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelPiano.cs b/Items/Placeables/FurnitureStatigel/StatigelPiano.cs index b7e589559d..76760fc311 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelPiano.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelPiano : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs b/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs index 156519595a..c943daba18 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelPlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelSink.cs b/Items/Placeables/FurnitureStatigel/StatigelSink.cs index 8325a27fa2..b9ed13ef61 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelSink.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelSink : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelSofa.cs b/Items/Placeables/FurnitureStatigel/StatigelSofa.cs index cadaa2922f..e49f3fb151 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelSofa.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelSofa : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelTable.cs b/Items/Placeables/FurnitureStatigel/StatigelTable.cs index 4ea67e34c4..ec1dfa01fe 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelTable.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelTable : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelWall.cs b/Items/Placeables/FurnitureStatigel/StatigelWall.cs index 5daff14bca..8b8f6895b8 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelWall.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("StatigelWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs b/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs index 4c16841ba9..54b19fd7c2 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStatigel +namespace CalamityMod.Items { public class StatigelWorkbench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StatigelWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusBathtub.cs b/Items/Placeables/FurnitureStratus/StratusBathtub.cs index d682e7c9db..cb294362a5 100644 --- a/Items/Placeables/FurnitureStratus/StratusBathtub.cs +++ b/Items/Placeables/FurnitureStratus/StratusBathtub.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusBathtub : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusBathtub"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusBed.cs b/Items/Placeables/FurnitureStratus/StratusBed.cs index 2cd7ff1d14..f5d7982fb2 100644 --- a/Items/Placeables/FurnitureStratus/StratusBed.cs +++ b/Items/Placeables/FurnitureStratus/StratusBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusBed : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusBookcase.cs b/Items/Placeables/FurnitureStratus/StratusBookcase.cs index 4a92d1da49..13e3ccada3 100644 --- a/Items/Placeables/FurnitureStratus/StratusBookcase.cs +++ b/Items/Placeables/FurnitureStratus/StratusBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusBookcase : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusBricks.cs b/Items/Placeables/FurnitureStratus/StratusBricks.cs index 37565b1da1..4d2635edbf 100644 --- a/Items/Placeables/FurnitureStratus/StratusBricks.cs +++ b/Items/Placeables/FurnitureStratus/StratusBricks.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusBricks : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusBricks"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusCandelabra.cs b/Items/Placeables/FurnitureStratus/StratusCandelabra.cs index 6670462bf7..e4436edfce 100644 --- a/Items/Placeables/FurnitureStratus/StratusCandelabra.cs +++ b/Items/Placeables/FurnitureStratus/StratusCandelabra.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusCandelabra : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusCandle.cs b/Items/Placeables/FurnitureStratus/StratusCandle.cs index fe0d4340a7..11b743b9a7 100644 --- a/Items/Placeables/FurnitureStratus/StratusCandle.cs +++ b/Items/Placeables/FurnitureStratus/StratusCandle.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusCandle : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusChair.cs b/Items/Placeables/FurnitureStratus/StratusChair.cs index 5f1f75309e..197c544f64 100644 --- a/Items/Placeables/FurnitureStratus/StratusChair.cs +++ b/Items/Placeables/FurnitureStratus/StratusChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusChair : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusChandelier.cs b/Items/Placeables/FurnitureStratus/StratusChandelier.cs index 57511f1e49..1b8668db00 100644 --- a/Items/Placeables/FurnitureStratus/StratusChandelier.cs +++ b/Items/Placeables/FurnitureStratus/StratusChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusChandelier : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusChest.cs b/Items/Placeables/FurnitureStratus/StratusChest.cs index afe7da57c7..68f655e767 100644 --- a/Items/Placeables/FurnitureStratus/StratusChest.cs +++ b/Items/Placeables/FurnitureStratus/StratusChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusClock.cs b/Items/Placeables/FurnitureStratus/StratusClock.cs index 040b0072a3..98e7d81d21 100644 --- a/Items/Placeables/FurnitureStratus/StratusClock.cs +++ b/Items/Placeables/FurnitureStratus/StratusClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusClock : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusDoor.cs b/Items/Placeables/FurnitureStratus/StratusDoor.cs index 7d80e4df14..e518a8bfc9 100644 --- a/Items/Placeables/FurnitureStratus/StratusDoor.cs +++ b/Items/Placeables/FurnitureStratus/StratusDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusDoor : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusDresser.cs b/Items/Placeables/FurnitureStratus/StratusDresser.cs index 9c5f8c2ae5..5cc5faa947 100644 --- a/Items/Placeables/FurnitureStratus/StratusDresser.cs +++ b/Items/Placeables/FurnitureStratus/StratusDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusDresser : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusLamp.cs b/Items/Placeables/FurnitureStratus/StratusLamp.cs index 186d8d4b20..021946c452 100644 --- a/Items/Placeables/FurnitureStratus/StratusLamp.cs +++ b/Items/Placeables/FurnitureStratus/StratusLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusLamp : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusLantern.cs b/Items/Placeables/FurnitureStratus/StratusLantern.cs index edaa6fee47..3b51bf3f5a 100644 --- a/Items/Placeables/FurnitureStratus/StratusLantern.cs +++ b/Items/Placeables/FurnitureStratus/StratusLantern.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusLantern : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusPiano.cs b/Items/Placeables/FurnitureStratus/StratusPiano.cs index 831d854038..e7639fdf81 100644 --- a/Items/Placeables/FurnitureStratus/StratusPiano.cs +++ b/Items/Placeables/FurnitureStratus/StratusPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusPiano : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusPlatform.cs b/Items/Placeables/FurnitureStratus/StratusPlatform.cs index c1aae5843a..ab3ddf39cc 100644 --- a/Items/Placeables/FurnitureStratus/StratusPlatform.cs +++ b/Items/Placeables/FurnitureStratus/StratusPlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusPlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusPlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusSink.cs b/Items/Placeables/FurnitureStratus/StratusSink.cs index c543b6a20b..f88cae19ed 100644 --- a/Items/Placeables/FurnitureStratus/StratusSink.cs +++ b/Items/Placeables/FurnitureStratus/StratusSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusSink : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusSofa.cs b/Items/Placeables/FurnitureStratus/StratusSofa.cs index 8463518b42..4ac189c0ea 100644 --- a/Items/Placeables/FurnitureStratus/StratusSofa.cs +++ b/Items/Placeables/FurnitureStratus/StratusSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusSofa : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusTable.cs b/Items/Placeables/FurnitureStratus/StratusTable.cs index c92b666ad3..75566a4291 100644 --- a/Items/Placeables/FurnitureStratus/StratusTable.cs +++ b/Items/Placeables/FurnitureStratus/StratusTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusTable : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusWall.cs b/Items/Placeables/FurnitureStratus/StratusWall.cs index d84f6897d9..f35161430a 100644 --- a/Items/Placeables/FurnitureStratus/StratusWall.cs +++ b/Items/Placeables/FurnitureStratus/StratusWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusWall : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("StratusWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureStratus/StratusWorkbench.cs b/Items/Placeables/FurnitureStratus/StratusWorkbench.cs index 02062bc311..1ccfed0942 100644 --- a/Items/Placeables/FurnitureStratus/StratusWorkbench.cs +++ b/Items/Placeables/FurnitureStratus/StratusWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureStratus +namespace CalamityMod.Items { public class StratusWorkbench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("StratusWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs b/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs index aa590509fa..08fdde5d5c 100644 --- a/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs +++ b/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class SmoothVoidstone : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SmoothVoidstone"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs b/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs index d12ea32868..74f66dea4c 100644 --- a/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs +++ b/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class SmoothVoidstonePlatform : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("SmoothVoidstonePlatform"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/SmoothVoidstoneWall.cs b/Items/Placeables/FurnitureVoid/SmoothVoidstoneWall.cs index 3dd3b2d083..2001c660e5 100644 --- a/Items/Placeables/FurnitureVoid/SmoothVoidstoneWall.cs +++ b/Items/Placeables/FurnitureVoid/SmoothVoidstoneWall.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class SmoothVoidstoneWall : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("SmoothVoidstoneWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidBath.cs b/Items/Placeables/FurnitureVoid/VoidBath.cs index 2a3fc3c64c..afda377a40 100644 --- a/Items/Placeables/FurnitureVoid/VoidBath.cs +++ b/Items/Placeables/FurnitureVoid/VoidBath.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidBath : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidBath"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidBed.cs b/Items/Placeables/FurnitureVoid/VoidBed.cs index 22bd431841..21bdb34c8b 100644 --- a/Items/Placeables/FurnitureVoid/VoidBed.cs +++ b/Items/Placeables/FurnitureVoid/VoidBed.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidBed : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidBed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidBookcase.cs b/Items/Placeables/FurnitureVoid/VoidBookcase.cs index 5993ed9ee8..b3509f1b3a 100644 --- a/Items/Placeables/FurnitureVoid/VoidBookcase.cs +++ b/Items/Placeables/FurnitureVoid/VoidBookcase.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidBookcase : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidBookcase"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidCandelabra.cs b/Items/Placeables/FurnitureVoid/VoidCandelabra.cs index 67dfffb85c..bdf5c2971f 100644 --- a/Items/Placeables/FurnitureVoid/VoidCandelabra.cs +++ b/Items/Placeables/FurnitureVoid/VoidCandelabra.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidCandelabra : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidCandelabra"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidCandle.cs b/Items/Placeables/FurnitureVoid/VoidCandle.cs index 4acaa47529..717d49fcc5 100644 --- a/Items/Placeables/FurnitureVoid/VoidCandle.cs +++ b/Items/Placeables/FurnitureVoid/VoidCandle.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidCandle : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidCandle"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidChair.cs b/Items/Placeables/FurnitureVoid/VoidChair.cs index 3fd6f029ef..7d5451d251 100644 --- a/Items/Placeables/FurnitureVoid/VoidChair.cs +++ b/Items/Placeables/FurnitureVoid/VoidChair.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidChair : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidChair"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidChandelier.cs b/Items/Placeables/FurnitureVoid/VoidChandelier.cs index a24e0a9932..78c1ef2702 100644 --- a/Items/Placeables/FurnitureVoid/VoidChandelier.cs +++ b/Items/Placeables/FurnitureVoid/VoidChandelier.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidChandelier : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidChandelier"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidChest.cs b/Items/Placeables/FurnitureVoid/VoidChest.cs index 830ab36214..2f46397864 100644 --- a/Items/Placeables/FurnitureVoid/VoidChest.cs +++ b/Items/Placeables/FurnitureVoid/VoidChest.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidChest : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidChest"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidClock.cs b/Items/Placeables/FurnitureVoid/VoidClock.cs index 6fab8690c4..a3f4d28a91 100644 --- a/Items/Placeables/FurnitureVoid/VoidClock.cs +++ b/Items/Placeables/FurnitureVoid/VoidClock.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidClock : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidClock"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidCondenser.cs b/Items/Placeables/FurnitureVoid/VoidCondenser.cs index d95d7fc069..3e483779a9 100644 --- a/Items/Placeables/FurnitureVoid/VoidCondenser.cs +++ b/Items/Placeables/FurnitureVoid/VoidCondenser.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidCondenser : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidCondenser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidDoor.cs b/Items/Placeables/FurnitureVoid/VoidDoor.cs index 16679eac92..1a59b8fc17 100644 --- a/Items/Placeables/FurnitureVoid/VoidDoor.cs +++ b/Items/Placeables/FurnitureVoid/VoidDoor.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidDoor : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidDoorClosed"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidDresser.cs b/Items/Placeables/FurnitureVoid/VoidDresser.cs index 5f128c9bdd..1e5980856c 100644 --- a/Items/Placeables/FurnitureVoid/VoidDresser.cs +++ b/Items/Placeables/FurnitureVoid/VoidDresser.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidDresser : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidDresser"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidLamp.cs b/Items/Placeables/FurnitureVoid/VoidLamp.cs index 941d2ba57d..32c312a330 100644 --- a/Items/Placeables/FurnitureVoid/VoidLamp.cs +++ b/Items/Placeables/FurnitureVoid/VoidLamp.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidLamp : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidLamp"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidLantern.cs b/Items/Placeables/FurnitureVoid/VoidLantern.cs index 4df3756c06..3a7fc6fbb8 100644 --- a/Items/Placeables/FurnitureVoid/VoidLantern.cs +++ b/Items/Placeables/FurnitureVoid/VoidLantern.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidLantern : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidLantern"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidPiano.cs b/Items/Placeables/FurnitureVoid/VoidPiano.cs index 9c7d6a62ac..0d7e93fee2 100644 --- a/Items/Placeables/FurnitureVoid/VoidPiano.cs +++ b/Items/Placeables/FurnitureVoid/VoidPiano.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidPiano : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidPiano"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidSink.cs b/Items/Placeables/FurnitureVoid/VoidSink.cs index 76c9d8aef9..f2d5a61747 100644 --- a/Items/Placeables/FurnitureVoid/VoidSink.cs +++ b/Items/Placeables/FurnitureVoid/VoidSink.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidSink : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidSink"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidSofa.cs b/Items/Placeables/FurnitureVoid/VoidSofa.cs index 9c6449268d..ce6800ed3f 100644 --- a/Items/Placeables/FurnitureVoid/VoidSofa.cs +++ b/Items/Placeables/FurnitureVoid/VoidSofa.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidSofa : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidSofa"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidTable.cs b/Items/Placeables/FurnitureVoid/VoidTable.cs index 327ba863f3..ce20ccc29b 100644 --- a/Items/Placeables/FurnitureVoid/VoidTable.cs +++ b/Items/Placeables/FurnitureVoid/VoidTable.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidTable : ModItem { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidTable"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidWorkbench.cs b/Items/Placeables/FurnitureVoid/VoidWorkbench.cs index a9066cf471..714c5365a0 100644 --- a/Items/Placeables/FurnitureVoid/VoidWorkbench.cs +++ b/Items/Placeables/FurnitureVoid/VoidWorkbench.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidWorkbench : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidWorkbench"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs b/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs index 4e26a70c78..1e51bfb109 100644 --- a/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs +++ b/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidstoneSlab : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("VoidstoneSlab"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/FurnitureVoid/VoidstoneSlabWall.cs b/Items/Placeables/FurnitureVoid/VoidstoneSlabWall.cs index ed37be0007..e7878339fa 100644 --- a/Items/Placeables/FurnitureVoid/VoidstoneSlabWall.cs +++ b/Items/Placeables/FurnitureVoid/VoidstoneSlabWall.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables.FurnitureVoid +namespace CalamityMod.Items { public class VoidstoneSlabWall : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("VoidstoneSlabWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/GreenBrickWallUnsafe.cs b/Items/Placeables/GreenBrickWallUnsafe.cs index b224b11e3a..dafeb20dd5 100644 --- a/Items/Placeables/GreenBrickWallUnsafe.cs +++ b/Items/Placeables/GreenBrickWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class GreenBrickWallUnsafe : ModItem { diff --git a/Items/Placeables/GreenSlabWallUnsafe.cs b/Items/Placeables/GreenSlabWallUnsafe.cs index a5452213c8..225715a8b6 100644 --- a/Items/Placeables/GreenSlabWallUnsafe.cs +++ b/Items/Placeables/GreenSlabWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class GreenSlabWallUnsafe : ModItem { diff --git a/Items/Placeables/GreenTiledWallUnsafe.cs b/Items/Placeables/GreenTiledWallUnsafe.cs index bea0a803e9..04b6335ae2 100644 --- a/Items/Placeables/GreenTiledWallUnsafe.cs +++ b/Items/Placeables/GreenTiledWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class GreenTiledWallUnsafe : ModItem { diff --git a/Items/Placeables/HardenedAstralSand.cs b/Items/Placeables/HardenedAstralSand.cs index a4ad85589c..3ad487fd20 100644 --- a/Items/Placeables/HardenedAstralSand.cs +++ b/Items/Placeables/HardenedAstralSand.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class HardenedAstralSand : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("HardenedAstralSand"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("HardenedAstralSandWall"), 4); + recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/HardenedAstralSandWall.cs b/Items/Placeables/HardenedAstralSandWall.cs index 1762577be3..b0fa43767a 100644 --- a/Items/Placeables/HardenedAstralSandWall.cs +++ b/Items/Placeables/HardenedAstralSandWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class HardenedAstralSandWall : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createWall = mod.WallType("HardenedAstralSandWall"); + item.createWall = ModContent.WallType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddTile(18); - recipe.AddIngredient(mod.ItemType("HardenedAstralSand")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); base.AddRecipes(); diff --git a/Items/Placeables/HiveMindTrophy.cs b/Items/Placeables/HiveMindTrophy.cs index bdcc1492b4..cc5181e1f6 100644 --- a/Items/Placeables/HiveMindTrophy.cs +++ b/Items/Placeables/HiveMindTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class HiveMindTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 8; } } diff --git a/Items/Placeables/LeviathanTrophy.cs b/Items/Placeables/LeviathanTrophy.cs index a9bfdb486f..78b49ec477 100644 --- a/Items/Placeables/LeviathanTrophy.cs +++ b/Items/Placeables/LeviathanTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class LeviathanTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 5; } } diff --git a/Items/Placeables/Navystone.cs b/Items/Placeables/Navystone.cs index 64a398286e..c6dfe1a523 100644 --- a/Items/Placeables/Navystone.cs +++ b/Items/Placeables/Navystone.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class Navystone : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("Navystone"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Placeables recipe.SetResult(this); recipe.AddRecipe(); recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("EutrophicPlatform"), 2); + recipe.AddIngredient(ModContent.ItemType(), 2); recipe.SetResult(this); recipe.AddTile(null, "EutrophicCrafting"); recipe.AddRecipe(); diff --git a/Items/Placeables/NavystoneWall.cs b/Items/Placeables/NavystoneWall.cs index d0f47a3e32..3143693bb0 100644 --- a/Items/Placeables/NavystoneWall.cs +++ b/Items/Placeables/NavystoneWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class NavystoneWall : ModItem { @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("NavystoneWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/NavystoneWallSafe.cs b/Items/Placeables/NavystoneWallSafe.cs index ca58f480fb..686f802ef7 100644 --- a/Items/Placeables/NavystoneWallSafe.cs +++ b/Items/Placeables/NavystoneWallSafe.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class NavystoneWallSafe : ModItem { @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("NavystoneWallSafe"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/PerennialBrick.cs b/Items/Placeables/PerennialBrick.cs index a74c9317e5..a47d660db7 100644 --- a/Items/Placeables/PerennialBrick.cs +++ b/Items/Placeables/PerennialBrick.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PerennialBrick : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("PerennialBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/PerennialBrickWall.cs b/Items/Placeables/PerennialBrickWall.cs index 70c1faf51b..35dd46b6f9 100644 --- a/Items/Placeables/PerennialBrickWall.cs +++ b/Items/Placeables/PerennialBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PerennialBrickWall : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("PerennialBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("PerennialBrick")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddTile(18); recipe.AddRecipe(); diff --git a/Items/Placeables/PerennialOre.cs b/Items/Placeables/PerennialOre.cs index 3b172532dc..b9b3566c5e 100644 --- a/Items/Placeables/PerennialOre.cs +++ b/Items/Placeables/PerennialOre.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PerennialOre : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("PerennialOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/PerforatorTrophy.cs b/Items/Placeables/PerforatorTrophy.cs index 0f47114585..d78c7ce43b 100644 --- a/Items/Placeables/PerforatorTrophy.cs +++ b/Items/Placeables/PerforatorTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PerforatorTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 1; } } diff --git a/Items/Placeables/PinkBrickWallUnsafe.cs b/Items/Placeables/PinkBrickWallUnsafe.cs index 465a50bd0f..4f0d14c40c 100644 --- a/Items/Placeables/PinkBrickWallUnsafe.cs +++ b/Items/Placeables/PinkBrickWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PinkBrickWallUnsafe : ModItem { diff --git a/Items/Placeables/PinkSlabWallUnsafe.cs b/Items/Placeables/PinkSlabWallUnsafe.cs index 27dbf59c2c..fcd426935a 100644 --- a/Items/Placeables/PinkSlabWallUnsafe.cs +++ b/Items/Placeables/PinkSlabWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PinkSlabWallUnsafe : ModItem { diff --git a/Items/Placeables/PinkTiledWallUnsafe.cs b/Items/Placeables/PinkTiledWallUnsafe.cs index 0d1ff8e283..5fbbe93381 100644 --- a/Items/Placeables/PinkTiledWallUnsafe.cs +++ b/Items/Placeables/PinkTiledWallUnsafe.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PinkTiledWallUnsafe : ModItem { diff --git a/Items/Placeables/PlaguebringerGoliathTrophy.cs b/Items/Placeables/PlaguebringerGoliathTrophy.cs index 5e400e836e..93fd9a8e40 100644 --- a/Items/Placeables/PlaguebringerGoliathTrophy.cs +++ b/Items/Placeables/PlaguebringerGoliathTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PlaguebringerGoliathTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 4; } } diff --git a/Items/Placeables/PlantyMush.cs b/Items/Placeables/PlantyMush.cs index f8ab133bcd..e7a3574023 100644 --- a/Items/Placeables/PlantyMush.cs +++ b/Items/Placeables/PlantyMush.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PlantyMush : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("PlantyMush"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/PolterghastTrophy.cs b/Items/Placeables/PolterghastTrophy.cs index c20f9f8357..bf550e594e 100644 --- a/Items/Placeables/PolterghastTrophy.cs +++ b/Items/Placeables/PolterghastTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PolterghastTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 17; } } diff --git a/Items/Placeables/PrismShard.cs b/Items/Placeables/PrismShard.cs index 9af4704ee7..89f50b4fea 100644 --- a/Items/Placeables/PrismShard.cs +++ b/Items/Placeables/PrismShard.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class PrismShard : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("SeaPrismCrystals"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/ProvidenceTrophy.cs b/Items/Placeables/ProvidenceTrophy.cs index 7e61ce891a..40577ce054 100644 --- a/Items/Placeables/ProvidenceTrophy.cs +++ b/Items/Placeables/ProvidenceTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class ProvidenceTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 6; } } diff --git a/Items/Placeables/RavagerTrophy.cs b/Items/Placeables/RavagerTrophy.cs index cc3922cf54..ab3599eccd 100644 --- a/Items/Placeables/RavagerTrophy.cs +++ b/Items/Placeables/RavagerTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class RavagerTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 22; } } diff --git a/Items/Placeables/SeaPrism.cs b/Items/Placeables/SeaPrism.cs index 970140690f..1e0f22a6a1 100644 --- a/Items/Placeables/SeaPrism.cs +++ b/Items/Placeables/SeaPrism.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class SeaPrism : ModItem { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("SeaPrism"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/SignusTrophy.cs b/Items/Placeables/SignusTrophy.cs index 3cfa902755..e63287f509 100644 --- a/Items/Placeables/SignusTrophy.cs +++ b/Items/Placeables/SignusTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class SignusTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 11; } } diff --git a/Items/Placeables/SlimeGodTrophy.cs b/Items/Placeables/SlimeGodTrophy.cs index ae23b0f8b1..8dc38e7f0e 100644 --- a/Items/Placeables/SlimeGodTrophy.cs +++ b/Items/Placeables/SlimeGodTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class SlimeGodTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 2; } } diff --git a/Items/Placeables/SulphurousSand.cs b/Items/Placeables/SulphurousSand.cs index 452fabe215..19088b0ba6 100644 --- a/Items/Placeables/SulphurousSand.cs +++ b/Items/Placeables/SulphurousSand.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class SulphurousSand : ModItem { @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("SulphurousSand"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/Tenebris.cs b/Items/Placeables/Tenebris.cs index 3c83bff3ff..9153f07003 100644 --- a/Items/Placeables/Tenebris.cs +++ b/Items/Placeables/Tenebris.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class Tenebris : ModItem { @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("Tenebris"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/TranquilityCandle.cs b/Items/Placeables/TranquilityCandle.cs index 619e93db90..c4417d4f98 100644 --- a/Items/Placeables/TranquilityCandle.cs +++ b/Items/Placeables/TranquilityCandle.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class TranquilityCandle : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables item.useStyle = 1; item.consumable = true; item.value = 500; - item.createTile = mod.TileType("TranquilityCandle"); + item.createTile = ModContent.TileType(); } public override void HoldItem(Player player) diff --git a/Items/Placeables/UelibloomBrick.cs b/Items/Placeables/UelibloomBrick.cs index 383b830f22..0374c55f3d 100644 --- a/Items/Placeables/UelibloomBrick.cs +++ b/Items/Placeables/UelibloomBrick.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class UelibloomBrick : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("UelibloomBrick"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/UelibloomBrickWall.cs b/Items/Placeables/UelibloomBrickWall.cs index e5e6980539..bcb6913ccd 100644 --- a/Items/Placeables/UelibloomBrickWall.cs +++ b/Items/Placeables/UelibloomBrickWall.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class UelibloomBrickWall : ModItem { @@ -19,13 +19,13 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("UelibloomBrickWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("UelibloomBrick")); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddTile(18); recipe.AddRecipe(); diff --git a/Items/Placeables/UelibloomOre.cs b/Items/Placeables/UelibloomOre.cs index 710c304e8f..201c550400 100644 --- a/Items/Placeables/UelibloomOre.cs +++ b/Items/Placeables/UelibloomOre.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class UelibloomOre : ModItem { @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = mod.TileType("UelibloomOre"); + item.createTile = ModContent.TileType(); item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Placeables/Voidstone.cs b/Items/Placeables/Voidstone.cs index c760e35514..9702bc2773 100644 --- a/Items/Placeables/Voidstone.cs +++ b/Items/Placeables/Voidstone.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class Voidstone : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 10; item.useStyle = 1; item.consumable = true; - item.createTile = mod.TileType("Voidstone"); + item.createTile = ModContent.TileType(); } public override void AddRecipes() diff --git a/Items/Placeables/VoidstoneWall.cs b/Items/Placeables/VoidstoneWall.cs index af3f8fea2a..073acec346 100644 --- a/Items/Placeables/VoidstoneWall.cs +++ b/Items/Placeables/VoidstoneWall.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class VoidstoneWall : ModItem { @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables item.useTime = 7; item.useStyle = 1; item.consumable = true; - item.createWall = mod.WallType("VoidstoneWall"); + item.createWall = ModContent.WallType(); } public override void AddRecipes() diff --git a/Items/Placeables/WeaverTrophy.cs b/Items/Placeables/WeaverTrophy.cs index b86cd43a0a..fe08a7b6cc 100644 --- a/Items/Placeables/WeaverTrophy.cs +++ b/Items/Placeables/WeaverTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class WeaverTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 12; } } diff --git a/Items/Placeables/YharonTrophy.cs b/Items/Placeables/YharonTrophy.cs index 25cc2cb510..78f095fa84 100644 --- a/Items/Placeables/YharonTrophy.cs +++ b/Items/Placeables/YharonTrophy.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Placeables +namespace CalamityMod.Items { public class YharonTrophy : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.value = 50000; item.rare = 1; - item.createTile = mod.TileType("BossTrophy"); + item.createTile = ModContent.TileType(); item.placeStyle = 10; } } diff --git a/Items/PlaguebringerGoliath/Abomination.cs b/Items/PlaguebringerGoliath/Abomination.cs index 3f9bed5496..750f0e7ba2 100644 --- a/Items/PlaguebringerGoliath/Abomination.cs +++ b/Items/PlaguebringerGoliath/Abomination.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PlaguebringerGoliath +namespace CalamityMod.Items { public class Abomination : ModItem { @@ -27,12 +27,12 @@ namespace CalamityMod.Items.PlaguebringerGoliath public override bool CanUseItem(Player player) { - return player.ZoneJungle && !NPC.AnyNPCs(mod.NPCType("PlaguebringerGoliath")); + return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("PlaguebringerGoliath")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/PlaguebringerGoliath/BloomStone.cs b/Items/PlaguebringerGoliath/BloomStone.cs index 9fd4b8985a..0bd8c0c334 100644 --- a/Items/PlaguebringerGoliath/BloomStone.cs +++ b/Items/PlaguebringerGoliath/BloomStone.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PlaguebringerGoliath +namespace CalamityMod.Items { public class BloomStone : ModItem { diff --git a/Items/PlaguebringerGoliath/PlagueCellCluster.cs b/Items/PlaguebringerGoliath/PlagueCellCluster.cs index e19acb3b75..847477f993 100644 --- a/Items/PlaguebringerGoliath/PlagueCellCluster.cs +++ b/Items/PlaguebringerGoliath/PlagueCellCluster.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PlaguebringerGoliath +namespace CalamityMod.Items { public class PlagueCellCluster : ModItem { diff --git a/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs b/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs index 002252435e..2b53720022 100644 --- a/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs +++ b/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs @@ -1,13 +1,12 @@ -using CalamityMod.Utilities; using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PlaguebringerGoliath +namespace CalamityMod.Items { public class PlaguebringerGoliathBag : ModItem { - public override int BossBagNPC => mod.NPCType("PlaguebringerGoliath"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -35,26 +34,26 @@ namespace CalamityMod.Items.PlaguebringerGoliath player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("PlagueCellCluster"), 13, 17); + DropHelper.DropItem(player, ModContent.ItemType(), 13, 17); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("VirulentKatana"), 3); // Virulence - DropHelper.DropItemChance(player, mod.ItemType("DiseasedPike"), 3); - DropHelper.DropItemChance(player, mod.ItemType("ThePlaguebringer"), 3); // Pandemic - DropHelper.DropItemChance(player, mod.ItemType("Malevolence"), 3); - DropHelper.DropItemChance(player, mod.ItemType("PestilentDefiler"), 3); - DropHelper.DropItemChance(player, mod.ItemType("TheHive"), 3); - DropHelper.DropItemChance(player, mod.ItemType("MepheticSprayer"), 3); // Blight Spewer - DropHelper.DropItemChance(player, mod.ItemType("PlagueStaff"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Virulence + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Pandemic + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Blight Spewer + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); float malachiteChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("Malachite"), CalamityWorld.revenge, malachiteChance); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, malachiteChance); // Equipment - DropHelper.DropItem(player, mod.ItemType("ToxicHeart")); - DropHelper.DropItemChance(player, mod.ItemType("BloomStone"), 10); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemChance(player, ModContent.ItemType(), 10); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("PlaguebringerGoliathMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); } } } diff --git a/Items/PlaguebringerGoliath/ToxicHeart.cs b/Items/PlaguebringerGoliath/ToxicHeart.cs index f3d64c93f1..5d6c5e04f6 100644 --- a/Items/PlaguebringerGoliath/ToxicHeart.cs +++ b/Items/PlaguebringerGoliath/ToxicHeart.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.PlaguebringerGoliath +namespace CalamityMod.Items { public class ToxicHeart : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.PlaguebringerGoliath { int plagueCounter = 0; Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.05f, 1f, 0.1f); - int num = mod.BuffType("Plague"); + int num = ModContent.BuffType(); float num2 = 300f; bool flag = plagueCounter % 60 == 0; int num3 = 30; diff --git a/Items/Polterghast/Affliction.cs b/Items/Polterghast/Affliction.cs index c65ad727ff..e39751eb73 100644 --- a/Items/Polterghast/Affliction.cs +++ b/Items/Polterghast/Affliction.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Polterghast +namespace CalamityMod.Items { public class Affliction : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Polterghast int myPlayer = Main.myPlayer; if (Main.player[myPlayer].team == player.team && player.team != 0) { - Main.player[myPlayer].AddBuff(mod.BuffType("Afflicted"), 20, true); + Main.player[myPlayer].AddBuff(ModContent.BuffType(), 20, true); } } } diff --git a/Items/Polterghast/NecroplasmicBeacon.cs b/Items/Polterghast/NecroplasmicBeacon.cs index 652ba675dd..5e2f1aea59 100644 --- a/Items/Polterghast/NecroplasmicBeacon.cs +++ b/Items/Polterghast/NecroplasmicBeacon.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Polterghast +namespace CalamityMod.Items { public class NecroplasmicBeacon : ModItem { @@ -28,12 +28,12 @@ namespace CalamityMod.Items.Polterghast public override bool CanUseItem(Player player) { - return player.ZoneDungeon && !NPC.AnyNPCs(mod.NPCType("Polterghast")) && CalamityWorld.downedBossAny; + return player.ZoneDungeon && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.downedBossAny; } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Polterghast")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Polterghast/PolterghastBag.cs b/Items/Polterghast/PolterghastBag.cs index e26abd2493..ac48c49981 100644 --- a/Items/Polterghast/PolterghastBag.cs +++ b/Items/Polterghast/PolterghastBag.cs @@ -1,13 +1,12 @@ -using CalamityMod.Utilities; using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Polterghast +namespace CalamityMod.Items { public class PolterghastBag : ModItem { - public override int BossBagNPC => mod.NPCType("Polterghast"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -35,20 +34,20 @@ namespace CalamityMod.Items.Polterghast player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("RuinousSoul"), 6, 10); + DropHelper.DropItem(player, ModContent.ItemType(), 6, 10); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("TerrorBlade"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BansheeHook"), 3); - DropHelper.DropItemChance(player, mod.ItemType("DaemonsFlame"), 3); - DropHelper.DropItemChance(player, mod.ItemType("FatesReveal"), 3); - DropHelper.DropItemChance(player, mod.ItemType("GhastlyVisage"), 3); - DropHelper.DropItemChance(player, mod.ItemType("EtherealSubjugator"), 3); - DropHelper.DropItemChance(player, mod.ItemType("GhoulishGouger"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Equipment - DropHelper.DropItem(player, mod.ItemType("Affliction")); - DropHelper.DropItemCondition(player, mod.ItemType("Ectoheart"), CalamityWorld.revenge); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); // Vanity // there is no Polterghast mask yet diff --git a/Items/Polterghast/RuinousSoul.cs b/Items/Polterghast/RuinousSoul.cs index 14f38a97b2..04743cb4d5 100644 --- a/Items/Polterghast/RuinousSoul.cs +++ b/Items/Polterghast/RuinousSoul.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Polterghast +namespace CalamityMod.Items { public class RuinousSoul : ModItem { diff --git a/Items/Potions/AstralInjection.cs b/Items/Potions/AstralInjection.cs index f9208fc760..72db9511c8 100644 --- a/Items/Potions/AstralInjection.cs +++ b/Items/Potions/AstralInjection.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class AstralInjection : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("AstralInjectionBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 180; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/BoundingPotion.cs b/Items/Potions/BoundingPotion.cs index 59b8f795ce..684c9d9feb 100644 --- a/Items/Potions/BoundingPotion.cs +++ b/Items/Potions/BoundingPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class BoundingPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("BoundingBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 10800; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/CadencePotion.cs b/Items/Potions/CadencePotion.cs index 6d4d025318..2c9706b68c 100644 --- a/Items/Potions/CadencePotion.cs +++ b/Items/Potions/CadencePotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class CadencePotion : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Cadence"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/CalamitasBrew.cs b/Items/Potions/CalamitasBrew.cs index ffdef135e4..b6bf718b4b 100644 --- a/Items/Potions/CalamitasBrew.cs +++ b/Items/Potions/CalamitasBrew.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class CalamitasBrew : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("AbyssalWeapon"); + item.buffType = ModContent.BuffType(); item.buffTime = 36000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/CalciumPotion.cs b/Items/Potions/CalciumPotion.cs index 40a9a68433..9530c4d298 100644 --- a/Items/Potions/CalciumPotion.cs +++ b/Items/Potions/CalciumPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class CalciumPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("CalciumBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 36000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/CeaselessHungerPotion.cs b/Items/Potions/CeaselessHungerPotion.cs index ddad5cc491..09db91b964 100644 --- a/Items/Potions/CeaselessHungerPotion.cs +++ b/Items/Potions/CeaselessHungerPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class CeaselessHungerPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("CeaselessHunger"); + item.buffType = ModContent.BuffType(); item.buffTime = 600; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/CrumblingPotion.cs b/Items/Potions/CrumblingPotion.cs index 8c8bd44e98..9efe262422 100644 --- a/Items/Potions/CrumblingPotion.cs +++ b/Items/Potions/CrumblingPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class CrumblingPotion : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("ArmorCrumbling"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/DraconicElixir.cs b/Items/Potions/DraconicElixir.cs index 0418433541..5d2db83103 100644 --- a/Items/Potions/DraconicElixir.cs +++ b/Items/Potions/DraconicElixir.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class DraconicElixir : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("DraconicSurgeBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/GravityNormalizerPotion.cs b/Items/Potions/GravityNormalizerPotion.cs index 2333119d15..1d45b007db 100644 --- a/Items/Potions/GravityNormalizerPotion.cs +++ b/Items/Potions/GravityNormalizerPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class GravityNormalizerPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("GravityNormalizerBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/HolyWrathPotion.cs b/Items/Potions/HolyWrathPotion.cs index 18848afe79..7e1f65a9a8 100644 --- a/Items/Potions/HolyWrathPotion.cs +++ b/Items/Potions/HolyWrathPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class HolyWrathPotion : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("HolyWrathBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 10800; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/OmegaHealingPotion.cs b/Items/Potions/OmegaHealingPotion.cs index 0686b7d9f0..81e65082d0 100644 --- a/Items/Potions/OmegaHealingPotion.cs +++ b/Items/Potions/OmegaHealingPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class OmegaHealingPotion : ModItem { diff --git a/Items/Potions/PenumbraPotion.cs b/Items/Potions/PenumbraPotion.cs index 0f99ef43d6..7adb447a6d 100644 --- a/Items/Potions/PenumbraPotion.cs +++ b/Items/Potions/PenumbraPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class PenumbraPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("PenumbraBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/PhotosynthesisPotion.cs b/Items/Potions/PhotosynthesisPotion.cs index 049f4761c7..0e1fafff58 100644 --- a/Items/Potions/PhotosynthesisPotion.cs +++ b/Items/Potions/PhotosynthesisPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class PhotosynthesisPotion : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("PhotosynthesisBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/PotionofOmniscience.cs b/Items/Potions/PotionofOmniscience.cs index 0b741b8139..5663e09ec3 100644 --- a/Items/Potions/PotionofOmniscience.cs +++ b/Items/Potions/PotionofOmniscience.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class PotionofOmniscience : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Omniscience"); + item.buffType = ModContent.BuffType(); item.buffTime = 36000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/ProfanedRagePotion.cs b/Items/Potions/ProfanedRagePotion.cs index 3f51d871de..e06585b2de 100644 --- a/Items/Potions/ProfanedRagePotion.cs +++ b/Items/Potions/ProfanedRagePotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class ProfanedRagePotion : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("ProfanedRageBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 10800; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/PurifiedJam.cs b/Items/Potions/PurifiedJam.cs index 99a939cbeb..3f81fcc3bd 100644 --- a/Items/Potions/PurifiedJam.cs +++ b/Items/Potions/PurifiedJam.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class PurifiedJam : ModItem { @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Potions public override bool UseItem(Player player) { - player.AddBuff(mod.BuffType("Invincible"), CalamityWorld.death ? 300 : 600); + player.AddBuff(ModContent.BuffType(), CalamityWorld.death ? 300 : 600); player.AddBuff(BuffID.PotionSickness, player.pStone ? 1500 : 1800); return true; } diff --git a/Items/Potions/RevivifyPotion.cs b/Items/Potions/RevivifyPotion.cs index da9c7980dc..fc7b4e0ce8 100644 --- a/Items/Potions/RevivifyPotion.cs +++ b/Items/Potions/RevivifyPotion.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class RevivifyPotion : ModItem { diff --git a/Items/Potions/ShatteringPotion.cs b/Items/Potions/ShatteringPotion.cs index f07813fb23..9776f8cd7d 100644 --- a/Items/Potions/ShatteringPotion.cs +++ b/Items/Potions/ShatteringPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class ShatteringPotion : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("ArmorShattering"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/SoaringPotion.cs b/Items/Potions/SoaringPotion.cs index b44862c98d..1a34a3cb32 100644 --- a/Items/Potions/SoaringPotion.cs +++ b/Items/Potions/SoaringPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class SoaringPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Soaring"); + item.buffType = ModContent.BuffType(); item.buffTime = 14400; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/SupremeHealingPotion.cs b/Items/Potions/SupremeHealingPotion.cs index 6cdc72734d..183ceec606 100644 --- a/Items/Potions/SupremeHealingPotion.cs +++ b/Items/Potions/SupremeHealingPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class SupremeHealingPotion : ModItem { diff --git a/Items/Potions/SupremeManaPotion.cs b/Items/Potions/SupremeManaPotion.cs index 63e0f1fa73..959643bb84 100644 --- a/Items/Potions/SupremeManaPotion.cs +++ b/Items/Potions/SupremeManaPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class SupremeManaPotion : ModItem { diff --git a/Items/Potions/TitanScalePotion.cs b/Items/Potions/TitanScalePotion.cs index 4d14e49a8d..b6dfef887f 100644 --- a/Items/Potions/TitanScalePotion.cs +++ b/Items/Potions/TitanScalePotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class TitanScalePotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("TitanScale"); + item.buffType = ModContent.BuffType(); item.buffTime = 18000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/TriumphPotion.cs b/Items/Potions/TriumphPotion.cs index 1e3098adda..898c8c863a 100644 --- a/Items/Potions/TriumphPotion.cs +++ b/Items/Potions/TriumphPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class TriumphPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("TriumphBuff"); + item.buffType = ModContent.BuffType(); item.buffTime = 7200; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/YharimsStimulants.cs b/Items/Potions/YharimsStimulants.cs index b1b834199e..98af03df53 100644 --- a/Items/Potions/YharimsStimulants.cs +++ b/Items/Potions/YharimsStimulants.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class YharimsStimulants : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("YharimPower"); + item.buffType = ModContent.BuffType(); item.buffTime = 108000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/ZenPotion.cs b/Items/Potions/ZenPotion.cs index cf7103ea2f..7ea69e92d1 100644 --- a/Items/Potions/ZenPotion.cs +++ b/Items/Potions/ZenPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class ZenPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Zen"); + item.buffType = ModContent.BuffType(); item.buffTime = 36000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/ZergPotion.cs b/Items/Potions/ZergPotion.cs index 119a8a45e0..610536344c 100644 --- a/Items/Potions/ZergPotion.cs +++ b/Items/Potions/ZergPotion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Potions +namespace CalamityMod.Items { public class ZergPotion : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.buffType = mod.BuffType("Zerg"); + item.buffType = ModContent.BuffType(); item.buffTime = 36000; item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/ProfanedGuardian/ProfanedShard.cs b/Items/ProfanedGuardian/ProfanedShard.cs index d32c36d9b3..ecd47b2cf5 100644 --- a/Items/ProfanedGuardian/ProfanedShard.cs +++ b/Items/ProfanedGuardian/ProfanedShard.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ProfanedGuardian +namespace CalamityMod.Items { public class ProfanedShard : ModItem { @@ -28,12 +28,12 @@ namespace CalamityMod.Items.ProfanedGuardian public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(mod.NPCType("ProfanedGuardianBoss")) && Main.dayTime && (player.ZoneHoly || player.ZoneUnderworldHeight); + return !NPC.AnyNPCs(ModContent.NPCType()) && Main.dayTime && (player.ZoneHoly || player.ZoneUnderworldHeight); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("ProfanedGuardianBoss")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Providence/DivineGeode.cs b/Items/Providence/DivineGeode.cs index 2af8483a57..09bc0caea4 100644 --- a/Items/Providence/DivineGeode.cs +++ b/Items/Providence/DivineGeode.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Providence +namespace CalamityMod.Items { public class DivineGeode : ModItem { diff --git a/Items/Providence/ElysianAegis.cs b/Items/Providence/ElysianAegis.cs index 37a8a22474..718a15865f 100644 --- a/Items/Providence/ElysianAegis.cs +++ b/Items/Providence/ElysianAegis.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Providence +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Shield)] public class ElysianAegis : ModItem diff --git a/Items/Providence/ElysianWings.cs b/Items/Providence/ElysianWings.cs index 756aa42c88..186590bbbc 100644 --- a/Items/Providence/ElysianWings.cs +++ b/Items/Providence/ElysianWings.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Providence +namespace CalamityMod.Items { [AutoloadEquip(EquipType.Wings)] public class ElysianWings : ModItem diff --git a/Items/Providence/ProfanedCore.cs b/Items/Providence/ProfanedCore.cs index 94e613b118..f09599ba5c 100644 --- a/Items/Providence/ProfanedCore.cs +++ b/Items/Providence/ProfanedCore.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Providence +namespace CalamityMod.Items { public class ProfanedCore : ModItem { @@ -30,12 +30,12 @@ namespace CalamityMod.Items.Providence public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(mod.NPCType("Providence")) && Main.dayTime && (player.ZoneHoly || player.ZoneUnderworldHeight) && CalamityWorld.downedBossAny; + return !NPC.AnyNPCs(ModContent.NPCType()) && Main.dayTime && (player.ZoneHoly || player.ZoneUnderworldHeight) && CalamityWorld.downedBossAny; } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Providence")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Providence/ProfanedCoreUnlimited.cs b/Items/Providence/ProfanedCoreUnlimited.cs index 9ba24eef05..db711f0654 100644 --- a/Items/Providence/ProfanedCoreUnlimited.cs +++ b/Items/Providence/ProfanedCoreUnlimited.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Providence +namespace CalamityMod.Items { public class ProfanedCoreUnlimited : ModItem { @@ -30,12 +30,12 @@ namespace CalamityMod.Items.Providence public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(mod.NPCType("Providence")) && Main.dayTime && (player.ZoneHoly || player.ZoneUnderworldHeight) && CalamityWorld.downedBossAny; + return !NPC.AnyNPCs(ModContent.NPCType()) && Main.dayTime && (player.ZoneHoly || player.ZoneUnderworldHeight) && CalamityWorld.downedBossAny; } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Providence")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Providence/ProvidenceBag.cs b/Items/Providence/ProvidenceBag.cs index 1db6090087..8defcbb73d 100644 --- a/Items/Providence/ProvidenceBag.cs +++ b/Items/Providence/ProvidenceBag.cs @@ -1,12 +1,11 @@ -using CalamityMod.Utilities; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Providence +namespace CalamityMod.Items { public class ProvidenceBag : ModItem { - public override int BossBagNPC => mod.NPCType("Providence"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -34,25 +33,25 @@ namespace CalamityMod.Items.Providence player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("UnholyEssence"), 25, 35); - DropHelper.DropItem(player, mod.ItemType("DivineGeode"), 15, 25); + DropHelper.DropItem(player, ModContent.ItemType(), 25, 35); + DropHelper.DropItem(player, ModContent.ItemType(), 15, 25); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("HolyCollider"), 3); - DropHelper.DropItemChance(player, mod.ItemType("SolarFlare"), 3); - DropHelper.DropItemChance(player, mod.ItemType("TelluricGlare"), 3); - DropHelper.DropItemChance(player, mod.ItemType("BlissfulBombardier"), 3); - DropHelper.DropItemChance(player, mod.ItemType("PurgeGuzzler"), 3); - DropHelper.DropItemChance(player, mod.ItemType("MoltenAmputator"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Equipment - DropHelper.DropItemChance(player, mod.ItemType("SamuraiBadge"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("ProvidenceMask"), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); // Other - DropHelper.DropItem(player, mod.ItemType("RuneofCos")); + DropHelper.DropItem(player, ModContent.ItemType()); } } } diff --git a/Items/Providence/UnholyEssence.cs b/Items/Providence/UnholyEssence.cs index 73f47a5017..c772141315 100644 --- a/Items/Providence/UnholyEssence.cs +++ b/Items/Providence/UnholyEssence.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Providence +namespace CalamityMod.Items { public class UnholyEssence : ModItem { diff --git a/Items/Rock.cs b/Items/Rock.cs index 7c3b07954f..6e55c1abee 100644 --- a/Items/Rock.cs +++ b/Items/Rock.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Items { diff --git a/Items/Scavenger/AncientMedallion.cs b/Items/Scavenger/AncientMedallion.cs index 84d846dd92..c32ce96605 100644 --- a/Items/Scavenger/AncientMedallion.cs +++ b/Items/Scavenger/AncientMedallion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Scavenger +namespace CalamityMod.Items { public class AncientMedallion : ModItem { @@ -27,14 +27,14 @@ namespace CalamityMod.Items.Scavenger public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(mod.NPCType("ScavengerBody")) && player.ZoneOverworldHeight; + return !NPC.AnyNPCs(ModContent.NPCType()) && player.ZoneOverworldHeight; } public override bool UseItem(Player player) { if (Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-100, 101)), (int)(player.position.Y - 250f), mod.NPCType("ScavengerBody"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(player.position.X + (float)Main.rand.Next(-100, 101)), (int)(player.position.Y - 250f), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); Main.PlaySound(SoundID.Roar, player.position, 0); } return true; diff --git a/Items/Scavenger/BloodPact.cs b/Items/Scavenger/BloodPact.cs index c69fee5ca9..5e4b2d8ae1 100644 --- a/Items/Scavenger/BloodPact.cs +++ b/Items/Scavenger/BloodPact.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Scavenger +namespace CalamityMod.Items { public class BloodPact : ModItem { diff --git a/Items/Scavenger/FleshTotem.cs b/Items/Scavenger/FleshTotem.cs index c0f4761509..36c3272c76 100644 --- a/Items/Scavenger/FleshTotem.cs +++ b/Items/Scavenger/FleshTotem.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Scavenger +namespace CalamityMod.Items { public class FleshTotem : ModItem { diff --git a/Items/Scavenger/RavagerBag.cs b/Items/Scavenger/RavagerBag.cs index c118badfc6..35dcbb82ec 100644 --- a/Items/Scavenger/RavagerBag.cs +++ b/Items/Scavenger/RavagerBag.cs @@ -1,13 +1,12 @@ -using CalamityMod.Utilities; using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Scavenger +namespace CalamityMod.Items { public class RavagerBag : ModItem { - public override int BossBagNPC => mod.NPCType("ScavengerBody"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -39,30 +38,30 @@ namespace CalamityMod.Items.Scavenger int barMax = CalamityWorld.downedProvidence ? 12 : 3; int coreMin = CalamityWorld.downedProvidence ? 2 : 1; int coreMax = CalamityWorld.downedProvidence ? 4 : 3; - DropHelper.DropItemCondition(player, mod.ItemType("Bloodstone"), CalamityWorld.downedProvidence, 60, 70); - DropHelper.DropItem(player, mod.ItemType("VerstaltiteBar"), barMin, barMax); - DropHelper.DropItem(player, mod.ItemType("DraedonBar"), barMin, barMax); - DropHelper.DropItem(player, mod.ItemType("CruptixBar"), barMin, barMax); - DropHelper.DropItem(player, mod.ItemType("CoreofCinder"), coreMin, coreMax); - DropHelper.DropItem(player, mod.ItemType("CoreofEleum"), coreMin, coreMax); - DropHelper.DropItem(player, mod.ItemType("CoreofChaos"), coreMin, coreMax); - DropHelper.DropItemCondition(player, mod.ItemType("BarofLife"), CalamityWorld.downedProvidence); - DropHelper.DropItemCondition(player, mod.ItemType("CoreofCalamity"), CalamityWorld.downedProvidence, 0.5f); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence, 60, 70); + DropHelper.DropItem(player, ModContent.ItemType(), barMin, barMax); + DropHelper.DropItem(player, ModContent.ItemType(), barMin, barMax); + DropHelper.DropItem(player, ModContent.ItemType(), barMin, barMax); + DropHelper.DropItem(player, ModContent.ItemType(), coreMin, coreMax); + DropHelper.DropItem(player, ModContent.ItemType(), coreMin, coreMax); + DropHelper.DropItem(player, ModContent.ItemType(), coreMin, coreMax); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence, 0.5f); // Weapons DropHelper.DropItemFromSet(player, - mod.ItemType("UltimusCleaver"), - mod.ItemType("RealmRavager"), - mod.ItemType("Hematemesis"), - mod.ItemType("SpikecragStaff"), - mod.ItemType("CraniumSmasher")); - DropHelper.DropItemFromSetChance(player, 0.05f, mod.ItemType("CorpusAvertorMelee"), mod.ItemType("CorpusAvertor")); + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType()); + DropHelper.DropItemFromSetChance(player, 0.05f, ModContent.ItemType(), ModContent.ItemType()); // Equipment - DropHelper.DropItemChance(player, mod.ItemType("BloodPact"), 0.5f); - DropHelper.DropItemChance(player, mod.ItemType("FleshTotem"), 0.5f); - DropHelper.DropItemCondition(player, mod.ItemType("BloodflareCore"), CalamityWorld.downedProvidence); - DropHelper.DropItemCondition(player, mod.ItemType("InfernalBlood"), CalamityWorld.revenge); + DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f); + DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); // Vanity // there is no Ravager mask yet diff --git a/Items/ShrineItems/CorruptionEffigy.cs b/Items/ShrineItems/CorruptionEffigy.cs index 23a1ea17c5..5ce31573cf 100644 --- a/Items/ShrineItems/CorruptionEffigy.cs +++ b/Items/ShrineItems/CorruptionEffigy.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { public class CorruptionEffigy : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.ShrineItems item.consumable = true; item.value = Item.buyPrice(0, 9, 0, 0); item.rare = 3; - item.createTile = mod.TileType("CorruptionEffigy"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/ShrineItems/CrimsonEffigy.cs b/Items/ShrineItems/CrimsonEffigy.cs index 830780c4c0..49cb45594a 100644 --- a/Items/ShrineItems/CrimsonEffigy.cs +++ b/Items/ShrineItems/CrimsonEffigy.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { public class CrimsonEffigy : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.ShrineItems item.consumable = true; item.value = Item.buyPrice(0, 9, 0, 0); item.rare = 3; - item.createTile = mod.TileType("CrimsonEffigy"); + item.createTile = ModContent.TileType(); } } } diff --git a/Items/ShrineItems/FungalSymbiote.cs b/Items/ShrineItems/FungalSymbiote.cs index 31c22b023d..b1e1dadeb5 100644 --- a/Items/ShrineItems/FungalSymbiote.cs +++ b/Items/ShrineItems/FungalSymbiote.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { public class FungalSymbiote : ModItem { diff --git a/Items/ShrineItems/GladiatorsLocket.cs b/Items/ShrineItems/GladiatorsLocket.cs index ff9b9f6a23..aff643920f 100644 --- a/Items/ShrineItems/GladiatorsLocket.cs +++ b/Items/ShrineItems/GladiatorsLocket.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { public class GladiatorsLocket : ModItem { @@ -38,14 +38,14 @@ namespace CalamityMod.Items.ShrineItems modPlayer.gladiatorSword = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("GladiatorSwords")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("GladiatorSwords"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("GladiatorSword")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("GladiatorSword"), (int)(20f * player.minionDamage), 6f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("GladiatorSword2"), (int)(20f * player.minionDamage), 6f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(20f * player.minionDamage), 6f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(20f * player.minionDamage), 6f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/ShrineItems/LuxorsGift.cs b/Items/ShrineItems/LuxorsGift.cs index e4066ee4fc..768a68064f 100644 --- a/Items/ShrineItems/LuxorsGift.cs +++ b/Items/ShrineItems/LuxorsGift.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { public class LuxorsGift : ModItem { diff --git a/Items/ShrineItems/OnyxExcavatorKey.cs b/Items/ShrineItems/OnyxExcavatorKey.cs index ad827d7ba8..723ca5fddc 100644 --- a/Items/ShrineItems/OnyxExcavatorKey.cs +++ b/Items/ShrineItems/OnyxExcavatorKey.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { class OnyxExcavatorKey : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.ShrineItems item.value = Item.buyPrice(0, 9, 0, 0); item.UseSound = SoundID.Item23; item.noMelee = true; - item.mountType = mod.MountType("OnyxExcavator"); + item.mountType = ModContent.MountType(); } } } diff --git a/Items/ShrineItems/TrinketofChi.cs b/Items/ShrineItems/TrinketofChi.cs index dd49a4e7cb..1041fac95c 100644 --- a/Items/ShrineItems/TrinketofChi.cs +++ b/Items/ShrineItems/TrinketofChi.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { public class TrinketofChi : ModItem { diff --git a/Items/ShrineItems/TundraLeash.cs b/Items/ShrineItems/TundraLeash.cs index 048f186953..b3bbc54dc5 100644 --- a/Items/ShrineItems/TundraLeash.cs +++ b/Items/ShrineItems/TundraLeash.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { class TundraLeash : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.ShrineItems item.value = Item.buyPrice(0, 9, 0, 0); item.UseSound = SoundID.NPCHit56; item.noMelee = true; - item.mountType = mod.MountType("AngryDog"); + item.mountType = ModContent.MountType(); } } } diff --git a/Items/ShrineItems/UnstablePrism.cs b/Items/ShrineItems/UnstablePrism.cs index a9c899a5ca..34be80dcc9 100644 --- a/Items/ShrineItems/UnstablePrism.cs +++ b/Items/ShrineItems/UnstablePrism.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.ShrineItems +namespace CalamityMod.Items { public class UnstablePrism : ModItem { diff --git a/Items/SlimeGod/ManaOverloader.cs b/Items/SlimeGod/ManaOverloader.cs index 873ac02dd6..011173626c 100644 --- a/Items/SlimeGod/ManaOverloader.cs +++ b/Items/SlimeGod/ManaOverloader.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SlimeGod +namespace CalamityMod.Items { public class ManaOverloader : ModItem { diff --git a/Items/SlimeGod/OverloadedSludge.cs b/Items/SlimeGod/OverloadedSludge.cs index 7fd4878aba..5437ec49ed 100644 --- a/Items/SlimeGod/OverloadedSludge.cs +++ b/Items/SlimeGod/OverloadedSludge.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SlimeGod +namespace CalamityMod.Items { public class OverloadedSludge : ModItem { @@ -27,15 +27,15 @@ namespace CalamityMod.Items.SlimeGod public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGod")) && - !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); + return !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && + !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("SlimeGod")); - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("SlimeGodRun")); - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("SlimeGodCore")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/SlimeGod/PurifiedGel.cs b/Items/SlimeGod/PurifiedGel.cs index d6361ee343..48fc2d51fd 100644 --- a/Items/SlimeGod/PurifiedGel.cs +++ b/Items/SlimeGod/PurifiedGel.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SlimeGod +namespace CalamityMod.Items { public class PurifiedGel : ModItem { diff --git a/Items/SlimeGod/SlimeGodBag.cs b/Items/SlimeGod/SlimeGodBag.cs index 06b4db7c08..5065708afb 100644 --- a/Items/SlimeGod/SlimeGodBag.cs +++ b/Items/SlimeGod/SlimeGodBag.cs @@ -1,14 +1,13 @@ -using CalamityMod.Utilities; using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SlimeGod +namespace CalamityMod.Items { public class SlimeGodBag : ModItem { - public override int BossBagNPC => mod.NPCType("SlimeGodRun"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -35,25 +34,25 @@ namespace CalamityMod.Items.SlimeGod { // Materials DropHelper.DropItem(player, ItemID.Gel, 30, 60); - DropHelper.DropItem(player, mod.ItemType("PurifiedGel"), 30, 50); + DropHelper.DropItem(player, ModContent.ItemType(), 30, 50); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("OverloadedBlaster"), 3); - DropHelper.DropItemChance(player, mod.ItemType("AbyssalTome"), 3); - DropHelper.DropItemChance(player, mod.ItemType("EldritchTome"), 3); - DropHelper.DropItemChance(player, mod.ItemType("CorroslimeStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("CrimslimeStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("GelDart"), 3, 100, 125); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3, 100, 125); // Equipment - DropHelper.DropItem(player, mod.ItemType("ManaOverloader")); - DropHelper.DropItemCondition(player, mod.ItemType("ElectrolyteGelPack"), CalamityWorld.revenge); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); // Vanity - DropHelper.DropItemFromSetChance(player, 7, mod.ItemType("SlimeGodMask"), mod.ItemType("SlimeGodMask2")); + DropHelper.DropItemFromSetChance(player, 7, ModContent.ItemType(), ModContent.ItemType()); // Other - DropHelper.DropItem(player, mod.ItemType("StaticRefiner")); + DropHelper.DropItem(player, ModContent.ItemType()); } } } diff --git a/Items/StarterBag.cs b/Items/StarterBag.cs index 7c8013b2a3..ad87811689 100644 --- a/Items/StarterBag.cs +++ b/Items/StarterBag.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Items { @@ -35,7 +35,7 @@ namespace CalamityMod.Items DropHelper.DropItem(player, ItemID.AmethystStaff); DropHelper.DropItem(player, ItemID.ManaCrystal); DropHelper.DropItem(player, ItemID.SlimeStaff); - DropHelper.DropItem(player, mod.ItemType("WulfrumKnife"), 150); + DropHelper.DropItem(player, ModContent.ItemType(), 150); // Tools / Utility DropHelper.DropItem(player, ItemID.CopperHammer); @@ -51,8 +51,8 @@ namespace CalamityMod.Items DropHelper.DropItem(player, ItemID.Chest, 3); // Difficulty items - DropHelper.DropItem(player, mod.ItemType("Death")); - DropHelper.DropItem(player, mod.ItemType("DefiledRune")); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItem(player, ModContent.ItemType()); // Speedrun King Slime DropHelper.DropItem(player, ItemID.SlimeCrown); @@ -60,7 +60,7 @@ namespace CalamityMod.Items // Music box (if music mod installed) Mod musicMod = ModLoader.GetMod("CalamityModMusic"); if (musicMod != null) - DropHelper.DropItem(player, musicMod.ItemType("CalamityMusicbox")); + DropHelper.DropItem(player, musicModContent.ItemType()); } } } diff --git a/Items/SummonsAndClimateChange/AridArtifact.cs b/Items/SummonsAndClimateChange/AridArtifact.cs index 2e5c841623..5ca533056e 100644 --- a/Items/SummonsAndClimateChange/AridArtifact.cs +++ b/Items/SummonsAndClimateChange/AridArtifact.cs @@ -1,10 +1,9 @@ using System.Reflection; using Terraria; -using Terraria.GameContent.Events; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class AridArtifact : ModItem { diff --git a/Items/SummonsAndClimateChange/BloodIdol.cs b/Items/SummonsAndClimateChange/BloodIdol.cs index 4775dde1ec..f0e10e88f8 100644 --- a/Items/SummonsAndClimateChange/BloodIdol.cs +++ b/Items/SummonsAndClimateChange/BloodIdol.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class BloodIdol : ModItem { diff --git a/Items/SummonsAndClimateChange/BossRush.cs b/Items/SummonsAndClimateChange/BossRush.cs index 24203650ba..1985006824 100644 --- a/Items/SummonsAndClimateChange/BossRush.cs +++ b/Items/SummonsAndClimateChange/BossRush.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class BossRush : ModItem { diff --git a/Items/SummonsAndClimateChange/BulbofDoom.cs b/Items/SummonsAndClimateChange/BulbofDoom.cs index 8121166643..8c76678e41 100644 --- a/Items/SummonsAndClimateChange/BulbofDoom.cs +++ b/Items/SummonsAndClimateChange/BulbofDoom.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class BulbofDoom : ModItem { diff --git a/Items/SummonsAndClimateChange/Cosmolight.cs b/Items/SummonsAndClimateChange/Cosmolight.cs index 0779a99704..9d6f83759a 100644 --- a/Items/SummonsAndClimateChange/Cosmolight.cs +++ b/Items/SummonsAndClimateChange/Cosmolight.cs @@ -1,9 +1,9 @@ using CalamityMod.NPCs; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class Cosmolight : ModItem { diff --git a/Items/SummonsAndClimateChange/Daylight.cs b/Items/SummonsAndClimateChange/Daylight.cs index 790bfd7320..100adec252 100644 --- a/Items/SummonsAndClimateChange/Daylight.cs +++ b/Items/SummonsAndClimateChange/Daylight.cs @@ -1,9 +1,9 @@ using CalamityMod.NPCs; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class Daylight : ModItem { diff --git a/Items/SummonsAndClimateChange/DraedonsRemote.cs b/Items/SummonsAndClimateChange/DraedonsRemote.cs index d2829b5ff7..e5d524748b 100644 --- a/Items/SummonsAndClimateChange/DraedonsRemote.cs +++ b/Items/SummonsAndClimateChange/DraedonsRemote.cs @@ -1,9 +1,9 @@ using CalamityMod.NPCs; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class DraedonsRemote : ModItem { diff --git a/Items/SummonsAndClimateChange/EidolonTablet.cs b/Items/SummonsAndClimateChange/EidolonTablet.cs index df8628a544..3c6e9a1470 100644 --- a/Items/SummonsAndClimateChange/EidolonTablet.cs +++ b/Items/SummonsAndClimateChange/EidolonTablet.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class EidolonTablet : ModItem { diff --git a/Items/SummonsAndClimateChange/Moonlight.cs b/Items/SummonsAndClimateChange/Moonlight.cs index d100179d71..d807687e26 100644 --- a/Items/SummonsAndClimateChange/Moonlight.cs +++ b/Items/SummonsAndClimateChange/Moonlight.cs @@ -1,9 +1,9 @@ using CalamityMod.NPCs; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class Moonlight : ModItem { diff --git a/Items/SummonsAndClimateChange/OldPowerCell.cs b/Items/SummonsAndClimateChange/OldPowerCell.cs index 586edbfe47..c1b267554e 100644 --- a/Items/SummonsAndClimateChange/OldPowerCell.cs +++ b/Items/SummonsAndClimateChange/OldPowerCell.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SummonsAndClimateChange +namespace CalamityMod.Items { public class OldPowerCell : ModItem { diff --git a/Items/SunkenSea/AmidiasPendant.cs b/Items/SunkenSea/AmidiasPendant.cs index ae910c4e21..e8d8c8a3a8 100644 --- a/Items/SunkenSea/AmidiasPendant.cs +++ b/Items/SunkenSea/AmidiasPendant.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SunkenSea +namespace CalamityMod.Items { public class AmidiasPendant : ModItem { @@ -56,15 +56,15 @@ namespace CalamityMod.Items.SunkenSea switch (Main.rand.Next(3)) { case 0: - type = mod.ProjectileType("PendantProjectile1"); + type = ModContent.ProjectileType(); damage = 15; break; case 1: - type = mod.ProjectileType("PendantProjectile2"); + type = ModContent.ProjectileType(); damage = 15; break; case 2: - type = mod.ProjectileType("PendantProjectile3"); + type = ModContent.ProjectileType(); damage = 30; break; } diff --git a/Items/SunkenSea/GiantPearl.cs b/Items/SunkenSea/GiantPearl.cs index 985610eefa..546debdd1f 100644 --- a/Items/SunkenSea/GiantPearl.cs +++ b/Items/SunkenSea/GiantPearl.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SunkenSea +namespace CalamityMod.Items { public class GiantPearl : ModItem { diff --git a/Items/SunkenSea/MolluskHusk.cs b/Items/SunkenSea/MolluskHusk.cs index df64bd17fe..e91283e082 100644 --- a/Items/SunkenSea/MolluskHusk.cs +++ b/Items/SunkenSea/MolluskHusk.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SunkenSea +namespace CalamityMod.Items { public class MolluskHusk : ModItem { diff --git a/Items/SuperDummy.cs b/Items/SuperDummy.cs index 67a23fedaf..4058964fde 100644 --- a/Items/SuperDummy.cs +++ b/Items/SuperDummy.cs @@ -1,6 +1,6 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Items { @@ -40,7 +40,7 @@ namespace CalamityMod.Items { for (int i = 0; i < 200; i++) { - if (Main.npc[i].type == mod.NPCType("SuperDummy")) + if (Main.npc[i].type == ModContent.NPCType()) { Main.npc[i].life = 0; Main.npc[i].lifeRegen = 0; @@ -52,7 +52,7 @@ namespace CalamityMod.Items { int x = (int)Main.MouseWorld.X - 9; int y = (int)Main.MouseWorld.Y - 20; - NPC.NewNPC(x, y, mod.NPCType("SuperDummy")); + NPC.NewNPC(x, y, ModContent.NPCType()); } return true; } diff --git a/Items/SupremeCalamitas/EyeofExtinction.cs b/Items/SupremeCalamitas/EyeofExtinction.cs index b2b6dbc6ea..2ef7f4ae66 100644 --- a/Items/SupremeCalamitas/EyeofExtinction.cs +++ b/Items/SupremeCalamitas/EyeofExtinction.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.SupremeCalamitas +namespace CalamityMod.Items { public class EyeofExtinction : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.SupremeCalamitas public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")) && CalamityWorld.downedBossAny; + return !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.downedBossAny; } public override bool UseItem(Player player) @@ -43,7 +43,7 @@ namespace CalamityMod.Items.SupremeCalamitas { if (Main.tile[i, j] != null) { - if (Main.tile[i, j].type == mod.TileType("ArenaTile")) + if (Main.tile[i, j].type == ModContent.TileType()) { WorldGen.KillTile(i, j, false, false, false); if (Main.netMode == NetmodeID.Server) @@ -58,7 +58,7 @@ namespace CalamityMod.Items.SupremeCalamitas } } } - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("SupremeCalamitas")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/TheDevourerofGods/CosmicWorm.cs b/Items/TheDevourerofGods/CosmicWorm.cs index fb89d855a6..11587c6d15 100644 --- a/Items/TheDevourerofGods/CosmicWorm.cs +++ b/Items/TheDevourerofGods/CosmicWorm.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.TheDevourerofGods +namespace CalamityMod.Items { public class CosmicWorm : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.TheDevourerofGods public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(mod.NPCType("DevourerofGodsHead")) && !NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS")) && CalamityWorld.DoGSecondStageCountdown <= 0 && CalamityWorld.downedBossAny; + return !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.DoGSecondStageCountdown <= 0 && CalamityWorld.downedBossAny; } public override bool UseItem(Player player) @@ -44,7 +44,7 @@ namespace CalamityMod.Items.TheDevourerofGods { NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); } - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("DevourerofGodsHead")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/TheDevourerofGods/CosmiliteBar.cs b/Items/TheDevourerofGods/CosmiliteBar.cs index c48968c70d..9615240493 100644 --- a/Items/TheDevourerofGods/CosmiliteBar.cs +++ b/Items/TheDevourerofGods/CosmiliteBar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.TheDevourerofGods +namespace CalamityMod.Items { public class CosmiliteBar : ModItem { diff --git a/Items/TheDevourerofGods/DevourerofGodsBag.cs b/Items/TheDevourerofGods/DevourerofGodsBag.cs index 93aa5da6dc..f7b3bd9af4 100644 --- a/Items/TheDevourerofGods/DevourerofGodsBag.cs +++ b/Items/TheDevourerofGods/DevourerofGodsBag.cs @@ -1,15 +1,14 @@ -using CalamityMod.Utilities; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.TheDevourerofGods +namespace CalamityMod.Items { public class DevourerofGodsBag : ModItem { - public override int BossBagNPC => mod.NPCType("DevourerofGodsHeadS"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -43,30 +42,30 @@ namespace CalamityMod.Items.TheDevourerofGods player.TryGettingDevArmor(); // Materials - DropHelper.DropItem(player, mod.ItemType("CosmiliteBar"), 30, 39); - DropHelper.DropItem(player, mod.ItemType("CosmiliteBrick"), 200, 320); + DropHelper.DropItem(player, ModContent.ItemType(), 30, 39); + DropHelper.DropItem(player, ModContent.ItemType(), 200, 320); // Weapons - DropHelper.DropItemChance(player, mod.ItemType("Excelsus"), 3); - DropHelper.DropItemChance(player, mod.ItemType("EradicatorMelee"), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); float dischargeChance = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : DropHelper.LegendaryDropRateFloat; - DropHelper.DropItemCondition(player, mod.ItemType("CosmicDischarge"), CalamityWorld.revenge, dischargeChance); - DropHelper.DropItemChance(player, mod.ItemType("TheObliterator"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Deathwind"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Skullmasher"), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(player, mod.ItemType("Norfleet"), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(player, mod.ItemType("DeathhailStaff"), 3); - DropHelper.DropItemChance(player, mod.ItemType("StaffoftheMechworm"), 3); - DropHelper.DropItemChance(player, mod.ItemType("Eradicator"), 3); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge, dischargeChance); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Equipment - DropHelper.DropItem(player, mod.ItemType("NebulousCore")); + DropHelper.DropItem(player, ModContent.ItemType()); bool vodka = player.Calamity().fabsolVodka; - DropHelper.DropItemCondition(player, mod.ItemType("Fabsol"), CalamityWorld.revenge && vodka); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge && vodka); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("DevourerofGodsMask"), 7); - DropHelper.DropItemCondition(player, mod.ItemType("CosmicPlushie"), CalamityWorld.death && player.difficulty == 2); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.death && player.difficulty == 2); } } } diff --git a/Items/TheDevourerofGods/NebulousCore.cs b/Items/TheDevourerofGods/NebulousCore.cs index a9ace09d29..4fe5f4d65f 100644 --- a/Items/TheDevourerofGods/NebulousCore.cs +++ b/Items/TheDevourerofGods/NebulousCore.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.TheDevourerofGods +namespace CalamityMod.Items { public class NebulousCore : ModItem { @@ -45,7 +45,7 @@ namespace CalamityMod.Items.TheDevourerofGods int num = 0; for (int i = 0; i < 1000; i++) { - if (Main.projectile[i].active && Main.projectile[i].owner == player.whoAmI && Main.projectile[i].type == mod.ProjectileType("NebulaStar")) + if (Main.projectile[i].active && Main.projectile[i].owner == player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType()) { num++; } @@ -89,7 +89,7 @@ namespace CalamityMod.Items.TheDevourerofGods { for (int k = 0; k < 1000; k++) { - if (Main.projectile[k].active && Main.projectile[k].owner == player.whoAmI && Main.projectile[k].type == mod.ProjectileType("NebulaStar") && (center - Main.projectile[k].Center).Length() < 48f) + if (Main.projectile[k].active && Main.projectile[k].owner == player.whoAmI && Main.projectile[k].type == ModContent.ProjectileType() && (center - Main.projectile[k].Center).Length() < 48f) { flag = false; break; @@ -97,7 +97,7 @@ namespace CalamityMod.Items.TheDevourerofGods } if (flag && Main.myPlayer == player.whoAmI) { - Projectile.NewProjectile(center.X, center.Y, 0f, 0f, mod.ProjectileType("NebulaStar"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(center.X, center.Y, 0f, 0f, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return; } } diff --git a/Items/Tools/AbyssalWarhammer.cs b/Items/Tools/AbyssalWarhammer.cs index 2a5e66fca4..f46049cd2e 100644 --- a/Items/Tools/AbyssalWarhammer.cs +++ b/Items/Tools/AbyssalWarhammer.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class AbyssalWarhammer : ModItem { diff --git a/Items/Tools/AerialHamaxe.cs b/Items/Tools/AerialHamaxe.cs index a801053244..a853455988 100644 --- a/Items/Tools/AerialHamaxe.cs +++ b/Items/Tools/AerialHamaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class AerialHamaxe : ModItem { diff --git a/Items/Tools/AstralHamaxe.cs b/Items/Tools/AstralHamaxe.cs index eb41c44b2a..78f1890a1b 100644 --- a/Items/Tools/AstralHamaxe.cs +++ b/Items/Tools/AstralHamaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class AstralHamaxe : ModItem { @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Tools public override void MeleeEffects(Player player, Rectangle hitbox) { - Dust d = CalamityGlobalItem.MeleeDustHelper(player, Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"), 0.48f, 50, 78, -0.1f, 0.1f); + Dust d = CalamityGlobalItem.MeleeDustHelper(player, Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(), 0.48f, 50, 78, -0.1f, 0.1f); if (d != null) { d.customData = 0.02f; @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Tools public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void AddRecipes() diff --git a/Items/Tools/AstralPickaxe.cs b/Items/Tools/AstralPickaxe.cs index b7c3795422..f6fb0ea8e3 100644 --- a/Items/Tools/AstralPickaxe.cs +++ b/Items/Tools/AstralPickaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class AstralPickaxe : ModItem { @@ -43,12 +43,12 @@ namespace CalamityMod.Items.Tools public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void MeleeEffects(Player player, Rectangle hitbox) { - Dust d = CalamityGlobalItem.MeleeDustHelper(player, Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"), 0.56f, 40, 65, -0.13f, 0.13f); + Dust d = CalamityGlobalItem.MeleeDustHelper(player, Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(), 0.56f, 40, 65, -0.13f, 0.13f); if (d != null) { d.customData = 0.02f; diff --git a/Items/Tools/BeastialPickaxe.cs b/Items/Tools/BeastialPickaxe.cs index e0fe17373e..0480aefc3d 100644 --- a/Items/Tools/BeastialPickaxe.cs +++ b/Items/Tools/BeastialPickaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class BeastialPickaxe : ModItem { diff --git a/Items/Tools/BerserkerWaraxe.cs b/Items/Tools/BerserkerWaraxe.cs index 8ef4b883cd..6c23008b6f 100644 --- a/Items/Tools/BerserkerWaraxe.cs +++ b/Items/Tools/BerserkerWaraxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class BerserkerWaraxe : ModItem { diff --git a/Items/Tools/BlossomPickaxe.cs b/Items/Tools/BlossomPickaxe.cs index 112d2a03b7..34ef2297d3 100644 --- a/Items/Tools/BlossomPickaxe.cs +++ b/Items/Tools/BlossomPickaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class BlossomPickaxe : ModItem { diff --git a/Items/Tools/ChaoswarpedSlashaxe.cs b/Items/Tools/ChaoswarpedSlashaxe.cs index ed68c4963e..d26c81d175 100644 --- a/Items/Tools/ChaoswarpedSlashaxe.cs +++ b/Items/Tools/ChaoswarpedSlashaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class ChaoswarpedSlashaxe : ModItem { diff --git a/Items/Tools/CrystylCrusher.cs b/Items/Tools/CrystylCrusher.cs index 96f02799bc..df9c8cbe6c 100644 --- a/Items/Tools/CrystylCrusher.cs +++ b/Items/Tools/CrystylCrusher.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class CrystylCrusher : ModItem { @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Tools if (player.altFunctionUse == 2) { item.pick = 0; - item.shoot = mod.ProjectileType("CrystalDust"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = PowderSpeed; item.tileBoost = 0; } diff --git a/Items/Tools/FellerofEvergreens.cs b/Items/Tools/FellerofEvergreens.cs index 63f21fc1ac..911a67b12c 100644 --- a/Items/Tools/FellerofEvergreens.cs +++ b/Items/Tools/FellerofEvergreens.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class FellerofEvergreens : ModItem { diff --git a/Items/Tools/FlamebeakHampick.cs b/Items/Tools/FlamebeakHampick.cs index c0ba38388e..54d50365a8 100644 --- a/Items/Tools/FlamebeakHampick.cs +++ b/Items/Tools/FlamebeakHampick.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class FlamebeakHampick : ModItem { diff --git a/Items/Tools/GallantPickaxe.cs b/Items/Tools/GallantPickaxe.cs index 64153f87c7..2b878a2fe5 100644 --- a/Items/Tools/GallantPickaxe.cs +++ b/Items/Tools/GallantPickaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class GallantPickaxe : ModItem { diff --git a/Items/Tools/Gelpick.cs b/Items/Tools/Gelpick.cs index b1178d6d86..8fcfd80a03 100644 --- a/Items/Tools/Gelpick.cs +++ b/Items/Tools/Gelpick.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class Gelpick : ModItem { diff --git a/Items/Tools/GreatbayPickaxe.cs b/Items/Tools/GreatbayPickaxe.cs index 9a26e073c9..5a90972f01 100644 --- a/Items/Tools/GreatbayPickaxe.cs +++ b/Items/Tools/GreatbayPickaxe.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class GreatbayPickaxe : ModItem { diff --git a/Items/Tools/MarniteObliterator.cs b/Items/Tools/MarniteObliterator.cs index 935af6b582..7825470c75 100644 --- a/Items/Tools/MarniteObliterator.cs +++ b/Items/Tools/MarniteObliterator.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class MarniteObliterator : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Tools item.rare = 2; item.UseSound = SoundID.Item23; item.autoReuse = true; - item.shoot = mod.ProjectileType("MarniteObliterator"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 40f; } diff --git a/Items/Tools/ReefclawHamaxe.cs b/Items/Tools/ReefclawHamaxe.cs index 84792f596d..fef689a8f2 100644 --- a/Items/Tools/ReefclawHamaxe.cs +++ b/Items/Tools/ReefclawHamaxe.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class ReefclawHamaxe : ModItem { diff --git a/Items/Tools/ShardlightPickaxe.cs b/Items/Tools/ShardlightPickaxe.cs index 9b98d1b47e..ced7915fe4 100644 --- a/Items/Tools/ShardlightPickaxe.cs +++ b/Items/Tools/ShardlightPickaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class ShardlightPickaxe : ModItem { diff --git a/Items/Tools/SkyfringePickaxe.cs b/Items/Tools/SkyfringePickaxe.cs index 2750080bfc..21e99b9a08 100644 --- a/Items/Tools/SkyfringePickaxe.cs +++ b/Items/Tools/SkyfringePickaxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class SkyfringePickaxe : ModItem { diff --git a/Items/Tools/WulfrumAxe.cs b/Items/Tools/WulfrumAxe.cs index c0900bc40f..cc46dd554c 100644 --- a/Items/Tools/WulfrumAxe.cs +++ b/Items/Tools/WulfrumAxe.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class WulfrumAxe : ModItem { diff --git a/Items/Tools/WulfrumHammer.cs b/Items/Tools/WulfrumHammer.cs index f3432f468c..7ea2a848f5 100644 --- a/Items/Tools/WulfrumHammer.cs +++ b/Items/Tools/WulfrumHammer.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class WulfrumHammer : ModItem { diff --git a/Items/Tools/WulfrumPickaxe.cs b/Items/Tools/WulfrumPickaxe.cs index 961cfb0101..be778f0f11 100644 --- a/Items/Tools/WulfrumPickaxe.cs +++ b/Items/Tools/WulfrumPickaxe.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Tools +namespace CalamityMod.Items { public class WulfrumPickaxe : ModItem { diff --git a/Items/Weapons/AMR.cs b/Items/Weapons/AMR.cs index ea3e1a98dc..639d1aeff6 100644 --- a/Items/Weapons/AMR.cs +++ b/Items/Weapons/AMR.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AMR : ModItem { @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("AMR"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/AbyssBlade.cs b/Items/Weapons/AbyssBlade.cs index 037279bdc8..e31959f85a 100644 --- a/Items/Weapons/AbyssBlade.cs +++ b/Items/Weapons/AbyssBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AbyssBlade : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 60; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("DepthOrb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/AbyssWeapons/Archerfish.cs b/Items/Weapons/AbyssWeapons/Archerfish.cs index 32953ca991..87e2caa28e 100644 --- a/Items/Weapons/AbyssWeapons/Archerfish.cs +++ b/Items/Weapons/AbyssWeapons/Archerfish.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class Archerfish : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.rare = 3; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = mod.ProjectileType("Archerfish"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; item.useAmmo = 97; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Archerfish"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/AbyssWeapons/BallOFugu.cs b/Items/Weapons/AbyssWeapons/BallOFugu.cs index bc1b532d46..74354329af 100644 --- a/Items/Weapons/AbyssWeapons/BallOFugu.cs +++ b/Items/Weapons/AbyssWeapons/BallOFugu.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class BallOFugu : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.UseSound = SoundID.Item1; item.autoReuse = true; item.channel = true; - item.shoot = mod.ProjectileType("BallOFugu"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } } diff --git a/Items/Weapons/AbyssWeapons/BlackAnurian.cs b/Items/Weapons/AbyssWeapons/BlackAnurian.cs index 2680ac617b..520e7530f7 100644 --- a/Items/Weapons/AbyssWeapons/BlackAnurian.cs +++ b/Items/Weapons/AbyssWeapons/BlackAnurian.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class BlackAnurian : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.UseSound = SoundID.Item111; item.autoReuse = true; item.shootSpeed = 8f; - item.shoot = mod.ProjectileType("BlackAnurian"); + item.shoot = ModContent.ProjectileType(); } public override Vector2? HoldoutOffset() @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons { float SpeedX = speedX + (float)Main.rand.Next(-25, 26) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-25, 26) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("BlackAnurianPlankton"), (int)((double)damage * 0.5), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), (int)((double)damage * 0.5), knockBack, player.whoAmI, 0.0f, 0.0f); } Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)((double)damage * 0.5), knockBack, player.whoAmI, 0.0f, 0.0f); return false; diff --git a/Items/Weapons/AbyssWeapons/CalamarisLament.cs b/Items/Weapons/AbyssWeapons/CalamarisLament.cs index 2ec0058010..f5e127c190 100644 --- a/Items/Weapons/AbyssWeapons/CalamarisLament.cs +++ b/Items/Weapons/AbyssWeapons/CalamarisLament.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class CalamarisLament : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.rare = 10; item.UseSound = SoundID.Item83; item.autoReuse = true; - item.shoot = mod.ProjectileType("Calamari"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.Calamity().postMoonLordRarity = 13; diff --git a/Items/Weapons/AbyssWeapons/DreadmineStaff.cs b/Items/Weapons/AbyssWeapons/DreadmineStaff.cs index 9ccbfc4158..fff0b40736 100644 --- a/Items/Weapons/AbyssWeapons/DreadmineStaff.cs +++ b/Items/Weapons/AbyssWeapons/DreadmineStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class DreadmineStaff : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.rare = 7; item.UseSound = SoundID.Item113; item.autoReuse = true; - item.shoot = mod.ProjectileType("DreadmineTurret"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.sentry = true; diff --git a/Items/Weapons/AbyssWeapons/EidolicWail.cs b/Items/Weapons/AbyssWeapons/EidolicWail.cs index 6525910438..22a77efa5b 100644 --- a/Items/Weapons/AbyssWeapons/EidolicWail.cs +++ b/Items/Weapons/AbyssWeapons/EidolicWail.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class EidolicWail : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.UseSound = mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/WyrmScream"); item.autoReuse = true; item.shootSpeed = 5f; - item.shoot = mod.ProjectileType("EidolicWail"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/AbyssWeapons/FlakKraken.cs b/Items/Weapons/AbyssWeapons/FlakKraken.cs index 0a3a376076..c586505d5f 100644 --- a/Items/Weapons/AbyssWeapons/FlakKraken.cs +++ b/Items/Weapons/AbyssWeapons/FlakKraken.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class FlakKraken : ModItem { @@ -29,13 +29,13 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon"); - item.shoot = mod.ProjectileType("FlakKrakenGun"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; //30 } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("FlakKrakenGun"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/AbyssWeapons/HalibutCannon.cs b/Items/Weapons/AbyssWeapons/HalibutCannon.cs index b0e7b3a6a6..ca2f8dddbf 100644 --- a/Items/Weapons/AbyssWeapons/HalibutCannon.cs +++ b/Items/Weapons/AbyssWeapons/HalibutCannon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class HalibutCannon : ModItem { diff --git a/Items/Weapons/AbyssWeapons/HerringStaff.cs b/Items/Weapons/AbyssWeapons/HerringStaff.cs index b0daecbf32..b81618e377 100644 --- a/Items/Weapons/AbyssWeapons/HerringStaff.cs +++ b/Items/Weapons/AbyssWeapons/HerringStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class HerringStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.rare = 3; item.UseSound = SoundID.Item21; item.autoReuse = true; - item.shoot = mod.ProjectileType("Herring"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/AbyssWeapons/SoulEdge.cs b/Items/Weapons/AbyssWeapons/SoulEdge.cs index cbb007fea3..573839003e 100644 --- a/Items/Weapons/AbyssWeapons/SoulEdge.cs +++ b/Items/Weapons/AbyssWeapons/SoulEdge.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class SoulEdge : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.height = 88; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("GhastlySoulLarge"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 13; } @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs b/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs index da57000bb0..5d35f784b0 100644 --- a/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs +++ b/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class SulphuricAcidCannon : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.UseSound = SoundID.Item95; - item.shoot = mod.ProjectileType("SulphuricAcidCannon2"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/AbyssWeapons/TyphonsGreed.cs b/Items/Weapons/AbyssWeapons/TyphonsGreed.cs index 9da2d1902d..a648968f85 100644 --- a/Items/Weapons/AbyssWeapons/TyphonsGreed.cs +++ b/Items/Weapons/AbyssWeapons/TyphonsGreed.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class TyphonsGreed : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.UseSound = SoundID.DD2_SkyDragonsFurySwing; item.autoReuse = true; item.channel = true; - item.shoot = mod.ProjectileType("TyphonsGreedStaff"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; } diff --git a/Items/Weapons/AbyssWeapons/UndinesRetribution.cs b/Items/Weapons/AbyssWeapons/UndinesRetribution.cs index d1dc7063c6..01d4c16a31 100644 --- a/Items/Weapons/AbyssWeapons/UndinesRetribution.cs +++ b/Items/Weapons/AbyssWeapons/UndinesRetribution.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AbyssWeapons +namespace CalamityMod.Items { public class UndinesRetribution : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.UseSound = SoundID.Item66; item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("UndinesRetribution"); + item.shoot = ModContent.ProjectileType(); } 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/AccelerationBullet.cs b/Items/Weapons/AccelerationBullet.cs index a6f5ab716d..8f306bb56d 100644 --- a/Items/Weapons/AccelerationBullet.cs +++ b/Items/Weapons/AccelerationBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AccelerationBullet : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.25f; item.value = 250; item.rare = 1; - item.shoot = mod.ProjectileType("AccelerationBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; item.ammo = 97; } diff --git a/Items/Weapons/AccretionDiskMelee.cs b/Items/Weapons/AccretionDiskMelee.cs index 62605c1ba7..e127f29227 100644 --- a/Items/Weapons/AccretionDiskMelee.cs +++ b/Items/Weapons/AccretionDiskMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AccretionDiskMelee : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 38; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("AccretionDiskMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/AcidBullet.cs b/Items/Weapons/AcidBullet.cs index a6c3739e72..7cd2766dd8 100644 --- a/Items/Weapons/AcidBullet.cs +++ b/Items/Weapons/AcidBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AcidBullet : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.5f; item.value = 1250; item.rare = 8; - item.shoot = mod.ProjectileType("AcidBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 97; } diff --git a/Items/Weapons/AegisBlade.cs b/Items/Weapons/AegisBlade.cs index f624d37ecc..ba5eaf1afd 100644 --- a/Items/Weapons/AegisBlade.cs +++ b/Items/Weapons/AegisBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AegisBlade : ModItem { @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons item.useTime = 20; item.useAnimation = 20; item.UseSound = SoundID.Item73; - item.shoot = mod.ProjectileType("AegisBeam"); + item.shoot = ModContent.ProjectileType(); } else { @@ -63,7 +63,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("AegisBeam"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } @@ -77,7 +77,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("AegisBlast"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/Aeries.cs b/Items/Weapons/Aeries.cs index cc0c92ee17..ebb8d6614a 100644 --- a/Items/Weapons/Aeries.cs +++ b/Items/Weapons/Aeries.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Aeries : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item41; item.autoReuse = true; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("ShockblastRound"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ShockblastRound"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/AethersWhisper.cs b/Items/Weapons/AethersWhisper.cs index 6d38fbf5c5..9f1dd1f960 100644 --- a/Items/Weapons/AethersWhisper.cs +++ b/Items/Weapons/AethersWhisper.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AethersWhisper : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon"); item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("AetherBeam"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/Aftershock.cs b/Items/Weapons/Aftershock.cs index 6e4bae4f6f..46c02f6ecc 100644 --- a/Items/Weapons/Aftershock.cs +++ b/Items/Weapons/Aftershock.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Aftershock : ModItem { @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 120); + target.AddBuff(ModContent.BuffType(), 120); float num72 = item.shootSpeed; Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); float num78 = (float)Main.mouseX - Main.screenPosition.X - vector2.X; @@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78; float speedY5 = num79 + (float)Main.rand.Next(-10, 11) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("Aftershock"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, (float)Main.rand.Next(10)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, (float)Main.rand.Next(10)); } public override void MeleeEffects(Player player, Rectangle hitbox) diff --git a/Items/Weapons/AirSpinner.cs b/Items/Weapons/AirSpinner.cs index c9b7c64a99..8c06665ab7 100644 --- a/Items/Weapons/AirSpinner.cs +++ b/Items/Weapons/AirSpinner.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AirSpinner : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; item.autoReuse = false; - item.shoot = mod.ProjectileType("AirSpinnerProjectile"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/Alluvion.cs b/Items/Weapons/Alluvion.cs index 7521bafdcf..d455d32b32 100644 --- a/Items/Weapons/Alluvion.cs +++ b/Items/Weapons/Alluvion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Alluvion : ModItem { @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons { if (Main.rand.NextBool(12)) { - type = mod.ProjectileType("TorrentialArrow"); + type = ModContent.ProjectileType(); } if (Main.rand.NextBool(25)) { @@ -65,7 +65,7 @@ namespace CalamityMod.Items.Weapons } if (Main.rand.NextBool(100)) { - type = mod.ProjectileType("TyphoonArrow"); + type = ModContent.ProjectileType(); } int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[num121].Calamity().forceRanged = true; diff --git a/Items/Weapons/AlphaRay.cs b/Items/Weapons/AlphaRay.cs index 1fb87d1d63..2c63510940 100644 --- a/Items/Weapons/AlphaRay.cs +++ b/Items/Weapons/AlphaRay.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AlphaRay : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item33; item.autoReuse = true; item.shootSpeed = 6f; - item.shoot = mod.ProjectileType("ParticleBeamofDoom"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 14; } @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BigBeamofDeath"), (int)((double)damage * 2.1), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 2.1), knockBack, player.whoAmI, 0.0f, 0.0f); } else { diff --git a/Items/Weapons/AnarchyBlade.cs b/Items/Weapons/AnarchyBlade.cs index 929eb5ac10..d7857935f8 100644 --- a/Items/Weapons/AnarchyBlade.cs +++ b/Items/Weapons/AnarchyBlade.cs @@ -3,9 +3,9 @@ using CalamityMod.NPCs; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AnarchyBlade : ModItem { @@ -64,8 +64,8 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BrimstoneBoom"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + target.AddBuff(ModContent.BuffType(), 300); if (player.statLife < (player.statLifeMax2 * 0.5f) && Main.rand.NextBool(5)) { diff --git a/Items/Weapons/AncientCrusher.cs b/Items/Weapons/AncientCrusher.cs index 2de7970252..e287bf3575 100644 --- a/Items/Weapons/AncientCrusher.cs +++ b/Items/Weapons/AncientCrusher.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AncientCrusher : ModItem { @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("FossilSpike"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/AncientIceChunk.cs b/Items/Weapons/AncientIceChunk.cs index 3190d7e869..077d7fa91a 100644 --- a/Items/Weapons/AncientIceChunk.cs +++ b/Items/Weapons/AncientIceChunk.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AncientIceChunk : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item30; item.autoReuse = true; - item.shoot = mod.ProjectileType("IceClasper"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/AncientShiv.cs b/Items/Weapons/AncientShiv.cs index f5564c8408..51c84d4736 100644 --- a/Items/Weapons/AncientShiv.cs +++ b/Items/Weapons/AncientShiv.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AncientShiv : ModItem { @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons { if (target.life <= 0) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BlueAura"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/Animosity.cs b/Items/Weapons/Animosity.cs index de8d2b4257..2b3c206d8b 100644 --- a/Items/Weapons/Animosity.cs +++ b/Items/Weapons/Animosity.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Animosity : ModItem { diff --git a/Items/Weapons/Animus.cs b/Items/Weapons/Animus.cs index bea6186009..17acdcab48 100644 --- a/Items/Weapons/Animus.cs +++ b/Items/Weapons/Animus.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Animus : ModItem { @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 6000); + target.AddBuff(ModContent.BuffType(), 6000); int damageRan = Main.rand.Next(195); //0 to 195 if (damageRan >= 50 && damageRan <= 99) //25% { diff --git a/Items/Weapons/ApoctosisArray.cs b/Items/Weapons/ApoctosisArray.cs index e9827ea055..9cf601d4ec 100644 --- a/Items/Weapons/ApoctosisArray.cs +++ b/Items/Weapons/ApoctosisArray.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ApoctosisArray : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 34; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("IonBlast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/Apotheosis.cs b/Items/Weapons/Apotheosis.cs index de6b1a01d3..687dcd9153 100644 --- a/Items/Weapons/Apotheosis.cs +++ b/Items/Weapons/Apotheosis.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Apotheosis : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item92; item.autoReuse = true; - item.shoot = mod.ProjectileType("ApothMark"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15; item.Calamity().postMoonLordRarity = 16; } diff --git a/Items/Weapons/AquaticDissolution.cs b/Items/Weapons/AquaticDissolution.cs index 73c30e7ca4..4a4f349849 100644 --- a/Items/Weapons/AquaticDissolution.cs +++ b/Items/Weapons/AquaticDissolution.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AquaticDissolution : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 72; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("OceanBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/AquaticScourge/Barinautical.cs b/Items/Weapons/AquaticScourge/Barinautical.cs index 3fa2add429..086621d848 100644 --- a/Items/Weapons/AquaticScourge/Barinautical.cs +++ b/Items/Weapons/AquaticScourge/Barinautical.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AquaticScourge +namespace CalamityMod.Items { public class Barinautical : ModItem { @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.AquaticScourge 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BoltArrow"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/AquaticScourge/DeepseaStaff.cs b/Items/Weapons/AquaticScourge/DeepseaStaff.cs index 45d6e1fede..ad574adf56 100644 --- a/Items/Weapons/AquaticScourge/DeepseaStaff.cs +++ b/Items/Weapons/AquaticScourge/DeepseaStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AquaticScourge +namespace CalamityMod.Items { public class DeepseaStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.AquaticScourge item.rare = 5; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("AquaticStar"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/AquaticScourge/Downpour.cs b/Items/Weapons/AquaticScourge/Downpour.cs index 9bcd55d953..9aaf56f481 100644 --- a/Items/Weapons/AquaticScourge/Downpour.cs +++ b/Items/Weapons/AquaticScourge/Downpour.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AquaticScourge +namespace CalamityMod.Items { public class Downpour : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.AquaticScourge item.rare = 5; item.UseSound = SoundID.Item13; item.autoReuse = true; - item.shoot = mod.ProjectileType("WaterStream"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; } diff --git a/Items/Weapons/AquaticScourge/SubmarineShocker.cs b/Items/Weapons/AquaticScourge/SubmarineShocker.cs index 29a7441770..2099f831a3 100644 --- a/Items/Weapons/AquaticScourge/SubmarineShocker.cs +++ b/Items/Weapons/AquaticScourge/SubmarineShocker.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AquaticScourge +namespace CalamityMod.Items { public class SubmarineShocker : ModItem { @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.AquaticScourge public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("Spark"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/ArchAmaryllis.cs b/Items/Weapons/ArchAmaryllis.cs index 6f81bfd0c0..fc1dfc4eed 100644 --- a/Items/Weapons/ArchAmaryllis.cs +++ b/Items/Weapons/ArchAmaryllis.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ArchAmaryllis : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 9; item.UseSound = SoundID.Item109; item.autoReuse = true; - item.shoot = mod.ProjectileType("BeamingBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; } diff --git a/Items/Weapons/ArcticArrow.cs b/Items/Weapons/ArcticArrow.cs index 6a0d2d7769..61ebc2c563 100644 --- a/Items/Weapons/ArcticArrow.cs +++ b/Items/Weapons/ArcticArrow.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ArcticArrow : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.5f; item.value = Item.sellPrice(0, 0, 0, 24); item.rare = 3; - item.shoot = mod.ProjectileType("ArcticArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.ammo = 40; } diff --git a/Items/Weapons/ArkoftheAncients.cs b/Items/Weapons/ArkoftheAncients.cs index 4d59594962..64e951a2cb 100644 --- a/Items/Weapons/ArkoftheAncients.cs +++ b/Items/Weapons/ArkoftheAncients.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ArkoftheAncients : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 50; item.value = Item.buyPrice(0, 48, 0, 0); item.rare = 6; - item.shoot = mod.ProjectileType("EonBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(2)) { case 0: - type = mod.ProjectileType("EonBeam"); + type = ModContent.ProjectileType(); break; case 1: type = 173; @@ -144,7 +144,7 @@ namespace CalamityMod.Items.Weapons { if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/ArkoftheCosmos.cs b/Items/Weapons/ArkoftheCosmos.cs index 7647474faa..a86c00f63e 100644 --- a/Items/Weapons/ArkoftheCosmos.cs +++ b/Items/Weapons/ArkoftheCosmos.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ArkoftheCosmos : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.height = 102; item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EonBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; item.Calamity().postMoonLordRarity = 15; } @@ -42,16 +42,16 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(4)) { case 0: - type = mod.ProjectileType("EonBeam"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("EonBeamV2"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("EonBeamV3"); + type = ModContent.ProjectileType(); break; case 3: - type = mod.ProjectileType("EonBeamV4"); + type = ModContent.ProjectileType(); break; } int projectile = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer); @@ -91,7 +91,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-360, 361) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-360, 361) * 0.02f; - int projectileFire = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("Galaxia2"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); + int projectileFire = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); Main.projectile[projectileFire].timeLeft = 80; } return false; diff --git a/Items/Weapons/ArkoftheElements.cs b/Items/Weapons/ArkoftheElements.cs index 7732300d02..2e81c84930 100644 --- a/Items/Weapons/ArkoftheElements.cs +++ b/Items/Weapons/ArkoftheElements.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ArkoftheElements : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 84; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EonBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().postMoonLordRarity = 12; } @@ -40,16 +40,16 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(4)) { case 0: - type = mod.ProjectileType("EonBeam"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("EonBeamV2"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("EonBeamV3"); + type = ModContent.ProjectileType(); break; case 3: - type = mod.ProjectileType("EonBeamV4"); + type = ModContent.ProjectileType(); break; } int projectile = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer); @@ -89,7 +89,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-360, 361) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-360, 361) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("ElementBall"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); } return false; } @@ -119,10 +119,10 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Items/Weapons/ArterialAssault.cs b/Items/Weapons/ArterialAssault.cs index be2d1e4ccf..4f9d616491 100644 --- a/Items/Weapons/ArterialAssault.cs +++ b/Items/Weapons/ArterialAssault.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ArterialAssault : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item102; item.autoReuse = true; - item.shoot = mod.ProjectileType("BloodfireArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 13; @@ -89,7 +89,7 @@ namespace CalamityMod.Items.Weapons float speedY5 = num79; if (type == ProjectileID.WoodenArrowFriendly) { - int bloodfire = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("BloodfireArrow"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(15)); + int bloodfire = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(15)); Main.projectile[bloodfire].tileCollide = false; } else diff --git a/Items/Weapons/AsteroidStaff.cs b/Items/Weapons/AsteroidStaff.cs index a5c8df8217..ff92e3b947 100644 --- a/Items/Weapons/AsteroidStaff.cs +++ b/Items/Weapons/AsteroidStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AsteroidStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item88; item.autoReuse = true; - item.shoot = mod.ProjectileType("Asteroid"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/Astrageldon/Nebulash.cs b/Items/Weapons/Astrageldon/Nebulash.cs index 027629ebfb..cf6ac1842c 100644 --- a/Items/Weapons/Astrageldon/Nebulash.cs +++ b/Items/Weapons/Astrageldon/Nebulash.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astrageldon +namespace CalamityMod.Items { public class Nebulash : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Astrageldon item.UseSound = SoundID.Item117; item.value = Item.buyPrice(0, 60, 0, 0); item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("Nebulash"); + item.shoot = ModContent.ProjectileType(); } 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/Astral/AstralBlade.cs b/Items/Weapons/Astral/AstralBlade.cs index bece9214d6..098819989e 100644 --- a/Items/Weapons/Astral/AstralBlade.cs +++ b/Items/Weapons/Astral/AstralBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class AstralBlade : ModItem { @@ -41,14 +41,14 @@ namespace CalamityMod.Items.Weapons.Astral public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void MeleeEffects(Player player, Rectangle hitbox) { for (int i = 0; i < 3; i++) { - Dust d = CalamityGlobalItem.MeleeDustHelper(player, Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"), 0.7f, 55, 110, -0.07f, 0.07f); + Dust d = CalamityGlobalItem.MeleeDustHelper(player, Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(), 0.7f, 55, 110, -0.07f, 0.07f); if (d != null) { d.customData = 0.03f; diff --git a/Items/Weapons/Astral/AstralBlaster.cs b/Items/Weapons/Astral/AstralBlaster.cs index 4d84050d73..62af6bd3be 100644 --- a/Items/Weapons/Astral/AstralBlaster.cs +++ b/Items/Weapons/Astral/AstralBlaster.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class AstralBlaster : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Astral item.UseSound = SoundID.Item41; item.autoReuse = true; item.shootSpeed = 14f; - item.shoot = mod.ProjectileType("AstralRound"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Astral 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("AstralRound"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/Astral/AstralPike.cs b/Items/Weapons/Astral/AstralPike.cs index 122603330c..4e58dac52a 100644 --- a/Items/Weapons/Astral/AstralPike.cs +++ b/Items/Weapons/Astral/AstralPike.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class AstralPike : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Astral item.height = 50; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; - item.shoot = mod.ProjectileType("AstralPike"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; } diff --git a/Items/Weapons/Astral/AstralRepeater.cs b/Items/Weapons/Astral/AstralRepeater.cs index 12b0e860de..69afd6815b 100644 --- a/Items/Weapons/Astral/AstralRepeater.cs +++ b/Items/Weapons/Astral/AstralRepeater.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class AstralRepeater : ModItem { diff --git a/Items/Weapons/Astral/AstralScythe.cs b/Items/Weapons/Astral/AstralScythe.cs index b49e23dc32..0849a55461 100644 --- a/Items/Weapons/Astral/AstralScythe.cs +++ b/Items/Weapons/Astral/AstralScythe.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class AstralScythe : ModItem { @@ -27,13 +27,13 @@ namespace CalamityMod.Items.Weapons.Astral item.autoReuse = true; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("AstralScytheProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Items/Weapons/Astral/AstralStaff.cs b/Items/Weapons/Astral/AstralStaff.cs index b2daa92943..3351a5fa58 100644 --- a/Items/Weapons/Astral/AstralStaff.cs +++ b/Items/Weapons/Astral/AstralStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class AstralStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Astral item.rare = 9; item.UseSound = SoundID.Item105; item.autoReuse = true; - item.shoot = mod.ProjectileType("AstralCrystal"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; } diff --git a/Items/Weapons/Astral/AstralachneaStaff.cs b/Items/Weapons/Astral/AstralachneaStaff.cs index 82bfa08f71..3df00f9662 100644 --- a/Items/Weapons/Astral/AstralachneaStaff.cs +++ b/Items/Weapons/Astral/AstralachneaStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class AstralachneaStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Astral item.rare = 7; item.UseSound = SoundID.Item46; item.autoReuse = true; - item.shoot = mod.ProjectileType("AstralachneaFang"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; } @@ -71,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Astral num133 *= num80; float x2 = vector2.X; float y2 = vector2.Y; - Projectile.NewProjectile(x2, y2, num132, num133, mod.ProjectileType("AstralachneaFang"), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(x2, y2, num132, num133, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); } return false; } diff --git a/Items/Weapons/Astral/HivePod.cs b/Items/Weapons/Astral/HivePod.cs index d2fdd4aa5b..08f3e28b9b 100644 --- a/Items/Weapons/Astral/HivePod.cs +++ b/Items/Weapons/Astral/HivePod.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class HivePod : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Astral item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.UseSound = SoundID.Item78; - item.shoot = mod.ProjectileType("Hive"); + item.shoot = ModContent.ProjectileType(); } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Astral/StellarCannon.cs b/Items/Weapons/Astral/StellarCannon.cs index e7b3409076..ef8d08859f 100644 --- a/Items/Weapons/Astral/StellarCannon.cs +++ b/Items/Weapons/Astral/StellarCannon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class StellarCannon : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Astral item.rare = 7; item.UseSound = SoundID.Item92; item.autoReuse = true; - item.shoot = mod.ProjectileType("AstralCannonProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 2f; } diff --git a/Items/Weapons/Astral/TitanArm.cs b/Items/Weapons/Astral/TitanArm.cs index 142ff9be2e..7ab4cad473 100644 --- a/Items/Weapons/Astral/TitanArm.cs +++ b/Items/Weapons/Astral/TitanArm.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Astral +namespace CalamityMod.Items { public class TitanArm : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Astral public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Items/Weapons/AstrealDefeat.cs b/Items/Weapons/AstrealDefeat.cs index 95eb312557..93d1e1603e 100644 --- a/Items/Weapons/AstrealDefeat.cs +++ b/Items/Weapons/AstrealDefeat.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System.Collections.Generic; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AstrealDefeat : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item102; item.autoReuse = true; - item.shoot = mod.ProjectileType("AstrealArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; item.useAmmo = 40; } @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("AstrealArrow"), (int)(double)damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)(double)damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/AstrumDeus/Starfall.cs b/Items/Weapons/AstrumDeus/Starfall.cs index 290e3e8535..4756bf0a94 100644 --- a/Items/Weapons/AstrumDeus/Starfall.cs +++ b/Items/Weapons/AstrumDeus/Starfall.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.AstrumDeus +namespace CalamityMod.Items { public class Starfall : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.AstrumDeus item.value = Item.buyPrice(0, 95, 0, 0); item.UseSound = SoundID.Item105; item.autoReuse = true; - item.shoot = mod.ProjectileType("AstralStarMagic"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/AuguroftheElements.cs b/Items/Weapons/AuguroftheElements.cs index 616fe2b4f8..2f2d3bd55f 100644 --- a/Items/Weapons/AuguroftheElements.cs +++ b/Items/Weapons/AuguroftheElements.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class AuguroftheElements : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item103; item.autoReuse = true; - item.shoot = mod.ProjectileType("ElementTentacle"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/Azathoth.cs b/Items/Weapons/Azathoth.cs index 6ae10091c8..a6e2d32871 100644 --- a/Items/Weapons/Azathoth.cs +++ b/Items/Weapons/Azathoth.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Azathoth : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("AzathothProjectile"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 16; } diff --git a/Items/Weapons/BalefulHarvester.cs b/Items/Weapons/BalefulHarvester.cs index 5f052dba9e..bf7823a7d7 100644 --- a/Items/Weapons/BalefulHarvester.cs +++ b/Items/Weapons/BalefulHarvester.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BalefulHarvester : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; - item.shoot = mod.ProjectileType("BalefulHarvesterProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/BarracudaGun.cs b/Items/Weapons/BarracudaGun.cs index b8fd4061c9..22a7dfc68f 100644 --- a/Items/Weapons/BarracudaGun.cs +++ b/Items/Weapons/BarracudaGun.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BarracudaGun : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item10; item.autoReuse = true; item.shootSpeed = 15f; - item.shoot = mod.ProjectileType("MechanicalBarracuda"); + item.shoot = ModContent.ProjectileType(); } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/BiomeBlade.cs b/Items/Weapons/BiomeBlade.cs index ff5f02a1ab..ee886b631c 100644 --- a/Items/Weapons/BiomeBlade.cs +++ b/Items/Weapons/BiomeBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BiomeBlade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 42; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; - item.shoot = mod.ProjectileType("BiomeOrb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/BlackHawkRemote.cs b/Items/Weapons/BlackHawkRemote.cs index f78333e148..c0433d4036 100644 --- a/Items/Weapons/BlackHawkRemote.cs +++ b/Items/Weapons/BlackHawkRemote.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BlackHawkRemote : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 12, 0, 0); item.UseSound = SoundID.Item15; //phaseblade sound effect item.autoReuse = true; - item.shoot = mod.ProjectileType("BlackHawkSummon"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.rare = 4; diff --git a/Items/Weapons/BladecrestOathsword.cs b/Items/Weapons/BladecrestOathsword.cs index a77398ac9c..182bcf1664 100644 --- a/Items/Weapons/BladecrestOathsword.cs +++ b/Items/Weapons/BladecrestOathsword.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BladecrestOathsword : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.height = 58; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.shoot = mod.ProjectileType("BloodScythe"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/BladedgeGreatbow.cs b/Items/Weapons/BladedgeGreatbow.cs index 14f9846da7..d3ce4ebbf1 100644 --- a/Items/Weapons/BladedgeGreatbow.cs +++ b/Items/Weapons/BladedgeGreatbow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BladedgeGreatbow : ModItem { diff --git a/Items/Weapons/BladeofEnmity.cs b/Items/Weapons/BladeofEnmity.cs index cfc7236a8f..860eb89f21 100644 --- a/Items/Weapons/BladeofEnmity.cs +++ b/Items/Weapons/BladeofEnmity.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BladeofEnmity : ModItem { @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Items/Weapons/BloodfireArrow.cs b/Items/Weapons/BloodfireArrow.cs index 3b29ead4e2..13a29f0953 100644 --- a/Items/Weapons/BloodfireArrow.cs +++ b/Items/Weapons/BloodfireArrow.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BloodfireArrow : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons item.consumable = true; item.knockBack = 3.5f; item.value = 2000; - item.shoot = mod.ProjectileType("BloodfireArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 40; item.Calamity().postMoonLordRarity = 13; diff --git a/Items/Weapons/BloodyEdge.cs b/Items/Weapons/BloodyEdge.cs index ea6df54e42..b3004a8a08 100644 --- a/Items/Weapons/BloodyEdge.cs +++ b/Items/Weapons/BloodyEdge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BloodyEdge : ModItem { diff --git a/Items/Weapons/BlossomFlux.cs b/Items/Weapons/BlossomFlux.cs index 07f8d1f84b..1d656aec88 100644 --- a/Items/Weapons/BlossomFlux.cs +++ b/Items/Weapons/BlossomFlux.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BlossomFlux : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 7; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("LeafArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 17; @@ -62,11 +62,11 @@ namespace CalamityMod.Items.Weapons { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SporeBomb"), (int)((double)damage * 6.0), knockBack * 60f, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 6.0), knockBack * 60f, player.whoAmI, 0.0f, 0.0f); } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("LeafArrow"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); } return false; } diff --git a/Items/Weapons/BlushieStaff.cs b/Items/Weapons/BlushieStaff.cs index 1e30a5aa23..3818a5b1ae 100644 --- a/Items/Weapons/BlushieStaff.cs +++ b/Items/Weapons/BlushieStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BlushieStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; item.UseSound = SoundID.Item1; - item.shoot = mod.ProjectileType("BlushieStaffProj"); + item.shoot = ModContent.ProjectileType(); item.mana = 200; item.shootSpeed = 0f; item.Calamity().postMoonLordRarity = 19; diff --git a/Items/Weapons/Brimlash.cs b/Items/Weapons/Brimlash.cs index b6ee2ab4d4..0ed61f9d9d 100644 --- a/Items/Weapons/Brimlash.cs +++ b/Items/Weapons/Brimlash.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Brimlash : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 50; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("Brimlash"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; } @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/BrimlashBuster.cs b/Items/Weapons/BrimlashBuster.cs index 303c303e8f..7e4a1f7ecd 100644 --- a/Items/Weapons/BrimlashBuster.cs +++ b/Items/Weapons/BrimlashBuster.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BrimlashBuster : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 68; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; - item.shoot = mod.ProjectileType("Brimlash"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; } @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); if (Main.rand.NextBool(3)) { item.damage = 378; diff --git a/Items/Weapons/BrimroseStaff.cs b/Items/Weapons/BrimroseStaff.cs index 289d653b99..988fdbb558 100644 --- a/Items/Weapons/BrimroseStaff.cs +++ b/Items/Weapons/BrimroseStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BrimroseStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 6; item.UseSound = SoundID.Item43; item.autoReuse = true; - item.shoot = mod.ProjectileType("BrimstoneBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/BrimstoneFury.cs b/Items/Weapons/BrimstoneFury.cs index 9d15a4a03d..7ac1bb6e87 100644 --- a/Items/Weapons/BrimstoneFury.cs +++ b/Items/Weapons/BrimstoneFury.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BrimstoneFury : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 6; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("BrimstoneBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.useAmmo = 40; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("BrimstoneBolt"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/BrimstoneWaifu/Brimlance.cs b/Items/Weapons/BrimstoneWaifu/Brimlance.cs index 1e0ea8e84c..ab6864c7b8 100644 --- a/Items/Weapons/BrimstoneWaifu/Brimlance.cs +++ b/Items/Weapons/BrimstoneWaifu/Brimlance.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.BrimstoneWaifu +namespace CalamityMod.Items { public class Brimlance : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.BrimstoneWaifu item.height = 56; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("Brimlance"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } } diff --git a/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs b/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs index ae257f5b9a..a68c7c7d01 100644 --- a/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs +++ b/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.BrimstoneWaifu +namespace CalamityMod.Items { public class SeethingDischarge : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.BrimstoneWaifu item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.autoReuse = true; - item.shoot = mod.ProjectileType("SeethingDischargeBrimstoneBarrage"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.BrimstoneWaifu float SpeedX3 = speedX + 0f * 0.05f; float SpeedY3 = speedY + 0f * 0.05f; Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(position.X, position.Y, SpeedX2, SpeedY2, mod.ProjectileType("SeethingDischargeBrimstoneHellblast"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX2, SpeedY2, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Projectile.NewProjectile(position.X, position.Y, SpeedX3, SpeedY3, type, damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/BrinyBaron.cs b/Items/Weapons/BrinyBaron.cs index 5e61b47e56..c6ba1d8bc0 100644 --- a/Items/Weapons/BrinyBaron.cs +++ b/Items/Weapons/BrinyBaron.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BrinyBaron : ModItem { @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons item.useTime = 15; item.useAnimation = 15; item.UseSound = SoundID.Item84; - item.shoot = mod.ProjectileType("Razorwind"); + item.shoot = ModContent.ProjectileType(); } else { @@ -65,7 +65,7 @@ namespace CalamityMod.Items.Weapons public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Razorwind"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } @@ -79,7 +79,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BrinyTyphoonBubble"), (int)((float)item.damage * 0.5f * player.meleeDamage), knockback, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * 0.5f * player.meleeDamage), knockback, player.whoAmI); } } } diff --git a/Items/Weapons/Bumblebirb/GildedProboscis.cs b/Items/Weapons/Bumblebirb/GildedProboscis.cs index 33202303b5..4081a9b2ab 100644 --- a/Items/Weapons/Bumblebirb/GildedProboscis.cs +++ b/Items/Weapons/Bumblebirb/GildedProboscis.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Bumblebirb +namespace CalamityMod.Items { public class GildedProboscis : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Bumblebirb item.height = 66; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("GildedProboscis"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/Bumblebirb/GoldenEagle.cs b/Items/Weapons/Bumblebirb/GoldenEagle.cs index dea40fc04c..2cad4598cf 100644 --- a/Items/Weapons/Bumblebirb/GoldenEagle.cs +++ b/Items/Weapons/Bumblebirb/GoldenEagle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Bumblebirb +namespace CalamityMod.Items { public class GoldenEagle : ModItem { diff --git a/Items/Weapons/Bumblebirb/RougeSlash.cs b/Items/Weapons/Bumblebirb/RougeSlash.cs index d99171181c..940211c628 100644 --- a/Items/Weapons/Bumblebirb/RougeSlash.cs +++ b/Items/Weapons/Bumblebirb/RougeSlash.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Bumblebirb +namespace CalamityMod.Items { public class RougeSlash : ModItem { @@ -29,16 +29,16 @@ namespace CalamityMod.Items.Weapons.Bumblebirb item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("RougeSlashLarge"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().postMoonLordRarity = 12; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("RougeSlashLarge"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); - Projectile.NewProjectile(position.X, position.Y, speedX * 0.8f, speedY * 0.8f, mod.ProjectileType("RougeSlashMedium"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); - Projectile.NewProjectile(position.X, position.Y, speedX * 0.6f, speedY * 0.6f, mod.ProjectileType("RougeSlashSmall"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 0.8f, speedY * 0.8f, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 0.6f, speedY * 0.6f, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/BurningSea.cs b/Items/Weapons/BurningSea.cs index 32657011a5..b6b724d70f 100644 --- a/Items/Weapons/BurningSea.cs +++ b/Items/Weapons/BurningSea.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BurningSea : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 6; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("BrimstoneFireball"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; } diff --git a/Items/Weapons/BurntSienna.cs b/Items/Weapons/BurntSienna.cs index 1c43b35b54..637ed5a459 100644 --- a/Items/Weapons/BurntSienna.cs +++ b/Items/Weapons/BurntSienna.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class BurntSienna : ModItem { @@ -37,9 +37,9 @@ namespace CalamityMod.Items.Weapons { float randomSpeedX = (float)Main.rand.Next(3); float randomSpeedY = (float)Main.rand.Next(3, 5); - Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, mod.ProjectileType("BurntSienna"), 0, 0f, player.whoAmI); - Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, mod.ProjectileType("BurntSienna"), 0, 0f, player.whoAmI); - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, -randomSpeedY, mod.ProjectileType("BurntSienna"), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); } } diff --git a/Items/Weapons/Butcher.cs b/Items/Weapons/Butcher.cs index 9ed838f220..98bbb41ef1 100644 --- a/Items/Weapons/Butcher.cs +++ b/Items/Weapons/Butcher.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Butcher : ModItem { @@ -30,14 +30,14 @@ namespace CalamityMod.Items.Weapons item.ranged = true; item.channel = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("Butcher"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 97; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Butcher"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Weapons/Calamitas/BlightedEyeStaff.cs b/Items/Weapons/Calamitas/BlightedEyeStaff.cs index 0fb564860b..187deaac3b 100644 --- a/Items/Weapons/Calamitas/BlightedEyeStaff.cs +++ b/Items/Weapons/Calamitas/BlightedEyeStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Calamitas +namespace CalamityMod.Items { public class BlightedEyeStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Calamitas item.rare = 7; item.UseSound = SoundID.Item82; item.autoReuse = true; - item.shoot = mod.ProjectileType("Calamitamini"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } @@ -65,11 +65,11 @@ namespace CalamityMod.Items.Weapons.Calamitas vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; Vector2 spinningpoint = new Vector2(num78, num79); spinningpoint = spinningpoint.RotatedBy(1.5707963705062866, default); - Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, mod.ProjectileType("Calamitamini"), damage, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, ModContent.ProjectileType(), damage, num74, i, 0f, 0f); spinningpoint = spinningpoint.RotatedBy(-3.1415927410125732, default); - Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, mod.ProjectileType("Catastromini"), damage, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, ModContent.ProjectileType(), damage, num74, i, 0f, 0f); spinningpoint = spinningpoint.RotatedBy(-5.1415927410125732, default); - Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, mod.ProjectileType("Cataclymini"), damage, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X + spinningpoint.X, vector2.Y + spinningpoint.Y, spinningpoint.X, spinningpoint.Y, ModContent.ProjectileType(), damage, num74, i, 0f, 0f); return false; } } diff --git a/Items/Weapons/Calamitas/BrimstoneFlameblaster.cs b/Items/Weapons/Calamitas/BrimstoneFlameblaster.cs index a2aa290060..953196d0c3 100644 --- a/Items/Weapons/Calamitas/BrimstoneFlameblaster.cs +++ b/Items/Weapons/Calamitas/BrimstoneFlameblaster.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Calamitas +namespace CalamityMod.Items { public class BrimstoneFlameblaster : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Calamitas item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.autoReuse = true; - item.shoot = mod.ProjectileType("BrimstoneBallFriendly"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.useAmmo = 23; } diff --git a/Items/Weapons/Calamitas/BrimstoneFlamesprayer.cs b/Items/Weapons/Calamitas/BrimstoneFlamesprayer.cs index 80462822b4..0c02383d0d 100644 --- a/Items/Weapons/Calamitas/BrimstoneFlamesprayer.cs +++ b/Items/Weapons/Calamitas/BrimstoneFlamesprayer.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Calamitas +namespace CalamityMod.Items { public class BrimstoneFlamesprayer : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Calamitas item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.autoReuse = true; - item.shoot = mod.ProjectileType("BrimstoneFireFriendly"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8.5f; item.useAmmo = 23; } diff --git a/Items/Weapons/Calamitas/CalamitasInferno.cs b/Items/Weapons/Calamitas/CalamitasInferno.cs index 0ccd3c0bc3..6b97d3c603 100644 --- a/Items/Weapons/Calamitas/CalamitasInferno.cs +++ b/Items/Weapons/Calamitas/CalamitasInferno.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Calamitas +namespace CalamityMod.Items { public class CalamitasInferno : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Calamitas item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.autoReuse = true; - item.shoot = mod.ProjectileType("BrimstoneHellfireballFriendly"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } } diff --git a/Items/Weapons/Calamitas/TheEyeofCalamitas.cs b/Items/Weapons/Calamitas/TheEyeofCalamitas.cs index 9d30321a7f..87978bb299 100644 --- a/Items/Weapons/Calamitas/TheEyeofCalamitas.cs +++ b/Items/Weapons/Calamitas/TheEyeofCalamitas.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Calamitas +namespace CalamityMod.Items { public class TheEyeofCalamitas : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Calamitas item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.autoReuse = true; - item.shoot = mod.ProjectileType("TheEyeofCalamitasProjectile"); + item.shoot = ModContent.ProjectileType(); } } } diff --git a/Items/Weapons/CarnageRay.cs b/Items/Weapons/CarnageRay.cs index 12117862ce..a1e1bfe996 100644 --- a/Items/Weapons/CarnageRay.cs +++ b/Items/Weapons/CarnageRay.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CarnageRay : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 4; item.UseSound = SoundID.Item72; item.autoReuse = true; - item.shoot = mod.ProjectileType("BloodRay"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/CatastropheClaymore.cs b/Items/Weapons/CatastropheClaymore.cs index 56509fac72..b6f934bb9d 100644 --- a/Items/Weapons/CatastropheClaymore.cs +++ b/Items/Weapons/CatastropheClaymore.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CatastropheClaymore : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 56; item.value = Item.buyPrice(0, 48, 0, 0); item.rare = 6; - item.shoot = mod.ProjectileType("CalamityAura"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; } @@ -37,13 +37,13 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(3)) { case 0: - type = mod.ProjectileType("CalamityAura"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("CalamityAuraType2"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("CalamityAuraType3"); + type = ModContent.ProjectileType(); break; default: break; diff --git a/Items/Weapons/CausticEdge.cs b/Items/Weapons/CausticEdge.cs index 13557c05a4..57cb355ff5 100644 --- a/Items/Weapons/CausticEdge.cs +++ b/Items/Weapons/CausticEdge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CausticEdge : ModItem { diff --git a/Items/Weapons/CelestialClaymore.cs b/Items/Weapons/CelestialClaymore.cs index a14f4ab611..1f1dcf1610 100644 --- a/Items/Weapons/CelestialClaymore.cs +++ b/Items/Weapons/CelestialClaymore.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CelestialClaymore : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 50; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("CosmicSpiritBomb1"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 0.1f; } @@ -76,13 +76,13 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(3)) { case 0: - type = mod.ProjectileType("CosmicSpiritBomb1"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("CosmicSpiritBomb2"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("CosmicSpiritBomb3"); + type = ModContent.ProjectileType(); break; default: break; diff --git a/Items/Weapons/Chaotrix.cs b/Items/Weapons/Chaotrix.cs index 0629db20d6..4ed5226d88 100644 --- a/Items/Weapons/Chaotrix.cs +++ b/Items/Weapons/Chaotrix.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Chaotrix : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.autoReuse = true; - item.shoot = mod.ProjectileType("ChaotrixProjectile"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/ChargedDartRifle.cs b/Items/Weapons/ChargedDartRifle.cs index f91be8c10e..6e56a8bade 100644 --- a/Items/Weapons/ChargedDartRifle.cs +++ b/Items/Weapons/ChargedDartRifle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ChargedDartRifle : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon"); item.autoReuse = true; item.shootSpeed = 22f; - item.shoot = mod.ProjectileType("ChargedBlast"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 283; } @@ -47,12 +47,12 @@ namespace CalamityMod.Items.Weapons { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ChargedBlast3"), (int)((double)damage * 0.85), knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 0.85), knockBack, player.whoAmI, 0f, 0f); return false; } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ChargedBlast"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/ClaretCannon.cs b/Items/Weapons/ClaretCannon.cs index ed9450709d..c072f59753 100644 --- a/Items/Weapons/ClaretCannon.cs +++ b/Items/Weapons/ClaretCannon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ClaretCannon : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item40; item.autoReuse = true; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("BloodfireBullet"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; item.Calamity().postMoonLordRarity = 13; } @@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BloodfireBullet"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/CleansingBlaze.cs b/Items/Weapons/CleansingBlaze.cs index 32ac951f44..d59eeca42f 100644 --- a/Items/Weapons/CleansingBlaze.cs +++ b/Items/Weapons/CleansingBlaze.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CleansingBlaze : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("EssenceFire"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.useAmmo = 23; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/Weapons/Climax.cs b/Items/Weapons/Climax.cs index c7f2d43111..bf16a85593 100644 --- a/Items/Weapons/Climax.cs +++ b/Items/Weapons/Climax.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Climax : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("Climax"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/ClockGatlignum.cs b/Items/Weapons/ClockGatlignum.cs index 64487aac8c..0962301e9c 100644 --- a/Items/Weapons/ClockGatlignum.cs +++ b/Items/Weapons/ClockGatlignum.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ClockGatlignum : ModItem { diff --git a/Items/Weapons/ClockworkBow.cs b/Items/Weapons/ClockworkBow.cs index 9ec7940f60..f5debb77c4 100644 --- a/Items/Weapons/ClockworkBow.cs +++ b/Items/Weapons/ClockworkBow.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ClockworkBow : ModItem { diff --git a/Items/Weapons/Cnidarian.cs b/Items/Weapons/Cnidarian.cs index 644802f622..d18d853ba2 100644 --- a/Items/Weapons/Cnidarian.cs +++ b/Items/Weapons/Cnidarian.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Cnidarian : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; item.autoReuse = true; - item.shoot = mod.ProjectileType("CnidarianProjectile"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/CometQuasher.cs b/Items/Weapons/CometQuasher.cs index f3d8890315..00245eb414 100644 --- a/Items/Weapons/CometQuasher.cs +++ b/Items/Weapons/CometQuasher.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CometQuasher : ModItem { diff --git a/Items/Weapons/ConferenceCall.cs b/Items/Weapons/ConferenceCall.cs index c98ece71a0..5edc41cb47 100644 --- a/Items/Weapons/ConferenceCall.cs +++ b/Items/Weapons/ConferenceCall.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ConferenceCall : ModItem { diff --git a/Items/Weapons/Contagion.cs b/Items/Weapons/Contagion.cs index b7c11dd4ac..ad4ffa94cd 100644 --- a/Items/Weapons/Contagion.cs +++ b/Items/Weapons/Contagion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Contagion : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("Contagion"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 16; @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Contagion"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/CoralSpout.cs b/Items/Weapons/CoralSpout.cs index 05be91fb16..3e30dec554 100644 --- a/Items/Weapons/CoralSpout.cs +++ b/Items/Weapons/CoralSpout.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CoralSpout : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 2; item.UseSound = SoundID.Item17; item.autoReuse = true; - item.shoot = mod.ProjectileType("CoralSpike"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/CosmicBolter.cs b/Items/Weapons/CosmicBolter.cs index a1a7223b96..05e41a08a4 100644 --- a/Items/Weapons/CosmicBolter.cs +++ b/Items/Weapons/CosmicBolter.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CosmicBolter : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.UseSound = SoundID.Item75; item.autoReuse = true; - item.shoot = mod.ProjectileType("LunarBolt2"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.useAmmo = 40; } @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons { value9 -= vector7; } - int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, mod.ProjectileType("LunarBolt2"), damage, knockBack, player.whoAmI, 0f, 0f); + int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[num121].noDropItem = true; } return false; diff --git a/Items/Weapons/CosmicDischarge.cs b/Items/Weapons/CosmicDischarge.cs index 5c3b1bc30b..0ce7b6cebf 100644 --- a/Items/Weapons/CosmicDischarge.cs +++ b/Items/Weapons/CosmicDischarge.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CosmicDischarge : ModItem { @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("CosmicDischarge"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 17; } diff --git a/Items/Weapons/CosmicImmaterializer.cs b/Items/Weapons/CosmicImmaterializer.cs index 70be013eb4..d49e3499fd 100644 --- a/Items/Weapons/CosmicImmaterializer.cs +++ b/Items/Weapons/CosmicImmaterializer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CosmicImmaterializer : ModItem { @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item60; item.autoReuse = true; - item.shoot = mod.ProjectileType("CosmicEnergy"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.Calamity().postMoonLordRarity = 15; @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons for (int i = 0; i < Main.maxProjectiles; i++) { Projectile p = Main.projectile[i]; - if (p.active && p.type == mod.ProjectileType("CosmicEnergy") && p.owner == player.whoAmI) + if (p.active && p.type == ModContent.ProjectileType() && p.owner == player.whoAmI) { return false; } diff --git a/Items/Weapons/CosmicRainbow.cs b/Items/Weapons/CosmicRainbow.cs index 5e7491ccc2..e6f0f4b1d5 100644 --- a/Items/Weapons/CosmicRainbow.cs +++ b/Items/Weapons/CosmicRainbow.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CosmicRainbow : ModItem { diff --git a/Items/Weapons/Cosmilamp.cs b/Items/Weapons/Cosmilamp.cs index 897d4b7940..3fd28b9a63 100644 --- a/Items/Weapons/Cosmilamp.cs +++ b/Items/Weapons/Cosmilamp.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Cosmilamp : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("Cosmilamp"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.Calamity().postMoonLordRarity = 13; @@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons num79 = 0f; vector2.X = (float)Main.mouseX + Main.screenPosition.X; vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, mod.ProjectileType("Cosmilamp"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Crabulon/Fungicide.cs b/Items/Weapons/Crabulon/Fungicide.cs index 65ccee95f4..907ba92665 100644 --- a/Items/Weapons/Crabulon/Fungicide.cs +++ b/Items/Weapons/Crabulon/Fungicide.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Crabulon +namespace CalamityMod.Items { public class Fungicide : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Crabulon item.rare = 2; item.UseSound = SoundID.Item61; item.autoReuse = true; - item.shoot = mod.ProjectileType("FungiOrb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.useAmmo = 97; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Crabulon 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("FungiOrb"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Crabulon/HyphaeRod.cs b/Items/Weapons/Crabulon/HyphaeRod.cs index 8a8c1c8cd4..957cdda79a 100644 --- a/Items/Weapons/Crabulon/HyphaeRod.cs +++ b/Items/Weapons/Crabulon/HyphaeRod.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Crabulon +namespace CalamityMod.Items { public class HyphaeRod : ModItem { diff --git a/Items/Weapons/Crabulon/MycelialClaws.cs b/Items/Weapons/Crabulon/MycelialClaws.cs index 4d9d527352..b711f57155 100644 --- a/Items/Weapons/Crabulon/MycelialClaws.cs +++ b/Items/Weapons/Crabulon/MycelialClaws.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Crabulon +namespace CalamityMod.Items { public class MycelialClaws : ModItem { diff --git a/Items/Weapons/Cryogen/Avalanche.cs b/Items/Weapons/Cryogen/Avalanche.cs index 948ef0f505..4fa3004a84 100644 --- a/Items/Weapons/Cryogen/Avalanche.cs +++ b/Items/Weapons/Cryogen/Avalanche.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Cryogen +namespace CalamityMod.Items { public class Avalanche : ModItem { @@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Cryogen } num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); num80 = num72 / num80; - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, mod.ProjectileType("IceBombFriendly"), (int)((float)item.damage * player.meleeDamage), num74, i, 0f, (float)Main.rand.Next(3)); + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), num74, i, 0f, (float)Main.rand.Next(3)); } } diff --git a/Items/Weapons/Cryogen/BittercoldStaff.cs b/Items/Weapons/Cryogen/BittercoldStaff.cs index 42a4cc6c11..dd074dcf0e 100644 --- a/Items/Weapons/Cryogen/BittercoldStaff.cs +++ b/Items/Weapons/Cryogen/BittercoldStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Cryogen +namespace CalamityMod.Items { public class BittercoldStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Cryogen item.rare = 5; item.UseSound = SoundID.Item46; item.autoReuse = true; - item.shoot = mod.ProjectileType("IceSpike"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } @@ -80,7 +80,7 @@ namespace CalamityMod.Items.Weapons.Cryogen num133 *= num80; float x2 = vector2.X; float y2 = vector2.Y; - Projectile.NewProjectile(x2, y2, num132, num133, mod.ProjectileType("IceSpike"), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(x2, y2, num132, num133, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); } return false; } diff --git a/Items/Weapons/Cryogen/EffluviumBow.cs b/Items/Weapons/Cryogen/EffluviumBow.cs index 90e6f16e39..b6d2944592 100644 --- a/Items/Weapons/Cryogen/EffluviumBow.cs +++ b/Items/Weapons/Cryogen/EffluviumBow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Cryogen +namespace CalamityMod.Items { public class EffluviumBow : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Cryogen item.rare = 5; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("MistArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 40; } @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Cryogen { float SpeedX = speedX + (float)Main.rand.Next(-30, 31) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-30, 31) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("MistArrow"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/Cryogen/GlacialCrusher.cs b/Items/Weapons/Cryogen/GlacialCrusher.cs index 27d377392a..eee598e0d1 100644 --- a/Items/Weapons/Cryogen/GlacialCrusher.cs +++ b/Items/Weapons/Cryogen/GlacialCrusher.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Cryogen +namespace CalamityMod.Items { public class GlacialCrusher : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Cryogen item.height = 58; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("Iceberg"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Cryogen public override void ModifyHitNPC(Player player, NPC target, ref int damage, ref float knockBack, ref bool crit) { - if (target.buffImmune[mod.BuffType("GlacialState")]) + if (target.buffImmune[ModContent.BuffType()]) { damage *= 2; knockBack *= 2f; diff --git a/Items/Weapons/Cryogen/SnowstormStaff.cs b/Items/Weapons/Cryogen/SnowstormStaff.cs index d2c80a91b4..45deb3e23c 100644 --- a/Items/Weapons/Cryogen/SnowstormStaff.cs +++ b/Items/Weapons/Cryogen/SnowstormStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Cryogen +namespace CalamityMod.Items { public class SnowstormStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Cryogen item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.UseSound = SoundID.Item46; - item.shoot = mod.ProjectileType("Snowflake"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7f; } diff --git a/Items/Weapons/CrystalBlade.cs b/Items/Weapons/CrystalBlade.cs index f9f2ce192a..bdd08f4081 100644 --- a/Items/Weapons/CrystalBlade.cs +++ b/Items/Weapons/CrystalBlade.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CrystalBlade : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.height = 66; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("CrystalDust"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } diff --git a/Items/Weapons/CrystalFlareStaff.cs b/Items/Weapons/CrystalFlareStaff.cs index df228afeb5..be551524f5 100644 --- a/Items/Weapons/CrystalFlareStaff.cs +++ b/Items/Weapons/CrystalFlareStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CrystalFlareStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("SpiritFlameCurse"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; } diff --git a/Items/Weapons/CursedCapper.cs b/Items/Weapons/CursedCapper.cs index f579093870..0896febaa2 100644 --- a/Items/Weapons/CursedCapper.cs +++ b/Items/Weapons/CursedCapper.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class CursedCapper : ModItem { diff --git a/Items/Weapons/DarkechoGreatbow.cs b/Items/Weapons/DarkechoGreatbow.cs index 2cc68936f4..497e3e2232 100644 --- a/Items/Weapons/DarkechoGreatbow.cs +++ b/Items/Weapons/DarkechoGreatbow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DarkechoGreatbow : ModItem { diff --git a/Items/Weapons/DarklightGreatsword.cs b/Items/Weapons/DarklightGreatsword.cs index 505adefa21..dfed3b18a1 100644 --- a/Items/Weapons/DarklightGreatsword.cs +++ b/Items/Weapons/DarklightGreatsword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DarklightGreatsword : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 60; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("StarCrystal"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/DeathValley.cs b/Items/Weapons/DeathValley.cs index 215a8897bf..85c26f408f 100644 --- a/Items/Weapons/DeathValley.cs +++ b/Items/Weapons/DeathValley.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DeathValley : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("DustProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } diff --git a/Items/Weapons/DemonicPitchfork.cs b/Items/Weapons/DemonicPitchfork.cs index 8101a9ed86..2504c67c56 100644 --- a/Items/Weapons/DemonicPitchfork.cs +++ b/Items/Weapons/DemonicPitchfork.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DemonicPitchfork : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("DemonicPitchfork"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/DepthBlade.cs b/Items/Weapons/DepthBlade.cs index 1869af4295..0b4c8f3594 100644 --- a/Items/Weapons/DepthBlade.cs +++ b/Items/Weapons/DepthBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DepthBlade : ModItem { @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Items/Weapons/DesertScourge/AquaticDischarge.cs b/Items/Weapons/DesertScourge/AquaticDischarge.cs index 401c9233c7..84f0edcb6e 100644 --- a/Items/Weapons/DesertScourge/AquaticDischarge.cs +++ b/Items/Weapons/DesertScourge/AquaticDischarge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DesertScourge +namespace CalamityMod.Items { public class AquaticDischarge : ModItem { @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.DesertScourge { if (target.life <= 0) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("Spark"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/DesertScourge/Barinade.cs b/Items/Weapons/DesertScourge/Barinade.cs index c778e9f39c..4adc579adc 100644 --- a/Items/Weapons/DesertScourge/Barinade.cs +++ b/Items/Weapons/DesertScourge/Barinade.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; //using TerrariaOverhaul; -namespace CalamityMod.Items.Weapons.DesertScourge +namespace CalamityMod.Items { public class Barinade : ModItem { @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.DesertScourge 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BoltArrow"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/DesertScourge/SeaboundStaff.cs b/Items/Weapons/DesertScourge/SeaboundStaff.cs index 1391c6e5eb..5303a89632 100644 --- a/Items/Weapons/DesertScourge/SeaboundStaff.cs +++ b/Items/Weapons/DesertScourge/SeaboundStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DesertScourge +namespace CalamityMod.Items { public class SeaboundStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DesertScourge item.rare = 2; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("BrittleStar"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/DesertScourge/StormSpray.cs b/Items/Weapons/DesertScourge/StormSpray.cs index 2a46fa1331..1431861269 100644 --- a/Items/Weapons/DesertScourge/StormSpray.cs +++ b/Items/Weapons/DesertScourge/StormSpray.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DesertScourge +namespace CalamityMod.Items { public class StormSpray : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DesertScourge item.rare = 2; item.UseSound = SoundID.Item13; item.autoReuse = true; - item.shoot = mod.ProjectileType("WaterStream"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } diff --git a/Items/Weapons/Devastation.cs b/Items/Weapons/Devastation.cs index 0894645104..42d5e58789 100644 --- a/Items/Weapons/Devastation.cs +++ b/Items/Weapons/Devastation.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Devastation : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 72; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("GalaxyBlast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().postMoonLordRarity = 12; } @@ -39,13 +39,13 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(6)) { case 1: - type = mod.ProjectileType("GalaxyBlast"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("GalaxyBlastType2"); + type = ModContent.ProjectileType(); break; case 3: - type = mod.ProjectileType("GalaxyBlastType3"); + type = ModContent.ProjectileType(); break; default: break; @@ -93,9 +93,9 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-40, 41) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-40, 41) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("GalaxyBlast"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(5)); - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("GalaxyBlastType2"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("GalaxyBlastType3"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(1)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(5)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(1)); } return false; } diff --git a/Items/Weapons/DevilsDevastation.cs b/Items/Weapons/DevilsDevastation.cs index 880a42bf33..81c0ed2262 100644 --- a/Items/Weapons/DevilsDevastation.cs +++ b/Items/Weapons/DevilsDevastation.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DevilsDevastation : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 74; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Oathblade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; item.Calamity().postMoonLordRarity = 14; } @@ -87,9 +87,9 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-40, 41) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-40, 41) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("DemonBlast"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(5)); - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("DemonBlastType2"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("DemonBlastType3"), damage, knockBack, player.whoAmI, 0f, 1f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(5)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 1f); } return false; } diff --git a/Items/Weapons/DevourerofGods/DeathhailStaff.cs b/Items/Weapons/DevourerofGods/DeathhailStaff.cs index e0b1bf6845..f87d066160 100644 --- a/Items/Weapons/DevourerofGods/DeathhailStaff.cs +++ b/Items/Weapons/DevourerofGods/DeathhailStaff.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DevourerofGods +namespace CalamityMod.Items { public class DeathhailStaff : ModItem { @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.rare = 10; item.UseSound = SoundID.Item12; item.autoReuse = true; - item.shoot = mod.ProjectileType("MagicNebulaShot"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/DevourerofGods/Deathwind.cs b/Items/Weapons/DevourerofGods/Deathwind.cs index 185afcaaf2..b24cac5eec 100644 --- a/Items/Weapons/DevourerofGods/Deathwind.cs +++ b/Items/Weapons/DevourerofGods/Deathwind.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DevourerofGods +namespace CalamityMod.Items { public class Deathwind : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.rare = 10; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("NebulaShot"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 13; @@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f; if (type == ProjectileID.WoodenArrowFriendly) { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("NebulaShot"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } else { diff --git a/Items/Weapons/DevourerofGods/EradicatorMelee.cs b/Items/Weapons/DevourerofGods/EradicatorMelee.cs index 2577f6ee2b..0f9af54d9c 100644 --- a/Items/Weapons/DevourerofGods/EradicatorMelee.cs +++ b/Items/Weapons/DevourerofGods/EradicatorMelee.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DevourerofGods +namespace CalamityMod.Items { public class EradicatorMelee : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.height = 54; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EradicatorMeleeProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/DevourerofGods/Excelsus.cs b/Items/Weapons/DevourerofGods/Excelsus.cs index a556e8cf42..96022af37f 100644 --- a/Items/Weapons/DevourerofGods/Excelsus.cs +++ b/Items/Weapons/DevourerofGods/Excelsus.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DevourerofGods +namespace CalamityMod.Items { public class Excelsus : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.height = 94; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Excelsus"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 13; } @@ -50,13 +50,13 @@ namespace CalamityMod.Items.Weapons.DevourerofGods switch (index) { case 0: - type = mod.ProjectileType("Excelsus"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("ExcelsusBlue"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("ExcelsusPink"); + type = ModContent.ProjectileType(); break; } Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); @@ -66,7 +66,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("LaserFountain"), 0, 0, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0, Main.myPlayer); } } } diff --git a/Items/Weapons/DevourerofGods/StaffoftheMechworm.cs b/Items/Weapons/DevourerofGods/StaffoftheMechworm.cs index 63741daac0..4a96ba6edd 100644 --- a/Items/Weapons/DevourerofGods/StaffoftheMechworm.cs +++ b/Items/Weapons/DevourerofGods/StaffoftheMechworm.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DevourerofGods +namespace CalamityMod.Items { public class StaffoftheMechworm : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.rare = 10; item.UseSound = SoundID.Item113; item.autoReuse = true; - item.shoot = mod.ProjectileType("MechwormHead"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.Calamity().postMoonLordRarity = 13; @@ -91,8 +91,8 @@ namespace CalamityMod.Items.Weapons.DevourerofGods velY *= dist; int head = -1; int tail = -1; - int typeHead = mod.ProjectileType("MechwormHead"); - int typeTail = mod.ProjectileType("MechwormTail"); + int typeHead = ModContent.ProjectileType(); + int typeTail = ModContent.ProjectileType(); for (int i = 0; i < Main.maxProjectiles; i++) { if (Main.projectile[i].active && Main.projectile[i].owner == owner) @@ -126,25 +126,25 @@ namespace CalamityMod.Items.Weapons.DevourerofGods velY = 0f; vector2.X = (float)Main.mouseX + Main.screenPosition.X; vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - int curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormHead"), damage, knockBack, owner); + int curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, knockBack, owner); int prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody"), damage, knockBack, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, knockBack, owner, (float)prev); prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody2"), damage, knockBack, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, knockBack, owner, (float)prev); Main.projectile[prev].localAI[1] = (float)curr; Main.projectile[prev].netUpdate = true; prev = curr; - curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormTail"), damage, knockBack, owner, (float)prev); + curr = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, knockBack, owner, (float)prev); Main.projectile[prev].localAI[1] = (float)curr; Main.projectile[prev].netUpdate = true; } else if (head != -1 && tail != -1) { - int body = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody"), damage, knockBack, owner, Main.projectile[tail].ai[0]); - int back = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, mod.ProjectileType("MechwormBody2"), damage, knockBack, owner, (float)body); + int body = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, knockBack, owner, Main.projectile[tail].ai[0]); + int back = Projectile.NewProjectile(vector2.X, vector2.Y, velX, velY, ModContent.ProjectileType(), damage, knockBack, owner, (float)body); Main.projectile[body].localAI[1] = (float)back; Main.projectile[body].ai[1] = 1f; diff --git a/Items/Weapons/DevourerofGods/TheObliterator.cs b/Items/Weapons/DevourerofGods/TheObliterator.cs index 628ebc85eb..0273754064 100644 --- a/Items/Weapons/DevourerofGods/TheObliterator.cs +++ b/Items/Weapons/DevourerofGods/TheObliterator.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.DevourerofGods +namespace CalamityMod.Items { public class TheObliterator : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("TheObliterator"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } } diff --git a/Items/Weapons/DraconicDestruction.cs b/Items/Weapons/DraconicDestruction.cs index 36456274a5..d4238cdd9f 100644 --- a/Items/Weapons/DraconicDestruction.cs +++ b/Items/Weapons/DraconicDestruction.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DraconicDestruction : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 94; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("DracoBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().postMoonLordRarity = 16; } diff --git a/Items/Weapons/DraedonsExoblade.cs b/Items/Weapons/DraedonsExoblade.cs index 5331c3fa4c..e9dbbb0181 100644 --- a/Items/Weapons/DraedonsExoblade.cs +++ b/Items/Weapons/DraedonsExoblade.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class DraedonsExoblade : ModItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons item.height = 114; item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Exobeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 19f; item.Calamity().postMoonLordRarity = 15; } @@ -60,13 +60,13 @@ namespace CalamityMod.Items.Weapons { if (target.life <= (target.lifeMax * 0.05f)) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("Exoboom"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); @@ -97,12 +97,12 @@ namespace CalamityMod.Items.Weapons { speedY = -15f; } - if (player.ownedProjectileCounts[mod.ProjectileType("Exocomet")] < 8) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 8) { for (int comet = 0; comet < 2; comet++) { float ai1 = Main.rand.NextFloat() + 0.5f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("Exocomet"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, ai1); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, ai1); } } if (target.type == NPCID.TargetDummy || !target.canGhostHeal) diff --git a/Items/Weapons/Drataliornus.cs b/Items/Weapons/Drataliornus.cs index 70701e055d..30d1526f3c 100644 --- a/Items/Weapons/Drataliornus.cs +++ b/Items/Weapons/Drataliornus.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Drataliornus : ModItem { @@ -29,7 +29,7 @@ Right click to fire two devastating barrages of five empowered fireballs. item.width = 64; item.height = 84; item.UseSound = SoundID.Item5; - item.shoot = mod.ProjectileType("Drataliornus"); + item.shoot = ModContent.ProjectileType(); item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; item.noMelee = true; @@ -79,12 +79,12 @@ Right click to fire two devastating barrages of five empowered fireballs. { float num8 = index1 - (num4 - 1) / 2; Vector2 vector2_5 = spinningpoint.RotatedBy(num3 * num8, new Vector2()); - Projectile.NewProjectile(position.X + vector2_5.X, position.Y + vector2_5.Y, speedX, speedY, mod.ProjectileType("DrataliornusFlame"), damage, knockBack, player.whoAmI, 1f, 0f); + Projectile.NewProjectile(position.X + vector2_5.X, position.Y + vector2_5.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 1f, 0f); } } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Drataliornus"), 0, 0f, player.whoAmI); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); } return false; diff --git a/Items/Weapons/Dualpoon.cs b/Items/Weapons/Dualpoon.cs index eadfc912c1..c0de375edd 100644 --- a/Items/Weapons/Dualpoon.cs +++ b/Items/Weapons/Dualpoon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Dualpoon : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item10; item.autoReuse = true; item.shootSpeed = 20f; - item.shoot = mod.ProjectileType("Triploon"); + item.shoot = ModContent.ProjectileType(); } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/Earth.cs b/Items/Weapons/Earth.cs index b6bb73d524..72418cbca4 100644 --- a/Items/Weapons/Earth.cs +++ b/Items/Weapons/Earth.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Earth : ModItem { @@ -81,7 +81,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78; float speedY5 = num79 + (float)Main.rand.Next(-180, 181) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("Earth"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, (float)Main.rand.Next(10)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, (float)Main.rand.Next(10)); } if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { diff --git a/Items/Weapons/EarthenPike.cs b/Items/Weapons/EarthenPike.cs index 9bc314e83b..1c805f8148 100644 --- a/Items/Weapons/EarthenPike.cs +++ b/Items/Weapons/EarthenPike.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class EarthenPike : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 60; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("EarthenPike"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } } diff --git a/Items/Weapons/Effervescence.cs b/Items/Weapons/Effervescence.cs index 76668bba41..ab924de3b1 100644 --- a/Items/Weapons/Effervescence.cs +++ b/Items/Weapons/Effervescence.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Effervescence : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item95; item.autoReuse = true; item.shootSpeed = 13f; - item.shoot = mod.ProjectileType("UberBubble"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/ElementalAxe.cs b/Items/Weapons/ElementalAxe.cs index f183e0a075..e6eb136752 100644 --- a/Items/Weapons/ElementalAxe.cs +++ b/Items/Weapons/ElementalAxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ElementalAxe : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("ElementalAxe"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/ElementalBlaster.cs b/Items/Weapons/ElementalBlaster.cs index 7abb0bff91..8ddd722746 100644 --- a/Items/Weapons/ElementalBlaster.cs +++ b/Items/Weapons/ElementalBlaster.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ElementalBlaster : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBolt"); item.autoReuse = true; - item.shoot = mod.ProjectileType("RainbowBlast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/ElementalEruption.cs b/Items/Weapons/ElementalEruption.cs index b90836286f..f5640f4dfc 100644 --- a/Items/Weapons/ElementalEruption.cs +++ b/Items/Weapons/ElementalEruption.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ElementalEruption : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("TerraFireGreen2"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.useAmmo = 23; item.Calamity().postMoonLordRarity = 12; diff --git a/Items/Weapons/ElementalExcalibur.cs b/Items/Weapons/ElementalExcalibur.cs index dd60b832d1..05d45fea8e 100644 --- a/Items/Weapons/ElementalExcalibur.cs +++ b/Items/Weapons/ElementalExcalibur.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ElementalExcalibur : ModItem { @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons item.height = 92; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("ElementalExcaliburBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 20; } @@ -110,11 +110,11 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 60); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 240); - target.AddBuff(mod.BuffType("GlacialState"), 240); - target.AddBuff(mod.BuffType("Plague"), 240); - target.AddBuff(mod.BuffType("HolyLight"), 240); + target.AddBuff(ModContent.BuffType(), 60); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); target.AddBuff(BuffID.CursedInferno, 240); target.AddBuff(BuffID.Frostburn, 240); target.AddBuff(BuffID.OnFire, 240); diff --git a/Items/Weapons/ElementalRay.cs b/Items/Weapons/ElementalRay.cs index 3c332dd763..a2850a1fd6 100644 --- a/Items/Weapons/ElementalRay.cs +++ b/Items/Weapons/ElementalRay.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ElementalRay : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item60; item.autoReuse = true; - item.shoot = mod.ProjectileType("ElementRay"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/ElementalShortsword.cs b/Items/Weapons/ElementalShortsword.cs index a1d68f3713..0deb6c6f4d 100644 --- a/Items/Weapons/ElementalShortsword.cs +++ b/Items/Weapons/ElementalShortsword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ElementalShortsword : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item1; item.useTurn = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("ElementBallShiv"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; @@ -64,10 +64,10 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Items/Weapons/ElysianArrow.cs b/Items/Weapons/ElysianArrow.cs index 4919b9e9bf..601ee5396a 100644 --- a/Items/Weapons/ElysianArrow.cs +++ b/Items/Weapons/ElysianArrow.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ElysianArrow : ModItem { @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons item.consumable = true; item.knockBack = 3f; item.value = 2000; - item.shoot = mod.ProjectileType("ElysianArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 40; item.Calamity().postMoonLordRarity = 12; diff --git a/Items/Weapons/EmpyreanKnives.cs b/Items/Weapons/EmpyreanKnives.cs index bf3b503b33..088e73ba01 100644 --- a/Items/Weapons/EmpyreanKnives.cs +++ b/Items/Weapons/EmpyreanKnives.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class EmpyreanKnives : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 20; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EmpyreanKnives"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/EnergyStaff.cs b/Items/Weapons/EnergyStaff.cs index f6e640e0a7..bdc3079431 100644 --- a/Items/Weapons/EnergyStaff.cs +++ b/Items/Weapons/EnergyStaff.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class EnergyStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("ProfanedEnergy"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/EnhancedNanoRound.cs b/Items/Weapons/EnhancedNanoRound.cs index f7f95c3415..f473c9cc30 100644 --- a/Items/Weapons/EnhancedNanoRound.cs +++ b/Items/Weapons/EnhancedNanoRound.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class EnhancedNanoRound : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 5.5f; item.value = 500; item.rare = 3; - item.shoot = mod.ProjectileType("EnhancedNanoRound"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.ammo = 97; } diff --git a/Items/Weapons/EssenceFlayer.cs b/Items/Weapons/EssenceFlayer.cs index 360bebd33b..b57f8147f2 100644 --- a/Items/Weapons/EssenceFlayer.cs +++ b/Items/Weapons/EssenceFlayer.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class EssenceFlayer : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 78; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EssenceScythe"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 21f; item.Calamity().postMoonLordRarity = 14; } @@ -66,7 +66,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/EvergladeSpray.cs b/Items/Weapons/EvergladeSpray.cs index 64a475c949..30b5f4ac3f 100644 --- a/Items/Weapons/EvergladeSpray.cs +++ b/Items/Weapons/EvergladeSpray.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class EvergladeSpray : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 7; item.UseSound = SoundID.Item13; item.autoReuse = true; - item.shoot = mod.ProjectileType("EvergladeSprayProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } diff --git a/Items/Weapons/ExcaliburShortsword.cs b/Items/Weapons/ExcaliburShortsword.cs index 8c3c9691c6..365bb8f684 100644 --- a/Items/Weapons/ExcaliburShortsword.cs +++ b/Items/Weapons/ExcaliburShortsword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ExcaliburShortsword : ModItem { diff --git a/Items/Weapons/ExsanguinationLance.cs b/Items/Weapons/ExsanguinationLance.cs index 0d92493ba0..b0d7d23b9d 100644 --- a/Items/Weapons/ExsanguinationLance.cs +++ b/Items/Weapons/ExsanguinationLance.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ExsanguinationLance : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 44; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("ExsanguinationLanceProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; } diff --git a/Items/Weapons/Fabstaff.cs b/Items/Weapons/Fabstaff.cs index bcf40c71eb..51e8fe8908 100644 --- a/Items/Weapons/Fabstaff.cs +++ b/Items/Weapons/Fabstaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Fabstaff : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item60; item.autoReuse = true; - item.shoot = mod.ProjectileType("FabRay"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.Calamity().postMoonLordRarity = 18; } diff --git a/Items/Weapons/FeralthornClaymore.cs b/Items/Weapons/FeralthornClaymore.cs index ab2c7525db..bb059d99ff 100644 --- a/Items/Weapons/FeralthornClaymore.cs +++ b/Items/Weapons/FeralthornClaymore.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FeralthornClaymore : ModItem { diff --git a/Items/Weapons/FiniteUse/Bazooka.cs b/Items/Weapons/FiniteUse/Bazooka.cs index d88c61066b..e2163e69ba 100644 --- a/Items/Weapons/FiniteUse/Bazooka.cs +++ b/Items/Weapons/FiniteUse/Bazooka.cs @@ -2,9 +2,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class Bazooka : ModItem { @@ -31,8 +31,8 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/BazookaFull"); item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("GrenadeRound"); - item.useAmmo = mod.ItemType("GrenadeRounds"); + item.shoot = ModContent.ProjectileType(); + item.useAmmo = ModContent.ItemType(); if (CalamityPlayer.areThereAnyDamnBosses) { item.Calamity().timesUsed = 2; diff --git a/Items/Weapons/FiniteUse/ElephantKiller.cs b/Items/Weapons/FiniteUse/ElephantKiller.cs index 3571e78554..97c6a3b319 100644 --- a/Items/Weapons/FiniteUse/ElephantKiller.cs +++ b/Items/Weapons/FiniteUse/ElephantKiller.cs @@ -2,9 +2,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class ElephantKiller : ModItem { @@ -32,8 +32,8 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Magnum"); item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("MagnumRound"); - item.useAmmo = mod.ItemType("MagnumRounds"); + item.shoot = ModContent.ProjectileType(); + item.useAmmo = ModContent.ItemType(); item.Calamity().postMoonLordRarity = 12; if (CalamityPlayer.areThereAnyDamnBosses) { diff --git a/Items/Weapons/FiniteUse/ExplosiveShells.cs b/Items/Weapons/FiniteUse/ExplosiveShells.cs index a4111b481b..9b76112e72 100644 --- a/Items/Weapons/FiniteUse/ExplosiveShells.cs +++ b/Items/Weapons/FiniteUse/ExplosiveShells.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class ExplosiveShells : ModItem { @@ -19,9 +19,9 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.knockBack = 10f; item.value = 15000; item.rare = 8; - item.shoot = mod.ProjectileType("ExplosiveShellBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.ammo = mod.ItemType("ExplosiveShells"); + item.ammo = ModContent.ItemType(); } } } diff --git a/Items/Weapons/FiniteUse/GrenadeRounds.cs b/Items/Weapons/FiniteUse/GrenadeRounds.cs index 16e464b66c..3a38c31967 100644 --- a/Items/Weapons/FiniteUse/GrenadeRounds.cs +++ b/Items/Weapons/FiniteUse/GrenadeRounds.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class GrenadeRounds : ModItem { @@ -19,9 +19,9 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.knockBack = 10f; item.value = 15000; item.rare = 8; - item.shoot = mod.ProjectileType("GrenadeRound"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.ammo = mod.ItemType("GrenadeRounds"); + item.ammo = ModContent.ItemType(); } } } diff --git a/Items/Weapons/FiniteUse/Hydra.cs b/Items/Weapons/FiniteUse/Hydra.cs index 5e833a529c..fd80642019 100644 --- a/Items/Weapons/FiniteUse/Hydra.cs +++ b/Items/Weapons/FiniteUse/Hydra.cs @@ -2,9 +2,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class Hydra : ModItem { @@ -31,8 +31,8 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Hydra"); item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("ExplosiveShellBullet"); - item.useAmmo = mod.ItemType("ExplosiveShells"); + item.shoot = ModContent.ProjectileType(); + item.useAmmo = ModContent.ItemType(); if (CalamityPlayer.areThereAnyDamnBosses) { item.Calamity().timesUsed = 1; diff --git a/Items/Weapons/FiniteUse/LightningHawk.cs b/Items/Weapons/FiniteUse/LightningHawk.cs index b8e4b23597..7ce128539d 100644 --- a/Items/Weapons/FiniteUse/LightningHawk.cs +++ b/Items/Weapons/FiniteUse/LightningHawk.cs @@ -2,9 +2,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class LightningHawk : ModItem { @@ -32,8 +32,8 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Magnum"); item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("MagnumRound"); - item.useAmmo = mod.ItemType("MagnumRounds"); + item.shoot = ModContent.ProjectileType(); + item.useAmmo = ModContent.ItemType(); if (CalamityPlayer.areThereAnyDamnBosses) { item.Calamity().timesUsed = 3; diff --git a/Items/Weapons/FiniteUse/Magnum.cs b/Items/Weapons/FiniteUse/Magnum.cs index bfe36352b8..b021760d7d 100644 --- a/Items/Weapons/FiniteUse/Magnum.cs +++ b/Items/Weapons/FiniteUse/Magnum.cs @@ -2,9 +2,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class Magnum : ModItem { @@ -32,8 +32,8 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Magnum"); item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("MagnumRound"); - item.useAmmo = mod.ItemType("MagnumRounds"); + item.shoot = ModContent.ProjectileType(); + item.useAmmo = ModContent.ItemType(); if (CalamityPlayer.areThereAnyDamnBosses) { item.Calamity().timesUsed = 3; diff --git a/Items/Weapons/FiniteUse/MagnumRounds.cs b/Items/Weapons/FiniteUse/MagnumRounds.cs index b8fa490456..3a0fbdefe0 100644 --- a/Items/Weapons/FiniteUse/MagnumRounds.cs +++ b/Items/Weapons/FiniteUse/MagnumRounds.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.FiniteUse +namespace CalamityMod.Items { public class MagnumRounds : ModItem { @@ -20,9 +20,9 @@ namespace CalamityMod.Items.Weapons.FiniteUse item.knockBack = 8f; item.value = 10000; item.rare = 8; - item.shoot = mod.ProjectileType("MagnumRound"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; - item.ammo = mod.ItemType("MagnumRounds"); + item.ammo = ModContent.ItemType(); } } } diff --git a/Items/Weapons/FirestormCannon.cs b/Items/Weapons/FirestormCannon.cs index 1dfcb0fd4e..239ac2dc0c 100644 --- a/Items/Weapons/FirestormCannon.cs +++ b/Items/Weapons/FirestormCannon.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FirestormCannon : ModItem { diff --git a/Items/Weapons/FlameScytheMelee.cs b/Items/Weapons/FlameScytheMelee.cs index 112ba9b5e7..96cf627378 100644 --- a/Items/Weapons/FlameScytheMelee.cs +++ b/Items/Weapons/FlameScytheMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FlameScytheMelee : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 48; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("FlameScytheProjectileMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/FlameburstShortsword.cs b/Items/Weapons/FlameburstShortsword.cs index 95d8c3b586..57f19d18f1 100644 --- a/Items/Weapons/FlameburstShortsword.cs +++ b/Items/Weapons/FlameburstShortsword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FlameburstShortsword : ModItem { @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons { if (target.life <= (target.lifeMax * 0.5f)) { - int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; } } diff --git a/Items/Weapons/FlareBolt.cs b/Items/Weapons/FlareBolt.cs index 45635bc438..dfe9ae54c4 100644 --- a/Items/Weapons/FlareBolt.cs +++ b/Items/Weapons/FlareBolt.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FlareBolt : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 3; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("FlareBoltProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7.5f; } diff --git a/Items/Weapons/FlarefrostBlade.cs b/Items/Weapons/FlarefrostBlade.cs index 1168ca1d40..f1571ca856 100644 --- a/Items/Weapons/FlarefrostBlade.cs +++ b/Items/Weapons/FlarefrostBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FlarefrostBlade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 66; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("Flarefrost"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; } diff --git a/Items/Weapons/FlarewingBow.cs b/Items/Weapons/FlarewingBow.cs index 358cf719e2..75d7b25586 100644 --- a/Items/Weapons/FlarewingBow.cs +++ b/Items/Weapons/FlarewingBow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FlarewingBow : ModItem { @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons } if (type == ProjectileID.WoodenArrowFriendly) { - int num123 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, mod.ProjectileType("FlareBat"), (int)((double)damage * 1.5), knockBack, player.whoAmI, 0.0f, 0.0f); + int num123 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.5), knockBack, player.whoAmI, 0.0f, 0.0f); Main.projectile[num123].noDropItem = true; } else diff --git a/Items/Weapons/FlashBullet.cs b/Items/Weapons/FlashBullet.cs index fb9f9db501..a853122f0f 100644 --- a/Items/Weapons/FlashBullet.cs +++ b/Items/Weapons/FlashBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FlashBullet : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.15f; item.value = 250; item.rare = 1; - item.shoot = mod.ProjectileType("FlashBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.ammo = 97; } diff --git a/Items/Weapons/Floodtide.cs b/Items/Weapons/Floodtide.cs index 257730d135..1b331ff0d8 100644 --- a/Items/Weapons/Floodtide.cs +++ b/Items/Weapons/Floodtide.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Floodtide : ModItem { diff --git a/Items/Weapons/ForbiddenOathblade.cs b/Items/Weapons/ForbiddenOathblade.cs index 538f31e98d..52accfb1b1 100644 --- a/Items/Weapons/ForbiddenOathblade.cs +++ b/Items/Weapons/ForbiddenOathblade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ForbiddenOathblade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 76; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("Oathblade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } diff --git a/Items/Weapons/ForbiddenSun.cs b/Items/Weapons/ForbiddenSun.cs index 7a7cb0c49f..1e0bba446a 100644 --- a/Items/Weapons/ForbiddenSun.cs +++ b/Items/Weapons/ForbiddenSun.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ForbiddenSun : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.autoReuse = true; - item.shoot = mod.ProjectileType("ForbiddenSunProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } diff --git a/Items/Weapons/ForsakenSaber.cs b/Items/Weapons/ForsakenSaber.cs index 873e3e5606..e6a5ab9864 100644 --- a/Items/Weapons/ForsakenSaber.cs +++ b/Items/Weapons/ForsakenSaber.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ForsakenSaber : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 52; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("SandBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } diff --git a/Items/Weapons/FourSeasonsGalaxia.cs b/Items/Weapons/FourSeasonsGalaxia.cs index f4400b8b04..69180bd3fc 100644 --- a/Items/Weapons/FourSeasonsGalaxia.cs +++ b/Items/Weapons/FourSeasonsGalaxia.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FourSeasonsGalaxia : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 70; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Galaxia"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/FrigidflashBolt.cs b/Items/Weapons/FrigidflashBolt.cs index 9b39343d0e..e65ae6ccb1 100644 --- a/Items/Weapons/FrigidflashBolt.cs +++ b/Items/Weapons/FrigidflashBolt.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FrigidflashBolt : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item21; item.autoReuse = true; - item.shoot = mod.ProjectileType("FrigidflashBoltProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6.5f; } diff --git a/Items/Weapons/FrostBolt.cs b/Items/Weapons/FrostBolt.cs index 7c8769eeed..21b4bdd38c 100644 --- a/Items/Weapons/FrostBolt.cs +++ b/Items/Weapons/FrostBolt.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FrostBolt : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 2; item.UseSound = SoundID.Item8; item.autoReuse = true; - item.shoot = mod.ProjectileType("FrostBoltProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/FrostsparkBullet.cs b/Items/Weapons/FrostsparkBullet.cs index f890a457e5..cb0e01a1f1 100644 --- a/Items/Weapons/FrostsparkBullet.cs +++ b/Items/Weapons/FrostsparkBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FrostsparkBullet : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.25f; item.value = 600; item.rare = 3; - item.shoot = mod.ProjectileType("FrostsparkBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.ammo = 97; } diff --git a/Items/Weapons/FulgurationHalberd.cs b/Items/Weapons/FulgurationHalberd.cs index 125f2f80db..916039ffe9 100644 --- a/Items/Weapons/FulgurationHalberd.cs +++ b/Items/Weapons/FulgurationHalberd.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class FulgurationHalberd : ModItem { @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons item.noUseGraphic = true; item.useStyle = 5; item.autoReuse = false; - item.shoot = mod.ProjectileType("FulgurationHalberd"); + item.shoot = ModContent.ProjectileType(); } else { @@ -59,13 +59,13 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("FulgurationHalberd"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BurningBlood"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void AddRecipes() diff --git a/Items/Weapons/GalacticaBlade.cs b/Items/Weapons/GalacticaBlade.cs index e06be7c878..263a766cd2 100644 --- a/Items/Weapons/GalacticaBlade.cs +++ b/Items/Weapons/GalacticaBlade.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GalacticaBlade : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 58; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("GalacticaComet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 23f; item.Calamity().postMoonLordRarity = 12; } @@ -94,7 +94,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-100, 101) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-100, 101) * 0.02f; - int projectile = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("GalacticaComet"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10)); + int projectile = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10)); } return false; } diff --git a/Items/Weapons/GalaxySmasherMelee.cs b/Items/Weapons/GalaxySmasherMelee.cs index 6d41940cb2..b2931bd6c8 100644 --- a/Items/Weapons/GalaxySmasherMelee.cs +++ b/Items/Weapons/GalaxySmasherMelee.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GalaxySmasherMelee : ModItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons item.Calamity().postMoonLordRarity = 14; item.value = Item.buyPrice(1, 80, 0, 0); - item.shoot = mod.ProjectileType("GalaxySmasherHammer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/Weapons/Galeforce.cs b/Items/Weapons/Galeforce.cs index 615a9db3f2..b2339bc2a9 100644 --- a/Items/Weapons/Galeforce.cs +++ b/Items/Weapons/Galeforce.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Galeforce : ModItem { @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X * 0.75f, perturbedSpeed.Y * 0.75f, mod.ProjectileType("FeatherLarge"), (int)((double)damage * 0.25), 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X * 0.75f, perturbedSpeed.Y * 0.75f, ModContent.ProjectileType(), (int)((double)damage * 0.25), 0f, player.whoAmI, 0f, 0f); } return true; } diff --git a/Items/Weapons/GammaFusillade.cs b/Items/Weapons/GammaFusillade.cs index 155176ddff..e286600d75 100644 --- a/Items/Weapons/GammaFusillade.cs +++ b/Items/Weapons/GammaFusillade.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GammaFusillade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item33; item.autoReuse = true; - item.shoot = mod.ProjectileType("GammaLaser"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/Genisis.cs b/Items/Weapons/Genisis.cs index 1a48fecc09..66b89bc8a7 100644 --- a/Items/Weapons/Genisis.cs +++ b/Items/Weapons/Genisis.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Genisis : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item33; item.autoReuse = true; item.shootSpeed = 6f; - item.shoot = mod.ProjectileType("BigBeamofDeath"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/GleamingMagnolia.cs b/Items/Weapons/GleamingMagnolia.cs index 156f3ee362..e6d2773362 100644 --- a/Items/Weapons/GleamingMagnolia.cs +++ b/Items/Weapons/GleamingMagnolia.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GleamingMagnolia : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item109; item.autoReuse = true; - item.shoot = mod.ProjectileType("GleamingBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; } diff --git a/Items/Weapons/GoldenGun.cs b/Items/Weapons/GoldenGun.cs index c7e52f0858..a831a9d6bf 100644 --- a/Items/Weapons/GoldenGun.cs +++ b/Items/Weapons/GoldenGun.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GoldenGun : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.rare = 3; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = mod.ProjectileType("GoldenGun"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/GoldplumeSpear.cs b/Items/Weapons/GoldplumeSpear.cs index e20260a2be..0c8f81cbe0 100644 --- a/Items/Weapons/GoldplumeSpear.cs +++ b/Items/Weapons/GoldplumeSpear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GoldplumeSpear : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 54; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.shoot = mod.ProjectileType("GoldplumeSpearProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } diff --git a/Items/Weapons/GrandGuardian.cs b/Items/Weapons/GrandGuardian.cs index 514a52ddc5..cb5e5db245 100644 --- a/Items/Weapons/GrandGuardian.cs +++ b/Items/Weapons/GrandGuardian.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GrandGuardian : ModItem { @@ -46,22 +46,22 @@ namespace CalamityMod.Items.Weapons player.statLife += 4; player.HealEffect(4); } - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("RainbowBoom"), (int)((float)item.damage * player.meleeDamage * 0.5f), 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage * 0.5f), 0f, player.whoAmI); if (target.life <= (target.lifeMax * 0.5f)) { float randomSpeedX = (float)Main.rand.Next(9); float randomSpeedY = (float)Main.rand.Next(6, 15); - Projectile.NewProjectile(player.Center.X, player.Center.Y, -randomSpeedX, -randomSpeedY, mod.ProjectileType("RainBolt"), (int)((float)item.damage * player.meleeDamage * 0.75f), knockback, player.whoAmI); - Projectile.NewProjectile(player.Center.X, player.Center.Y, randomSpeedX, -randomSpeedY, mod.ProjectileType("RainBolt"), (int)((float)item.damage * player.meleeDamage * 0.75f), knockback, player.whoAmI); - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -randomSpeedY, mod.ProjectileType("RainBolt"), (int)((float)item.damage * player.meleeDamage * 0.75f), knockback, player.whoAmI); + Projectile.NewProjectile(player.Center.X, player.Center.Y, -randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage * 0.75f), knockback, player.whoAmI); + Projectile.NewProjectile(player.Center.X, player.Center.Y, randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage * 0.75f), knockback, player.whoAmI); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -randomSpeedY, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage * 0.75f), knockback, player.whoAmI); } if (target.life <= 0) { float randomSpeedX = (float)Main.rand.Next(9); float randomSpeedY = (float)Main.rand.Next(6, 15); - Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, mod.ProjectileType("RainHeal"), 0, 0f, player.whoAmI); - Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, mod.ProjectileType("RainHeal"), 0, 0f, player.whoAmI); - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, -randomSpeedY, mod.ProjectileType("RainHeal"), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); } } diff --git a/Items/Weapons/Grax.cs b/Items/Weapons/Grax.cs index 1c5223b935..3512f94d64 100644 --- a/Items/Weapons/Grax.cs +++ b/Items/Weapons/Grax.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Grax : ModItem { @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - player.AddBuff(mod.BuffType("GraxDefense"), 600); + player.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Items/Weapons/GreatSandShark/SandSharknadoStaff.cs b/Items/Weapons/GreatSandShark/SandSharknadoStaff.cs index 759a551538..dde67a4973 100644 --- a/Items/Weapons/GreatSandShark/SandSharknadoStaff.cs +++ b/Items/Weapons/GreatSandShark/SandSharknadoStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.GreatSandShark +namespace CalamityMod.Items { public class SandSharknadoStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.GreatSandShark item.rare = 8; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("Sandnado"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/GreatSandShark/Sandstorm.cs b/Items/Weapons/GreatSandShark/Sandstorm.cs index dbb9d3e106..48d06d053b 100644 --- a/Items/Weapons/GreatSandShark/Sandstorm.cs +++ b/Items/Weapons/GreatSandShark/Sandstorm.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.GreatSandShark +namespace CalamityMod.Items { public class Sandstorm : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.GreatSandShark item.UseSound = SoundID.Item11; item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("SandstormBullet"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = AmmoID.Sand; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.GreatSandShark 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SandstormBullet"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/GreatSandShark/ShiftingSands.cs b/Items/Weapons/GreatSandShark/ShiftingSands.cs index 04fa079d04..382fbecfb7 100644 --- a/Items/Weapons/GreatSandShark/ShiftingSands.cs +++ b/Items/Weapons/GreatSandShark/ShiftingSands.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.GreatSandShark +namespace CalamityMod.Items { public class ShiftingSands : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.GreatSandShark item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.UseSound = SoundID.Item20; - item.shoot = mod.ProjectileType("ShiftingSands"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7f; } diff --git a/Items/Weapons/GreatSandShark/Tumbleweed.cs b/Items/Weapons/GreatSandShark/Tumbleweed.cs index c96ea2babe..63809ef7d5 100644 --- a/Items/Weapons/GreatSandShark/Tumbleweed.cs +++ b/Items/Weapons/GreatSandShark/Tumbleweed.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.GreatSandShark +namespace CalamityMod.Items { public class Tumbleweed : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.GreatSandShark item.UseSound = SoundID.Item1; item.autoReuse = true; item.channel = true; - item.shoot = mod.ProjectileType("Tumbleweed"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/GreatbowofTurmoil.cs b/Items/Weapons/GreatbowofTurmoil.cs index 467621c0bf..59c5492ca4 100644 --- a/Items/Weapons/GreatbowofTurmoil.cs +++ b/Items/Weapons/GreatbowofTurmoil.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GreatbowofTurmoil : ModItem { diff --git a/Items/Weapons/GreatswordofBlah.cs b/Items/Weapons/GreatswordofBlah.cs index 642f5f5c2e..879ea26739 100644 --- a/Items/Weapons/GreatswordofBlah.cs +++ b/Items/Weapons/GreatswordofBlah.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GreatswordofBlah : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.height = 110; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("JudgementBlah"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/GreatswordofJudgement.cs b/Items/Weapons/GreatswordofJudgement.cs index 5fccf3d7b5..b951539c3c 100644 --- a/Items/Weapons/GreatswordofJudgement.cs +++ b/Items/Weapons/GreatswordofJudgement.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class GreatswordofJudgement : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.height = 72; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Judgement"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/HalleysInferno.cs b/Items/Weapons/HalleysInferno.cs index f1e1bf8f60..a112741c8b 100644 --- a/Items/Weapons/HalleysInferno.cs +++ b/Items/Weapons/HalleysInferno.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HalleysInferno : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.Calamity().postMoonLordRarity = 13; item.autoReuse = true; - item.shoot = mod.ProjectileType("HalleysComet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14.6f; item.useAmmo = 23; } @@ -52,8 +52,8 @@ namespace CalamityMod.Items.Weapons public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("RuinousSoul"), 4); - recipe.AddIngredient(mod.ItemType("ExodiumClusterOre"), 12); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.AddIngredient(ModContent.ItemType(), 12); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/HarvestStaff.cs b/Items/Weapons/HarvestStaff.cs index f7ac2b369f..112a0099f8 100644 --- a/Items/Weapons/HarvestStaff.cs +++ b/Items/Weapons/HarvestStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HarvestStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 2; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("FlamingPumpkin"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.scale = 0.9f; } diff --git a/Items/Weapons/HeartRapier.cs b/Items/Weapons/HeartRapier.cs index 33c11224b6..87d230a9fd 100644 --- a/Items/Weapons/HeartRapier.cs +++ b/Items/Weapons/HeartRapier.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HeartRapier : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 44; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("HeartRapierProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } diff --git a/Items/Weapons/HeavenlyGale.cs b/Items/Weapons/HeavenlyGale.cs index dc1b9fd0c9..43d241440c 100644 --- a/Items/Weapons/HeavenlyGale.cs +++ b/Items/Weapons/HeavenlyGale.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HeavenlyGale : ModItem { @@ -61,19 +61,19 @@ namespace CalamityMod.Items.Weapons case 1: case 2: case 3: - type = mod.ProjectileType("TealExoArrow"); + type = ModContent.ProjectileType(); break; case 4: case 5: case 6: - type = mod.ProjectileType("OrangeExoArrow"); + type = ModContent.ProjectileType(); break; case 7: case 8: - type = mod.ProjectileType("BlueExoArrow"); + type = ModContent.ProjectileType(); break; case 9: - type = mod.ProjectileType("GreenExoArrow"); + type = ModContent.ProjectileType(); break; } Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); diff --git a/Items/Weapons/HeliumFlash.cs b/Items/Weapons/HeliumFlash.cs index c456bbe9b2..0a2323a612 100644 --- a/Items/Weapons/HeliumFlash.cs +++ b/Items/Weapons/HeliumFlash.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HeliumFlash : ModItem { @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons item.Calamity().postMoonLordRarity = 14; item.value = Item.buyPrice(1, 80, 0, 0); - item.shoot = mod.ProjectileType("VolatileStarcore"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/Weapons/HellBurst.cs b/Items/Weapons/HellBurst.cs index ec2874a5d3..df7c4964db 100644 --- a/Items/Weapons/HellBurst.cs +++ b/Items/Weapons/HellBurst.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HellBurst : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item34; item.autoReuse = true; - item.shoot = mod.ProjectileType("FlameBeamTip"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 32f; } diff --git a/Items/Weapons/HellfireFlamberge.cs b/Items/Weapons/HellfireFlamberge.cs index 949ac1078b..4ff8eec60d 100644 --- a/Items/Weapons/HellfireFlamberge.cs +++ b/Items/Weapons/HellfireFlamberge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HellfireFlamberge : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 60; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("ChaosFlameSmall"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; } @@ -42,13 +42,13 @@ namespace CalamityMod.Items.Weapons switch (index) { case 0: - type = mod.ProjectileType("ChaosFlameSmall"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("ChaosFlameMedium"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("ChaosFlameLarge"); + type = ModContent.ProjectileType(); break; default: break; diff --git a/Items/Weapons/HellionFlowerSpear.cs b/Items/Weapons/HellionFlowerSpear.cs index 3ee659b993..9ffab14386 100644 --- a/Items/Weapons/HellionFlowerSpear.cs +++ b/Items/Weapons/HellionFlowerSpear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HellionFlowerSpear : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 64; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("HellionFlowerSpearProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; } diff --git a/Items/Weapons/Hellkite.cs b/Items/Weapons/Hellkite.cs index 8aa1a288ef..9dc2f72be8 100644 --- a/Items/Weapons/Hellkite.cs +++ b/Items/Weapons/Hellkite.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Hellkite : ModItem { diff --git a/Items/Weapons/HellwingStaff.cs b/Items/Weapons/HellwingStaff.cs index 6e1c9e48ed..f17adc5c2d 100644 --- a/Items/Weapons/HellwingStaff.cs +++ b/Items/Weapons/HellwingStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HellwingStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 3; item.UseSound = SoundID.Item43; item.autoReuse = true; - item.shoot = mod.ProjectileType("FlamePillar"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } @@ -101,7 +101,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-40, 41) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-40, 41) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("FlamePillar"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/Helstorm.cs b/Items/Weapons/Helstorm.cs index 0312f62d71..9a3a746dab 100644 --- a/Items/Weapons/Helstorm.cs +++ b/Items/Weapons/Helstorm.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Helstorm : ModItem { diff --git a/Items/Weapons/HiveMind/DankStaff.cs b/Items/Weapons/HiveMind/DankStaff.cs index e189ae58b8..f54e539f15 100644 --- a/Items/Weapons/HiveMind/DankStaff.cs +++ b/Items/Weapons/HiveMind/DankStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.HiveMind +namespace CalamityMod.Items { public class DankStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.HiveMind item.rare = 3; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("DankCreeper"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/HiveMind/LeechingDagger.cs b/Items/Weapons/HiveMind/LeechingDagger.cs index 8f3e1e0613..683f3228e2 100644 --- a/Items/Weapons/HiveMind/LeechingDagger.cs +++ b/Items/Weapons/HiveMind/LeechingDagger.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.HiveMind +namespace CalamityMod.Items { public class LeechingDagger : ModItem { @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.HiveMind { if (target.life <= 0) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("Leech"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/HiveMind/PerfectDark.cs b/Items/Weapons/HiveMind/PerfectDark.cs index 57650b219c..c39c73176a 100644 --- a/Items/Weapons/HiveMind/PerfectDark.cs +++ b/Items/Weapons/HiveMind/PerfectDark.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.HiveMind +namespace CalamityMod.Items { public class PerfectDark : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.HiveMind item.height = 50; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.shoot = mod.ProjectileType("DarkBall"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } diff --git a/Items/Weapons/HiveMind/ShaderainStaff.cs b/Items/Weapons/HiveMind/ShaderainStaff.cs index ed4cc34311..599e9c4c8a 100644 --- a/Items/Weapons/HiveMind/ShaderainStaff.cs +++ b/Items/Weapons/HiveMind/ShaderainStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.HiveMind +namespace CalamityMod.Items { public class ShaderainStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.HiveMind item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; item.UseSound = SoundID.Item66; - item.shoot = mod.ProjectileType("ShadeNimbus"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.HiveMind } num78 *= num80; num79 *= num80; - int num154 = Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, mod.ProjectileType("ShadeNimbusCloud"), damage, knockBack, player.whoAmI, 0f, 0f); + int num154 = Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[num154].ai[0] = (float)Main.mouseX + Main.screenPosition.X; Main.projectile[num154].ai[1] = (float)Main.mouseY + Main.screenPosition.Y; return false; diff --git a/Items/Weapons/HiveMind/Shadethrower.cs b/Items/Weapons/HiveMind/Shadethrower.cs index ca52e28e7e..e72f851536 100644 --- a/Items/Weapons/HiveMind/Shadethrower.cs +++ b/Items/Weapons/HiveMind/Shadethrower.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.HiveMind +namespace CalamityMod.Items { public class Shadethrower : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.HiveMind item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; item.autoReuse = true; - item.shoot = mod.ProjectileType("ShadeFire"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5.5f; item.useAmmo = 23; } diff --git a/Items/Weapons/HiveMind/ShadowdropStaff.cs b/Items/Weapons/HiveMind/ShadowdropStaff.cs index b840e1a020..99bb1221f0 100644 --- a/Items/Weapons/HiveMind/ShadowdropStaff.cs +++ b/Items/Weapons/HiveMind/ShadowdropStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.HiveMind +namespace CalamityMod.Items { public class ShadowdropStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.HiveMind item.rare = 3; item.UseSound = SoundID.Item66; item.autoReuse = true; - item.shoot = mod.ProjectileType("AuraRain"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; } @@ -90,7 +90,7 @@ namespace CalamityMod.Items.Weapons.HiveMind num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-120, 121) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-120, 121) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("AuraRain"), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10)); } return false; } diff --git a/Items/Weapons/HolidayHalberd.cs b/Items/Weapons/HolidayHalberd.cs index 493b7b1316..0d43e969ce 100644 --- a/Items/Weapons/HolidayHalberd.cs +++ b/Items/Weapons/HolidayHalberd.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HolidayHalberd : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 72; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("RedBall"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons { if (Main.rand.NextBool(3)) { - type = mod.ProjectileType("GreenBall"); + type = ModContent.ProjectileType(); } Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer); return false; diff --git a/Items/Weapons/HolyFireBullet.cs b/Items/Weapons/HolyFireBullet.cs index 250960ea78..4e1e25b1d7 100644 --- a/Items/Weapons/HolyFireBullet.cs +++ b/Items/Weapons/HolyFireBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HolyFireBullet : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 2f; item.value = 2000; item.rare = 10; - item.shoot = mod.ProjectileType("HolyFireBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.ammo = 97; } diff --git a/Items/Weapons/HyperiusBullet.cs b/Items/Weapons/HyperiusBullet.cs index c38ca72996..a75c80044f 100644 --- a/Items/Weapons/HyperiusBullet.cs +++ b/Items/Weapons/HyperiusBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class HyperiusBullet : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.5f; item.value = 2000; item.rare = 9; - item.shoot = mod.ProjectileType("HyperiusBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.ammo = 97; } diff --git a/Items/Weapons/IcicleStaff.cs b/Items/Weapons/IcicleStaff.cs index 99b924b484..b2e87180c0 100644 --- a/Items/Weapons/IcicleStaff.cs +++ b/Items/Weapons/IcicleStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class IcicleStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 1; item.UseSound = SoundID.Item8; item.autoReuse = true; - item.shoot = mod.ProjectileType("WintersFury"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; } @@ -94,7 +94,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78; float speedY5 = num79 + (float)Main.rand.Next(-40, 41) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("WintersFury"), num73, num74, i, 0f, (float)Main.rand.Next(10)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), num73, num74, i, 0f, (float)Main.rand.Next(10)); } return false; } diff --git a/Items/Weapons/Impaler.cs b/Items/Weapons/Impaler.cs index 5608dc95e2..8beec89d13 100644 --- a/Items/Weapons/Impaler.cs +++ b/Items/Weapons/Impaler.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Impaler : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("FlamingStake"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.useAmmo = 1836; } @@ -46,11 +46,11 @@ namespace CalamityMod.Items.Weapons float SpeedY = speedY + (float)Main.rand.Next(-2, 3) * 0.05f; if (Main.rand.NextBool(3)) { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("ExplodingStake"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } else { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("FlamingStake"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/InfernaCutter.cs b/Items/Weapons/InfernaCutter.cs index 1d213bcc3d..777f3a7106 100644 --- a/Items/Weapons/InfernaCutter.cs +++ b/Items/Weapons/InfernaCutter.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class InfernaCutter : ModItem { @@ -121,11 +121,11 @@ namespace CalamityMod.Items.Weapons { if (crit) { - int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; } target.AddBuff(BuffID.OnFire, 300); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/InfernalRift.cs b/Items/Weapons/InfernalRift.cs index 8e4e427a17..32e2a7e5d4 100644 --- a/Items/Weapons/InfernalRift.cs +++ b/Items/Weapons/InfernalRift.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class InfernalRift : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item9; item.autoReuse = true; - item.shoot = mod.ProjectileType("InfernalBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/Interfacer.cs b/Items/Weapons/Interfacer.cs index d99b4300d2..6721974b7b 100644 --- a/Items/Weapons/Interfacer.cs +++ b/Items/Weapons/Interfacer.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Interfacer : ModItem { diff --git a/Items/Weapons/IonBlaster.cs b/Items/Weapons/IonBlaster.cs index 0915e3d2c9..13ffb4202a 100644 --- a/Items/Weapons/IonBlaster.cs +++ b/Items/Weapons/IonBlaster.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class IonBlaster : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 28; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("IonBlast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } diff --git a/Items/Weapons/Judgement.cs b/Items/Weapons/Judgement.cs index c20a1ba862..0e09969d72 100644 --- a/Items/Weapons/Judgement.cs +++ b/Items/Weapons/Judgement.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Judgement : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item88; item.autoReuse = true; - item.shoot = mod.ProjectileType("WhiteFlame"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().postMoonLordRarity = 16; } diff --git a/Items/Weapons/Lacerator.cs b/Items/Weapons/Lacerator.cs index c7d9031608..2af38af927 100644 --- a/Items/Weapons/Lacerator.cs +++ b/Items/Weapons/Lacerator.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Lacerator : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("LaceratorProjectile"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/Lazhar.cs b/Items/Weapons/Lazhar.cs index ae36a51863..5f1dafbc5f 100644 --- a/Items/Weapons/Lazhar.cs +++ b/Items/Weapons/Lazhar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Lazhar : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item12; item.autoReuse = true; item.shootSpeed = 15f; - item.shoot = mod.ProjectileType("SolarBeam2"); + item.shoot = ModContent.ProjectileType(); } 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/Leviathan/Atlantis.cs b/Items/Weapons/Leviathan/Atlantis.cs index 3ce1fdf45a..8a13898cc3 100644 --- a/Items/Weapons/Leviathan/Atlantis.cs +++ b/Items/Weapons/Leviathan/Atlantis.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Leviathan +namespace CalamityMod.Items { public class Atlantis : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Leviathan item.rare = 7; item.UseSound = SoundID.Item34; item.autoReuse = true; - item.shoot = mod.ProjectileType("AtlantisSpear"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 32f; } diff --git a/Items/Weapons/Leviathan/Greentide.cs b/Items/Weapons/Leviathan/Greentide.cs index 59b6cad216..750d0a2371 100644 --- a/Items/Weapons/Leviathan/Greentide.cs +++ b/Items/Weapons/Leviathan/Greentide.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Leviathan +namespace CalamityMod.Items { public class Greentide : ModItem { @@ -90,7 +90,7 @@ namespace CalamityMod.Items.Weapons.Leviathan num79 *= num80; float speedX4 = num78; float speedY5 = num79 + (float)Main.rand.Next(-180, 181) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("GreenWater"), (int)((float)item.damage * player.meleeDamage), num74, i, 0f, (float)Main.rand.Next(10)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), num74, i, 0f, (float)Main.rand.Next(10)); } } diff --git a/Items/Weapons/Leviathan/Leviatitan.cs b/Items/Weapons/Leviathan/Leviatitan.cs index 9d9acdcdea..c4ea440dee 100644 --- a/Items/Weapons/Leviathan/Leviatitan.cs +++ b/Items/Weapons/Leviathan/Leviatitan.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Leviathan +namespace CalamityMod.Items { public class Leviatitan : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Leviathan item.rare = 7; item.UseSound = SoundID.Item92; item.autoReuse = true; - item.shoot = mod.ProjectileType("AquaBlast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; } @@ -53,11 +53,11 @@ namespace CalamityMod.Items.Weapons.Leviathan float SpeedY = speedY + (float)Main.rand.Next(-10, 11) * 0.05f; if (Main.rand.NextBool(3)) { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("AquaBlastToxic"), (int)((double)damage * 1.5), knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), (int)((double)damage * 1.5), knockBack, player.whoAmI, 0f, 0f); } else { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("AquaBlast"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/Leviathan/LureofEnthrallment.cs b/Items/Weapons/Leviathan/LureofEnthrallment.cs index b16780bd51..0356eb9052 100644 --- a/Items/Weapons/Leviathan/LureofEnthrallment.cs +++ b/Items/Weapons/Leviathan/LureofEnthrallment.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Leviathan +namespace CalamityMod.Items { public class LureofEnthrallment : ModItem { @@ -39,13 +39,13 @@ namespace CalamityMod.Items.Weapons.Leviathan modPlayer.sirenWaifu = true; if (player.whoAmI == Main.myPlayer) { - if (player.FindBuffIndex(mod.BuffType("SirenLure")) == -1) + if (player.FindBuffIndex(ModContent.BuffType()) == -1) { - player.AddBuff(mod.BuffType("SirenLure"), 3600, true); + player.AddBuff(ModContent.BuffType(), 3600, true); } - if (player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SirenLure"), (int)(65f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(65f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Weapons/Leviathan/SirensSong.cs b/Items/Weapons/Leviathan/SirensSong.cs index e05d485c96..8659c08536 100644 --- a/Items/Weapons/Leviathan/SirensSong.cs +++ b/Items/Weapons/Leviathan/SirensSong.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Leviathan +namespace CalamityMod.Items { public class SirensSong : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Leviathan item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.autoReuse = true; - item.shoot = mod.ProjectileType("SirensSong"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; } diff --git a/Items/Weapons/LifefruitScythe.cs b/Items/Weapons/LifefruitScythe.cs index ac8e71174b..25de1a0063 100644 --- a/Items/Weapons/LifefruitScythe.cs +++ b/Items/Weapons/LifefruitScythe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class LifefruitScythe : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 72; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("LifeScythe"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/Lucrecia.cs b/Items/Weapons/Lucrecia.cs index 7b44570232..fa6dafd27d 100644 --- a/Items/Weapons/Lucrecia.cs +++ b/Items/Weapons/Lucrecia.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Lucrecia : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item1; item.useTurn = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("DNA"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 32f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; diff --git a/Items/Weapons/LunarianBow.cs b/Items/Weapons/LunarianBow.cs index 97fd376c34..d4842f635d 100644 --- a/Items/Weapons/LunarianBow.cs +++ b/Items/Weapons/LunarianBow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class LunarianBow : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 4; item.UseSound = SoundID.Item75; item.autoReuse = true; - item.shoot = mod.ProjectileType("LunarBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.useAmmo = 40; } @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons { value9 -= vector7; } - int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, mod.ProjectileType("LunarBolt"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); Main.projectile[num121].noDropItem = true; } return false; diff --git a/Items/Weapons/LunicEye.cs b/Items/Weapons/LunicEye.cs index e8eab1b9c7..6b3c4242a5 100644 --- a/Items/Weapons/LunicEye.cs +++ b/Items/Weapons/LunicEye.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class LunicEye : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.noMelee = true; item.height = 50; item.value = Item.buyPrice(0, 36, 0, 0); - item.shoot = mod.ProjectileType("LunicBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; } diff --git a/Items/Weapons/MagnaCannon.cs b/Items/Weapons/MagnaCannon.cs index 7ff42f70ac..2a6e0f88c9 100644 --- a/Items/Weapons/MagnaCannon.cs +++ b/Items/Weapons/MagnaCannon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MagnaCannon : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item117; item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("MagnaBlast"); + item.shoot = ModContent.ProjectileType(); } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/MagnaStriker.cs b/Items/Weapons/MagnaStriker.cs index d62eec399f..463616d702 100644 --- a/Items/Weapons/MagnaStriker.cs +++ b/Items/Weapons/MagnaStriker.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MagnaStriker : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/OpalStrike"); item.autoReuse = true; - item.shoot = mod.ProjectileType("OpalStrike"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.useAmmo = 97; } @@ -44,11 +44,11 @@ namespace CalamityMod.Items.Weapons int randomProj = Main.rand.Next(2); if (randomProj == 0) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("OpalStrike"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("MagnaStrike"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); } return false; } diff --git a/Items/Weapons/MagneticMeltdown.cs b/Items/Weapons/MagneticMeltdown.cs index f0b08aeae3..9a6338175f 100644 --- a/Items/Weapons/MagneticMeltdown.cs +++ b/Items/Weapons/MagneticMeltdown.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MagneticMeltdown : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("MagneticOrb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/MajesticGuard.cs b/Items/Weapons/MajesticGuard.cs index 0a9395b0a4..8e02a90952 100644 --- a/Items/Weapons/MajesticGuard.cs +++ b/Items/Weapons/MajesticGuard.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MajesticGuard : ModItem { diff --git a/Items/Weapons/ManaRose.cs b/Items/Weapons/ManaRose.cs index 0a8201b284..bbd17ad6f4 100644 --- a/Items/Weapons/ManaRose.cs +++ b/Items/Weapons/ManaRose.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ManaRose : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 2; item.UseSound = SoundID.Item109; item.autoReuse = true; - item.shoot = mod.ProjectileType("ManaBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } diff --git a/Items/Weapons/MandibleBow.cs b/Items/Weapons/MandibleBow.cs index 6250362ebd..b92962b476 100644 --- a/Items/Weapons/MandibleBow.cs +++ b/Items/Weapons/MandibleBow.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; //using TerrariaOverhaul; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MandibleBow : ModItem { diff --git a/Items/Weapons/MandibleClaws.cs b/Items/Weapons/MandibleClaws.cs index f001fdefc0..2224e5f15b 100644 --- a/Items/Weapons/MandibleClaws.cs +++ b/Items/Weapons/MandibleClaws.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MandibleClaws : ModItem { diff --git a/Items/Weapons/MangroveChakramMelee.cs b/Items/Weapons/MangroveChakramMelee.cs index 806dd9d460..fe4facd9a0 100644 --- a/Items/Weapons/MangroveChakramMelee.cs +++ b/Items/Weapons/MangroveChakramMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MangroveChakramMelee : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.height = 38; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.shoot = mod.ProjectileType("MangroveChakramProjectileMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/MantisClaws.cs b/Items/Weapons/MantisClaws.cs index ee5e3f8bbd..739c712366 100644 --- a/Items/Weapons/MantisClaws.cs +++ b/Items/Weapons/MantisClaws.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MantisClaws : ModItem { @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), 0, knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; } } diff --git a/Items/Weapons/Mariana.cs b/Items/Weapons/Mariana.cs index 1c13972b50..6894d91c98 100644 --- a/Items/Weapons/Mariana.cs +++ b/Items/Weapons/Mariana.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Mariana : ModItem { @@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, mod.ProjectileType("MarianaProjectile"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0f); } for (int num621 = 0; num621 < 30; num621++) { diff --git a/Items/Weapons/MarkedMagnum.cs b/Items/Weapons/MarkedMagnum.cs index 6db8c0734a..524233aa9f 100644 --- a/Items/Weapons/MarkedMagnum.cs +++ b/Items/Weapons/MarkedMagnum.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MarkedMagnum : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item33; item.autoReuse = false; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("MarkRound"); + item.shoot = ModContent.ProjectileType(); } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/MarniteRifleSpear.cs b/Items/Weapons/MarniteRifleSpear.cs index d5d9024bbe..a83f4683bc 100644 --- a/Items/Weapons/MarniteRifleSpear.cs +++ b/Items/Weapons/MarniteRifleSpear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MarniteRifleSpear : ModItem { diff --git a/Items/Weapons/MarniteSpear.cs b/Items/Weapons/MarniteSpear.cs index d8588e696c..4612c67062 100644 --- a/Items/Weapons/MarniteSpear.cs +++ b/Items/Weapons/MarniteSpear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MarniteSpear : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 50; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("MarniteSpearProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } diff --git a/Items/Weapons/Megafleet.cs b/Items/Weapons/Megafleet.cs index 3df78c0c47..3679bb3632 100644 --- a/Items/Weapons/Megafleet.cs +++ b/Items/Weapons/Megafleet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Megafleet : ModItem { @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons { float SpeedX = speedX + (float)Main.rand.Next(-5, 6) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-5, 6) * 0.05f; - type = Main.rand.NextBool(2) ? mod.ProjectileType("Voidragon") : type; + type = Main.rand.NextBool(2) ? ModContent.ProjectileType() : type; Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Weapons/Megalodon.cs b/Items/Weapons/Megalodon.cs index 8dd233127e..c32db771df 100644 --- a/Items/Weapons/Megalodon.cs +++ b/Items/Weapons/Megalodon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Megalodon : ModItem { diff --git a/Items/Weapons/Meowthrower.cs b/Items/Weapons/Meowthrower.cs index c39f7c0be1..4d364a9325 100644 --- a/Items/Weapons/Meowthrower.cs +++ b/Items/Weapons/Meowthrower.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Meowthrower : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; item.autoReuse = true; - item.shoot = mod.ProjectileType("MeowFire"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5.5f; item.useAmmo = 23; } @@ -51,10 +51,10 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(3)) { case 1: - type = mod.ProjectileType("MeowFire"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("MeowFire2"); + type = ModContent.ProjectileType(); break; default: break; diff --git a/Items/Weapons/MineralMortar.cs b/Items/Weapons/MineralMortar.cs index 4352f57b43..d514bb0992 100644 --- a/Items/Weapons/MineralMortar.cs +++ b/Items/Weapons/MineralMortar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MineralMortar : ModItem { @@ -28,13 +28,13 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item11; item.autoReuse = true; item.shootSpeed = 14f; - item.shoot = mod.ProjectileType("OnyxSharkBomb"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 771; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("OnyxSharkBomb"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/Minigun.cs b/Items/Weapons/Minigun.cs index ce67c2d214..3ce829d7c5 100644 --- a/Items/Weapons/Minigun.cs +++ b/Items/Weapons/Minigun.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Minigun : ModItem { diff --git a/Items/Weapons/MirrorBlade.cs b/Items/Weapons/MirrorBlade.cs index 6677e16bb5..b1fd879dfa 100644 --- a/Items/Weapons/MirrorBlade.cs +++ b/Items/Weapons/MirrorBlade.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MirrorBlade : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.shootSpeed = 9f; - item.shoot = mod.ProjectileType("MirrorBlast"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/Mistlestorm.cs b/Items/Weapons/Mistlestorm.cs index a01e7e02c6..38f9ee9a37 100644 --- a/Items/Weapons/Mistlestorm.cs +++ b/Items/Weapons/Mistlestorm.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Mistlestorm : ModItem { diff --git a/Items/Weapons/MolecularManipulator.cs b/Items/Weapons/MolecularManipulator.cs index 3f82c1a489..cb64b1c0dc 100644 --- a/Items/Weapons/MolecularManipulator.cs +++ b/Items/Weapons/MolecularManipulator.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MolecularManipulator : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item33; item.autoReuse = true; item.shootSpeed = 25f; - item.shoot = mod.ProjectileType("NullShot2"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons { player.KillMe(PlayerDeathReason.ByOther(10), 1000.0, 0, false); } - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("NullShot2"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Weapons/Monsoon.cs b/Items/Weapons/Monsoon.cs index bf3b2841be..e7c7f85aa3 100644 --- a/Items/Weapons/Monsoon.cs +++ b/Items/Weapons/Monsoon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Monsoon : ModItem { @@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons } if (Main.rand.NextBool(25)) { - type = mod.ProjectileType("TyphoonArrow"); + type = ModContent.ProjectileType(); } int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[num121].Calamity().forceRanged = true; diff --git a/Items/Weapons/MortarRound.cs b/Items/Weapons/MortarRound.cs index 35c97591af..64c77ed6c3 100644 --- a/Items/Weapons/MortarRound.cs +++ b/Items/Weapons/MortarRound.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class MortarRound : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons item.value = 500; item.rare = 3; item.ammo = 97; - item.shoot = mod.ProjectileType("MortarRound"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/Mourningstar.cs b/Items/Weapons/Mourningstar.cs index f95c0c6e51..b9cb2ea5e8 100644 --- a/Items/Weapons/Mourningstar.cs +++ b/Items/Weapons/Mourningstar.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Mourningstar : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("Mourningstar"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/Murasama.cs b/Items/Weapons/Murasama.cs index 7730dd7df5..a7d09ade97 100644 --- a/Items/Weapons/Murasama.cs +++ b/Items/Weapons/Murasama.cs @@ -1,8 +1,8 @@ using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Murasama : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.height = 78; item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("Murasama"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().postMoonLordRarity = 15; } diff --git a/Items/Weapons/NanoblackReaperMelee.cs b/Items/Weapons/NanoblackReaperMelee.cs index 1fec0110bc..baf8909471 100644 --- a/Items/Weapons/NanoblackReaperMelee.cs +++ b/Items/Weapons/NanoblackReaperMelee.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NanoblackReaperMelee : ModItem { @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons item.Calamity().postMoonLordRarity = 16; item.value = Item.buyPrice(5, 0, 0, 0); - item.shoot = mod.ProjectileType("NanoblackMain"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/Weapons/NapalmArrow.cs b/Items/Weapons/NapalmArrow.cs index 4aa0ff16a3..594483e7dd 100644 --- a/Items/Weapons/NapalmArrow.cs +++ b/Items/Weapons/NapalmArrow.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NapalmArrow : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.5f; item.value = 1000; item.rare = 3; - item.shoot = mod.ProjectileType("NapalmArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.ammo = 40; } diff --git a/Items/Weapons/Needler.cs b/Items/Weapons/Needler.cs index bb8d0ac3b9..bc913bd9a2 100644 --- a/Items/Weapons/Needler.cs +++ b/Items/Weapons/Needler.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Needler : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item108; item.autoReuse = true; item.shootSpeed = 9f; - item.shoot = mod.ProjectileType("Needler"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Needler"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/NeptunesBounty.cs b/Items/Weapons/NeptunesBounty.cs index e30555232b..428da36783 100644 --- a/Items/Weapons/NeptunesBounty.cs +++ b/Items/Weapons/NeptunesBounty.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NeptunesBounty : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 80; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("NeptuneOrb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 13; } @@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Items/Weapons/NettlelineGreatbow.cs b/Items/Weapons/NettlelineGreatbow.cs index efb45ac41a..d0e57cf5fa 100644 --- a/Items/Weapons/NettlelineGreatbow.cs +++ b/Items/Weapons/NettlelineGreatbow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NettlelineGreatbow : ModItem { diff --git a/Items/Weapons/NightsRay.cs b/Items/Weapons/NightsRay.cs index 06ca52c770..cfb911caca 100644 --- a/Items/Weapons/NightsRay.cs +++ b/Items/Weapons/NightsRay.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NightsRay : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 4; item.UseSound = SoundID.Item72; item.autoReuse = true; - item.shoot = mod.ProjectileType("NightRay"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/NightsStabber.cs b/Items/Weapons/NightsStabber.cs index 3539547d7c..c48b584a83 100644 --- a/Items/Weapons/NightsStabber.cs +++ b/Items/Weapons/NightsStabber.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NightsStabber : ModItem { @@ -66,7 +66,7 @@ namespace CalamityMod.Items.Weapons { for (int i = 0; i <= 2; i++) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("NightStabber"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/NuclearFury.cs b/Items/Weapons/NuclearFury.cs index 05745bff07..799b9d55c9 100644 --- a/Items/Weapons/NuclearFury.cs +++ b/Items/Weapons/NuclearFury.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NuclearFury : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item84; item.autoReuse = true; - item.shoot = mod.ProjectileType("NuclearFuryProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/NullificationRifle.cs b/Items/Weapons/NullificationRifle.cs index 43176975a8..0d383c3f36 100644 --- a/Items/Weapons/NullificationRifle.cs +++ b/Items/Weapons/NullificationRifle.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class NullificationRifle : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item33; item.autoReuse = true; item.shootSpeed = 25f; - item.shoot = mod.ProjectileType("NullShot"); + item.shoot = ModContent.ProjectileType(); } public override Vector2? HoldoutOffset() @@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons { player.KillMe(PlayerDeathReason.ByOther(10), 1000.0, 0, false); } - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("NullShot"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/OldLordOathsword.cs b/Items/Weapons/OldLordOathsword.cs index 31139ca960..65acd5b5e6 100644 --- a/Items/Weapons/OldLordOathsword.cs +++ b/Items/Weapons/OldLordOathsword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class OldLordOathsword : ModItem { diff --git a/Items/Weapons/OmegaBiomeBlade.cs b/Items/Weapons/OmegaBiomeBlade.cs index 11d0e90515..684a7fb3a6 100644 --- a/Items/Weapons/OmegaBiomeBlade.cs +++ b/Items/Weapons/OmegaBiomeBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class OmegaBiomeBlade : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 62; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("OmegaBiomeOrb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().postMoonLordRarity = 12; } @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons { for (int projectiles = 0; projectiles <= 2; projectiles++) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("OmegaBiomeOrb"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); } return false; } diff --git a/Items/Weapons/Omniblade.cs b/Items/Weapons/Omniblade.cs index e61db79d3d..3a1438cf7c 100644 --- a/Items/Weapons/Omniblade.cs +++ b/Items/Weapons/Omniblade.cs @@ -1,10 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Utilities; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Omniblade : ModItem { @@ -40,7 +39,7 @@ namespace CalamityMod.Items.Weapons { if (Main.rand.NextBool(5)) { - target.AddBuff(mod.BuffType("WhisperingDeath"), 360); + target.AddBuff(ModContent.BuffType(), 360); } } diff --git a/Items/Weapons/OnyxChainBlaster.cs b/Items/Weapons/OnyxChainBlaster.cs index 667bc03c6e..2df706e10f 100644 --- a/Items/Weapons/OnyxChainBlaster.cs +++ b/Items/Weapons/OnyxChainBlaster.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class OnyxChainBlaster : ModItem { diff --git a/Items/Weapons/Onyxia.cs b/Items/Weapons/Onyxia.cs index a58538ab21..2d5d0a91cd 100644 --- a/Items/Weapons/Onyxia.cs +++ b/Items/Weapons/Onyxia.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { class Onyxia : ModItem { diff --git a/Items/Weapons/OpalStriker.cs b/Items/Weapons/OpalStriker.cs index 54cfcbe2f3..bf081364e3 100644 --- a/Items/Weapons/OpalStriker.cs +++ b/Items/Weapons/OpalStriker.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class OpalStriker : ModItem { @@ -28,14 +28,14 @@ namespace CalamityMod.Items.Weapons item.rare = 2; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/OpalStrike"); item.autoReuse = true; - item.shoot = mod.ProjectileType("OpalStrike"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.useAmmo = 97; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("OpalStrike"), damage, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, 0f, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/P90.cs b/Items/Weapons/P90.cs index c5a1fc1c0a..30bbdbcdef 100644 --- a/Items/Weapons/P90.cs +++ b/Items/Weapons/P90.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class P90 : ModItem { diff --git a/Items/Weapons/PaintballBlaster.cs b/Items/Weapons/PaintballBlaster.cs index c2c69170df..533583d5f6 100644 --- a/Items/Weapons/PaintballBlaster.cs +++ b/Items/Weapons/PaintballBlaster.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PaintballBlaster : ModItem { diff --git a/Items/Weapons/Perforators/Aorta.cs b/Items/Weapons/Perforators/Aorta.cs index 99a9ea9cf1..d3b85a0ac0 100644 --- a/Items/Weapons/Perforators/Aorta.cs +++ b/Items/Weapons/Perforators/Aorta.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Perforators +namespace CalamityMod.Items { public class Aorta : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Perforators item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; item.autoReuse = false; - item.shoot = mod.ProjectileType("AortaProjectile"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/Perforators/BloodBath.cs b/Items/Weapons/Perforators/BloodBath.cs index 1517c1ef7b..1b356e50e3 100644 --- a/Items/Weapons/Perforators/BloodBath.cs +++ b/Items/Weapons/Perforators/BloodBath.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Perforators +namespace CalamityMod.Items { public class BloodBath : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Perforators item.rare = 3; item.UseSound = SoundID.Item21; item.autoReuse = true; - item.shoot = mod.ProjectileType("BloodBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } diff --git a/Items/Weapons/Perforators/BloodClotStaff.cs b/Items/Weapons/Perforators/BloodClotStaff.cs index f07a7950a8..a69330c402 100644 --- a/Items/Weapons/Perforators/BloodClotStaff.cs +++ b/Items/Weapons/Perforators/BloodClotStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Perforators +namespace CalamityMod.Items { public class BloodClotStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Perforators item.rare = 3; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("BloodClotMinion"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/Perforators/BloodyRupture.cs b/Items/Weapons/Perforators/BloodyRupture.cs index d643fd6360..62d6d84a42 100644 --- a/Items/Weapons/Perforators/BloodyRupture.cs +++ b/Items/Weapons/Perforators/BloodyRupture.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Perforators +namespace CalamityMod.Items { public class BloodyRupture : ModItem { @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Perforators { if (target.life <= 0) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("Blood"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/Perforators/Eviscerator.cs b/Items/Weapons/Perforators/Eviscerator.cs index 23fc36b069..654914e8bf 100644 --- a/Items/Weapons/Perforators/Eviscerator.cs +++ b/Items/Weapons/Perforators/Eviscerator.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Perforators +namespace CalamityMod.Items { public class Eviscerator : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Perforators item.rare = 3; item.UseSound = SoundID.Item40; item.autoReuse = true; - item.shoot = mod.ProjectileType("BloodClotFriendly"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 22f; item.useAmmo = 97; } @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Perforators 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BloodClotFriendly"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/Perforators/SausageMaker.cs b/Items/Weapons/Perforators/SausageMaker.cs index 4440b7611b..2fa1032228 100644 --- a/Items/Weapons/Perforators/SausageMaker.cs +++ b/Items/Weapons/Perforators/SausageMaker.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Perforators +namespace CalamityMod.Items { public class SausageMaker : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Perforators item.height = 42; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.shoot = mod.ProjectileType("SausageMaker"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/Perforators/VeinBurster.cs b/Items/Weapons/Perforators/VeinBurster.cs index 52d4ef1e01..8a0d4fd470 100644 --- a/Items/Weapons/Perforators/VeinBurster.cs +++ b/Items/Weapons/Perforators/VeinBurster.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Perforators +namespace CalamityMod.Items { public class VeinBurster : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Perforators item.height = 50; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.shoot = mod.ProjectileType("BloodBall"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; } diff --git a/Items/Weapons/Phangasm.cs b/Items/Weapons/Phangasm.cs index 7e4551f181..d08bb0904a 100644 --- a/Items/Weapons/Phangasm.cs +++ b/Items/Weapons/Phangasm.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Phangasm : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.ranged = true; item.channel = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("Phangasm"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 14; @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Phangasm"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/PhantasmalFury.cs b/Items/Weapons/PhantasmalFury.cs index ab540862b6..f9ca1e61c1 100644 --- a/Items/Weapons/PhantasmalFury.cs +++ b/Items/Weapons/PhantasmalFury.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PhantasmalFury : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item43; item.autoReuse = true; - item.shoot = mod.ProjectileType("PhantasmalFury"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/PhoenixBlade.cs b/Items/Weapons/PhoenixBlade.cs index ea4e4337e2..a67dc27fca 100644 --- a/Items/Weapons/PhoenixBlade.cs +++ b/Items/Weapons/PhoenixBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PhoenixBlade : ModItem { @@ -35,12 +35,12 @@ namespace CalamityMod.Items.Weapons { if (target.life <= 0) { - int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), damage, knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; float randomSpeedX = (float)Main.rand.Next(5); float randomSpeedY = (float)Main.rand.Next(3, 7); - Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, mod.ProjectileType("PhoenixHeal"), item.damage, knockback, player.whoAmI); - Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, mod.ProjectileType("PhoenixHeal"), item.damage, knockback, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), item.damage, knockback, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), item.damage, knockback, player.whoAmI); } } diff --git a/Items/Weapons/Photoviscerator.cs b/Items/Weapons/Photoviscerator.cs index b2b54adc95..0b4e613e61 100644 --- a/Items/Weapons/Photoviscerator.cs +++ b/Items/Weapons/Photoviscerator.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Photoviscerator : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("ExoFire"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.useAmmo = 23; item.Calamity().postMoonLordRarity = 15; diff --git a/Items/Weapons/PlagueKeeper.cs b/Items/Weapons/PlagueKeeper.cs index e600eddb2b..bb6b5ed329 100644 --- a/Items/Weapons/PlagueKeeper.cs +++ b/Items/Weapons/PlagueKeeper.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PlagueKeeper : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.height = 90; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("PlagueBeeDust"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; item.Calamity().postMoonLordRarity = 12; } @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); for (int i = 0; i < 3; i++) { int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, player.beeType(), diff --git a/Items/Weapons/Plaguebringer/DiseasedPike.cs b/Items/Weapons/Plaguebringer/DiseasedPike.cs index 90203defbc..404384e92e 100644 --- a/Items/Weapons/Plaguebringer/DiseasedPike.cs +++ b/Items/Weapons/Plaguebringer/DiseasedPike.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class DiseasedPike : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.height = 58; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("DiseasedPike"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } diff --git a/Items/Weapons/Plaguebringer/Malevolence.cs b/Items/Weapons/Plaguebringer/Malevolence.cs index e63c3adebb..daf03ad5c7 100644 --- a/Items/Weapons/Plaguebringer/Malevolence.cs +++ b/Items/Weapons/Plaguebringer/Malevolence.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class Malevolence : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.UseSound = SoundID.Item97; item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("PlagueArrow"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 40; } @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer { float SpeedX = speedX + (float)Main.rand.Next(-20, 21) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("PlagueArrow"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/Plaguebringer/MepheticSprayer.cs b/Items/Weapons/Plaguebringer/MepheticSprayer.cs index 51a4b33069..d5a2dfef29 100644 --- a/Items/Weapons/Plaguebringer/MepheticSprayer.cs +++ b/Items/Weapons/Plaguebringer/MepheticSprayer.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class MepheticSprayer : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.autoReuse = true; - item.shoot = mod.ProjectileType("CorossiveFlames"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7.5f; item.useAmmo = 23; } diff --git a/Items/Weapons/Plaguebringer/PestilentDefiler.cs b/Items/Weapons/Plaguebringer/PestilentDefiler.cs index 70c4004c6f..872829ad0a 100644 --- a/Items/Weapons/Plaguebringer/PestilentDefiler.cs +++ b/Items/Weapons/Plaguebringer/PestilentDefiler.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class PestilentDefiler : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.UseSound = SoundID.Item40; item.autoReuse = false; item.shootSpeed = 20f; - item.shoot = mod.ProjectileType("SicknessRound"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SicknessRound"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Plaguebringer/PlagueStaff.cs b/Items/Weapons/Plaguebringer/PlagueStaff.cs index cf7f04fb98..4e6d188ab4 100644 --- a/Items/Weapons/Plaguebringer/PlagueStaff.cs +++ b/Items/Weapons/Plaguebringer/PlagueStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class PlagueStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.rare = 8; item.UseSound = SoundID.Item43; item.autoReuse = true; - item.shoot = mod.ProjectileType("PlagueFang"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } @@ -68,7 +68,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer num133 *= num80; float x2 = vector2.X; float y2 = vector2.Y; - Projectile.NewProjectile(x2, y2, num132, num133, mod.ProjectileType("PlagueFang"), damage, knockBack, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(x2, y2, num132, num133, ModContent.ProjectileType(), damage, knockBack, Main.myPlayer, 0f, 0f); } return false; } diff --git a/Items/Weapons/Plaguebringer/TheHive.cs b/Items/Weapons/Plaguebringer/TheHive.cs index 7728b8aadb..d8fdcfd2c6 100644 --- a/Items/Weapons/Plaguebringer/TheHive.cs +++ b/Items/Weapons/Plaguebringer/TheHive.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class TheHive : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.rare = 8; item.UseSound = SoundID.Item61; item.autoReuse = true; - item.shoot = mod.ProjectileType("BeeRPG"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 13f; item.useAmmo = 771; } @@ -38,16 +38,16 @@ namespace CalamityMod.Items.Weapons.Plaguebringer switch (Main.rand.Next(4)) { case 0: - type = mod.ProjectileType("GoliathRocket"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("HiveMissile"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("HiveBomb"); + type = ModContent.ProjectileType(); break; case 3: - type = mod.ProjectileType("BeeRPG"); + type = ModContent.ProjectileType(); break; default: break; diff --git a/Items/Weapons/Plaguebringer/ThePlaguebringer.cs b/Items/Weapons/Plaguebringer/ThePlaguebringer.cs index f2bd3b32bb..043c4d1777 100644 --- a/Items/Weapons/Plaguebringer/ThePlaguebringer.cs +++ b/Items/Weapons/Plaguebringer/ThePlaguebringer.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class ThePlaguebringer : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.autoReuse = true; - item.shoot = mod.ProjectileType("ThePlaguebringer"); + item.shoot = ModContent.ProjectileType(); } } } diff --git a/Items/Weapons/Plaguebringer/VirulentKatana.cs b/Items/Weapons/Plaguebringer/VirulentKatana.cs index 7f818f92ec..9f8ee06344 100644 --- a/Items/Weapons/Plaguebringer/VirulentKatana.cs +++ b/Items/Weapons/Plaguebringer/VirulentKatana.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Plaguebringer +namespace CalamityMod.Items { public class VirulentKatana : ModItem { @@ -27,13 +27,13 @@ namespace CalamityMod.Items.Weapons.Plaguebringer item.height = 62; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("PlagueDust"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Items/Weapons/PlanetaryAnnihilation.cs b/Items/Weapons/PlanetaryAnnihilation.cs index 69e0a83ea6..f0cfb757e4 100644 --- a/Items/Weapons/PlanetaryAnnihilation.cs +++ b/Items/Weapons/PlanetaryAnnihilation.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PlanetaryAnnihilation : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item75; item.autoReuse = true; - item.shoot = mod.ProjectileType("TerraBallBow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 12; @@ -86,7 +86,7 @@ namespace CalamityMod.Items.Weapons { float speedX4 = num78 + (float)Main.rand.Next(-120, 121) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-120, 121) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("TerraBallBow"), damage, knockBack, player.whoAmI, 0f, (float)i); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, (float)i); } } else diff --git a/Items/Weapons/PlasmaRifle.cs b/Items/Weapons/PlasmaRifle.cs index 2ac93846a2..af3b36e0ab 100644 --- a/Items/Weapons/PlasmaRifle.cs +++ b/Items/Weapons/PlasmaRifle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PlasmaRifle : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBlast"); item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("PlasmaShot"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 12; } @@ -68,11 +68,11 @@ namespace CalamityMod.Items.Weapons { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("PlasmaBolt"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("PlasmaShot"), (int)(damage * 0.75f), knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)(damage * 0.75f), knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/PlasmaRod.cs b/Items/Weapons/PlasmaRod.cs index ca8f0d30cd..36fe96a2b8 100644 --- a/Items/Weapons/PlasmaRod.cs +++ b/Items/Weapons/PlasmaRod.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PlasmaRod : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 1; item.UseSound = SoundID.Item109; item.autoReuse = true; - item.shoot = mod.ProjectileType("PlasmaRay"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } } diff --git a/Items/Weapons/Polterghast/BansheeHook.cs b/Items/Weapons/Polterghast/BansheeHook.cs index d4daf4891a..b913174ae8 100644 --- a/Items/Weapons/Polterghast/BansheeHook.cs +++ b/Items/Weapons/Polterghast/BansheeHook.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Polterghast +namespace CalamityMod.Items { public class BansheeHook : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Polterghast item.height = 16; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("BansheeHook"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 42f; item.Calamity().postMoonLordRarity = 13; } @@ -71,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Polterghast num83 *= num84; float ai4 = Main.rand.NextFloat() * item.shootSpeed * 0.75f * (float)player.direction; Vector2 velocity = new Vector2(num82, num83); - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BansheeHook"), damage, knockBack, player.whoAmI, ai4, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, ai4, 0.0f); return false; } } diff --git a/Items/Weapons/Polterghast/DaemonsFlame.cs b/Items/Weapons/Polterghast/DaemonsFlame.cs index 3a86520619..db9f917460 100644 --- a/Items/Weapons/Polterghast/DaemonsFlame.cs +++ b/Items/Weapons/Polterghast/DaemonsFlame.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Polterghast +namespace CalamityMod.Items { public class DaemonsFlame : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Polterghast item.ranged = true; item.channel = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("DaemonsFlame"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 13; @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Polterghast public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("DaemonsFlame"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Polterghast/EtherealSubjugator.cs b/Items/Weapons/Polterghast/EtherealSubjugator.cs index 92fb458686..6c4a781f1c 100644 --- a/Items/Weapons/Polterghast/EtherealSubjugator.cs +++ b/Items/Weapons/Polterghast/EtherealSubjugator.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Polterghast +namespace CalamityMod.Items { public class EtherealSubjugator : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Polterghast item.rare = 10; item.UseSound = SoundID.Item82; item.autoReuse = true; - item.shoot = mod.ProjectileType("PhantomGuy"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.Calamity().postMoonLordRarity = 13; diff --git a/Items/Weapons/Polterghast/FatesReveal.cs b/Items/Weapons/Polterghast/FatesReveal.cs index 124f649063..21348186f4 100644 --- a/Items/Weapons/Polterghast/FatesReveal.cs +++ b/Items/Weapons/Polterghast/FatesReveal.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Polterghast +namespace CalamityMod.Items { public class FatesReveal : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Polterghast item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("FatesReveal"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/Polterghast/GhastlyVisage.cs b/Items/Weapons/Polterghast/GhastlyVisage.cs index e8c0fb0434..c3bc089485 100644 --- a/Items/Weapons/Polterghast/GhastlyVisage.cs +++ b/Items/Weapons/Polterghast/GhastlyVisage.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Polterghast +namespace CalamityMod.Items { public class GhastlyVisage : ModItem { @@ -28,13 +28,13 @@ namespace CalamityMod.Items.Weapons.Polterghast item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.shootSpeed = 9f; - item.shoot = mod.ProjectileType("GhastlyVisage"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 13; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("GhastlyVisage"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Polterghast/TerrorBlade.cs b/Items/Weapons/Polterghast/TerrorBlade.cs index 4138157f6d..430cb4fb2a 100644 --- a/Items/Weapons/Polterghast/TerrorBlade.cs +++ b/Items/Weapons/Polterghast/TerrorBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Polterghast +namespace CalamityMod.Items { public class TerrorBlade : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Polterghast item.height = 80; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("TerrorBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/PrimordialAncient.cs b/Items/Weapons/PrimordialAncient.cs index 25925a745f..29a24b454d 100644 --- a/Items/Weapons/PrimordialAncient.cs +++ b/Items/Weapons/PrimordialAncient.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PrimordialAncient : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("Ancient"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/PrimordialEarth.cs b/Items/Weapons/PrimordialEarth.cs index 2df644bf0f..e0dfaa906d 100644 --- a/Items/Weapons/PrimordialEarth.cs +++ b/Items/Weapons/PrimordialEarth.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PrimordialEarth : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("SupremeDustProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 4f; } diff --git a/Items/Weapons/ProfanedSword.cs b/Items/Weapons/ProfanedSword.cs index 13b3838a48..22596ccd69 100644 --- a/Items/Weapons/ProfanedSword.cs +++ b/Items/Weapons/ProfanedSword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ProfanedSword : ModItem { @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons { item.noMelee = true; item.noUseGraphic = true; - item.shoot = mod.ProjectileType("ProfanedSword"); + item.shoot = ModContent.ProjectileType(); } else { @@ -56,14 +56,14 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ProfanedSword"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("Brimblast"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + target.AddBuff(ModContent.BuffType(), 120); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); } public override void MeleeEffects(Player player, Rectangle hitbox) diff --git a/Items/Weapons/ProporsePistol.cs b/Items/Weapons/ProporsePistol.cs index 1f60c33271..34da5dc3a3 100644 --- a/Items/Weapons/ProporsePistol.cs +++ b/Items/Weapons/ProporsePistol.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ProporsePistol : ModItem { @@ -28,13 +28,13 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item33; item.autoReuse = true; item.shootSpeed = 20f; - item.shoot = mod.ProjectileType("ProBolt"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ProBolt"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Providence/BlissfulBombardier.cs b/Items/Weapons/Providence/BlissfulBombardier.cs index 0af2699d06..cee82e58bc 100644 --- a/Items/Weapons/Providence/BlissfulBombardier.cs +++ b/Items/Weapons/Providence/BlissfulBombardier.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Providence +namespace CalamityMod.Items { public class BlissfulBombardier : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Providence item.UseSound = SoundID.Item11; item.autoReuse = true; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("Nuke"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 771; item.Calamity().postMoonLordRarity = 12; } @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Providence 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Nuke"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Providence/HolyCollider.cs b/Items/Weapons/Providence/HolyCollider.cs index 61deca83e4..8105a3a7b5 100644 --- a/Items/Weapons/Providence/HolyCollider.cs +++ b/Items/Weapons/Providence/HolyCollider.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Providence +namespace CalamityMod.Items { public class HolyCollider : ModItem { @@ -63,8 +63,8 @@ namespace CalamityMod.Items.Weapons.Providence for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyColliderHolyFire"), (int)((double)((float)item.damage * player.meleeDamage) * 0.3), knockback, Main.myPlayer); - Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyColliderHolyFire"), (int)((double)((float)item.damage * player.meleeDamage) * 0.3), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)((float)item.damage * player.meleeDamage) * 0.3), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)((float)item.damage * player.meleeDamage) * 0.3), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/Providence/PurgeGuzzler.cs b/Items/Weapons/Providence/PurgeGuzzler.cs index ad075378b7..4fbfacf5fa 100644 --- a/Items/Weapons/Providence/PurgeGuzzler.cs +++ b/Items/Weapons/Providence/PurgeGuzzler.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Providence +namespace CalamityMod.Items { public class PurgeGuzzler : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Providence item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("HolyLaser"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/Providence/SolarFlare.cs b/Items/Weapons/Providence/SolarFlare.cs index 6113c568f7..2c1a2fb066 100644 --- a/Items/Weapons/Providence/SolarFlare.cs +++ b/Items/Weapons/Providence/SolarFlare.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Providence +namespace CalamityMod.Items { public class SolarFlare : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Providence item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("SolarFlareYoyo"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 12; } } diff --git a/Items/Weapons/Providence/TelluricGlare.cs b/Items/Weapons/Providence/TelluricGlare.cs index 13a130c2dd..d3ff8b63c7 100644 --- a/Items/Weapons/Providence/TelluricGlare.cs +++ b/Items/Weapons/Providence/TelluricGlare.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Providence +namespace CalamityMod.Items { public class TelluricGlare : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Providence item.rare = 10; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("TelluricGlare"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 12; @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Providence public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("TelluricGlare"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Pumpler.cs b/Items/Weapons/Pumpler.cs index 84fd3c7a79..31b3a56881 100644 --- a/Items/Weapons/Pumpler.cs +++ b/Items/Weapons/Pumpler.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Pumpler : ModItem { diff --git a/Items/Weapons/Purge.cs b/Items/Weapons/Purge.cs index d1fec92029..f2ad15fdf7 100644 --- a/Items/Weapons/Purge.cs +++ b/Items/Weapons/Purge.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Purge : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; item.autoReuse = true; - item.shoot = mod.ProjectileType("Purge"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; } @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Purge"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/PurityAxe.cs b/Items/Weapons/PurityAxe.cs index fbf8d4f87a..e4301345ae 100644 --- a/Items/Weapons/PurityAxe.cs +++ b/Items/Weapons/PurityAxe.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PurityAxe : ModItem { diff --git a/Items/Weapons/PwnagehammerMelee.cs b/Items/Weapons/PwnagehammerMelee.cs index 5dfc013013..06b6135736 100644 --- a/Items/Weapons/PwnagehammerMelee.cs +++ b/Items/Weapons/PwnagehammerMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class PwnagehammerMelee : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 68; item.value = Item.buyPrice(0, 48, 0, 0); item.rare = 6; - item.shoot = mod.ProjectileType("PwnagehammerMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/Quagmire.cs b/Items/Weapons/Quagmire.cs index 7c266526fc..a275d58d75 100644 --- a/Items/Weapons/Quagmire.cs +++ b/Items/Weapons/Quagmire.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Quagmire : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.autoReuse = true; - item.shoot = mod.ProjectileType("QuagmireProjectile"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/RaidersGlory.cs b/Items/Weapons/RaidersGlory.cs index 7e4ce1fedf..c772916b18 100644 --- a/Items/Weapons/RaidersGlory.cs +++ b/Items/Weapons/RaidersGlory.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class RaidersGlory : ModItem { diff --git a/Items/Weapons/RareVariants/Arbalest.cs b/Items/Weapons/RareVariants/Arbalest.cs index 1a17cb5f10..7ba0c4e3e3 100644 --- a/Items/Weapons/RareVariants/Arbalest.cs +++ b/Items/Weapons/RareVariants/Arbalest.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Arbalest : ModItem { diff --git a/Items/Weapons/RareVariants/Carnage.cs b/Items/Weapons/RareVariants/Carnage.cs index ca6fc35367..0b023ba947 100644 --- a/Items/Weapons/RareVariants/Carnage.cs +++ b/Items/Weapons/RareVariants/Carnage.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Carnage : ModItem { @@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.RareVariants } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, mod.ProjectileType("Blood"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, 0f); } } } diff --git a/Items/Weapons/RareVariants/ClothiersWrath.cs b/Items/Weapons/RareVariants/ClothiersWrath.cs index 62d480b7c0..00390b0b2a 100644 --- a/Items/Weapons/RareVariants/ClothiersWrath.cs +++ b/Items/Weapons/RareVariants/ClothiersWrath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class ClothiersWrath : ModItem { diff --git a/Items/Weapons/RareVariants/Cryophobia.cs b/Items/Weapons/RareVariants/Cryophobia.cs index 6cbd6f6d75..4acea1b2da 100644 --- a/Items/Weapons/RareVariants/Cryophobia.cs +++ b/Items/Weapons/RareVariants/Cryophobia.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Cryophobia : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.UseSound = SoundID.Item117; item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("CryoBlast"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 22; } diff --git a/Items/Weapons/RareVariants/EvilSmasher.cs b/Items/Weapons/RareVariants/EvilSmasher.cs index 3c935f2146..9fa949e88a 100644 --- a/Items/Weapons/RareVariants/EvilSmasher.cs +++ b/Items/Weapons/RareVariants/EvilSmasher.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class EvilSmasher : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.RareVariants public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("FossilSpike"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); if (Main.rand.NextBool(3)) { item.damage = 82; diff --git a/Items/Weapons/RareVariants/EyeofMagnus.cs b/Items/Weapons/RareVariants/EyeofMagnus.cs index 75a28f7636..56b5093e65 100644 --- a/Items/Weapons/RareVariants/EyeofMagnus.cs +++ b/Items/Weapons/RareVariants/EyeofMagnus.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class EyeofMagnus : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.noMelee = true; item.height = 50; item.value = Item.buyPrice(0, 36, 0, 0); - item.shoot = mod.ProjectileType("MagnusBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 22; } diff --git a/Items/Weapons/RareVariants/GrandDad.cs b/Items/Weapons/RareVariants/GrandDad.cs index 1e491ba375..6d6383f03a 100644 --- a/Items/Weapons/RareVariants/GrandDad.cs +++ b/Items/Weapons/RareVariants/GrandDad.cs @@ -1,9 +1,9 @@ using CalamityMod.NPCs; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class GrandDad : ModItem { diff --git a/Items/Weapons/RareVariants/Hellborn.cs b/Items/Weapons/RareVariants/Hellborn.cs index ba12ad4b0a..01ed5e4984 100644 --- a/Items/Weapons/RareVariants/Hellborn.cs +++ b/Items/Weapons/RareVariants/Hellborn.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Hellborn : ModItem { diff --git a/Items/Weapons/RareVariants/Infinity.cs b/Items/Weapons/RareVariants/Infinity.cs index 948bb09fea..5d9141b87c 100644 --- a/Items/Weapons/RareVariants/Infinity.cs +++ b/Items/Weapons/RareVariants/Infinity.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Infinity : ModItem { @@ -86,9 +86,9 @@ namespace CalamityMod.Items.Weapons.RareVariants //If left click, do the same as above but spawn Charged Blasts instead Vector2 num7 = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(rotation)); Vector2 num8 = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(-rotation)); - int shot1 = Projectile.NewProjectile(position.X, position.Y, num7.X, num7.Y, mod.ProjectileType("ChargedBlast"), damage, knockBack, player.whoAmI, 0f, 0f); + int shot1 = Projectile.NewProjectile(position.X, position.Y, num7.X, num7.Y, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[shot1].timeLeft = 180; - int shot2 = Projectile.NewProjectile(position.X, position.Y, num8.X, num8.Y, mod.ProjectileType("ChargedBlast"), damage, knockBack, player.whoAmI, 0f, 0f); + int shot2 = Projectile.NewProjectile(position.X, position.Y, num8.X, num8.Y, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[shot2].timeLeft = 180; if (limit) { diff --git a/Items/Weapons/RareVariants/LeadWizard.cs b/Items/Weapons/RareVariants/LeadWizard.cs index 4098350eae..50b580cf16 100644 --- a/Items/Weapons/RareVariants/LeadWizard.cs +++ b/Items/Weapons/RareVariants/LeadWizard.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class LeadWizard : ModItem { diff --git a/Items/Weapons/RareVariants/Norfleet.cs b/Items/Weapons/RareVariants/Norfleet.cs index b04e0ee158..a472fbb11e 100644 --- a/Items/Weapons/RareVariants/Norfleet.cs +++ b/Items/Weapons/RareVariants/Norfleet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Norfleet : ModItem { @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.width = 140; item.height = 42; item.UseSound = SoundID.Item92; - item.shoot = mod.ProjectileType("Norfleet"); + item.shoot = ModContent.ProjectileType(); item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.noMelee = true; @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.RareVariants 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Norfleet"), 0, 0f, player.whoAmI); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); return false; } } diff --git a/Items/Weapons/RareVariants/PearlGod.cs b/Items/Weapons/RareVariants/PearlGod.cs index addd3c44e1..41e8fa47b3 100644 --- a/Items/Weapons/RareVariants/PearlGod.cs +++ b/Items/Weapons/RareVariants/PearlGod.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class PearlGod : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.UseSound = SoundID.Item41; item.autoReuse = true; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("ShockblastRound"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; item.Calamity().postMoonLordRarity = 22; } @@ -44,9 +44,9 @@ namespace CalamityMod.Items.Weapons.RareVariants for (int index = 0; index < 2; ++index) { float speedMult = (float)(index + 1) * 0.15f; - Projectile.NewProjectile(position.X, position.Y, speedX * speedMult, speedY * speedMult, mod.ProjectileType("FrostsparkBullet"), (int)((double)damage * 0.75), knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * speedMult, speedY * speedMult, ModContent.ProjectileType(), (int)((double)damage * 0.75), knockBack, player.whoAmI, 0f, 0f); } - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ShockblastRound"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/RareVariants/Skullmasher.cs b/Items/Weapons/RareVariants/Skullmasher.cs index b17b6e54c0..606590d2d0 100644 --- a/Items/Weapons/RareVariants/Skullmasher.cs +++ b/Items/Weapons/RareVariants/Skullmasher.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Skullmasher : ModItem { @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.RareVariants { float SpeedX = speedX + (float)Main.rand.Next(-15, 16) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-15, 16) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("AMR"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/RareVariants/Swordsplosion.cs b/Items/Weapons/RareVariants/Swordsplosion.cs index b4f0663a04..44b16876e3 100644 --- a/Items/Weapons/RareVariants/Swordsplosion.cs +++ b/Items/Weapons/RareVariants/Swordsplosion.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Swordsplosion : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.height = 84; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EonBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().postMoonLordRarity = 22; } @@ -39,16 +39,16 @@ namespace CalamityMod.Items.Weapons.RareVariants switch (Main.rand.Next(4)) { case 0: - type = mod.ProjectileType("EonBeam"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("EonBeamV2"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("EonBeamV3"); + type = ModContent.ProjectileType(); break; case 3: - type = mod.ProjectileType("EonBeamV4"); + type = ModContent.ProjectileType(); break; } float num72 = Main.rand.Next(22, 30); @@ -102,10 +102,10 @@ namespace CalamityMod.Items.Weapons.RareVariants public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 480); - target.AddBuff(mod.BuffType("GlacialState"), 480); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 480); - target.AddBuff(mod.BuffType("Plague"), 480); + target.AddBuff(ModContent.BuffType(), 480); + target.AddBuff(ModContent.BuffType(), 480); + target.AddBuff(ModContent.BuffType(), 480); + target.AddBuff(ModContent.BuffType(), 480); } } } diff --git a/Items/Weapons/RareVariants/ThornBlossom.cs b/Items/Weapons/RareVariants/ThornBlossom.cs index 66ae32c1a4..72c89ce568 100644 --- a/Items/Weapons/RareVariants/ThornBlossom.cs +++ b/Items/Weapons/RareVariants/ThornBlossom.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class ThornBlossom : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.rare = 9; item.UseSound = SoundID.Item109; item.autoReuse = true; - item.shoot = mod.ProjectileType("BeamingBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().postMoonLordRarity = 22; } diff --git a/Items/Weapons/RareVariants/Thunderstorm.cs b/Items/Weapons/RareVariants/Thunderstorm.cs index 4a48189ea0..d2a498d6bc 100644 --- a/Items/Weapons/RareVariants/Thunderstorm.cs +++ b/Items/Weapons/RareVariants/Thunderstorm.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class Thunderstorm : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBlast"); item.autoReuse = true; item.shootSpeed = 6f; - item.shoot = mod.ProjectileType("ThunderstormShot"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 22; } diff --git a/Items/Weapons/RareVariants/TrueConferenceCall.cs b/Items/Weapons/RareVariants/TrueConferenceCall.cs index 9293c3f64c..e597c4b981 100644 --- a/Items/Weapons/RareVariants/TrueConferenceCall.cs +++ b/Items/Weapons/RareVariants/TrueConferenceCall.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class TrueConferenceCall : ModItem { diff --git a/Items/Weapons/RareVariants/VoidVortex.cs b/Items/Weapons/RareVariants/VoidVortex.cs index db724e1e9d..0dab711458 100644 --- a/Items/Weapons/RareVariants/VoidVortex.cs +++ b/Items/Weapons/RareVariants/VoidVortex.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.RareVariants +namespace CalamityMod.Items { public class VoidVortex : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.RareVariants item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("Climax2"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 22; } diff --git a/Items/Weapons/Ravager/Hematemesis.cs b/Items/Weapons/Ravager/Hematemesis.cs index 3b17f345a9..082f523f0b 100644 --- a/Items/Weapons/Ravager/Hematemesis.cs +++ b/Items/Weapons/Ravager/Hematemesis.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Ravager +namespace CalamityMod.Items { public class Hematemesis : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ravager item.value = Item.buyPrice(0, 80, 0, 0); item.UseSound = SoundID.Item21; item.autoReuse = true; - item.shoot = mod.ProjectileType("BloodBlast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } diff --git a/Items/Weapons/Ravager/RealmRavager.cs b/Items/Weapons/Ravager/RealmRavager.cs index 1570e60be3..b4aa88f3cb 100644 --- a/Items/Weapons/Ravager/RealmRavager.cs +++ b/Items/Weapons/Ravager/RealmRavager.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Ravager +namespace CalamityMod.Items { public class RealmRavager : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ravager item.UseSound = SoundID.Item38; item.autoReuse = true; item.shootSpeed = 30f; - item.shoot = mod.ProjectileType("RealmRavagerBullet"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Ravager { float SpeedX = speedX + (float)Main.rand.Next(-75, 76) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-75, 76) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("RealmRavagerBullet"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); } return false; } diff --git a/Items/Weapons/Ravager/SpikecragStaff.cs b/Items/Weapons/Ravager/SpikecragStaff.cs index 3c3db33370..05f0580036 100644 --- a/Items/Weapons/Ravager/SpikecragStaff.cs +++ b/Items/Weapons/Ravager/SpikecragStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Ravager +namespace CalamityMod.Items { public class SpikecragStaff : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ravager item.autoReuse = true; item.shootSpeed = 20f; item.UseSound = SoundID.Item78; - item.shoot = mod.ProjectileType("Spikecrag"); + item.shoot = ModContent.ProjectileType(); } public override bool AltFunctionUse(Player player) diff --git a/Items/Weapons/Ravager/UltimusCleaver.cs b/Items/Weapons/Ravager/UltimusCleaver.cs index 34a26dfa2a..8463ccc8aa 100644 --- a/Items/Weapons/Ravager/UltimusCleaver.cs +++ b/Items/Weapons/Ravager/UltimusCleaver.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Ravager +namespace CalamityMod.Items { public class UltimusCleaver : ModItem { @@ -96,7 +96,7 @@ namespace CalamityMod.Items.Weapons.Ravager num342 *= (float)player.direction; num341 *= player.gravDir; Projectile.NewProjectile((float)(hitbox.X + hitbox.Width / 2) + num342, (float)(hitbox.Y + hitbox.Height / 2) + num341, - (float)player.direction * num340, num339 * player.gravDir, mod.ProjectileType("UltimusCleaverDust"), (int)((float)item.damage * 0.1f * player.meleeDamage), 0f, player.whoAmI, 0f, 0f); + (float)player.direction * num340, num339 * player.gravDir, ModContent.ProjectileType(), (int)((float)item.damage * 0.1f * player.meleeDamage), 0f, player.whoAmI, 0f, 0f); } } } diff --git a/Items/Weapons/RedSun.cs b/Items/Weapons/RedSun.cs index 97fb6082a3..17709429c8 100644 --- a/Items/Weapons/RedSun.cs +++ b/Items/Weapons/RedSun.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class RedSun : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.height = 72; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("SolarFlare"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().postMoonLordRarity = 16; } @@ -94,7 +94,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-1000, 1001) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-1000, 1001) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("SolarFlare"), (int)((double)damage * 0.7), knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), (int)((double)damage * 0.7), knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10)); } return false; } @@ -109,7 +109,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Items/Weapons/RedtideSword.cs b/Items/Weapons/RedtideSword.cs index 507b970150..bff1ae248b 100644 --- a/Items/Weapons/RedtideSword.cs +++ b/Items/Weapons/RedtideSword.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class RedtideSword : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.height = 42; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("Whirlpool"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/RelicofRuin.cs b/Items/Weapons/RelicofRuin.cs index 483efcbaaa..8b0f3f8579 100644 --- a/Items/Weapons/RelicofRuin.cs +++ b/Items/Weapons/RelicofRuin.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class RelicofRuin : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item84; item.autoReuse = true; - item.shoot = mod.ProjectileType("ForbiddenAxeBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; } diff --git a/Items/Weapons/RoyalKnivesMelee.cs b/Items/Weapons/RoyalKnivesMelee.cs index 3b4a9cc706..8c6b6d3df4 100644 --- a/Items/Weapons/RoyalKnivesMelee.cs +++ b/Items/Weapons/RoyalKnivesMelee.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class RoyalKnivesMelee : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 20; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("RoyalKnifeMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; item.Calamity().postMoonLordRarity = 16; } @@ -90,7 +90,7 @@ namespace CalamityMod.Items.Weapons num149 *= num80; float x4 = vector2.X; float y4 = vector2.Y; - Projectile.NewProjectile(x4, y4, num148, num149, mod.ProjectileType("RoyalKnifeMelee"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/RubberMortarRound.cs b/Items/Weapons/RubberMortarRound.cs index 4f49554fce..c45b7114bd 100644 --- a/Items/Weapons/RubberMortarRound.cs +++ b/Items/Weapons/RubberMortarRound.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class RubberMortarRound : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.value = 1000; item.rare = 5; item.ammo = 97; - item.shoot = mod.ProjectileType("RubberMortarRound"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/SDFMG.cs b/Items/Weapons/SDFMG.cs index 6c89fbdadd..4367b3b831 100644 --- a/Items/Weapons/SDFMG.cs +++ b/Items/Weapons/SDFMG.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SDFMG : ModItem { @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons float SpeedY = speedY + (float)Main.rand.Next(-5, 6) * 0.05f; if (Main.rand.NextBool(5)) { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("FishronRPG"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); return false; diff --git a/Items/Weapons/SHPC.cs b/Items/Weapons/SHPC.cs index 700a47cece..5ef436532f 100644 --- a/Items/Weapons/SHPC.cs +++ b/Items/Weapons/SHPC.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SHPC : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 36, 0, 0); item.UseSound = SoundID.Item92; item.autoReuse = true; - item.shoot = mod.ProjectileType("SHPB"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().postMoonLordRarity = 17; } @@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons { float SpeedX = speedX + (float)Main.rand.Next(-20, 21) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("SHPL"), damage, knockBack * 0.5f, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack * 0.5f, player.whoAmI, 0.0f, 0.0f); } return false; } @@ -84,7 +84,7 @@ namespace CalamityMod.Items.Weapons { float SpeedX = speedX + (float)Main.rand.Next(-40, 41) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-40, 41) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("SHPB"), (int)((double)damage * 1.1), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), (int)((double)damage * 1.1), knockBack, player.whoAmI, 0.0f, 0.0f); } return false; } diff --git a/Items/Weapons/SanguineFlare.cs b/Items/Weapons/SanguineFlare.cs index 70f5f56f51..de5b48b9cd 100644 --- a/Items/Weapons/SanguineFlare.cs +++ b/Items/Weapons/SanguineFlare.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SanguineFlare : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("SanguineFlare"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/Scorpion.cs b/Items/Weapons/Scorpion.cs index cc9498a6fb..ed51e3bec3 100644 --- a/Items/Weapons/Scorpion.cs +++ b/Items/Weapons/Scorpion.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Scorpion : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item11; item.autoReuse = true; item.shootSpeed = 20f; - item.shoot = mod.ProjectileType("MiniRocket"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 771; } @@ -57,12 +57,12 @@ namespace CalamityMod.Items.Weapons { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BigNuke"), (int)((double)damage * 3.0), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 3.0), knockBack, player.whoAmI, 0.0f, 0.0f); return false; } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("MiniRocket"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/ScourgeoftheCosmos.cs b/Items/Weapons/ScourgeoftheCosmos.cs index 262c0203b0..bde6289a24 100644 --- a/Items/Weapons/ScourgeoftheCosmos.cs +++ b/Items/Weapons/ScourgeoftheCosmos.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ScourgeoftheCosmos : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 20; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("ScourgeoftheCosmos"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/Seabow.cs b/Items/Weapons/Seabow.cs index 1445f62c58..64813f145e 100644 --- a/Items/Weapons/Seabow.cs +++ b/Items/Weapons/Seabow.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Seabow : ModItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons { float SpeedX = speedX + (float)Main.rand.Next(-30, 31) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-30, 31) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX * 0.5f, SpeedY * 0.5f, mod.ProjectileType("SandWater"), (int)((double)damage * 0.5), 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX * 0.5f, SpeedY * 0.5f, ModContent.ProjectileType(), (int)((double)damage * 0.5), 0f, player.whoAmI, 0f, 0f); return true; } diff --git a/Items/Weapons/Seadragon.cs b/Items/Weapons/Seadragon.cs index cb21ecefb8..2f39c3fc41 100644 --- a/Items/Weapons/Seadragon.cs +++ b/Items/Weapons/Seadragon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Seadragon : ModItem { @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); if (Main.rand.NextBool(10)) { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("SeaDragonRocket"), damage * 2, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage * 2, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/SeashellBoomerangMelee.cs b/Items/Weapons/SeashellBoomerangMelee.cs index 8a9ad0f134..fd07da40f5 100644 --- a/Items/Weapons/SeashellBoomerangMelee.cs +++ b/Items/Weapons/SeashellBoomerangMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SeashellBoomerangMelee : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons item.height = 34; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("SeashellBoomerangProjectileMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11.5f; } diff --git a/Items/Weapons/ShadecrystalTome.cs b/Items/Weapons/ShadecrystalTome.cs index 83af1e2903..9c6c8acf0d 100644 --- a/Items/Weapons/ShadecrystalTome.cs +++ b/Items/Weapons/ShadecrystalTome.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ShadecrystalTome : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 5; item.UseSound = SoundID.Item9; item.autoReuse = true; - item.shoot = mod.ProjectileType("ShadecrystalProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/ShadowboltStaff.cs b/Items/Weapons/ShadowboltStaff.cs index 90eb3ef56f..695d3c76d9 100644 --- a/Items/Weapons/ShadowboltStaff.cs +++ b/Items/Weapons/ShadowboltStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class ShadowboltStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item72; item.autoReuse = true; - item.shoot = mod.ProjectileType("Shadowbolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/Shimmerspark.cs b/Items/Weapons/Shimmerspark.cs index 2d0c8efb16..31dd7335d3 100644 --- a/Items/Weapons/Shimmerspark.cs +++ b/Items/Weapons/Shimmerspark.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Shimmerspark : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.autoReuse = true; - item.shoot = mod.ProjectileType("ShimmersparkProjectile"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/Shredder.cs b/Items/Weapons/Shredder.cs index ab9d1607cb..14eec6a4be 100644 --- a/Items/Weapons/Shredder.cs +++ b/Items/Weapons/Shredder.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Shredder : ModItem { @@ -67,7 +67,7 @@ namespace CalamityMod.Items.Weapons { float SpeedX = speedX + (float)Main.rand.Next(-30, 31) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-30, 31) * 0.05f; - int shot = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("ChargedBlast"), damage, knockBack, player.whoAmI, 0f, 0f); + int shot = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[shot].timeLeft = 180; } return false; diff --git a/Items/Weapons/Shroomer.cs b/Items/Weapons/Shroomer.cs index 9de3172205..9bea5e3260 100644 --- a/Items/Weapons/Shroomer.cs +++ b/Items/Weapons/Shroomer.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Shroomer : ModItem { @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f); if (Main.rand.NextBool(5)) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Shroom"), (int)((double)damage * 1.5), knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * 1.5), knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/SkyGlaze.cs b/Items/Weapons/SkyGlaze.cs index cb4aca1d45..4c31cc0cc9 100644 --- a/Items/Weapons/SkyGlaze.cs +++ b/Items/Weapons/SkyGlaze.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SkyGlaze : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 1; item.UseSound = SoundID.Item102; item.autoReuse = true; - item.shoot = mod.ProjectileType("StickyFeather"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; } diff --git a/Items/Weapons/SlagMagnum.cs b/Items/Weapons/SlagMagnum.cs index 2acefd5a6d..2590681a16 100644 --- a/Items/Weapons/SlagMagnum.cs +++ b/Items/Weapons/SlagMagnum.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SlagMagnum : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item41; item.autoReuse = true; item.shootSpeed = 22f; - item.shoot = mod.ProjectileType("SlagRound"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SlagRound"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/SlimeGod/AbyssalTome.cs b/Items/Weapons/SlimeGod/AbyssalTome.cs index af574bff22..2182f0e037 100644 --- a/Items/Weapons/SlimeGod/AbyssalTome.cs +++ b/Items/Weapons/SlimeGod/AbyssalTome.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class AbyssalTome : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod item.rare = 4; item.UseSound = SoundID.Item8; item.autoReuse = true; - item.shoot = mod.ProjectileType("AbyssBall"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } } diff --git a/Items/Weapons/SlimeGod/CorroslimeStaff.cs b/Items/Weapons/SlimeGod/CorroslimeStaff.cs index f9b72acccd..a424d2bd91 100644 --- a/Items/Weapons/SlimeGod/CorroslimeStaff.cs +++ b/Items/Weapons/SlimeGod/CorroslimeStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class CorroslimeStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod item.rare = 4; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("Corroslime"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/SlimeGod/CorruptedCrusherBlade.cs b/Items/Weapons/SlimeGod/CorruptedCrusherBlade.cs index 4ef127abbb..f3d017f182 100644 --- a/Items/Weapons/SlimeGod/CorruptedCrusherBlade.cs +++ b/Items/Weapons/SlimeGod/CorruptedCrusherBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class CorruptedCrusherBlade : ModItem { diff --git a/Items/Weapons/SlimeGod/CrimslimeStaff.cs b/Items/Weapons/SlimeGod/CrimslimeStaff.cs index e5bb2135d8..79b2e91694 100644 --- a/Items/Weapons/SlimeGod/CrimslimeStaff.cs +++ b/Items/Weapons/SlimeGod/CrimslimeStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class CrimslimeStaff : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod item.rare = 4; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("Crimslime"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/SlimeGod/CrimsonCrusherBlade.cs b/Items/Weapons/SlimeGod/CrimsonCrusherBlade.cs index 6b9d820877..ebf5635efd 100644 --- a/Items/Weapons/SlimeGod/CrimsonCrusherBlade.cs +++ b/Items/Weapons/SlimeGod/CrimsonCrusherBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class CrimsonCrusherBlade : ModItem { diff --git a/Items/Weapons/SlimeGod/EldritchTome.cs b/Items/Weapons/SlimeGod/EldritchTome.cs index b9b144d6b8..7f717a1ab5 100644 --- a/Items/Weapons/SlimeGod/EldritchTome.cs +++ b/Items/Weapons/SlimeGod/EldritchTome.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class EldritchTome : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod item.rare = 4; item.UseSound = SoundID.Item103; item.autoReuse = true; - item.shoot = mod.ProjectileType("EldritchTentacle"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } @@ -61,7 +61,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod { num92 *= -1f; } - Projectile.NewProjectile(vector2.X, vector2.Y, value2.X, value2.Y, mod.ProjectileType("EldritchTentacle"), num73, num74, i, num92, num91); + Projectile.NewProjectile(vector2.X, vector2.Y, value2.X, value2.Y, ModContent.ProjectileType(), num73, num74, i, num92, num91); return false; } } diff --git a/Items/Weapons/SlimeGod/GeliticBlade.cs b/Items/Weapons/SlimeGod/GeliticBlade.cs index eac5d056b8..d07e8f02d2 100644 --- a/Items/Weapons/SlimeGod/GeliticBlade.cs +++ b/Items/Weapons/SlimeGod/GeliticBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class GeliticBlade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod item.height = 62; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; - item.shoot = mod.ProjectileType("GelWave"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } diff --git a/Items/Weapons/SlimeGod/Goobow.cs b/Items/Weapons/SlimeGod/Goobow.cs index 21005a0b33..33038e290a 100644 --- a/Items/Weapons/SlimeGod/Goobow.cs +++ b/Items/Weapons/SlimeGod/Goobow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class Goobow : ModItem { diff --git a/Items/Weapons/SlimeGod/GunkShot.cs b/Items/Weapons/SlimeGod/GunkShot.cs index 335847b5de..44e29a26c0 100644 --- a/Items/Weapons/SlimeGod/GunkShot.cs +++ b/Items/Weapons/SlimeGod/GunkShot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class GunkShot : ModItem { diff --git a/Items/Weapons/SlimeGod/OverloadedBlaster.cs b/Items/Weapons/SlimeGod/OverloadedBlaster.cs index e6c5d1ca89..732205c07d 100644 --- a/Items/Weapons/SlimeGod/OverloadedBlaster.cs +++ b/Items/Weapons/SlimeGod/OverloadedBlaster.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Items.Weapons.SlimeGod +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; +namespace CalamityMod.Items { public class OverloadedBlaster : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod item.UseSound = SoundID.Item9; item.autoReuse = true; item.shootSpeed = 6.5f; - item.shoot = mod.ProjectileType("SlimeBolt"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 23; } diff --git a/Items/Weapons/SlimeGod/TheGodsGambit.cs b/Items/Weapons/SlimeGod/TheGodsGambit.cs index 6e28b412e3..95dafe927e 100644 --- a/Items/Weapons/SlimeGod/TheGodsGambit.cs +++ b/Items/Weapons/SlimeGod/TheGodsGambit.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SlimeGod +namespace CalamityMod.Items { public class TheGodsGambit : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; item.autoReuse = true; - item.shoot = mod.ProjectileType("TheGodsGambitProjectile"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/SolsticeClaymore.cs b/Items/Weapons/SolsticeClaymore.cs index 63097b9ab8..d4accff75c 100644 --- a/Items/Weapons/SolsticeClaymore.cs +++ b/Items/Weapons/SolsticeClaymore.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SolsticeClaymore : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 86; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("SolsticeBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().postMoonLordRarity = 12; } @@ -79,7 +79,7 @@ namespace CalamityMod.Items.Weapons } else { - target.AddBuff(mod.BuffType("Nightwither"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/SomaPrime.cs b/Items/Weapons/SomaPrime.cs index 2f88fb8311..5a1e17edae 100644 --- a/Items/Weapons/SomaPrime.cs +++ b/Items/Weapons/SomaPrime.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SomaPrime : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item40; item.autoReuse = true; - item.shoot = mod.ProjectileType("SlashRound"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.useAmmo = 97; item.Calamity().postMoonLordRarity = 16; @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons { float SpeedX = speedX + (float)Main.rand.Next(-10, 11) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-10, 11) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("SlashRound"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/SoulHarvester.cs b/Items/Weapons/SoulHarvester.cs index 828bd76390..79126d976f 100644 --- a/Items/Weapons/SoulHarvester.cs +++ b/Items/Weapons/SoulHarvester.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SoulHarvester : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 64; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("SoulScythe"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; } @@ -54,12 +54,12 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); target.AddBuff(BuffID.CursedInferno, 300); if (target.life <= (target.lifeMax * 0.15f)) { Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 14); - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("HiveBombExplosion"), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); for (int num621 = 0; num621 < 30; num621++) { int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 89, 0f, 0f, 100, default, 2f); diff --git a/Items/Weapons/SoulPiercer.cs b/Items/Weapons/SoulPiercer.cs index d0a6074a47..d6036c16fd 100644 --- a/Items/Weapons/SoulPiercer.cs +++ b/Items/Weapons/SoulPiercer.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SoulPiercer : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item73; item.autoReuse = true; - item.shoot = mod.ProjectileType("SoulPiercer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/SparkSpreader.cs b/Items/Weapons/SparkSpreader.cs index fe9dacd927..975fb329a0 100644 --- a/Items/Weapons/SparkSpreader.cs +++ b/Items/Weapons/SparkSpreader.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SparkSpreader : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 1; item.autoReuse = true; - item.shoot = mod.ProjectileType("SparkSpreaderFire"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; item.useAmmo = 23; } diff --git a/Items/Weapons/SpatialLance.cs b/Items/Weapons/SpatialLance.cs index 45b8208e6e..ff150dccc1 100644 --- a/Items/Weapons/SpatialLance.cs +++ b/Items/Weapons/SpatialLance.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SpatialLance : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 88; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("SpatialLanceProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/SpectralstormCannon.cs b/Items/Weapons/SpectralstormCannon.cs index 26c47c1d63..d57cc4f81a 100644 --- a/Items/Weapons/SpectralstormCannon.cs +++ b/Items/Weapons/SpectralstormCannon.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SpectralstormCannon : ModItem { diff --git a/Items/Weapons/SpectreRifle.cs b/Items/Weapons/SpectreRifle.cs index cec28e1782..5154e96c8f 100644 --- a/Items/Weapons/SpectreRifle.cs +++ b/Items/Weapons/SpectreRifle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SpectreRifle : ModItem { diff --git a/Items/Weapons/SporeKnife.cs b/Items/Weapons/SporeKnife.cs index a4247ef6ac..52fad547ea 100644 --- a/Items/Weapons/SporeKnife.cs +++ b/Items/Weapons/SporeKnife.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SporeKnife : ModItem { diff --git a/Items/Weapons/Spyker.cs b/Items/Weapons/Spyker.cs index b44ed9482d..2e32c0b61e 100644 --- a/Items/Weapons/Spyker.cs +++ b/Items/Weapons/Spyker.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Spyker : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item108; item.autoReuse = true; item.shootSpeed = 9f; - item.shoot = mod.ProjectileType("Spyker"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; item.Calamity().postMoonLordRarity = 12; } @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Spyker"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Weapons/StarCannonEX.cs b/Items/Weapons/StarCannonEX.cs index 47011ef4fe..1e15388ff6 100644 --- a/Items/Weapons/StarCannonEX.cs +++ b/Items/Weapons/StarCannonEX.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StarCannonEX : ModItem { @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons type = 9; break; case 2: - type = mod.ProjectileType("AstralStar"); + type = ModContent.ProjectileType(); break; } int star = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); diff --git a/Items/Weapons/StardustStaff.cs b/Items/Weapons/StardustStaff.cs index e40ec5745d..6fe0413c77 100644 --- a/Items/Weapons/StardustStaff.cs +++ b/Items/Weapons/StardustStaff.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StardustStaff : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.rare = 9; item.UseSound = SoundID.Item43; item.autoReuse = true; - item.shoot = mod.ProjectileType("Starblast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } @@ -69,7 +69,7 @@ namespace CalamityMod.Items.Weapons num133 *= num80; float x2 = vector2.X; float y2 = vector2.Y; - Projectile.NewProjectile(x2, y2, num132, num133, mod.ProjectileType("IceCluster"), num73, num74, i, 0f, 1f); + Projectile.NewProjectile(x2, y2, num132, num133, ModContent.ProjectileType(), num73, num74, i, 0f, 1f); } else { @@ -86,7 +86,7 @@ namespace CalamityMod.Items.Weapons num133 *= num80; float x2 = vector2.X; float y2 = vector2.Y; - Projectile.NewProjectile(x2, y2, num132, num133, mod.ProjectileType("Starblast"), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(x2, y2, num132, num133, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); } } return false; diff --git a/Items/Weapons/Starfleet.cs b/Items/Weapons/Starfleet.cs index b3b84f4aa7..98afb294af 100644 --- a/Items/Weapons/Starfleet.cs +++ b/Items/Weapons/Starfleet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Starfleet : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item92; item.autoReuse = true; - item.shoot = mod.ProjectileType("PlasmaBlast"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.useAmmo = 75; item.Calamity().postMoonLordRarity = 12; diff --git a/Items/Weapons/StarfleetMK2.cs b/Items/Weapons/StarfleetMK2.cs index 70955b854a..6992933243 100644 --- a/Items/Weapons/StarfleetMK2.cs +++ b/Items/Weapons/StarfleetMK2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StarfleetMK2 : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.width = 122; item.height = 50; item.UseSound = SoundID.Item92; - item.shoot = mod.ProjectileType("StarfleetMK2"); + item.shoot = ModContent.ProjectileType(); item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.noMelee = true; @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("StarfleetMK2"), 0, 0f, player.whoAmI); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); return false; } diff --git a/Items/Weapons/StarnightLance.cs b/Items/Weapons/StarnightLance.cs index 903750684a..3953f25e7f 100644 --- a/Items/Weapons/StarnightLance.cs +++ b/Items/Weapons/StarnightLance.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StarnightLance : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 72; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("StarnightLanceProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/StellarContemptMelee.cs b/Items/Weapons/StellarContemptMelee.cs index 416120f8b8..0ebb7bb091 100644 --- a/Items/Weapons/StellarContemptMelee.cs +++ b/Items/Weapons/StellarContemptMelee.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StellarContemptMelee : ModItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons item.Calamity().postMoonLordRarity = 12; item.value = Item.buyPrice(1, 20, 0, 0); - item.shoot = mod.ProjectileType("StellarContemptHammer"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = Speed; } diff --git a/Items/Weapons/StellarStriker.cs b/Items/Weapons/StellarStriker.cs index 00a6ddcdf1..6b6e889e3c 100644 --- a/Items/Weapons/StellarStriker.cs +++ b/Items/Weapons/StellarStriker.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StellarStriker : ModItem { diff --git a/Items/Weapons/StormDragoon.cs b/Items/Weapons/StormDragoon.cs index 6b7a1bbe09..661ac42ead 100644 --- a/Items/Weapons/StormDragoon.cs +++ b/Items/Weapons/StormDragoon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StormDragoon : ModItem { diff --git a/Items/Weapons/StormRuler.cs b/Items/Weapons/StormRuler.cs index db47c4d545..aef896fea1 100644 --- a/Items/Weapons/StormRuler.cs +++ b/Items/Weapons/StormRuler.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StormRuler : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 82; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; - item.shoot = mod.ProjectileType("StormRuler"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; } diff --git a/Items/Weapons/StormSaber.cs b/Items/Weapons/StormSaber.cs index 86f8f41b62..45aa5e862b 100644 --- a/Items/Weapons/StormSaber.cs +++ b/Items/Weapons/StormSaber.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StormSaber : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 68; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("StormBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/StormSurge.cs b/Items/Weapons/StormSurge.cs index 7c48cefbae..1b680fff01 100644 --- a/Items/Weapons/StormSurge.cs +++ b/Items/Weapons/StormSurge.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StormSurge : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; item.autoReuse = false; - item.shoot = mod.ProjectileType("StormSurge"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/StreamGouge.cs b/Items/Weapons/StreamGouge.cs index 3cdd1c76d8..92818b88e6 100644 --- a/Items/Weapons/StreamGouge.cs +++ b/Items/Weapons/StreamGouge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class StreamGouge : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.height = 100; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("StreamGouge"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/SubsumingVortex.cs b/Items/Weapons/SubsumingVortex.cs index a132ee5711..a83e182d44 100644 --- a/Items/Weapons/SubsumingVortex.cs +++ b/Items/Weapons/SubsumingVortex.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SubsumingVortex : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("Vortex"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; item.Calamity().postMoonLordRarity = 15; } diff --git a/Items/Weapons/SunGodStaff.cs b/Items/Weapons/SunGodStaff.cs index 889bf862f0..ef327bf79b 100644 --- a/Items/Weapons/SunGodStaff.cs +++ b/Items/Weapons/SunGodStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SunGodStaff : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.rare = 6; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("SolarGod"); + item.shoot = ModContent.ProjectileType(); item.summon = true; } @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons for (int x = 0; x < 1000; x++) { Projectile projectile = Main.projectile[x]; - if (projectile.active && projectile.owner == player.whoAmI && projectile.type == mod.ProjectileType("SolarGod")) + if (projectile.active && projectile.owner == player.whoAmI && projectile.type == ModContent.ProjectileType()) { projectile.Kill(); } diff --git a/Items/Weapons/SunSpiritStaff.cs b/Items/Weapons/SunSpiritStaff.cs index 05004ff198..7bdf467e48 100644 --- a/Items/Weapons/SunSpiritStaff.cs +++ b/Items/Weapons/SunSpiritStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SunSpiritStaff : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.rare = 2; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("SolarPixie"); + item.shoot = ModContent.ProjectileType(); item.summon = true; } @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons for (int x = 0; x < 1000; x++) { Projectile projectile = Main.projectile[x]; - if (projectile.active && projectile.owner == player.whoAmI && projectile.type == mod.ProjectileType("SolarPixie")) + if (projectile.active && projectile.owner == player.whoAmI && projectile.type == ModContent.ProjectileType()) { projectile.Kill(); } diff --git a/Items/Weapons/SunkenSea/AquamarineStaff.cs b/Items/Weapons/SunkenSea/AquamarineStaff.cs index aa841522bd..5720f72157 100644 --- a/Items/Weapons/SunkenSea/AquamarineStaff.cs +++ b/Items/Weapons/SunkenSea/AquamarineStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class AquamarineStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.rare = 2; item.UseSound = SoundID.Item43; item.autoReuse = true; - item.shoot = mod.ProjectileType("AquamarineBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } diff --git a/Items/Weapons/SunkenSea/AquashardShotgun.cs b/Items/Weapons/SunkenSea/AquashardShotgun.cs index a9acb315ae..71b097f763 100644 --- a/Items/Weapons/SunkenSea/AquashardShotgun.cs +++ b/Items/Weapons/SunkenSea/AquashardShotgun.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class AquashardShotgun : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.rare = 2; item.UseSound = SoundID.Item61; item.autoReuse = true; - item.shoot = mod.ProjectileType("Aquashard"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 22f; } diff --git a/Items/Weapons/SunkenSea/ClamCrusher.cs b/Items/Weapons/SunkenSea/ClamCrusher.cs index 690cc74c61..af33dc1ca2 100644 --- a/Items/Weapons/SunkenSea/ClamCrusher.cs +++ b/Items/Weapons/SunkenSea/ClamCrusher.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class ClamCrusher : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.UseSound = SoundID.Item1; item.autoReuse = true; item.channel = true; - item.shoot = mod.ProjectileType("ClamCrusherFlail"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; } } diff --git a/Items/Weapons/SunkenSea/ClamorRifle.cs b/Items/Weapons/SunkenSea/ClamorRifle.cs index 5fcdebb717..9797cde118 100644 --- a/Items/Weapons/SunkenSea/ClamorRifle.cs +++ b/Items/Weapons/SunkenSea/ClamorRifle.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class ClamorRifle : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBolt"); item.autoReuse = true; item.rare = 5; - item.shoot = mod.ProjectileType("ClamorRifleProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.useAmmo = 97; } @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ClamorRifleProj"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/SunkenSea/EutrophicScimitar.cs b/Items/Weapons/SunkenSea/EutrophicScimitar.cs index 2ae5689641..e1de24feec 100644 --- a/Items/Weapons/SunkenSea/EutrophicScimitar.cs +++ b/Items/Weapons/SunkenSea/EutrophicScimitar.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class EutrophicScimitar : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.useAnimation = 38; item.useStyle = 1; item.knockBack = 2; - item.shoot = mod.ProjectileType("EutrophicScimitarProj"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 17; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; diff --git a/Items/Weapons/SunkenSea/EutrophicShank.cs b/Items/Weapons/SunkenSea/EutrophicShank.cs index a32c205865..88c5f4101b 100644 --- a/Items/Weapons/SunkenSea/EutrophicShank.cs +++ b/Items/Weapons/SunkenSea/EutrophicShank.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class EutrophicShank : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.autoReuse = true; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("EutrophicSpark"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } diff --git a/Items/Weapons/SunkenSea/Poseidon.cs b/Items/Weapons/SunkenSea/Poseidon.cs index 1bed5797c2..ca03c8d034 100644 --- a/Items/Weapons/SunkenSea/Poseidon.cs +++ b/Items/Weapons/SunkenSea/Poseidon.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class Poseidon : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.UseSound = SoundID.Item84; item.rare = 5; item.autoReuse = true; - item.shoot = mod.ProjectileType("PoseidonTyphoon"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } } diff --git a/Items/Weapons/SunkenSea/SeashineSword.cs b/Items/Weapons/SunkenSea/SeashineSword.cs index bfce21eaf9..4bf5feaf09 100644 --- a/Items/Weapons/SunkenSea/SeashineSword.cs +++ b/Items/Weapons/SunkenSea/SeashineSword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class SeashineSword : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - type = mod.ProjectileType("SeashineSwordProj"); + type = ModContent.ProjectileType(); return base.Shoot(player, ref position, ref speedX, ref speedY, ref type, ref damage, ref knockBack); } diff --git a/Items/Weapons/SunkenSea/Serpentine.cs b/Items/Weapons/SunkenSea/Serpentine.cs index f18ea94b2a..4603e1e0f5 100644 --- a/Items/Weapons/SunkenSea/Serpentine.cs +++ b/Items/Weapons/SunkenSea/Serpentine.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class Serpentine : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.UseSound = SoundID.Item20; item.rare = 5; item.autoReuse = true; - item.shoot = mod.ProjectileType("SerpentineHead"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } @@ -73,19 +73,19 @@ namespace CalamityMod.Items.Weapons.SunkenSea //velY = 0f; //vector2.X = (float)Main.mouseX + Main.screenPosition.X; //vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - int curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineHead"), damage, knockBack, owner); + int curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, owner); int prev = curr; - curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineBody"), damage, knockBack, owner, (float)prev); + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, owner, (float)prev); prev = curr; - curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineBody"), damage, knockBack, owner, (float)prev); + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, owner, (float)prev); prev = curr; - curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineBody"), damage, knockBack, owner, (float)prev); + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, owner, (float)prev); prev = curr; - curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineTail"), damage, knockBack, owner, (float)prev); + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, owner, (float)prev); Main.projectile[prev].localAI[1] = (float)curr; Main.projectile[prev].netUpdate = true; return false; diff --git a/Items/Weapons/SunkenSea/ShellfishStaff.cs b/Items/Weapons/SunkenSea/ShellfishStaff.cs index d62264b5f1..a4fcb35cf4 100644 --- a/Items/Weapons/SunkenSea/ShellfishStaff.cs +++ b/Items/Weapons/SunkenSea/ShellfishStaff.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class ShellfishStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.rare = 5; item.UseSound = SoundID.Item44; item.autoReuse = true; - item.shoot = mod.ProjectileType("Shellfish"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; } diff --git a/Items/Weapons/SunkenSea/Whirlpool.cs b/Items/Weapons/SunkenSea/Whirlpool.cs index b92a938cf4..3776ec9ea2 100644 --- a/Items/Weapons/SunkenSea/Whirlpool.cs +++ b/Items/Weapons/SunkenSea/Whirlpool.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.SunkenSea +namespace CalamityMod.Items { public class Whirlpool : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.SunkenSea item.useStyle = 5; item.useAnimation = 25; item.useTime = 25; - item.shoot = mod.ProjectileType("WhirlpoolProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 18f; item.UseSound = SoundID.Item1; ItemID.Sets.Yoyo[item.type] = true; diff --git a/Items/Weapons/SuperballBullet.cs b/Items/Weapons/SuperballBullet.cs index ee8f4e7dfc..5aa80f36e5 100644 --- a/Items/Weapons/SuperballBullet.cs +++ b/Items/Weapons/SuperballBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class SuperballBullet : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.5f; item.value = 250; item.rare = 1; - item.shoot = mod.ProjectileType("SuperballBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 1f; item.ammo = 97; } diff --git a/Items/Weapons/Svantechnical.cs b/Items/Weapons/Svantechnical.cs index b8421929d0..c259241af9 100644 --- a/Items/Weapons/Svantechnical.cs +++ b/Items/Weapons/Svantechnical.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Svantechnical : ModItem { diff --git a/Items/Weapons/T1000.cs b/Items/Weapons/T1000.cs index 625467934f..4634ae9ddb 100644 --- a/Items/Weapons/T1000.cs +++ b/Items/Weapons/T1000.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class T1000 : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("T1000"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().postMoonLordRarity = 14; } @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("T1000"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/TeardropCleaver.cs b/Items/Weapons/TeardropCleaver.cs index 552976d840..7cfc17b8a8 100644 --- a/Items/Weapons/TeardropCleaver.cs +++ b/Items/Weapons/TeardropCleaver.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TeardropCleaver : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("TemporalSadness"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Items/Weapons/TearsofHeaven.cs b/Items/Weapons/TearsofHeaven.cs index bb7da86cb8..89dd4b67c6 100644 --- a/Items/Weapons/TearsofHeaven.cs +++ b/Items/Weapons/TearsofHeaven.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TearsofHeaven : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.UseSound = SoundID.Item8; item.autoReuse = true; - item.shoot = mod.ProjectileType("TearsofHeavenProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5.5f; } diff --git a/Items/Weapons/TemporalFloeSword.cs b/Items/Weapons/TemporalFloeSword.cs index fe55d0dd5c..8cd88da6e4 100644 --- a/Items/Weapons/TemporalFloeSword.cs +++ b/Items/Weapons/TemporalFloeSword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TemporalFloeSword : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 58; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("TemporalFloeSwordProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } @@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons { if (Main.rand.NextBool(3)) { - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); } target.AddBuff(BuffID.Frostburn, 600); } diff --git a/Items/Weapons/TerraArrow.cs b/Items/Weapons/TerraArrow.cs index bf177c0720..27e1a6cec0 100644 --- a/Items/Weapons/TerraArrow.cs +++ b/Items/Weapons/TerraArrow.cs @@ -1,8 +1,8 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TerraArrow : ModItem { @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.5f; item.value = Item.sellPrice(0, 0, 0, 40); item.rare = 7; - item.shoot = mod.ProjectileType("TerraArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 15f; item.ammo = 40; } diff --git a/Items/Weapons/TerraBullet.cs b/Items/Weapons/TerraBullet.cs index 536408324e..6fae733514 100644 --- a/Items/Weapons/TerraBullet.cs +++ b/Items/Weapons/TerraBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TerraBullet : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.25f; item.value = 2000; item.rare = 7; - item.shoot = mod.ProjectileType("TerraBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 97; } diff --git a/Items/Weapons/TerraEdge.cs b/Items/Weapons/TerraEdge.cs index 1bed4909d5..3b964747e1 100644 --- a/Items/Weapons/TerraEdge.cs +++ b/Items/Weapons/TerraEdge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TerraEdge : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 58; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("TerraEdgeBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/TerraFlameburster.cs b/Items/Weapons/TerraFlameburster.cs index e2c36e0588..cd4149176c 100644 --- a/Items/Weapons/TerraFlameburster.cs +++ b/Items/Weapons/TerraFlameburster.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TerraFlameburster : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.autoReuse = true; - item.shoot = mod.ProjectileType("TerraFireGreen"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7.5f; item.useAmmo = 23; } diff --git a/Items/Weapons/TerraLance.cs b/Items/Weapons/TerraLance.cs index 7ed01b3c49..5343cca3f9 100644 --- a/Items/Weapons/TerraLance.cs +++ b/Items/Weapons/TerraLance.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TerraLance : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 44; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("TerraLanceProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; } diff --git a/Items/Weapons/TerraRay.cs b/Items/Weapons/TerraRay.cs index a267c911a2..877f9a9c80 100644 --- a/Items/Weapons/TerraRay.cs +++ b/Items/Weapons/TerraRay.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TerraRay : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.UseSound = SoundID.Item60; item.autoReuse = true; - item.shoot = mod.ProjectileType("TerraRay"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; } diff --git a/Items/Weapons/TerraShiv.cs b/Items/Weapons/TerraShiv.cs index 928fe27f4c..41d12465e1 100644 --- a/Items/Weapons/TerraShiv.cs +++ b/Items/Weapons/TerraShiv.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TerraShiv : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item1; item.useTurn = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("ShortTerraBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; diff --git a/Items/Weapons/Terracotta.cs b/Items/Weapons/Terracotta.cs index b21afddd39..645a50a096 100644 --- a/Items/Weapons/Terracotta.cs +++ b/Items/Weapons/Terracotta.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Terracotta : ModItem { @@ -38,11 +38,11 @@ namespace CalamityMod.Items.Weapons { float randomSpeedX = (float)Main.rand.Next(3); float randomSpeedY = (float)Main.rand.Next(3, 5); - Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, mod.ProjectileType("Terracotta"), 0, 0f, player.whoAmI); - Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, mod.ProjectileType("Terracotta"), 0, 0f, player.whoAmI); - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, -randomSpeedY, mod.ProjectileType("Terracotta"), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, -randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, randomSpeedX, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, -randomSpeedY, ModContent.ProjectileType(), 0, 0f, player.whoAmI); } - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("TerracottaExplosion"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI); } public override void MeleeEffects(Player player, Rectangle hitbox) diff --git a/Items/Weapons/Terratomere.cs b/Items/Weapons/Terratomere.cs index 70f0c68cb7..918fca4043 100644 --- a/Items/Weapons/Terratomere.cs +++ b/Items/Weapons/Terratomere.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Terratomere : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 64; item.value = Item.buyPrice(1, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("TerratomereProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; } @@ -82,7 +82,7 @@ namespace CalamityMod.Items.Weapons { if (Main.rand.NextBool(3)) { - target.AddBuff(mod.BuffType("GlacialState"), 300); + target.AddBuff(ModContent.BuffType(), 300); } target.AddBuff(BuffID.CursedInferno, 600); target.AddBuff(BuffID.Frostburn, 600); diff --git a/Items/Weapons/TheBallista.cs b/Items/Weapons/TheBallista.cs index 1fb5664449..d9b732147a 100644 --- a/Items/Weapons/TheBallista.cs +++ b/Items/Weapons/TheBallista.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TheBallista : ModItem { @@ -28,14 +28,14 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = mod.ProjectileType("BallistaGreatArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BallistaGreatArrow"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/TheEmpyrean.cs b/Items/Weapons/TheEmpyrean.cs index b83447c42a..a2439e54a1 100644 --- a/Items/Weapons/TheEmpyrean.cs +++ b/Items/Weapons/TheEmpyrean.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TheEmpyrean : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; item.autoReuse = true; - item.shoot = mod.ProjectileType("CosmicFire"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7.5f; item.useAmmo = 23; } diff --git a/Items/Weapons/TheEnforcer.cs b/Items/Weapons/TheEnforcer.cs index 2c7e8524fb..fd7efb2f43 100644 --- a/Items/Weapons/TheEnforcer.cs +++ b/Items/Weapons/TheEnforcer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TheEnforcer : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 100; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("EssenceFireball"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().postMoonLordRarity = 14; } @@ -85,7 +85,7 @@ namespace CalamityMod.Items.Weapons } num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); num80 = num72 / num80; - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, mod.ProjectileType("EssenceFlame2"), (int)((float)item.damage * player.meleeDamage * 0.25f), num74, i, 0f, (float)Main.rand.Next(3)); + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage * 0.25f), num74, i, 0f, (float)Main.rand.Next(3)); } } diff --git a/Items/Weapons/TheMutilator.cs b/Items/Weapons/TheMutilator.cs index 6b0ed4f666..c6f0754c00 100644 --- a/Items/Weapons/TheMutilator.cs +++ b/Items/Weapons/TheMutilator.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TheMutilator : ModItem { diff --git a/Items/Weapons/TheStorm.cs b/Items/Weapons/TheStorm.cs index 97def7d32d..81b6c670e5 100644 --- a/Items/Weapons/TheStorm.cs +++ b/Items/Weapons/TheStorm.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TheStorm : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item122; item.autoReuse = true; - item.shoot = mod.ProjectileType("Bolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 13; @@ -87,9 +87,9 @@ namespace CalamityMod.Items.Weapons float speedY5 = num79 + (float)Main.rand.Next(-120, 121) * 0.02f; if (type == ProjectileID.WoodenArrowFriendly) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.9f, mod.ProjectileType("Bolt"), num73, num74, i, 0f, 0f); - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.8f, mod.ProjectileType("Bolt"), num73, num74, i, 0f, 0f); - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.7f, mod.ProjectileType("Bolt"), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.9f, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.8f, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.7f, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); } else { diff --git a/Items/Weapons/TheSwarmer.cs b/Items/Weapons/TheSwarmer.cs index 6c454c2cb8..c779632afe 100644 --- a/Items/Weapons/TheSwarmer.cs +++ b/Items/Weapons/TheSwarmer.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TheSwarmer : ModItem { diff --git a/Items/Weapons/TheWand.cs b/Items/Weapons/TheWand.cs index 7b3f7e9b6a..a8e3f93fac 100644 --- a/Items/Weapons/TheWand.cs +++ b/Items/Weapons/TheWand.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TheWand : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 36; item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("SparkInfernal"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 24f; item.Calamity().postMoonLordRarity = 15; } diff --git a/Items/Weapons/TitaniumRailgun.cs b/Items/Weapons/TitaniumRailgun.cs index 519562e00f..a5b6ee7e4d 100644 --- a/Items/Weapons/TitaniumRailgun.cs +++ b/Items/Weapons/TitaniumRailgun.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TitaniumRailgun : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item72; item.autoReuse = true; item.shootSpeed = 6f; - item.shoot = mod.ProjectileType("TitRail"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 97; } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("TitRail"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/TomeofFates.cs b/Items/Weapons/TomeofFates.cs index b2ee22110d..196ce622ac 100644 --- a/Items/Weapons/TomeofFates.cs +++ b/Items/Weapons/TomeofFates.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TomeofFates : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 9; item.UseSound = SoundID.Item103; item.autoReuse = true; - item.shoot = mod.ProjectileType("CosmicTentacle"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 17f; } @@ -75,11 +75,11 @@ namespace CalamityMod.Items.Weapons } if (projChoice == 0) { - Projectile.NewProjectile(vector2.X, vector2.Y, value2.X, value2.Y, mod.ProjectileType("BrimstoneTentacle"), (int)((double)num73 * 1.5f), num74, i, num92, num91); + Projectile.NewProjectile(vector2.X, vector2.Y, value2.X, value2.Y, ModContent.ProjectileType(), (int)((double)num73 * 1.5f), num74, i, num92, num91); } else { - Projectile.NewProjectile(vector2.X, vector2.Y, value2.X, value2.Y, mod.ProjectileType("CosmicTentacle"), num73, num74, i, num92, num91); + Projectile.NewProjectile(vector2.X, vector2.Y, value2.X, value2.Y, ModContent.ProjectileType(), num73, num74, i, num92, num91); } return false; } diff --git a/Items/Weapons/Tradewinds.cs b/Items/Weapons/Tradewinds.cs index 2b2af3643e..2e8e03a1fb 100644 --- a/Items/Weapons/Tradewinds.cs +++ b/Items/Weapons/Tradewinds.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Tradewinds : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.rare = 3; item.UseSound = SoundID.Item7; item.autoReuse = true; - item.shoot = mod.ProjectileType("TradewindsProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; } diff --git a/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs b/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs index 3d2b354d53..53fafeaac4 100644 --- a/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs +++ b/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TriactisTruePaladinianMageHammerofMightMelee : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 160; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("TriactisOPHammerMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 25f; item.Calamity().postMoonLordRarity = 16; } diff --git a/Items/Weapons/Trinity.cs b/Items/Weapons/Trinity.cs index ab77ac8bbf..e3f02f8cd3 100644 --- a/Items/Weapons/Trinity.cs +++ b/Items/Weapons/Trinity.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Trinity : ModItem { diff --git a/Items/Weapons/Triploon.cs b/Items/Weapons/Triploon.cs index 71577676c4..5d5530de63 100644 --- a/Items/Weapons/Triploon.cs +++ b/Items/Weapons/Triploon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Triploon : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item10; item.autoReuse = true; item.shootSpeed = 20f; - item.shoot = mod.ProjectileType("Triploon"); + item.shoot = ModContent.ProjectileType(); } public override Vector2? HoldoutOffset() diff --git a/Items/Weapons/TrueArkoftheAncients.cs b/Items/Weapons/TrueArkoftheAncients.cs index 707b3980b4..9999f79dce 100644 --- a/Items/Weapons/TrueArkoftheAncients.cs +++ b/Items/Weapons/TrueArkoftheAncients.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueArkoftheAncients : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 60; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("EonBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } @@ -38,10 +38,10 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(2)) { case 0: - type = mod.ProjectileType("EonBeam"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("EonBeamV2"); + type = ModContent.ProjectileType(); break; } Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer); @@ -95,7 +95,7 @@ namespace CalamityMod.Items.Weapons float speedY5 = num79 + (float)Main.rand.Next(-160, 161) * 0.02f; int proj = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, 92, damage / 3, num74, i, 0f, (float)Main.rand.Next(10)); Main.projectile[proj].Calamity().forceMelee = true; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("TerraBall"), damage / 3, num74, i, 0f, (float)Main.rand.Next(5)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage / 3, num74, i, 0f, (float)Main.rand.Next(5)); } return false; } @@ -138,7 +138,7 @@ namespace CalamityMod.Items.Weapons { if (Main.rand.NextBool(2)) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/TrueBiomeBlade.cs b/Items/Weapons/TrueBiomeBlade.cs index fabd352b47..404dcede5d 100644 --- a/Items/Weapons/TrueBiomeBlade.cs +++ b/Items/Weapons/TrueBiomeBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueBiomeBlade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 54; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("TrueBiomeOrb"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/TrueBloodyEdge.cs b/Items/Weapons/TrueBloodyEdge.cs index 5cd18488e8..d1da274e96 100644 --- a/Items/Weapons/TrueBloodyEdge.cs +++ b/Items/Weapons/TrueBloodyEdge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueBloodyEdge : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 64; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("BloodyBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 11f; } diff --git a/Items/Weapons/TrueCausticEdge.cs b/Items/Weapons/TrueCausticEdge.cs index 25f43ce7af..61f06f2654 100644 --- a/Items/Weapons/TrueCausticEdge.cs +++ b/Items/Weapons/TrueCausticEdge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueCausticEdge : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 74; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; - item.shoot = mod.ProjectileType("TrueCausticEdgeProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } diff --git a/Items/Weapons/TrueExcaliburShortsword.cs b/Items/Weapons/TrueExcaliburShortsword.cs index 8c81e136e6..1d87b357fc 100644 --- a/Items/Weapons/TrueExcaliburShortsword.cs +++ b/Items/Weapons/TrueExcaliburShortsword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueExcaliburShortsword : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item1; item.useTurn = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("ShortBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; diff --git a/Items/Weapons/TrueForbiddenOathblade.cs b/Items/Weapons/TrueForbiddenOathblade.cs index 2ab79d95b9..9999a27e71 100644 --- a/Items/Weapons/TrueForbiddenOathblade.cs +++ b/Items/Weapons/TrueForbiddenOathblade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueForbiddenOathblade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 78; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("Oathblade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } diff --git a/Items/Weapons/TrueNightsStabber.cs b/Items/Weapons/TrueNightsStabber.cs index 40e683e3e3..3e3750d527 100644 --- a/Items/Weapons/TrueNightsStabber.cs +++ b/Items/Weapons/TrueNightsStabber.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueNightsStabber : ModItem { @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons item.UseSound = SoundID.Item1; item.useTurn = true; item.autoReuse = true; - item.shoot = mod.ProjectileType("ShortNightBeam"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; diff --git a/Items/Weapons/TruePaladinsHammerMelee.cs b/Items/Weapons/TruePaladinsHammerMelee.cs index 4243afe853..e98b5e5c7b 100644 --- a/Items/Weapons/TruePaladinsHammerMelee.cs +++ b/Items/Weapons/TruePaladinsHammerMelee.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TruePaladinsHammerMelee : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 28; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("OPHammerMelee"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; } diff --git a/Items/Weapons/TrueTyrantYharimsUltisword.cs b/Items/Weapons/TrueTyrantYharimsUltisword.cs index dfc49a07dc..e6143e970c 100644 --- a/Items/Weapons/TrueTyrantYharimsUltisword.cs +++ b/Items/Weapons/TrueTyrantYharimsUltisword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TrueTyrantYharimsUltisword : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 102; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("BlazingPhantomBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; item.Calamity().postMoonLordRarity = 12; } @@ -40,13 +40,13 @@ namespace CalamityMod.Items.Weapons switch (Main.rand.Next(3)) { case 0: - type = mod.ProjectileType("BlazingPhantomBlade"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("HyperBlade"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("SunlightBlade"); + type = ModContent.ProjectileType(); break; default: break; @@ -76,12 +76,12 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - player.AddBuff(mod.BuffType("TyrantsFury"), 300); + player.AddBuff(ModContent.BuffType(), 300); target.AddBuff(BuffID.OnFire, 300); target.AddBuff(BuffID.Venom, 300); target.AddBuff(BuffID.CursedInferno, 300); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Items/Weapons/TyrantYharimsUltisword.cs b/Items/Weapons/TyrantYharimsUltisword.cs index 602b9c6a0f..13f9497e31 100644 --- a/Items/Weapons/TyrantYharimsUltisword.cs +++ b/Items/Weapons/TyrantYharimsUltisword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class TyrantYharimsUltisword : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.height = 88; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; - item.shoot = mod.ProjectileType("BlazingPhantomBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } @@ -66,7 +66,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - player.AddBuff(mod.BuffType("TyrantsFury"), 180); + player.AddBuff(ModContent.BuffType(), 180); target.AddBuff(BuffID.OnFire, 300); target.AddBuff(BuffID.Venom, 300); target.AddBuff(BuffID.CursedInferno, 300); diff --git a/Items/Weapons/UltraLiquidator.cs b/Items/Weapons/UltraLiquidator.cs index ec5648e3c7..637538d070 100644 --- a/Items/Weapons/UltraLiquidator.cs +++ b/Items/Weapons/UltraLiquidator.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class UltraLiquidator : ModItem { @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item9; item.autoReuse = true; - item.shoot = mod.ProjectileType("LiquidBlade"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/UrchinSpear.cs b/Items/Weapons/UrchinSpear.cs index f6c269549d..367f6189eb 100644 --- a/Items/Weapons/UrchinSpear.cs +++ b/Items/Weapons/UrchinSpear.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class UrchinSpear : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.height = 56; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; - item.shoot = mod.ProjectileType("UrchinSpearProjectile"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 4f; } diff --git a/Items/Weapons/VanquisherArrow.cs b/Items/Weapons/VanquisherArrow.cs index aa9fd6fd3a..6b3f0d94a8 100644 --- a/Items/Weapons/VanquisherArrow.cs +++ b/Items/Weapons/VanquisherArrow.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class VanquisherArrow : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.consumable = true; item.knockBack = 3.5f; item.value = 2250; - item.shoot = mod.ProjectileType("VanquisherArrow"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.ammo = 40; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/Weapons/Vehemenc.cs b/Items/Weapons/Vehemenc.cs index 414408506f..c01ba31e1d 100644 --- a/Items/Weapons/Vehemenc.cs +++ b/Items/Weapons/Vehemenc.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Vehemenc : ModItem { @@ -34,13 +34,13 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item73; item.autoReuse = true; - item.shoot = mod.ProjectileType("Vehemence"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Vehemence"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); player.AddBuff(BuffID.ManaSickness, 600, true); return false; } diff --git a/Items/Weapons/VenusianTrident.cs b/Items/Weapons/VenusianTrident.cs index 7d5cb373f8..ba5caa7862 100644 --- a/Items/Weapons/VenusianTrident.cs +++ b/Items/Weapons/VenusianTrident.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class VenusianTrident : ModItem { @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item45; item.autoReuse = true; - item.shoot = mod.ProjectileType("VenusianBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 19f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/Verdant.cs b/Items/Weapons/Verdant.cs index 4ddcb4bc06..2b859a3579 100644 --- a/Items/Weapons/Verdant.cs +++ b/Items/Weapons/Verdant.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Verdant : ModItem { @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.autoReuse = true; - item.shoot = mod.ProjectileType("VerdantProjectile"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 12; } diff --git a/Items/Weapons/VeriumBullet.cs b/Items/Weapons/VeriumBullet.cs index 1792000b89..3466a0a0a8 100644 --- a/Items/Weapons/VeriumBullet.cs +++ b/Items/Weapons/VeriumBullet.cs @@ -1,7 +1,7 @@ using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class VeriumBullet : ModItem { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 1.25f; item.value = 500; item.rare = 3; - item.shoot = mod.ProjectileType("VeriumBullet"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; item.ammo = 97; } diff --git a/Items/Weapons/Vesuvius.cs b/Items/Weapons/Vesuvius.cs index b5cab40ced..2e0b4a7823 100644 --- a/Items/Weapons/Vesuvius.cs +++ b/Items/Weapons/Vesuvius.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Vesuvius : ModItem { @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.shootSpeed = 20f; - item.shoot = mod.ProjectileType("AsteroidMolten"); + item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 17; } diff --git a/Items/Weapons/Viscera.cs b/Items/Weapons/Viscera.cs index d188f2ba8c..e31784411c 100644 --- a/Items/Weapons/Viscera.cs +++ b/Items/Weapons/Viscera.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Viscera : ModItem { @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("Viscera"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.Calamity().postMoonLordRarity = 13; } diff --git a/Items/Weapons/VividClarity.cs b/Items/Weapons/VividClarity.cs index 518f5e39f9..2d9ce82c55 100644 --- a/Items/Weapons/VividClarity.cs +++ b/Items/Weapons/VividClarity.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class VividClarity : ModItem { @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.UseSound = SoundID.Item60; item.autoReuse = true; - item.shoot = mod.ProjectileType("VividClarity"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 6f; item.Calamity().postMoonLordRarity = 15; } @@ -83,7 +83,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-40, 41) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-40, 41) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("VividClarity"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/Vortexpopper.cs b/Items/Weapons/Vortexpopper.cs index 9e9312cb2c..e094c8b02f 100644 --- a/Items/Weapons/Vortexpopper.cs +++ b/Items/Weapons/Vortexpopper.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Vortexpopper : ModItem { diff --git a/Items/Weapons/Waraxe.cs b/Items/Weapons/Waraxe.cs index 367bf89a69..f8fc9422f8 100644 --- a/Items/Weapons/Waraxe.cs +++ b/Items/Weapons/Waraxe.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Waraxe : ModItem { @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons { if (crit) { - target.AddBuff(mod.BuffType("WarCleave"), 900); + target.AddBuff(ModContent.BuffType(), 900); } } } diff --git a/Items/Weapons/Warblade.cs b/Items/Weapons/Warblade.cs index c30d4e4844..e919b38ae3 100644 --- a/Items/Weapons/Warblade.cs +++ b/Items/Weapons/Warblade.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Warblade : ModItem { @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons { if (crit) { - target.AddBuff(mod.BuffType("WarCleave"), 450); + target.AddBuff(ModContent.BuffType(), 450); } } } diff --git a/Items/Weapons/WindBlade.cs b/Items/Weapons/WindBlade.cs index f18b433c3b..7769fff717 100644 --- a/Items/Weapons/WindBlade.cs +++ b/Items/Weapons/WindBlade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class WindBlade : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 58; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; - item.shoot = mod.ProjectileType("Cyclone"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 3f; } diff --git a/Items/Weapons/Wingman.cs b/Items/Weapons/Wingman.cs index 0724796687..978b14c8e2 100644 --- a/Items/Weapons/Wingman.cs +++ b/Items/Weapons/Wingman.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Wingman : ModItem { diff --git a/Items/Weapons/WrathoftheAncients.cs b/Items/Weapons/WrathoftheAncients.cs index ccc4bf7b20..1fc79af275 100644 --- a/Items/Weapons/WrathoftheAncients.cs +++ b/Items/Weapons/WrathoftheAncients.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class WrathoftheAncients : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.autoReuse = true; - item.shoot = mod.ProjectileType("GranitePulse"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } @@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons num79 = 0f; vector2.X = (float)Main.mouseX + Main.screenPosition.X; vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, mod.ProjectileType("GranitePulse"), num73, num74, i, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, ModContent.ProjectileType(), num73, num74, i, 0f, 0f); return false; } } diff --git a/Items/Weapons/WulfrumBlade.cs b/Items/Weapons/WulfrumBlade.cs index be8e223dd9..95e3755faa 100644 --- a/Items/Weapons/WulfrumBlade.cs +++ b/Items/Weapons/WulfrumBlade.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class WulfrumBlade : ModItem { diff --git a/Items/Weapons/WulfrumBow.cs b/Items/Weapons/WulfrumBow.cs index dd666b985c..ba6de59f00 100644 --- a/Items/Weapons/WulfrumBow.cs +++ b/Items/Weapons/WulfrumBow.cs @@ -1,9 +1,9 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; //using TerrariaOverhaul; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class WulfrumBow : ModItem { diff --git a/Items/Weapons/WulfrumStaff.cs b/Items/Weapons/WulfrumStaff.cs index 78fd10bcd4..a2b00f8c50 100644 --- a/Items/Weapons/WulfrumStaff.cs +++ b/Items/Weapons/WulfrumStaff.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class WulfrumStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons item.rare = 1; item.UseSound = SoundID.Item43; item.autoReuse = true; - item.shoot = mod.ProjectileType("WulfrumBolt"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } diff --git a/Items/Weapons/XerocsGreatsword.cs b/Items/Weapons/XerocsGreatsword.cs index 4b9ae4880f..ef3ac505f2 100644 --- a/Items/Weapons/XerocsGreatsword.cs +++ b/Items/Weapons/XerocsGreatsword.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class XerocsGreatsword : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.height = 66; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; - item.shoot = mod.ProjectileType("PlasmaBall"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } diff --git a/Items/Weapons/YharimsCrystal.cs b/Items/Weapons/YharimsCrystal.cs index 84ae65c44d..cd9063d841 100644 --- a/Items/Weapons/YharimsCrystal.cs +++ b/Items/Weapons/YharimsCrystal.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class YharimsCrystal : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 0f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("YharimsCrystal"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().postMoonLordRarity = 17; } @@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons bool yharon = CalamityWorld.downedYharon; if (playerName || yharon) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("YharimsCrystal"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } else diff --git a/Items/Weapons/Yharon/AngryChickenStaff.cs b/Items/Weapons/Yharon/AngryChickenStaff.cs index c1bab577bb..b4894df87b 100644 --- a/Items/Weapons/Yharon/AngryChickenStaff.cs +++ b/Items/Weapons/Yharon/AngryChickenStaff.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Yharon +namespace CalamityMod.Items { public class AngryChickenStaff : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Yharon item.rare = 10; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/FlareSound"); item.autoReuse = true; - item.shoot = mod.ProjectileType("AngryChicken"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; item.Calamity().postMoonLordRarity = 14; diff --git a/Items/Weapons/Yharon/ChickenCannon.cs b/Items/Weapons/Yharon/ChickenCannon.cs index 0324a4f326..415bf29b71 100644 --- a/Items/Weapons/Yharon/ChickenCannon.cs +++ b/Items/Weapons/Yharon/ChickenCannon.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Yharon +namespace CalamityMod.Items { public class ChickenCannon : ModItem { @@ -28,14 +28,14 @@ namespace CalamityMod.Items.Weapons.Yharon item.UseSound = SoundID.Item11; item.autoReuse = true; item.shootSpeed = 24f; - item.shoot = mod.ProjectileType("Chicken"); + item.shoot = ModContent.ProjectileType(); item.useAmmo = 771; item.Calamity().postMoonLordRarity = 14; } 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) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Chicken"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); return false; } } diff --git a/Items/Weapons/Yharon/DragonRage.cs b/Items/Weapons/Yharon/DragonRage.cs index 0df49c35d6..a918819fd5 100644 --- a/Items/Weapons/Yharon/DragonRage.cs +++ b/Items/Weapons/Yharon/DragonRage.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Yharon +namespace CalamityMod.Items { public class DragonRage : ModItem { @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Yharon item.height = 82; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("DragonRage"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/Yharon/DragonsBreath.cs b/Items/Weapons/Yharon/DragonsBreath.cs index becb1fd2fc..e47c3d4e09 100644 --- a/Items/Weapons/Yharon/DragonsBreath.cs +++ b/Items/Weapons/Yharon/DragonsBreath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Yharon +namespace CalamityMod.Items { public class DragonsBreath : ModItem { @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Yharon { float SpeedX = speedX + (float)Main.rand.Next(-20, 21) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("DragonBurst"), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } return false; } diff --git a/Items/Weapons/Yharon/PhoenixFlameBarrage.cs b/Items/Weapons/Yharon/PhoenixFlameBarrage.cs index f9c482e72b..9fabb8b24c 100644 --- a/Items/Weapons/Yharon/PhoenixFlameBarrage.cs +++ b/Items/Weapons/Yharon/PhoenixFlameBarrage.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Yharon +namespace CalamityMod.Items { public class PhoenixFlameBarrage : ModItem { @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Yharon item.rare = 10; item.UseSound = SoundID.Item20; item.autoReuse = true; - item.shoot = mod.ProjectileType("HolyFlame"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 30f; item.Calamity().postMoonLordRarity = 14; } diff --git a/Items/Weapons/Yharon/TheBurningSky.cs b/Items/Weapons/Yharon/TheBurningSky.cs index f58ab7a3f5..d0c6ec7a6d 100644 --- a/Items/Weapons/Yharon/TheBurningSky.cs +++ b/Items/Weapons/Yharon/TheBurningSky.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons.Yharon +namespace CalamityMod.Items { public class TheBurningSky : ModItem { @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Yharon item.height = 64; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.shoot = mod.ProjectileType("BurningMeteor"); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 35f; item.Calamity().postMoonLordRarity = 14; } @@ -80,7 +80,7 @@ namespace CalamityMod.Items.Weapons.Yharon num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-1000, 1001) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-1000, 1001) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("BurningMeteor"), damage, knockBack, i, 0f, (float)Main.rand.Next(10)); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockBack, i, 0f, (float)Main.rand.Next(10)); } return false; } diff --git a/Items/Weapons/YinYo.cs b/Items/Weapons/YinYo.cs index d449bbd098..16389710cd 100644 --- a/Items/Weapons/YinYo.cs +++ b/Items/Weapons/YinYo.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class YinYo : ModItem { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.autoReuse = true; - item.shoot = mod.ProjectileType("YinYo"); + item.shoot = ModContent.ProjectileType(); } public override void AddRecipes() diff --git a/Items/Weapons/Zapper.cs b/Items/Weapons/Zapper.cs index 3941ecc196..8763babb82 100644 --- a/Items/Weapons/Zapper.cs +++ b/Items/Weapons/Zapper.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Weapons +namespace CalamityMod.Items { public class Zapper : ModItem { diff --git a/Items/Yharon/ChickenEgg.cs b/Items/Yharon/ChickenEgg.cs index 329f56a298..13e10a3182 100644 --- a/Items/Yharon/ChickenEgg.cs +++ b/Items/Yharon/ChickenEgg.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Yharon +namespace CalamityMod.Items { public class ChickenEgg : ModItem { @@ -28,12 +28,12 @@ namespace CalamityMod.Items.Yharon public override bool CanUseItem(Player player) { - return player.ZoneJungle && !NPC.AnyNPCs(mod.NPCType("Yharon")) && CalamityWorld.downedBossAny; + return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.downedBossAny; } public override bool UseItem(Player player) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Yharon")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Main.PlaySound(SoundID.Roar, player.position, 0); return true; } diff --git a/Items/Yharon/YharimsGift.cs b/Items/Yharon/YharimsGift.cs index b86b976741..e27220bc37 100644 --- a/Items/Yharon/YharimsGift.cs +++ b/Items/Yharon/YharimsGift.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Yharon +namespace CalamityMod.Items { public class YharimsGift : ModItem { @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Yharon { if (player.whoAmI == Main.myPlayer) { - int projectile1 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("DragonDust"), 350, 5f, player.whoAmI, 0f, 0f); + int projectile1 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), 350, 5f, player.whoAmI, 0f, 0f); Main.projectile[projectile1].timeLeft = 60; } dragonTimer = 60; @@ -68,7 +68,7 @@ namespace CalamityMod.Items.Yharon num18 = (float)num17 / num18; num15 *= num18; num16 *= num18; - int num19 = Projectile.NewProjectile(x, y, num15, num16, mod.ProjectileType("SkyFlareFriendly"), 750, 9f, player.whoAmI, 0f, 0f); + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), 750, 9f, player.whoAmI, 0f, 0f); Main.projectile[num19].ai[1] = player.position.Y; Main.projectile[num19].hostile = false; Main.projectile[num19].friendly = true; diff --git a/Items/Yharon/YharonBag.cs b/Items/Yharon/YharonBag.cs index 990b01f938..29a9756c93 100644 --- a/Items/Yharon/YharonBag.cs +++ b/Items/Yharon/YharonBag.cs @@ -1,13 +1,12 @@ -using CalamityMod.Utilities; using CalamityMod.World; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Items.Yharon +namespace CalamityMod.Items { public class YharonBag : ModItem { - public override int BossBagNPC => mod.NPCType("Yharon"); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { @@ -37,21 +36,21 @@ namespace CalamityMod.Items.Yharon // Materials // Weapons - DropHelper.DropItemChance(player, mod.ItemType("DragonRage"), 3); - DropHelper.DropItemChance(player, mod.ItemType("TheBurningSky"), 3); - DropHelper.DropItemChance(player, mod.ItemType("DragonsBreath"), 3); - DropHelper.DropItemChance(player, mod.ItemType("ChickenCannon"), 3); - DropHelper.DropItemChance(player, mod.ItemType("PhoenixFlameBarrage"), 3); - DropHelper.DropItemChance(player, mod.ItemType("AngryChickenStaff"), 3); // Yharon Kindle Staff - DropHelper.DropItemChance(player, mod.ItemType("ProfanedTrident"), 3); // Infernal Spear + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Yharon Kindle Staff + DropHelper.DropItemChance(player, ModContent.ItemType(), 3); // Infernal Spear // Equipment - DropHelper.DropItem(player, mod.ItemType("YharimsGift")); + DropHelper.DropItem(player, ModContent.ItemType()); // Vanity - DropHelper.DropItemChance(player, mod.ItemType("YharonMask"), 7); - DropHelper.DropItemChance(player, mod.ItemType("ForgottenDragonEgg"), 10); - DropHelper.DropItemCondition(player, mod.ItemType("FoxDrive"), CalamityWorld.revenge); + DropHelper.DropItemChance(player, ModContent.ItemType(), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); } } } diff --git a/Localization/CalamityLocalization.cs b/Localization/CalamityLocalization.cs index ec8bac23ca..15847131c7 100644 --- a/Localization/CalamityLocalization.cs +++ b/Localization/CalamityLocalization.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Localization { diff --git a/MiscModSupport/ModCalls.cs b/MiscModSupport/ModCalls.cs index 4bfec9e0f4..61fa623827 100644 --- a/MiscModSupport/ModCalls.cs +++ b/MiscModSupport/ModCalls.cs @@ -2,7 +2,7 @@ using CalamityMod.CalPlayer; using CalamityMod.World; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.MiscModSupport { diff --git a/MiscModSupport/WeakReferenceSupport.cs b/MiscModSupport/WeakReferenceSupport.cs index 09e57e013d..044a55c094 100644 --- a/MiscModSupport/WeakReferenceSupport.cs +++ b/MiscModSupport/WeakReferenceSupport.cs @@ -1,7 +1,7 @@ using CalamityMod.World; using System; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.MiscModSupport { @@ -21,30 +21,30 @@ namespace CalamityMod.MiscModSupport if (bossChecklist != null) { // 14 is moonlord, 12 is duke fishron - bossChecklist.Call("AddBossWithInfo", "Desert Scourge", 1.5f, (Func)(() => CalamityWorld.downedDesertScourge), "Use a [i:" + mod.ItemType("DriedSeafood") + "] in the Desert Biome"); //1 - bossChecklist.Call("AddBossWithInfo", "Crabulon", 2.5f, (Func)(() => CalamityWorld.downedCrabulon), "Use a [i:" + mod.ItemType("DecapoditaSprout") + "] in the Mushroom Biome"); //1.5 + bossChecklist.Call("AddBossWithInfo", "Desert Scourge", 1.5f, (Func)(() => CalamityWorld.downedDesertScourge), "Use a [i:" + ModContent.ItemType() + "] in the Desert Biome"); //1 + bossChecklist.Call("AddBossWithInfo", "Crabulon", 2.5f, (Func)(() => CalamityWorld.downedCrabulon), "Use a [i:" + ModContent.ItemType() + "] in the Mushroom Biome"); //1.5 bossChecklist.Call("AddBossWithInfo", "Hive Mind / Perforator", 3.5f, (Func)(() => CalamityWorld.downedPerforator || CalamityWorld.downedHiveMind), "By killing a Cyst in the World's Evil Biome"); //2 - bossChecklist.Call("AddBossWithInfo", "Slime God", 5.5f, (Func)(() => CalamityWorld.downedSlimeGod), "Use an [i:" + mod.ItemType("OverloadedSludge") + "]"); //4 - bossChecklist.Call("AddBossWithInfo", "Cryogen", 6.5f, (Func)(() => CalamityWorld.downedCryogen), "Use a [i:" + mod.ItemType("CryoKey") + "] in the Snow Biome"); //5 - bossChecklist.Call("AddBossWithInfo", "Brimstone Elemental", 7.5f, (Func)(() => CalamityWorld.downedBrimstoneElemental), "Use a [i:" + mod.ItemType("CharredIdol") + "] in the Hell Crag"); //6 - bossChecklist.Call("AddBossWithInfo", "Aquatic Scourge", 8.5f, (Func)(() => CalamityWorld.downedAquaticScourge), "Use a [i:" + mod.ItemType("Seafood") + "] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea"); //6 - bossChecklist.Call("AddBossWithInfo", "Calamitas", 9.7f, (Func)(() => CalamityWorld.downedCalamitas), "Use an [i:" + mod.ItemType("BlightedEyeball") + "] at Night"); //7 + bossChecklist.Call("AddBossWithInfo", "Slime God", 5.5f, (Func)(() => CalamityWorld.downedSlimeGod), "Use an [i:" + ModContent.ItemType() + "]"); //4 + bossChecklist.Call("AddBossWithInfo", "Cryogen", 6.5f, (Func)(() => CalamityWorld.downedCryogen), "Use a [i:" + ModContent.ItemType() + "] in the Snow Biome"); //5 + bossChecklist.Call("AddBossWithInfo", "Brimstone Elemental", 7.5f, (Func)(() => CalamityWorld.downedBrimstoneElemental), "Use a [i:" + ModContent.ItemType() + "] in the Hell Crag"); //6 + bossChecklist.Call("AddBossWithInfo", "Aquatic Scourge", 8.5f, (Func)(() => CalamityWorld.downedAquaticScourge), "Use a [i:" + ModContent.ItemType() + "] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea"); //6 + bossChecklist.Call("AddBossWithInfo", "Calamitas", 9.7f, (Func)(() => CalamityWorld.downedCalamitas), "Use an [i:" + ModContent.ItemType() + "] at Night"); //7 bossChecklist.Call("AddBossWithInfo", "Leviathan", 10.5f, (Func)(() => CalamityWorld.downedLeviathan), "By killing an unknown entity in the Ocean Biome"); //8 - bossChecklist.Call("AddBossWithInfo", "Astrum Aureus", 10.6f, (Func)(() => CalamityWorld.downedAstrageldon), "Use an [i:" + mod.ItemType("AstralChunk") + "] at Night"); //8.5 - bossChecklist.Call("AddBossWithInfo", "Plaguebringer Goliath", 11.5f, (Func)(() => CalamityWorld.downedPlaguebringer), "Use an [i:" + mod.ItemType("Abomination") + "] in the Jungle Biome"); //9 - bossChecklist.Call("AddBossWithInfo", "Ravager", 12.5f, (Func)(() => CalamityWorld.downedScavenger), "Use an [i:" + mod.ItemType("AncientMedallion") + "]"); //9.5 - bossChecklist.Call("AddBossWithInfo", "Astrum Deus", 13.5f, (Func)(() => CalamityWorld.downedStarGod), "Use a [i:" + mod.ItemType("Starcore") + "] at Night or defeat 3 empowered astral titans"); //9.6 + bossChecklist.Call("AddBossWithInfo", "Astrum Aureus", 10.6f, (Func)(() => CalamityWorld.downedAstrageldon), "Use an [i:" + ModContent.ItemType() + "] at Night"); //8.5 + bossChecklist.Call("AddBossWithInfo", "Plaguebringer Goliath", 11.5f, (Func)(() => CalamityWorld.downedPlaguebringer), "Use an [i:" + ModContent.ItemType() + "] in the Jungle Biome"); //9 + bossChecklist.Call("AddBossWithInfo", "Ravager", 12.5f, (Func)(() => CalamityWorld.downedScavenger), "Use an [i:" + ModContent.ItemType() + "]"); //9.5 + bossChecklist.Call("AddBossWithInfo", "Astrum Deus", 13.5f, (Func)(() => CalamityWorld.downedStarGod), "Use a [i:" + ModContent.ItemType() + "] at Night or defeat 3 empowered astral titans"); //9.6 //bossChecklist.Call("AddBossWithInfo", "The Old Duke", 13.6f, (Func)(() => CalamityWorld.downedOldDuke), "Fishing with some type of bait in the Sulphuric Sea"); //9.7 - bossChecklist.Call("AddBossWithInfo", "Profaned Guardians", 14.5f, (Func)(() => CalamityWorld.downedGuardians), "Use a [i:" + mod.ItemType("ProfanedShard") + "] in the Hallow or Underworld Biomes"); //10 - bossChecklist.Call("AddBossWithInfo", "Bumblebirb", 14.6f, (Func)(() => CalamityWorld.downedBumble), "Use [i:" + mod.ItemType("BirbPheromones") + "] in the Jungle Biome"); //16 - bossChecklist.Call("AddBossWithInfo", "Providence", 15f, (Func)(() => CalamityWorld.downedProvidence), "Use a [i:" + mod.ItemType("ProfanedCore") + "] in the Hallow or Underworld Biomes"); //11 - bossChecklist.Call("AddBossWithInfo", "Ceaseless Void", 15.1f, (Func)(() => CalamityWorld.downedSentinel1), "Use a [i:" + mod.ItemType("RuneofCos") + "] in the Dungeon"); //12 - bossChecklist.Call("AddBossWithInfo", "Storm Weaver", 15.2f, (Func)(() => CalamityWorld.downedSentinel2), "Use a [i:" + mod.ItemType("RuneofCos") + "] in Space"); //13 - bossChecklist.Call("AddBossWithInfo", "Signus", 15.3f, (Func)(() => CalamityWorld.downedSentinel3), "Use a [i:" + mod.ItemType("RuneofCos") + "] in the Underworld"); //14 - bossChecklist.Call("AddBossWithInfo", "Polterghast", 15.5f, (Func)(() => CalamityWorld.downedPolterghast), "Use a [i:" + mod.ItemType("NecroplasmicBeacon") + "] in the Dungeon or kill 30 phantom spirits"); //11 - bossChecklist.Call("AddBossWithInfo", "Devourer of Gods", 16f, (Func)(() => CalamityWorld.downedDoG), "Use a [i:" + mod.ItemType("CosmicWorm") + "]"); //15 - bossChecklist.Call("AddBossWithInfo", "Yharon", 17f, (Func)(() => CalamityWorld.downedYharon), "Use a [i:" + mod.ItemType("ChickenEgg") + "] in the Jungle Biome"); //17 - bossChecklist.Call("AddBossWithInfo", "Supreme Calamitas", 18f, (Func)(() => CalamityWorld.downedSCal), "Use an [i:" + mod.ItemType("EyeofExtinction") + "]"); //18 + bossChecklist.Call("AddBossWithInfo", "Profaned Guardians", 14.5f, (Func)(() => CalamityWorld.downedGuardians), "Use a [i:" + ModContent.ItemType() + "] in the Hallow or Underworld Biomes"); //10 + bossChecklist.Call("AddBossWithInfo", "Bumblebirb", 14.6f, (Func)(() => CalamityWorld.downedBumble), "Use [i:" + ModContent.ItemType() + "] in the Jungle Biome"); //16 + bossChecklist.Call("AddBossWithInfo", "Providence", 15f, (Func)(() => CalamityWorld.downedProvidence), "Use a [i:" + ModContent.ItemType() + "] in the Hallow or Underworld Biomes"); //11 + bossChecklist.Call("AddBossWithInfo", "Ceaseless Void", 15.1f, (Func)(() => CalamityWorld.downedSentinel1), "Use a [i:" + ModContent.ItemType() + "] in the Dungeon"); //12 + bossChecklist.Call("AddBossWithInfo", "Storm Weaver", 15.2f, (Func)(() => CalamityWorld.downedSentinel2), "Use a [i:" + ModContent.ItemType() + "] in Space"); //13 + bossChecklist.Call("AddBossWithInfo", "Signus", 15.3f, (Func)(() => CalamityWorld.downedSentinel3), "Use a [i:" + ModContent.ItemType() + "] in the Underworld"); //14 + bossChecklist.Call("AddBossWithInfo", "Polterghast", 15.5f, (Func)(() => CalamityWorld.downedPolterghast), "Use a [i:" + ModContent.ItemType() + "] in the Dungeon or kill 30 phantom spirits"); //11 + bossChecklist.Call("AddBossWithInfo", "Devourer of Gods", 16f, (Func)(() => CalamityWorld.downedDoG), "Use a [i:" + ModContent.ItemType() + "]"); //15 + bossChecklist.Call("AddBossWithInfo", "Yharon", 17f, (Func)(() => CalamityWorld.downedYharon), "Use a [i:" + ModContent.ItemType() + "] in the Jungle Biome"); //17 + bossChecklist.Call("AddBossWithInfo", "Supreme Calamitas", 18f, (Func)(() => CalamityWorld.downedSCal), "Use an [i:" + ModContent.ItemType() + "]"); //18 } } @@ -54,10 +54,10 @@ namespace CalamityMod.MiscModSupport Mod censusMod = ModLoader.GetMod("Census"); if (censusMod != null) { - censusMod.Call("TownNPCCondition", mod.NPCType("SEAHOE"), "Defeat a Giant Clam"); - censusMod.Call("TownNPCCondition", mod.NPCType("Bandit"), "Have a [i:" + ItemID.PlatinumCoin + "] in your inventory after defeating Skeletron"); - censusMod.Call("TownNPCCondition", mod.NPCType("FAP"), "Have [i:" + mod.ItemType("FabsolsVodka") + "] in your inventory in Hardmode"); - censusMod.Call("TownNPCCondition", mod.NPCType("DILF"), "Defeat Cryogen"); + censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Defeat a Giant Clam"); + censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Have a [i:" + ItemID.PlatinumCoin + "] in your inventory after defeating Skeletron"); + censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Have [i:" + ModContent.ItemType() + "] in your inventory in Hardmode"); + censusMod.Call("TownNPCCondition", ModContent.NPCType(), "Defeat Cryogen"); } } } diff --git a/NPCs/AbyssNPCs/AquaticParasite.cs b/NPCs/AbyssNPCs/AquaticParasite.cs index 51c4756ad3..46c7db388d 100644 --- a/NPCs/AbyssNPCs/AquaticParasite.cs +++ b/NPCs/AbyssNPCs/AquaticParasite.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticParasite : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("AquaticParasiteBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() diff --git a/NPCs/AbyssNPCs/AquaticScourgeBody.cs b/NPCs/AbyssNPCs/AquaticScourgeBody.cs index 422d50f4dc..20ab84088d 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBody.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBody.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticScourgeBody : ModNPC { @@ -114,7 +114,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("AquaticScourgeHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -133,7 +133,7 @@ namespace CalamityMod.NPCs.AbyssNPCs float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); - int projectileType = mod.ProjectileType("SandTooth"); + int projectileType = ModContent.ProjectileType(); int damage = Main.expertMode ? 25 : 30; float num941 = CalamityWorld.bossRushActive ? 7.5f : 5f; num944 = num941 / num944; diff --git a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs index 3222e0bd66..28a705d31c 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticScourgeBodyAlt : ModNPC { @@ -114,7 +114,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("AquaticScourgeHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -131,7 +131,7 @@ namespace CalamityMod.NPCs.AbyssNPCs float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); - int projectileType = mod.ProjectileType("SandBlast"); + int projectileType = ModContent.ProjectileType(); int damage = Main.expertMode ? 23 : 28; float num941 = CalamityWorld.bossRushActive ? 12f : 8f; num944 = num941 / num944; diff --git a/NPCs/AbyssNPCs/AquaticScourgeHead.cs b/NPCs/AbyssNPCs/AquaticScourgeHead.cs index f288b2107f..544ef4a0e0 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeHead.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeHead.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { [AutoloadBossHead] public class AquaticScourgeHead : ModNPC @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; - bossBag = mod.ItemType("AquaticScourgeBag"); + bossBag = ModContent.ItemType(); if (Main.expertMode) { npc.scale = 1.15f; @@ -113,16 +113,16 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (num36 % 2 == 0) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AquaticScourgeBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AquaticScourgeBodyAlt"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AquaticScourgeTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -149,17 +149,17 @@ namespace CalamityMod.NPCs.AbyssNPCs int random = Main.rand.Next(3); Main.PlaySound(3, (int)npc.Center.X, (int)npc.Center.Y, 8); Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); - if (random == 0 && NPC.CountNPCS(mod.NPCType("AquaticSeekerHead")) < 1) + if (random == 0 && NPC.CountNPCS(ModContent.NPCType()) < 1) { - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("AquaticSeekerHead")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } - else if (random == 1 && NPC.CountNPCS(mod.NPCType("AquaticUrchin")) < 3) + else if (random == 1 && NPC.CountNPCS(ModContent.NPCType()) < 3) { - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("AquaticUrchin")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } - else if (NPC.CountNPCS(mod.NPCType("AquaticParasite")) < 8) + else if (NPC.CountNPCS(ModContent.NPCType()) < 8) { - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("AquaticParasite")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } } } @@ -226,7 +226,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.alpha = 0; } - if (!NPC.AnyNPCs(mod.NPCType("AquaticScourgeTail"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -470,8 +470,8 @@ namespace CalamityMod.NPCs.AbyssNPCs for (iBoom = 0; iBoom < 15; iBoom++) { - int projectileType = Main.rand.NextBool(2) ? mod.ProjectileType("SandTooth") : mod.ProjectileType("SandBlast"); - if (projectileType == mod.ProjectileType("SandTooth")) + int projectileType = Main.rand.NextBool(2) ? ModContent.ProjectileType() : ModContent.ProjectileType(); + if (projectileType == ModContent.ProjectileType()) { damageBoom = Main.expertMode ? 25 : 30; } @@ -487,7 +487,7 @@ namespace CalamityMod.NPCs.AbyssNPCs Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); vector15.Normalize(); vector15 *= (float)Main.rand.Next(50, 401) * (CalamityWorld.bossRushActive ? 0.02f : 0.01f); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector15.X, vector15.Y, mod.ProjectileType("SandPoisonCloud"), damageBoom, 0f, Main.myPlayer, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), damageBoom, 0f, Main.myPlayer, 0f, (float)Main.rand.Next(-45, 1)); num3 = num321; } } @@ -536,7 +536,7 @@ namespace CalamityMod.NPCs.AbyssNPCs } if (spawnInfo.player.Calamity().ZoneSulphur && spawnInfo.water) { - if (!NPC.AnyNPCs(mod.NPCType("AquaticScourgeHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) return 0.01f; } return 0f; @@ -544,16 +544,16 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void BossLoot(ref string name, ref int potionType) { - potionType = mod.ItemType("SulphurousSand"); + potionType = ModContent.ItemType(); } public override bool SpecialNPCLoot() { int closestSegmentID = DropHelper.FindClosestWormSegment(npc, - mod.NPCType("AquaticScourgeHead"), - mod.NPCType("AquaticScourgeBody"), - mod.NPCType("AquaticScourgeBodyAlt"), - mod.NPCType("AquaticScourgeTail")); + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType()); npc.position = Main.npc[closestSegmentID].position; return false; } @@ -564,8 +564,8 @@ namespace CalamityMod.NPCs.AbyssNPCs DropHelper.DropItem(npc, ItemID.GreaterHealingPotion, 8, 14); // there is no Aquatic Scourge trophy yet - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeAquaticScourge"), true, !CalamityWorld.downedAquaticScourge); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeSulphurSea"), true, !CalamityWorld.downedAquaticScourge); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedAquaticScourge); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedAquaticScourge); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedAquaticScourge, 4, 2, 1); // All other drops are contained in the bag, so they only drop directly on Normal @@ -573,19 +573,19 @@ namespace CalamityMod.NPCs.AbyssNPCs { // Materials DropHelper.DropItemCondition(npc, ItemID.SoulofSight, Main.hardMode, 20, 40); - DropHelper.DropItem(npc, mod.ItemType("VictoryShard"), 11, 20); + DropHelper.DropItem(npc, ModContent.ItemType(), 11, 20); DropHelper.DropItem(npc, ItemID.Coral, 5, 9); DropHelper.DropItem(npc, ItemID.Seashell, 5, 9); DropHelper.DropItem(npc, ItemID.Starfish, 5, 9); // Weapons (Hardmode only) - DropHelper.DropItemCondition(npc, mod.ItemType("SubmarineShocker"), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("Barinautical"), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("Downpour"), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("DeepseaStaff"), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("AeroStone"), 9); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 9); // Vanity // there is no Aquatic Scourge mask yet @@ -664,7 +664,7 @@ namespace CalamityMod.NPCs.AbyssNPCs player.AddBuff(BuffID.Venom, 360, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); + player.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/NPCs/AbyssNPCs/AquaticScourgeTail.cs b/NPCs/AbyssNPCs/AquaticScourgeTail.cs index 54931bbfd5..784187539b 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeTail.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeTail.cs @@ -1,11 +1,10 @@ -using CalamityMod.World; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticScourgeTail : ModNPC { @@ -113,7 +112,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("AquaticScourgeHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/AbyssNPCs/AquaticSeekerBody.cs b/NPCs/AbyssNPCs/AquaticSeekerBody.cs index 0c19df8037..c8912c6b20 100644 --- a/NPCs/AbyssNPCs/AquaticSeekerBody.cs +++ b/NPCs/AbyssNPCs/AquaticSeekerBody.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticSeekerBody : ModNPC { @@ -39,8 +39,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; npc.dontCountMe = true; - banner = mod.NPCType("AquaticSeekerHead"); - bannerItem = mod.ItemType("AquaticSeekerBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("AquaticSeekerHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/AbyssNPCs/AquaticSeekerHead.cs b/NPCs/AbyssNPCs/AquaticSeekerHead.cs index 9f3acd3ca0..19bfc8b642 100644 --- a/NPCs/AbyssNPCs/AquaticSeekerHead.cs +++ b/NPCs/AbyssNPCs/AquaticSeekerHead.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticSeekerHead : ModNPC { @@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; banner = npc.type; - bannerItem = mod.ItemType("AquaticSeekerBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -70,11 +70,11 @@ namespace CalamityMod.NPCs.AbyssNPCs int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AquaticSeekerBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AquaticSeekerTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.alpha = 0; } - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(mod.NPCType("AquaticSeekerTail"))) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -317,7 +317,7 @@ namespace CalamityMod.NPCs.AbyssNPCs } if (spawnInfo.player.Calamity().ZoneSulphur && spawnInfo.water) { - if (!NPC.AnyNPCs(mod.NPCType("AquaticSeekerHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) return 0.01f; } return 0f; @@ -366,7 +366,7 @@ namespace CalamityMod.NPCs.AbyssNPCs player.AddBuff(BuffID.Venom, 120, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 60); + player.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/NPCs/AbyssNPCs/AquaticSeekerTail.cs b/NPCs/AbyssNPCs/AquaticSeekerTail.cs index ea67efbe22..c197998a35 100644 --- a/NPCs/AbyssNPCs/AquaticSeekerTail.cs +++ b/NPCs/AbyssNPCs/AquaticSeekerTail.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticSeekerTail : ModNPC { @@ -39,8 +39,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; npc.dontCountMe = true; - banner = mod.NPCType("AquaticSeekerHead"); - bannerItem = mod.ItemType("AquaticSeekerBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("AquaticSeekerHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/AbyssNPCs/AquaticUrchin.cs b/NPCs/AbyssNPCs/AquaticUrchin.cs index 74dc6f06ba..a2d985d9aa 100644 --- a/NPCs/AbyssNPCs/AquaticUrchin.cs +++ b/NPCs/AbyssNPCs/AquaticUrchin.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class AquaticUrchin : ModNPC { @@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath15; npc.behindTiles = true; banner = npc.type; - bannerItem = mod.ItemType("AquaticUrchinBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -327,7 +327,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { return 0f; } - if (spawnInfo.player.Calamity().ZoneSulphur && spawnInfo.water && NPC.CountNPCS(mod.NPCType("AquaticUrchin")) < 2) + if (spawnInfo.player.Calamity().ZoneSulphur && spawnInfo.water && NPC.CountNPCS(ModContent.NPCType()) < 2) { return 0.2f; } @@ -336,7 +336,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("UrchinStinger"), Main.rand.Next(15, 26)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(15, 26)); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/AbyssNPCs/Bloatfish.cs b/NPCs/AbyssNPCs/Bloatfish.cs index 42fe58e944..faf0a0ae85 100644 --- a/NPCs/AbyssNPCs/Bloatfish.cs +++ b/NPCs/AbyssNPCs/Bloatfish.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Bloatfish : ModNPC { @@ -26,12 +26,12 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.aiStyle = -1; aiType = -1; npc.value = Item.buyPrice(0, 0, 30, 0); - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.9f; banner = npc.type; - bannerItem = mod.ItemType("BloatfishBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -157,7 +157,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 900, true); + player.AddBuff(ModContent.BuffType(), 900, true); } public override void FindFrame(int frameHeight) @@ -175,7 +175,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && NPC.CountNPCS(mod.NPCType("Bloatfish")) < 3) + if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && NPC.CountNPCS(ModContent.NPCType()) < 3) { return SpawnCondition.CaveJellyfish.Chance * 0.3f; } @@ -184,20 +184,20 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Voidstone"), Main.rand.Next(10, 21)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 21)); if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(5, 8)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(5, 8)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } } } diff --git a/NPCs/AbyssNPCs/BobbitWormHead.cs b/NPCs/AbyssNPCs/BobbitWormHead.cs index e7782b28ed..60eec3bdc8 100644 --- a/NPCs/AbyssNPCs/BobbitWormHead.cs +++ b/NPCs/AbyssNPCs/BobbitWormHead.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class BobbitWormHead : ModNPC { @@ -30,11 +30,11 @@ namespace CalamityMod.NPCs.AbyssNPCs aiType = -1; npc.noGravity = true; npc.value = Item.buyPrice(0, 0, 50, 0); - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("BobbitWormBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -226,11 +226,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 300, true); - player.AddBuff(mod.BuffType("CrushDepth"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 300); - player.AddBuff(mod.BuffType("Horror"), 120, true); + player.AddBuff(ModContent.BuffType(), 300); + player.AddBuff(ModContent.BuffType(), 120, true); } } @@ -238,17 +238,17 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(5, 8)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(5, 8)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } } } diff --git a/NPCs/AbyssNPCs/BobbitWormSegment.cs b/NPCs/AbyssNPCs/BobbitWormSegment.cs index 44889a13dc..6f552fe31f 100644 --- a/NPCs/AbyssNPCs/BobbitWormSegment.cs +++ b/NPCs/AbyssNPCs/BobbitWormSegment.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class BobbitWormSegment : ModNPC { @@ -36,10 +36,10 @@ namespace CalamityMod.NPCs.AbyssNPCs if (npc.localAI[0] == 0f) { npc.localAI[0] = 1f; - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("BobbitWormHead"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } - if (!NPC.AnyNPCs(mod.NPCType("BobbitWormHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; npc.netUpdate = true; @@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water) { - if (!NPC.AnyNPCs(mod.NPCType("BobbitWormSegment"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) return SpawnCondition.CaveJellyfish.Chance * 0.3f; } return 0f; diff --git a/NPCs/AbyssNPCs/BoxJellyfish.cs b/NPCs/AbyssNPCs/BoxJellyfish.cs index c877b5ccb3..d12e1f5f85 100644 --- a/NPCs/AbyssNPCs/BoxJellyfish.cs +++ b/NPCs/AbyssNPCs/BoxJellyfish.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class BoxJellyfish : ModNPC { @@ -25,12 +25,12 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.alpha = 20; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 0, 80); npc.HitSound = SoundID.NPCHit25; npc.DeathSound = SoundID.NPCDeath28; banner = npc.type; - bannerItem = mod.ItemType("BoxJellyfishBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() diff --git a/NPCs/AbyssNPCs/Catfish.cs b/NPCs/AbyssNPCs/Catfish.cs index d177ad4b88..9a64797caf 100644 --- a/NPCs/AbyssNPCs/Catfish.cs +++ b/NPCs/AbyssNPCs/Catfish.cs @@ -2,9 +2,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Catfish : ModNPC { @@ -35,7 +35,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath40; npc.knockBackResist = 0.8f; banner = npc.type; - bannerItem = mod.ItemType("CatfishBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/AbyssNPCs/ChaoticPuffer.cs b/NPCs/AbyssNPCs/ChaoticPuffer.cs index 4598f3d00e..48e1c47443 100644 --- a/NPCs/AbyssNPCs/ChaoticPuffer.cs +++ b/NPCs/AbyssNPCs/ChaoticPuffer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class ChaoticPuffer : ModNPC { @@ -32,12 +32,12 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 30, 0); npc.HitSound = SoundID.NPCHit23; npc.DeathSound = SoundID.NPCDeath28; banner = npc.type; - bannerItem = mod.ItemType("ChaoticPufferBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.AbyssNPCs if (Main.netMode != NetmodeID.MultiplayerClient && puffedUp) { int damageBoom = 100; - int projectileType = mod.ProjectileType("PufferExplosion"); + int projectileType = ModContent.ProjectileType(); int boom = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0, 0, projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f); } npc.netUpdate = true; @@ -212,17 +212,17 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedGolemBoss) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ChaoticOre"), Main.rand.Next(10, 27)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 27)); } } public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + player.AddBuff(ModContent.BuffType(), 300); if (puffedUp) { diff --git a/NPCs/AbyssNPCs/ColossalSquid.cs b/NPCs/AbyssNPCs/ColossalSquid.cs index 1f7c57d1a9..81a7bd183d 100644 --- a/NPCs/AbyssNPCs/ColossalSquid.cs +++ b/NPCs/AbyssNPCs/ColossalSquid.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class ColossalSquid : ModNPC { @@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath23; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("ColossalSquidBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -389,7 +389,7 @@ namespace CalamityMod.NPCs.AbyssNPCs damage = 55; } Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 111); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y + 60, 0f, 2f, mod.ProjectileType("InkBomb"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y + 60, 0f, 2f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } npc.rotation = npc.velocity.X * 0.05f; npc.velocity *= 0.975f; @@ -533,7 +533,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("ColossalSquid"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.6f; } @@ -542,12 +542,12 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 600, true); + player.AddBuff(ModContent.BuffType(), 600, true); player.AddBuff(BuffID.Darkness, 600, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 300); - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300); + player.AddBuff(ModContent.BuffType(), 300, true); } } @@ -556,24 +556,24 @@ namespace CalamityMod.NPCs.AbyssNPCs Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlackInk, Main.rand.Next(3, 6)); if (Main.rand.NextBool(10000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedPolterghast) { if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamarisLament")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(26, 39)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(26, 39)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(5, 8)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(5, 8)); } } } diff --git a/NPCs/AbyssNPCs/Cuttlefish.cs b/NPCs/AbyssNPCs/Cuttlefish.cs index 86bf891667..ae1e94bfca 100644 --- a/NPCs/AbyssNPCs/Cuttlefish.cs +++ b/NPCs/AbyssNPCs/Cuttlefish.cs @@ -5,9 +5,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Cuttlefish : ModNPC { @@ -28,13 +28,13 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 55; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 1, 0); npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath28; npc.knockBackResist = 0.3f; banner = npc.type; - bannerItem = mod.ItemType("CuttlefishBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -293,7 +293,7 @@ namespace CalamityMod.NPCs.AbyssNPCs player.AddBuff(BuffID.Darkness, 120, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } } @@ -314,14 +314,14 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CloakingGland")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } int inkBombDropRate = CalamityWorld.defiled ? DropHelper.DefiledDropRateInt : Main.expertMode ? 50 : 100; - DropHelper.DropItemChance(npc, mod.ItemType("InkBomb"), inkBombDropRate, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), inkBombDropRate, 1, 1); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/AbyssNPCs/DevilFish.cs b/NPCs/AbyssNPCs/DevilFish.cs index bb15ad9813..71023cc707 100644 --- a/NPCs/AbyssNPCs/DevilFish.cs +++ b/NPCs/AbyssNPCs/DevilFish.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class DevilFish : ModNPC { @@ -32,13 +32,13 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 200; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 10, 0); npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.85f; banner = npc.type; - bannerItem = mod.ItemType("DevilFishBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -283,11 +283,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); - player.AddBuff(mod.BuffType("Horror"), 120, true); + player.AddBuff(ModContent.BuffType(), 120); + player.AddBuff(ModContent.BuffType(), 120, true); } } @@ -308,29 +308,29 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } if (NPC.downedGolemBoss) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ChaoticOre"), Main.rand.Next(3, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(3, 10)); if (Main.rand.NextBool(200)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Hellborn")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmBody.cs b/NPCs/AbyssNPCs/EidolonWyrmBody.cs index 8546c358bf..f5966cec20 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmBody.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmBody.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmBody : ModNPC { @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -180,9 +180,9 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 500, true); - player.AddBuff(mod.BuffType("Horror"), 200, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 200); + player.AddBuff(ModContent.BuffType(), 500, true); + player.AddBuff(ModContent.BuffType(), 200, true); + player.AddBuff(ModContent.BuffType(), 200); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmBodyAlt.cs b/NPCs/AbyssNPCs/EidolonWyrmBodyAlt.cs index 7da9d9862f..f59c5193a3 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmBodyAlt.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmBodyAlt.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmBodyAlt : ModNPC { @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -180,9 +180,9 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 500, true); - player.AddBuff(mod.BuffType("Horror"), 200, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 200); + player.AddBuff(ModContent.BuffType(), 500, true); + player.AddBuff(ModContent.BuffType(), 200, true); + player.AddBuff(ModContent.BuffType(), 200); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmBodyAltHuge.cs b/NPCs/AbyssNPCs/EidolonWyrmBodyAltHuge.cs index c7fa93faa3..417b72970b 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmBodyAltHuge.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmBodyAltHuge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmBodyAltHuge : ModNPC { @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -180,9 +180,9 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 500, true); - player.AddBuff(mod.BuffType("Horror"), 200, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 200); + player.AddBuff(ModContent.BuffType(), 500, true); + player.AddBuff(ModContent.BuffType(), 200, true); + player.AddBuff(ModContent.BuffType(), 200); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmBodyHuge.cs b/NPCs/AbyssNPCs/EidolonWyrmBodyHuge.cs index e8077119b2..8ff48f8274 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmBodyHuge.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmBodyHuge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmBodyHuge : ModNPC { @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -180,9 +180,9 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 500, true); - player.AddBuff(mod.BuffType("Horror"), 200, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 200); + player.AddBuff(ModContent.BuffType(), 500, true); + player.AddBuff(ModContent.BuffType(), 200, true); + player.AddBuff(ModContent.BuffType(), 200); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmHead.cs b/NPCs/AbyssNPCs/EidolonWyrmHead.cs index e9470f1b23..ef5f98ea1e 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmHead.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmHead.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmHead : ModNPC { @@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("EidolonWyrmJuvenileBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -111,16 +111,16 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (num36 % 2 == 0) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("EidolonWyrmBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("EidolonWyrmBodyAlt"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("EidolonWyrmTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -220,7 +220,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.alpha = 0; } - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 6400f || !NPC.AnyNPCs(mod.NPCType("EidolonWyrmTail")) || !Main.player[npc.target].Calamity().ZoneAbyss) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 6400f || !NPC.AnyNPCs(ModContent.NPCType()) || !Main.player[npc.target].Calamity().ZoneAbyss) { npc.active = false; } @@ -464,12 +464,12 @@ namespace CalamityMod.NPCs.AbyssNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && - !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("ColossalSquid"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType()) && + !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.3f; } - if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.6f; } @@ -478,31 +478,31 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Voidstone"), Main.rand.Next(30, 41)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(30, 41)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlueLunaticHood); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlueLunaticRobe); if (Main.rand.NextBool(10000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedPolterghast) { if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SoulEdge")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EidolicWail")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Ectoplasm, Main.rand.Next(8, 13)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite"), Main.rand.Next(6, 9)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(6, 9)); if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } } } @@ -550,11 +550,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 1200, true); + player.AddBuff(ModContent.BuffType(), 1200, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 600, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 600); + player.AddBuff(ModContent.BuffType(), 600, true); + player.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs b/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs index a1250c43e1..5ad362d441 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmHeadHuge : ModNPC { @@ -110,16 +110,16 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (num36 % 2 == 0) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("EidolonWyrmBodyHuge"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("EidolonWyrmBodyAltHuge"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("EidolonWyrmTailHuge"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -217,7 +217,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.alpha = 0; } - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 6400f || !NPC.AnyNPCs(mod.NPCType("EidolonWyrmTailHuge"))) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 6400f || !NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -467,7 +467,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge")) && CalamityWorld.downedPolterghast) + if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.downedPolterghast) { return SpawnCondition.CaveJellyfish.Chance * 0.012f; } @@ -476,18 +476,18 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Voidstone"), Main.rand.Next(80, 101)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EidolicWail")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SoulEdge")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(80, 101)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Ectoplasm, Main.rand.Next(21, 33)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite"), Main.rand.Next(50, 109)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(50, 109)); if (CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite"), Main.rand.Next(15, 28)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(15, 28)); } } @@ -534,11 +534,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 1200, true); + player.AddBuff(ModContent.BuffType(), 1200, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 1200, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 1200); + player.AddBuff(ModContent.BuffType(), 1200, true); + player.AddBuff(ModContent.BuffType(), 1200); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmTail.cs b/NPCs/AbyssNPCs/EidolonWyrmTail.cs index 6bde4a0b38..45fa676d47 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmTail.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmTail.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmTail : ModNPC { @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -181,7 +181,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 60, true); - player.AddBuff(mod.BuffType("CrushDepth"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } } } diff --git a/NPCs/AbyssNPCs/EidolonWyrmTailHuge.cs b/NPCs/AbyssNPCs/EidolonWyrmTailHuge.cs index 7cc2e68e6a..30076c93b0 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmTailHuge.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmTailHuge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class EidolonWyrmTailHuge : ModNPC { @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -181,7 +181,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 60, true); - player.AddBuff(mod.BuffType("CrushDepth"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } } } diff --git a/NPCs/AbyssNPCs/Flounder.cs b/NPCs/AbyssNPCs/Flounder.cs index 9fdbafb6b0..a3aeab6831 100644 --- a/NPCs/AbyssNPCs/Flounder.cs +++ b/NPCs/AbyssNPCs/Flounder.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Flounder : ModNPC { @@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath53; npc.knockBackResist = 0.35f; banner = npc.type; - bannerItem = mod.ItemType("FlounderBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -157,7 +157,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { damage = 19; } - int beam = Projectile.NewProjectile(npc.Center.X + (npc.spriteDirection == 1 ? 10f : -10f), npc.Center.Y, num6, num7, mod.ProjectileType("SulphuricAcidMist"), damage, 0f, Main.myPlayer, 0f, 0f); + int beam = Projectile.NewProjectile(npc.Center.X + (npc.spriteDirection == 1 ? 10f : -10f), npc.Center.Y, num6, num7, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } } @@ -281,7 +281,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CloakingGland")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/AbyssNPCs/Frogfish.cs b/NPCs/AbyssNPCs/Frogfish.cs index 73ecc4ae70..cef9def31f 100644 --- a/NPCs/AbyssNPCs/Frogfish.cs +++ b/NPCs/AbyssNPCs/Frogfish.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Frogfish : ModNPC { @@ -23,13 +23,13 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 80; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 0, 80); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.5f; banner = npc.type; - bannerItem = mod.ItemType("FrogfishBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -248,7 +248,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CloakingGland")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/AbyssNPCs/GiantSquid.cs b/NPCs/AbyssNPCs/GiantSquid.cs index 58ee512530..c25ff73784 100644 --- a/NPCs/AbyssNPCs/GiantSquid.cs +++ b/NPCs/AbyssNPCs/GiantSquid.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class GiantSquid : ModNPC { @@ -29,12 +29,12 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 400; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 15, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("GiantSquidBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -237,12 +237,12 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); player.AddBuff(BuffID.Darkness, 180, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); - player.AddBuff(mod.BuffType("Horror"), 120, true); + player.AddBuff(ModContent.BuffType(), 120); + player.AddBuff(ModContent.BuffType(), 120, true); } } @@ -250,21 +250,21 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(2, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 5)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } } } diff --git a/NPCs/AbyssNPCs/Gnasher.cs b/NPCs/AbyssNPCs/Gnasher.cs index d3e93b411a..4201903a17 100644 --- a/NPCs/AbyssNPCs/Gnasher.cs +++ b/NPCs/AbyssNPCs/Gnasher.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Gnasher : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.buffImmune[k] = true; } banner = npc.type; - bannerItem = mod.ItemType("GnasherBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() diff --git a/NPCs/AbyssNPCs/GulperEelBody.cs b/NPCs/AbyssNPCs/GulperEelBody.cs index e737716872..54a99b9d90 100644 --- a/NPCs/AbyssNPCs/GulperEelBody.cs +++ b/NPCs/AbyssNPCs/GulperEelBody.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class GulperEelBody : ModNPC { @@ -36,8 +36,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("GulperEelHead"); - bannerItem = mod.ItemType("GulperEelBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("GulperEelHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -182,7 +182,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 120, true); - player.AddBuff(mod.BuffType("CrushDepth"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/NPCs/AbyssNPCs/GulperEelBodyAlt.cs b/NPCs/AbyssNPCs/GulperEelBodyAlt.cs index 924c28a32d..43077183be 100644 --- a/NPCs/AbyssNPCs/GulperEelBodyAlt.cs +++ b/NPCs/AbyssNPCs/GulperEelBodyAlt.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class GulperEelBodyAlt : ModNPC { @@ -36,8 +36,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("GulperEelHead"); - bannerItem = mod.ItemType("GulperEelBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("GulperEelHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -182,7 +182,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 120, true); - player.AddBuff(mod.BuffType("CrushDepth"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/NPCs/AbyssNPCs/GulperEelHead.cs b/NPCs/AbyssNPCs/GulperEelHead.cs index 9817b59165..3c1f2dd0c1 100644 --- a/NPCs/AbyssNPCs/GulperEelHead.cs +++ b/NPCs/AbyssNPCs/GulperEelHead.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class GulperEelHead : ModNPC { @@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath13; npc.netAlways = true; banner = npc.type; - bannerItem = mod.ItemType("GulperEelBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -92,16 +92,16 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (num36 == 0) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("GulperEelBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("GulperEelBodyAlt"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("GulperEelTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.alpha = 0; } - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(mod.NPCType("GulperEelTail"))) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -364,11 +364,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("GulperEelHead"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.3f; } - if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("GulperEelHead"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.6f; } @@ -379,25 +379,25 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(6, 9)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(6, 9)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } } } @@ -442,11 +442,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 300, true); - player.AddBuff(mod.BuffType("CrushDepth"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180); + player.AddBuff(ModContent.BuffType(), 180, true); } } } diff --git a/NPCs/AbyssNPCs/GulperEelTail.cs b/NPCs/AbyssNPCs/GulperEelTail.cs index 494a489059..2f0f273ef9 100644 --- a/NPCs/AbyssNPCs/GulperEelTail.cs +++ b/NPCs/AbyssNPCs/GulperEelTail.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class GulperEelTail : ModNPC { @@ -36,8 +36,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("GulperEelHead"); - bannerItem = mod.ItemType("GulperEelBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("GulperEelHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -181,7 +181,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 60, true); - player.AddBuff(mod.BuffType("CrushDepth"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } } } diff --git a/NPCs/AbyssNPCs/Laserfish.cs b/NPCs/AbyssNPCs/Laserfish.cs index b729f97bb7..36992f2a86 100644 --- a/NPCs/AbyssNPCs/Laserfish.cs +++ b/NPCs/AbyssNPCs/Laserfish.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Laserfish : ModNPC { @@ -29,13 +29,13 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 240; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 10, 0); npc.HitSound = SoundID.NPCHit51; npc.DeathSound = SoundID.NPCDeath26; npc.knockBackResist = 0.65f; banner = npc.type; - bannerItem = mod.ItemType("LaserfishBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -289,13 +289,13 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AbyssNPCs/LuminousCorvina.cs b/NPCs/AbyssNPCs/LuminousCorvina.cs index 64f6d88b87..fbde223f7e 100644 --- a/NPCs/AbyssNPCs/LuminousCorvina.cs +++ b/NPCs/AbyssNPCs/LuminousCorvina.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class LuminousCorvina : ModNPC { @@ -30,13 +30,13 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 800; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 15, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.85f; banner = npc.type; - bannerItem = mod.ItemType("LuminousCorvinaBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -87,7 +87,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (!Main.player[npc.target].dead && Main.player[npc.target].active) { - Main.player[npc.target].AddBuff(mod.BuffType("FishAlert"), 360, true); + Main.player[npc.target].AddBuff(ModContent.BuffType(), 360, true); } } } @@ -265,7 +265,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -279,24 +279,24 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Voidstone"), Main.rand.Next(8, 16)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(8, 16)); if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AbyssNPCs/MantisShrimp.cs b/NPCs/AbyssNPCs/MantisShrimp.cs index e5e490c1d9..b9ec2e22db 100644 --- a/NPCs/AbyssNPCs/MantisShrimp.cs +++ b/NPCs/AbyssNPCs/MantisShrimp.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class MantisShrimp : ModNPC { @@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[189] = true; banner = npc.type; - bannerItem = mod.ItemType("MantisShrimpBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(5) && NPC.downedPlantBoss) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MantisClaws")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/AbyssNPCs/Mauler.cs b/NPCs/AbyssNPCs/Mauler.cs index 44c557d36d..ad77508e3e 100644 --- a/NPCs/AbyssNPCs/Mauler.cs +++ b/NPCs/AbyssNPCs/Mauler.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Mauler : ModNPC { @@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.knockBackResist = 0f; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("MaulerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -216,7 +216,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { damage = 45; } - int beam = Projectile.NewProjectile(npc.Center.X + (npc.spriteDirection == 1 ? 60f : -60f), npc.Center.Y, num6, num7, mod.ProjectileType("SulphuricAcidMist"), damage, 0f, Main.myPlayer, 0f, 0f); + int beam = Projectile.NewProjectile(npc.Center.X + (npc.spriteDirection == 1 ? 60f : -60f), npc.Center.Y, num6, num7, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } if (npc.velocity.Y == 0f) @@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.AbyssNPCs int damageBoom = npc.localAI[1] >= 255f ? 200 : 50; for (iBoom = 0; iBoom < 25; iBoom++) { - int projectileType = Main.rand.NextBool(2) ? mod.ProjectileType("SulphuricAcidMist") : mod.ProjectileType("SulphuricAcidCannon"); + int projectileType = Main.rand.NextBool(2) ? ModContent.ProjectileType() : ModContent.ProjectileType(); offsetAngleBoom = startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f + 32f * iBoom; int boom1 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 6f), (float)(Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f); int boom2 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 6f), (float)(-Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f); @@ -338,8 +338,8 @@ namespace CalamityMod.NPCs.AbyssNPCs player.AddBuff(BuffID.Rabies, 300, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180); + player.AddBuff(ModContent.BuffType(), 180, true); } } @@ -349,7 +349,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SulphuricAcidCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } int item = Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SharkFin, Main.rand.Next(2, 5), false, 0, false, false); @@ -363,8 +363,8 @@ namespace CalamityMod.NPCs.AbyssNPCs { return 0f; } - if (spawnInfo.player.Calamity().ZoneSulphur && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("Mauler")) && - !NPC.AnyNPCs(mod.NPCType("AquaticScourgeHead"))) + if (spawnInfo.player.Calamity().ZoneSulphur && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType()) && + !NPC.AnyNPCs(ModContent.NPCType())) { if (!Main.hardMode) { diff --git a/NPCs/AbyssNPCs/MirageJelly.cs b/NPCs/AbyssNPCs/MirageJelly.cs index b10d2c7f50..add39918c7 100644 --- a/NPCs/AbyssNPCs/MirageJelly.cs +++ b/NPCs/AbyssNPCs/MirageJelly.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class MirageJelly : ModNPC { @@ -32,12 +32,12 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 25, 0); npc.HitSound = SoundID.NPCHit25; npc.DeathSound = SoundID.NPCDeath28; banner = npc.type; - bannerItem = mod.ItemType("MirageJellyBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -191,47 +191,47 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(5, 8)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(5, 8)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(5, 8)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(5, 8)); } } if (Main.expertMode) { if (Main.rand.NextBool(5)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VitalJelly")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(5)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LifeJelly")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(5)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManaJelly")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } else { if (Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VitalJelly")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LifeJelly")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManaJelly")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AbyssNPCs/MorayEel.cs b/NPCs/AbyssNPCs/MorayEel.cs index e2cba48f12..a3ed6a9737 100644 --- a/NPCs/AbyssNPCs/MorayEel.cs +++ b/NPCs/AbyssNPCs/MorayEel.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class MorayEel : ModNPC { @@ -28,13 +28,13 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 180; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 1, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.75f; banner = npc.type; - bannerItem = mod.ItemType("MorayEelBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/AbyssNPCs/OarfishBody.cs b/NPCs/AbyssNPCs/OarfishBody.cs index c7ba5db3fa..2d10e6ed78 100644 --- a/NPCs/AbyssNPCs/OarfishBody.cs +++ b/NPCs/AbyssNPCs/OarfishBody.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class OarfishBody : ModNPC { @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("OarfishHead"); - bannerItem = mod.ItemType("OarfishBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("OarfishHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/AbyssNPCs/OarfishHead.cs b/NPCs/AbyssNPCs/OarfishHead.cs index 59005fd42e..1c1e578c3f 100644 --- a/NPCs/AbyssNPCs/OarfishHead.cs +++ b/NPCs/AbyssNPCs/OarfishHead.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class OarfishHead : ModNPC { @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; banner = npc.type; - bannerItem = mod.ItemType("OarfishBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -66,11 +66,11 @@ namespace CalamityMod.NPCs.AbyssNPCs int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("OarfishBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("OarfishTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -99,7 +99,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.alpha = 0; } - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(mod.NPCType("OarfishTail"))) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -313,11 +313,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneAbyssLayer2 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("OarfishHead"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer2 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.3f; } - if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("OarfishHead"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.6f; } @@ -328,17 +328,17 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(3, 6)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(3, 6)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } } } @@ -384,8 +384,8 @@ namespace CalamityMod.NPCs.AbyssNPCs player.AddBuff(BuffID.Bleeding, 180, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 90); - player.AddBuff(mod.BuffType("Horror"), 90, true); + player.AddBuff(ModContent.BuffType(), 90); + player.AddBuff(ModContent.BuffType(), 90, true); } } } diff --git a/NPCs/AbyssNPCs/OarfishTail.cs b/NPCs/AbyssNPCs/OarfishTail.cs index f84208b6ec..3e861da8e3 100644 --- a/NPCs/AbyssNPCs/OarfishTail.cs +++ b/NPCs/AbyssNPCs/OarfishTail.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class OarfishTail : ModNPC { @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("OarfishHead"); - bannerItem = mod.ItemType("OarfishBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("OarfishHead"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/AbyssNPCs/Reaper.cs b/NPCs/AbyssNPCs/Reaper.cs index 10388d7842..fd23a58d66 100644 --- a/NPCs/AbyssNPCs/Reaper.cs +++ b/NPCs/AbyssNPCs/Reaper.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Reaper : ModNPC { @@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.knockBackResist = 0f; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("ReaperSharkBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -635,22 +635,22 @@ namespace CalamityMod.NPCs.AbyssNPCs player.AddBuff(BuffID.Darkness, 300, true); player.AddBuff(BuffID.Bleeding, 300, true); player.AddBuff(BuffID.Rabies, 300, true); - player.AddBuff(mod.BuffType("CrushDepth"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); - player.AddBuff(mod.BuffType("Horror"), 120, true); + player.AddBuff(ModContent.BuffType(), 120); + player.AddBuff(ModContent.BuffType(), 120, true); } } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("Reaper")) && - !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType()) && + !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.6f; } - if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("Reaper"))) + if (spawnInfo.player.Calamity().ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 1.2f; } @@ -659,28 +659,28 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Voidstone"), Main.rand.Next(40, 51)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CloakingGland"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(40, 51)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.rand.NextBool(10000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedPolterghast) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ReaperTooth"), Main.rand.Next(3, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(3, 5)); if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DeepSeaDumbbell")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(3)) { if (Main.rand.NextBool(33)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheReaper")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } else { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Valediction")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } @@ -688,11 +688,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(10, 18)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 18)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(4, 6)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(4, 6)); } } } diff --git a/NPCs/AbyssNPCs/SeaUrchin.cs b/NPCs/AbyssNPCs/SeaUrchin.cs index 8079ff8f61..772ba1ee99 100644 --- a/NPCs/AbyssNPCs/SeaUrchin.cs +++ b/NPCs/AbyssNPCs/SeaUrchin.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class SeaUrchin : ModNPC { @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath15; npc.behindTiles = true; banner = npc.type; - bannerItem = mod.ItemType("SeaUrchinBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -323,7 +323,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("UrchinStinger"), Main.rand.Next(15, 26)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(15, 26)); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/AbyssNPCs/ToxicMinnow.cs b/NPCs/AbyssNPCs/ToxicMinnow.cs index 542c2ab856..ca44c5de6c 100644 --- a/NPCs/AbyssNPCs/ToxicMinnow.cs +++ b/NPCs/AbyssNPCs/ToxicMinnow.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class ToxicMinnow : ModNPC { @@ -30,12 +30,12 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.aiStyle = -1; aiType = -1; npc.value = Item.buyPrice(0, 0, 5, 0); - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.15f; banner = npc.type; - bannerItem = mod.ItemType("ToxicMinnowBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.AbyssNPCs int damageBoom = 30; for (iBoom = 0; iBoom < 5; iBoom++) { - int projectileType = mod.ProjectileType("ToxicMinnowCloud"); + int projectileType = ModContent.ProjectileType(); offsetAngleBoom = startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f + 32f * iBoom; int boom1 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 6f), (float)(Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f); int boom2 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 6f), (float)(-Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f); @@ -223,7 +223,7 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("CrushDepth"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void FindFrame(int frameHeight) @@ -260,17 +260,17 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } } } diff --git a/NPCs/AbyssNPCs/Trasher.cs b/NPCs/AbyssNPCs/Trasher.cs index 9158b81064..1a0cd288c9 100644 --- a/NPCs/AbyssNPCs/Trasher.cs +++ b/NPCs/AbyssNPCs/Trasher.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Trasher : ModNPC { @@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath5; npc.knockBackResist = 0f; banner = npc.type; - bannerItem = mod.ItemType("TrasherBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -356,7 +356,7 @@ namespace CalamityMod.NPCs.AbyssNPCs } if (Main.rand.NextBool(20)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TrashmanTrashcan")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(10) && Main.hardMode) { diff --git a/NPCs/AbyssNPCs/Viperfish.cs b/NPCs/AbyssNPCs/Viperfish.cs index ada604adc1..2cdc680b1d 100644 --- a/NPCs/AbyssNPCs/Viperfish.cs +++ b/NPCs/AbyssNPCs/Viperfish.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AbyssNPCs +namespace CalamityMod.NPCs { public class Viperfish : ModNPC { @@ -29,13 +29,13 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.lifeMax = 160; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = Item.buyPrice(0, 0, 5, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.85f; banner = npc.type; - bannerItem = mod.ItemType("ViperfishBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -254,11 +254,11 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Bleeding, 120, true); - player.AddBuff(mod.BuffType("CrushDepth"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 90); - player.AddBuff(mod.BuffType("Horror"), 90, true); + player.AddBuff(ModContent.BuffType(), 90); + player.AddBuff(ModContent.BuffType(), 90, true); } } @@ -279,21 +279,21 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/Astrageldon/Astrageldon.cs b/NPCs/Astrageldon/Astrageldon.cs index cfc5d429d6..4212199e78 100644 --- a/NPCs/Astrageldon/Astrageldon.cs +++ b/NPCs/Astrageldon/Astrageldon.cs @@ -7,9 +7,9 @@ using System.Threading; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Astrageldon +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Astrageldon : ModNPC @@ -41,18 +41,18 @@ namespace CalamityMod.NPCs.Astrageldon npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.DeathSound = SoundID.NPCDeath14; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); @@ -60,7 +60,7 @@ namespace CalamityMod.NPCs.Astrageldon music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Astrageldon"); else music = MusicID.Boss3; - bossBag = mod.ItemType("AstrageldonBag"); + bossBag = ModContent.ItemType(); if (NPC.downedMoonlord && CalamityWorld.revenge) { npc.value = Item.buyPrice(0, 35, 0, 0); @@ -297,25 +297,25 @@ namespace CalamityMod.NPCs.Astrageldon { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("AstrageldonTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeAstrumAureus"), true, !CalamityWorld.downedAstrageldon); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedAstrageldon); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedAstrageldon, 4, 2, 1); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItemSpray(npc, mod.ItemType("Stardust"), 20, 30); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 20, 30); DropHelper.DropItemSpray(npc, ItemID.FallenStar, 25, 40); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("Nebulash"), 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("AureusMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); // Other - DropHelper.DropItem(npc, mod.ItemType("AstralJelly"), 9, 12); + DropHelper.DropItem(npc, ModContent.ItemType(), 9, 12); DropHelper.DropItemChance(npc, ItemID.HallowedKey, 5); } @@ -389,10 +389,10 @@ namespace CalamityMod.NPCs.Astrageldon } for (int num623 = 0; num623 < 100; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } @@ -406,7 +406,7 @@ namespace CalamityMod.NPCs.Astrageldon public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 240, true); + player.AddBuff(ModContent.BuffType(), 240, true); } } } diff --git a/NPCs/Astrageldon/AstrageldonSlime.cs b/NPCs/Astrageldon/AstrageldonSlime.cs index c867e6dbc6..4d071ded1c 100644 --- a/NPCs/Astrageldon/AstrageldonSlime.cs +++ b/NPCs/Astrageldon/AstrageldonSlime.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Astrageldon +namespace CalamityMod.NPCs { public class AstrageldonSlime : ModNPC { @@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.Astrageldon int num; for (int num245 = 0; num245 < 10; num245 = num + 1) { - int dust = Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("AstralOrange"), npc.velocity.X, npc.velocity.Y, 255, default, 0.8f); + int dust = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), npc.velocity.X, npc.velocity.Y, 255, default, 0.8f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 0.5f; num = num245; @@ -139,7 +139,7 @@ namespace CalamityMod.NPCs.Astrageldon int num; for (int num1449 = 0; num1449 < 20; num1449 = num + 1) { - int num1450 = Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, Color.Transparent, 0.6f); + int num1450 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, Color.Transparent, 0.6f); Dust dust = Main.dust[num1450]; dust.velocity *= 3f; Main.dust[num1450].noGravity = true; @@ -153,7 +153,7 @@ namespace CalamityMod.NPCs.Astrageldon Main.PlaySound(SoundID.Item8, npc.Center); for (int num1451 = 0; num1451 < 20; num1451 = num + 1) { - int num1452 = Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, Color.Transparent, 0.6f); + int num1452 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, Color.Transparent, 0.6f); Dust dust = Main.dust[num1452]; dust.velocity *= 3f; Main.dust[num1452].noGravity = true; @@ -238,7 +238,7 @@ namespace CalamityMod.NPCs.Astrageldon public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override bool CheckDead() @@ -252,7 +252,7 @@ namespace CalamityMod.NPCs.Astrageldon npc.position.Y = npc.position.Y - (float)(npc.height / 2); for (int num621 = 0; num621 < 15; num621++) { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1f); + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -266,7 +266,7 @@ namespace CalamityMod.NPCs.Astrageldon int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default, 2f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); Main.dust[num624].velocity *= 2f; Main.dust[num624].noGravity = true; } diff --git a/NPCs/AstralBiomeNPCs/Aries.cs b/NPCs/AstralBiomeNPCs/Aries.cs index 540450209a..7d1e33ce1b 100644 --- a/NPCs/AstralBiomeNPCs/Aries.cs +++ b/NPCs/AstralBiomeNPCs/Aries.cs @@ -3,9 +3,9 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Aries : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.value = Item.buyPrice(0, 0, 10, 0); npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); banner = npc.type; - bannerItem = mod.ItemType("AriesBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 85; @@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void FindFrame(int frameHeight) { - CalamityGlobalNPC.SpawnDustOnNPC(npc, 66, frameHeight, mod.DustType("AstralOrange"), new Rectangle(44, 18, 12, 12)); + CalamityGlobalNPC.SpawnDustOnNPC(npc, 66, frameHeight, ModContent.DustType(), new Rectangle(44, 18, 12, 12)); if (npc.velocity.Y == 0f) { npc.frame.Y = 0; @@ -86,7 +86,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, mod.DustType("AstralOrange"), 1f, 4, 24); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, ModContent.DustType(), 1f, 4, 24); } public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) @@ -106,22 +106,22 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StellarKnife")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/AstralProbe.cs b/NPCs/AstralBiomeNPCs/AstralProbe.cs index 3b44298980..988f8a54fa 100644 --- a/NPCs/AstralBiomeNPCs/AstralProbe.cs +++ b/NPCs/AstralBiomeNPCs/AstralProbe.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class AstralProbe : ModNPC { @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.noTileCollide = true; npc.DeathSound = SoundID.NPCDeath14; banner = npc.type; - bannerItem = mod.ItemType("AstralProbeBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 30; @@ -291,11 +291,11 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } @@ -306,7 +306,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/NPCs/AstralBiomeNPCs/AstralSlime.cs b/NPCs/AstralBiomeNPCs/AstralSlime.cs index 6ea0cbeab9..d0f35697a2 100644 --- a/NPCs/AstralBiomeNPCs/AstralSlime.cs +++ b/NPCs/AstralBiomeNPCs/AstralSlime.cs @@ -4,9 +4,9 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class AstralSlime : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.DeathSound = SoundID.NPCDeath1; animationType = NPCID.BlueSlime; banner = npc.type; - bannerItem = mod.ItemType("AstralSlimeBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 65; @@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void FindFrame(int frameHeight) { //DO DUST - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 44, frameHeight, mod.DustType("AstralOrange"), new Rectangle(4, 4, 36, 24), Vector2.Zero, 0.15f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 44, frameHeight, ModContent.DustType(), new Rectangle(4, 4, 36, 24), Vector2.Zero, 0.15f, true); if (d != null) { d.customData = 0.04f; @@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void HitEffect(int hitDirection, double damage) { - CalamityGlobalNPC.DoHitDust(npc, hitDirection, mod.DustType("AstralOrange"), 1f, 4, 24); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, ModContent.DustType(), 1f, 4, 24); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -66,14 +66,14 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { int oreMin = Main.expertMode ? 11 : 8; int oreMax = Main.expertMode ? 16 : 12; - DropHelper.DropItemCondition(npc, mod.ItemType("AstralOre"), CalamityWorld.downedStarGod, oreMin, oreMax); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedStarGod, oreMin, oreMax); } } } diff --git a/NPCs/AstralBiomeNPCs/AstralachneaGround.cs b/NPCs/AstralBiomeNPCs/AstralachneaGround.cs index b23f41c23c..13c13d7f90 100644 --- a/NPCs/AstralBiomeNPCs/AstralachneaGround.cs +++ b/NPCs/AstralBiomeNPCs/AstralachneaGround.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class AstralachneaGround : ModNPC { @@ -41,7 +41,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.timeLeft = NPC.activeTime * 2; animationType = NPCID.WallCreeper; banner = npc.type; - bannerItem = mod.ItemType("AstralachneaBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 90; @@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } if (transform) { - npc.Transform(mod.NPCType("AstralachneaWall")); + npc.Transform(ModContent.NPCType()); } } } @@ -96,7 +96,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs rect = new Rectangle(58, 6, 20, 8); break; } - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, mod.DustType("AstralOrange"), rect, Vector2.Zero, 0.45f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, ModContent.DustType(), rect, Vector2.Zero, 0.45f, true); if (d != null) { d.customData = 0.04f; @@ -122,7 +122,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 4, 22); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 4, 22); //if dead do gores if (npc.life <= 0) @@ -151,19 +151,19 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AstralachneaStaff")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/AstralachneaWall.cs b/NPCs/AstralBiomeNPCs/AstralachneaWall.cs index 584332bf9a..9a2f3ebb6f 100644 --- a/NPCs/AstralBiomeNPCs/AstralachneaWall.cs +++ b/NPCs/AstralBiomeNPCs/AstralachneaWall.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class AstralachneaWall : ModNPC { @@ -41,8 +41,8 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.buffImmune[31] = false; npc.timeLeft = NPC.activeTime * 2; animationType = NPCID.BlackRecluseWall; - banner = mod.NPCType("AstralachneaGround"); - bannerItem = mod.ItemType("AstralachneaBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 90; @@ -53,7 +53,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void AI() { - CalamityGlobalNPC.DoSpiderWallAI(npc, mod.NPCType("AstralachneaGround"), 2.4f, 0.1f); + CalamityGlobalNPC.DoSpiderWallAI(npc, ModContent.NPCType(), 2.4f, 0.1f); } public override void FindFrame(int frameHeight) @@ -77,8 +77,8 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs rect2 = new Rectangle(16, 44, 16, 10); break; } - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, mod.DustType("AstralOrange"), rect, Vector2.Zero, 0.225f, true); - Dust d2 = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, mod.DustType("AstralOrange"), rect2, Vector2.Zero, 0.225f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, ModContent.DustType(), rect, Vector2.Zero, 0.225f, true); + Dust d2 = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, ModContent.DustType(), rect2, Vector2.Zero, 0.225f, true); if (d != null) { d.customData = 0.04f; @@ -108,7 +108,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 4, 22); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 4, 22); //if dead do gores if (npc.life <= 0) @@ -128,19 +128,19 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AstralachneaStaff")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/Atlas.cs b/NPCs/AstralBiomeNPCs/Atlas.cs index 95d1104480..e6fd864058 100644 --- a/NPCs/AstralBiomeNPCs/Atlas.cs +++ b/NPCs/AstralBiomeNPCs/Atlas.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Atlas : ModNPC { @@ -109,7 +109,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.aiStyle = -1; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AtlasDeath"); banner = npc.type; - bannerItem = mod.ItemType("AtlasBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 100; @@ -425,7 +425,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 3, 30); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 3, 30); //if dead do gores if (npc.life <= 0) @@ -609,19 +609,19 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(6, 9)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(6, 9)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TitanArm")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/BigSightseer.cs b/NPCs/AstralBiomeNPCs/BigSightseer.cs index 99f491f994..2cc50be8ad 100644 --- a/NPCs/AstralBiomeNPCs/BigSightseer.cs +++ b/NPCs/AstralBiomeNPCs/BigSightseer.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class BigSightseer : ModNPC { @@ -34,7 +34,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.value = Item.buyPrice(0, 0, 20, 0); npc.aiStyle = -1; banner = npc.type; - bannerItem = mod.ItemType("BigSightseerBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 85; @@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } //DO DUST - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 118, frameHeight, mod.DustType("AstralOrange"), new Rectangle(70, 18, 48, 18), Vector2.Zero, 0.45f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 118, frameHeight, ModContent.DustType(), new Rectangle(70, 18, 48, 18), Vector2.Zero, 0.45f, true); if (d != null) { d.customData = 0.04f; @@ -89,13 +89,13 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs { npc.ai[1] = 0f; - int n = NPC.NewNPC((int)spawnPoint.X, (int)spawnPoint.Y, mod.NPCType("AstralSeekerSpit")); + int n = NPC.NewNPC((int)spawnPoint.X, (int)spawnPoint.Y, ModContent.NPCType()); Main.npc[n].Center = spawnPoint; Main.npc[n].velocity = vector * 10f; } else if (npc.ai[1] >= 140f) //oozin dust at the "mouth" { - int dustType = Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"); + int dustType = Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(); int d = Dust.NewDust(spawnPoint - new Vector2(5), 10, 10, dustType); Main.dust[d].velocity = npc.velocity * 0.3f; Main.dust[d].customData = true; @@ -122,7 +122,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 4, 22); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 4, 22); //if dead do gores if (npc.life <= 0) @@ -152,15 +152,15 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } @@ -201,8 +201,8 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs float pulse = (float)Math.Sin(npc.ai[0]); float radius = 5.8f; Vector2 offset = angle.ToRotationVector2() * pulse * radius; - Dust pink = Dust.NewDustPerfect(npc.Center + offset, mod.DustType("AstralOrange"), Vector2.Zero); - Dust blue = Dust.NewDustPerfect(npc.Center - offset, mod.DustType("AstralBlue"), Vector2.Zero); + Dust pink = Dust.NewDustPerfect(npc.Center + offset, ModContent.DustType(), Vector2.Zero); + Dust blue = Dust.NewDustPerfect(npc.Center - offset, ModContent.DustType(), Vector2.Zero); //kill on tile collide if (Collision.SolidCollision(npc.position, npc.width, npc.height)) @@ -241,7 +241,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } private void DoKillDust() @@ -252,7 +252,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs for (int i = 0; i < numDust; i++) { Vector2 vel = (angle + Main.rand.NextFloat(-0.04f, 0.04f)).ToRotationVector2(); - int dustType = Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"); + int dustType = Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(); Dust d = Dust.NewDustPerfect(npc.Center, dustType, vel * Main.rand.NextFloat(1.8f, 2.2f)); d.customData = npc; diff --git a/NPCs/AstralBiomeNPCs/FusionFeeder.cs b/NPCs/AstralBiomeNPCs/FusionFeeder.cs index 09617d4ff2..cbe71cbf1d 100644 --- a/NPCs/AstralBiomeNPCs/FusionFeeder.cs +++ b/NPCs/AstralBiomeNPCs/FusionFeeder.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class FusionFeeder : ModNPC { @@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); animationType = NPCID.SandShark; banner = npc.type; - bannerItem = mod.ItemType("FusionFeederBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 65; @@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void FindFrame(int frameHeight) { //DO DUST - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 134, frameHeight, mod.DustType("AstralOrange"), new Rectangle(46, 4, 60, 6), Vector2.Zero, 0.55f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 134, frameHeight, ModContent.DustType(), new Rectangle(46, 4, 60, 6), Vector2.Zero, 0.55f, true); if (d != null) { d.customData = 0.04f; @@ -75,7 +75,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 4, 25); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 4, 25); //if dead do gores if (npc.life <= 0) @@ -113,15 +113,15 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/Hadarian.cs b/NPCs/AstralBiomeNPCs/Hadarian.cs index b1d470bd21..01e0fb0603 100644 --- a/NPCs/AstralBiomeNPCs/Hadarian.cs +++ b/NPCs/AstralBiomeNPCs/Hadarian.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Hadarian : ModNPC { @@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.75f; npc.value = Item.buyPrice(0, 0, 15, 0); banner = npc.type; - bannerItem = mod.ItemType("HadarianBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 80; @@ -98,16 +98,16 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs switch (frame) { case 1: - d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, mod.DustType("AstralOrange"), new Rectangle(38, 16, 22, 20), Vector2.Zero, 0.35f); + d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, ModContent.DustType(), new Rectangle(38, 16, 22, 20), Vector2.Zero, 0.35f); break; case 2: - d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, mod.DustType("AstralOrange"), new Rectangle(38, 24, 30, 14), Vector2.Zero); + d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, ModContent.DustType(), new Rectangle(38, 24, 30, 14), Vector2.Zero); break; case 3: - d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, mod.DustType("AstralOrange"), new Rectangle(44, 28, 32, 20), Vector2.Zero); + d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, ModContent.DustType(), new Rectangle(44, 28, 32, 20), Vector2.Zero); break; case 4: - d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, mod.DustType("AstralOrange"), new Rectangle(42, 36, 18, 30), Vector2.Zero, 0.3f); + d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 82, frameHeight, ModContent.DustType(), new Rectangle(42, 36, 18, 30), Vector2.Zero, 0.3f); break; } @@ -162,7 +162,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 3, 20); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 3, 20); //if dead do gores if (npc.life <= 0) @@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { Tile tile = Main.tile[spawnInfo.spawnTileX, spawnInfo.spawnTileY]; - if (spawnInfo.player.Calamity().ZoneAstral && spawnInfo.player.ZoneDesert && spawnInfo.spawnTileType == mod.TileType("AstralSand") && tile.wall == WallID.None) + if (spawnInfo.player.Calamity().ZoneAstral && spawnInfo.player.ZoneDesert && spawnInfo.spawnTileType == ModContent.TileType() && tile.wall == WallID.None) { return 0.25f; } @@ -186,19 +186,19 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HadarianMembrane"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } } } diff --git a/NPCs/AstralBiomeNPCs/Hive.cs b/NPCs/AstralBiomeNPCs/Hive.cs index b0e50ca02e..83702304ab 100644 --- a/NPCs/AstralBiomeNPCs/Hive.cs +++ b/NPCs/AstralBiomeNPCs/Hive.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Hive : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 0, 15, 0); banner = npc.type; - bannerItem = mod.ItemType("HiveBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 90; @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.ai[0] = 0; //spawn hiveling, it's ai[0] is the hive npc index. - int n = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Hiveling"), 0, npc.whoAmI); + int n = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), 0, npc.whoAmI); Main.npc[n].velocity.X = Main.rand.NextFloat(-0.4f, 0.4f); Main.npc[n].velocity.Y = Main.rand.NextFloat(-0.5f, -0.05f); } @@ -97,12 +97,12 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 3, 20); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 3, 20); //if dead do gores if (npc.life <= 0) { - int type = mod.NPCType("Hiveling"); + int type = ModContent.NPCType(); for (int i = 0; i < 200; i++) { if (Main.npc[i].type == type) @@ -130,19 +130,19 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HivePod")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/Hiveling.cs b/NPCs/AstralBiomeNPCs/Hiveling.cs index 1a3aae7fb0..07bc6b22a7 100644 --- a/NPCs/AstralBiomeNPCs/Hiveling.cs +++ b/NPCs/AstralBiomeNPCs/Hiveling.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Hiveling : ModNPC { @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } //DO DUST - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 30, frameHeight, mod.DustType("AstralOrange"), new Rectangle(16, 8, 6, 6), Vector2.Zero, 0.3f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 30, frameHeight, ModContent.DustType(), new Rectangle(16, 8, 6, 6), Vector2.Zero, 0.3f, true); if (d != null) { d.customData = 0.04f; @@ -110,7 +110,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 3, 20); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 3, 20); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -120,7 +120,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } } } diff --git a/NPCs/AstralBiomeNPCs/Mantis.cs b/NPCs/AstralBiomeNPCs/Mantis.cs index 9e2a0ce5da..d5e478b0f4 100644 --- a/NPCs/AstralBiomeNPCs/Mantis.cs +++ b/NPCs/AstralBiomeNPCs/Mantis.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Mantis : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.value = Item.buyPrice(0, 0, 15, 0); npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); banner = npc.type; - bannerItem = mod.ItemType("MantisBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 85; @@ -121,7 +121,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs Vector2 vector = Main.player[npc.target].Center - npc.Center; vector.Normalize(); int damage = CalamityWorld.downedAstrageldon ? 45 : 55; - Projectile.NewProjectile(npc.Center + (npc.Center.X < target.Center.X ? -14f : 14f) * Vector2.UnitX, vector * 7f, mod.ProjectileType("MantisRing"), damage, 0f); + Projectile.NewProjectile(npc.Center + (npc.Center.X < target.Center.X ? -14f : 14f) * Vector2.UnitX, vector * 7f, ModContent.ProjectileType(), damage, 0f); } } @@ -211,7 +211,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, mod.DustType("AstralOrange"), 1f, 4, 24); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, ModContent.DustType(), 1f, 4, 24); } public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) @@ -231,19 +231,19 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AstralScythe")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/Nova.cs b/NPCs/AstralBiomeNPCs/Nova.cs index ecaaf321b0..76f3c77bd5 100644 --- a/NPCs/AstralBiomeNPCs/Nova.cs +++ b/NPCs/AstralBiomeNPCs/Nova.cs @@ -5,9 +5,9 @@ using System; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Nova : ModNPC { @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.value = Item.buyPrice(0, 0, 20, 0); npc.aiStyle = -1; banner = npc.type; - bannerItem = mod.ItemType("NovaBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 75; @@ -81,7 +81,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } //DO DUST - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 114, frameHeight, mod.DustType("AstralOrange"), new Rectangle(78, 34, 36, 18), Vector2.Zero, 0.45f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 114, frameHeight, ModContent.DustType(), new Rectangle(78, 34, 36, 18), Vector2.Zero, 0.45f, true); if (d != null) { d.customData = 0.04f; @@ -189,7 +189,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs for (int i = 0; i < 45; i++) { - int dust = Dust.NewDust(npc.Center - off, size, size, mod.DustType("AstralEnemy"), Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-3f, 3f), 0, default, Main.rand.NextFloat(1f, 2f)); + int dust = Dust.NewDust(npc.Center - off, size, size, ModContent.DustType(), Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-3f, 3f), 0, default, Main.rand.NextFloat(1f, 2f)); Main.dust[dust].velocity *= 1.4f; } for (int i = 0; i < 15; i++) @@ -226,7 +226,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 3, 40); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 3, 40); //if dead do gores if (npc.life <= 0) @@ -259,19 +259,19 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StellarCannon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/SmallSightseer.cs b/NPCs/AstralBiomeNPCs/SmallSightseer.cs index 436ba9336e..3a40c22d46 100644 --- a/NPCs/AstralBiomeNPCs/SmallSightseer.cs +++ b/NPCs/AstralBiomeNPCs/SmallSightseer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class SmallSightseer : ModNPC { @@ -34,7 +34,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.value = Item.buyPrice(0, 0, 10, 0); npc.aiStyle = -1; banner = npc.type; - bannerItem = mod.ItemType("SmallSightseerBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 58; @@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } //DO DUST - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, mod.DustType("AstralOrange"), new Rectangle(16, 8, 6, 6), Vector2.Zero, 0.45f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 80, frameHeight, ModContent.DustType(), new Rectangle(16, 8, 6, 6), Vector2.Zero, 0.45f, true); if (d != null) { d.customData = 0.04f; @@ -89,7 +89,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 4, 22); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 4, 22); //if dead do gores if (npc.life <= 0) @@ -119,18 +119,18 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); } public override void NPCLoot() { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/StellarCulex.cs b/NPCs/AstralBiomeNPCs/StellarCulex.cs index c1a02c0254..ab6ba8af65 100644 --- a/NPCs/AstralBiomeNPCs/StellarCulex.cs +++ b/NPCs/AstralBiomeNPCs/StellarCulex.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class StellarCulex : ModNPC { @@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.buffImmune[31] = false; animationType = NPCID.GiantFlyingFox; banner = npc.type; - bannerItem = mod.ItemType("StellarCulexBanner"); + bannerItem = ModContent.ItemType(); if (CalamityWorld.downedAstrageldon) { npc.damage = 90; @@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs { //DO DUST int frame = npc.frame.Y / frameHeight; - Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 100, frameHeight, mod.DustType("AstralOrange"), new Rectangle(66, 10, (frame == 0 || frame == 3) ? 32 : 24, 16), Vector2.Zero, 0.45f, true); + Dust d = CalamityGlobalNPC.SpawnDustOnNPC(npc, 100, frameHeight, ModContent.DustType(), new Rectangle(66, 10, (frame == 0 || frame == 3) ? 32 : 24, 16), Vector2.Zero, 0.45f, true); if (d != null) { d.customData = 0.04f; @@ -76,7 +76,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs } } - CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : mod.DustType("AstralEnemy"), 1f, 4, 22); + CalamityGlobalNPC.DoHitDust(npc, hitDirection, (Main.rand.Next(0, Math.Max(0, npc.life)) == 0) ? 5 : ModContent.DustType(), 1f, 4, 22); //if dead do gores if (npc.life <= 0) @@ -105,18 +105,18 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } if (Main.expertMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/AstralBiomeNPCs/Twinkler.cs b/NPCs/AstralBiomeNPCs/Twinkler.cs index 0af7b706b3..60928d6989 100644 --- a/NPCs/AstralBiomeNPCs/Twinkler.cs +++ b/NPCs/AstralBiomeNPCs/Twinkler.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstralBiomeNPCs +namespace CalamityMod.NPCs { public class Twinkler : ModNPC { @@ -20,10 +20,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.height = 5; aiType = NPCID.LightningBug; animationType = NPCID.LightningBug; - npc.catchItem = (short)mod.ItemType("TwinklerItem"); + npc.catchItem = (short)ModContent.ItemType(); npc.friendly = true; // We have to add this and CanBeHitByItem/CanBeHitByProjectile because of reasons. //banner = npc.type; - //bannerItem = mod.ItemType("TwinklerBanner"); + //bannerItem = ModContent.ItemType(); } @@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs { for (int i = 0; i < 6; i++) { - int dust = Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("AstralOrange"), 2 * hitDirection, -2f); + int dust = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), 2 * hitDirection, -2f); if (Main.rand.NextBool(2)) { Main.dust[dust].noGravity = true; @@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs item.width = 26; item.height = 24; item.bait = 40; - item.makeNPC = (short)mod.NPCType("Twinkler"); + item.makeNPC = (short)ModContent.NPCType(); item.rare = 2; } } diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index ae6d883988..db235389ed 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { public class AstrumDeusBody : ModNPC { @@ -140,7 +140,7 @@ namespace CalamityMod.NPCs.AstrumDeus num942 *= num944; num943 *= num944; int num945 = expertMode ? 38 : 45; - int num946 = mod.ProjectileType("AstralShot2"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); @@ -167,11 +167,11 @@ namespace CalamityMod.NPCs.AstrumDeus public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("RainbowBoom") || ProjectileID.Sets.StardustDragon[projectile.type]) + if (projectile.type == ModContent.ProjectileType() || ProjectileID.Sets.StardustDragon[projectile.type]) { damage = (int)((double)damage * 0.1); } - else if (projectile.type == mod.ProjectileType("RainBolt") || projectile.type == mod.ProjectileType("AtlantisSpear2") || projectile.type == mod.ProjectileType("MalachiteBolt")) + else if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.2); } @@ -179,19 +179,19 @@ namespace CalamityMod.NPCs.AstrumDeus { damage = (int)((double)damage * 0.3); } - else if (projectile.type == mod.ProjectileType("SpikecragSpike")) + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.5); } if (projectile.penetrate == -1 && !projectile.minion) { - if (projectile.type == mod.ProjectileType("CosmicFire") || projectile.type == mod.ProjectileType("BigNuke")) + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) damage = (int)((double)damage * 0.3); else damage = (int)((double)damage * 0.2); } - else if (projectile.penetrate > 1 && projectile.type != mod.ProjectileType("BrinySpout")) + else if (projectile.penetrate > 1 && projectile.type != ModContent.ProjectileType()) { damage /= projectile.penetrate; } @@ -209,12 +209,12 @@ namespace CalamityMod.NPCs.AstrumDeus public override void HitEffect(int hitDirection, double damage) { - if (NPC.CountNPCS(mod.NPCType("AstrumDeusProbe3")) < 3 && CalamityWorld.revenge) + if (NPC.CountNPCS(ModContent.NPCType()) < 3 && CalamityWorld.revenge) { if (npc.life > 0 && Main.netMode != NetmodeID.MultiplayerClient && spawn == 0 && Main.rand.NextBool(25)) { spawn = 1; - int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), mod.NPCType("AstrumDeusProbe3"), 0, 0f, 0f, 0f, 0f, 255); + int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server && num660 < 200) { NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); @@ -242,10 +242,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } @@ -253,7 +253,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs index 8f888bc98f..0f161e2cef 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { public class AstrumDeusBodySpectral : ModNPC { @@ -184,7 +184,7 @@ namespace CalamityMod.NPCs.AstrumDeus num942 *= num944; num943 *= num944; int num945 = expertMode ? 38 : 45; - int num946 = mod.ProjectileType("AstralShot2"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); @@ -287,11 +287,11 @@ namespace CalamityMod.NPCs.AstrumDeus public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("RainbowBoom") || ProjectileID.Sets.StardustDragon[projectile.type]) + if (projectile.type == ModContent.ProjectileType() || ProjectileID.Sets.StardustDragon[projectile.type]) { damage = (int)((double)damage * 0.1); } - else if (projectile.type == mod.ProjectileType("RainBolt") || projectile.type == mod.ProjectileType("AtlantisSpear2") || projectile.type == mod.ProjectileType("MalachiteBolt")) + else if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.2); } @@ -299,19 +299,19 @@ namespace CalamityMod.NPCs.AstrumDeus { damage = (int)((double)damage * 0.3); } - else if (projectile.type == mod.ProjectileType("SpikecragSpike")) + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.5); } if (projectile.penetrate == -1 && !projectile.minion) { - if (projectile.type == mod.ProjectileType("CosmicFire") || projectile.type == mod.ProjectileType("BigNuke")) + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) damage = (int)((double)damage * 0.3); else damage = (int)((double)damage * 0.2); } - else if (projectile.penetrate > 1 && projectile.type != mod.ProjectileType("BrinySpout")) + else if (projectile.penetrate > 1 && projectile.type != ModContent.ProjectileType()) { damage /= projectile.penetrate; } @@ -329,12 +329,12 @@ namespace CalamityMod.NPCs.AstrumDeus public override void HitEffect(int hitDirection, double damage) { - if (NPC.CountNPCS(mod.NPCType("AstrumDeusProbe3")) < 6 && CalamityWorld.revenge) + if (NPC.CountNPCS(ModContent.NPCType()) < 6 && CalamityWorld.revenge) { if (npc.life > 0 && Main.netMode != NetmodeID.MultiplayerClient && spawn == 0 && Main.rand.NextBool(25)) { spawn = 1; - int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), mod.NPCType("AstrumDeusProbe3"), 0, 0f, 0f, 0f, 0f, 255); + int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server && num660 < 200) { NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); @@ -362,10 +362,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } @@ -373,7 +373,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 656c1e9485..44fb09c701 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { [AutoloadBossHead] public class AstrumDeusHead : ModNPC @@ -113,7 +113,7 @@ namespace CalamityMod.NPCs.AstrumDeus Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); for (int I = 0; I < 3; I++) { - int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 120) * 75)), (int)(npc.Center.Y + (Math.Cos(I * 120) * 75)), mod.NPCType("AstrumDeusProbe"), npc.whoAmI, 0, 0, 0, -1); + int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 120) * 75)), (int)(npc.Center.Y + (Math.Cos(I * 120) * 75)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); NPC Eye = Main.npc[FireEye]; Eye.ai[0] = I * 120; Eye.ai[3] = I * 120; @@ -128,7 +128,7 @@ namespace CalamityMod.NPCs.AstrumDeus Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); for (int I = 0; I < 5; I++) { - int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 72) * 150)), (int)(npc.Center.Y + (Math.Cos(I * 72) * 150)), mod.NPCType("AstrumDeusProbe2"), npc.whoAmI, 0, 0, 0, -1); + int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 72) * 150)), (int)(npc.Center.Y + (Math.Cos(I * 72) * 150)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); NPC Eye = Main.npc[FireEye]; Eye.ai[0] = I * 72; Eye.ai[3] = I * 72; @@ -146,7 +146,7 @@ namespace CalamityMod.NPCs.AstrumDeus Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); for (int I = 0; I < 3; I++) { - int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 120) * 75)), (int)(npc.Center.Y + (Math.Cos(I * 120) * 75)), mod.NPCType("AstrumDeusProbe"), npc.whoAmI, 0, 0, 0, -1); + int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 120) * 75)), (int)(npc.Center.Y + (Math.Cos(I * 120) * 75)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); NPC Eye = Main.npc[FireEye]; Eye.ai[0] = I * 120; Eye.ai[3] = I * 120; @@ -161,7 +161,7 @@ namespace CalamityMod.NPCs.AstrumDeus Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); for (int I = 0; I < 5; I++) { - int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 72) * 150)), (int)(npc.Center.Y + (Math.Cos(I * 72) * 150)), mod.NPCType("AstrumDeusProbe2"), npc.whoAmI, 0, 0, 0, -1); + int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 72) * 150)), (int)(npc.Center.Y + (Math.Cos(I * 72) * 150)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); NPC Eye = Main.npc[FireEye]; Eye.ai[0] = I * 72; Eye.ai[3] = I * 72; @@ -212,11 +212,11 @@ namespace CalamityMod.NPCs.AstrumDeus int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AstrumDeusBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AstrumDeusTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } if (num36 % 2 == 0) { @@ -561,11 +561,11 @@ namespace CalamityMod.NPCs.AstrumDeus public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("RainbowBoom") || ProjectileID.Sets.StardustDragon[projectile.type]) + if (projectile.type == ModContent.ProjectileType() || ProjectileID.Sets.StardustDragon[projectile.type]) { damage = (int)((double)damage * 0.1); } - else if (projectile.type == mod.ProjectileType("RainBolt") || projectile.type == mod.ProjectileType("AtlantisSpear2") || projectile.type == mod.ProjectileType("MalachiteBolt")) + else if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.2); } @@ -573,19 +573,19 @@ namespace CalamityMod.NPCs.AstrumDeus { damage = (int)((double)damage * 0.3); } - else if (projectile.type == mod.ProjectileType("SpikecragSpike")) + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.5); } if (projectile.penetrate == -1 && !projectile.minion) { - if (projectile.type == mod.ProjectileType("CosmicFire") || projectile.type == mod.ProjectileType("BigNuke")) + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) damage = (int)((double)damage * 0.3); else damage = (int)((double)damage * 0.2); } - else if (projectile.penetrate > 1 && projectile.type != mod.ProjectileType("BrinySpout")) + else if (projectile.penetrate > 1 && projectile.type != ModContent.ProjectileType()) { damage /= projectile.penetrate; } @@ -613,10 +613,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } @@ -629,7 +629,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 240, true); + player.AddBuff(ModContent.BuffType(), 240, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index b4c49c7b9a..968575ae05 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -6,9 +6,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { [AutoloadBossHead] public class AstrumDeusHeadSpectral : ModNPC @@ -73,7 +73,7 @@ namespace CalamityMod.NPCs.AstrumDeus music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus"); else music = MusicID.Boss3; - bossBag = mod.ItemType("AstrumDeusBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -97,14 +97,14 @@ namespace CalamityMod.NPCs.AstrumDeus public override void AI() { CalamityGlobalNPC.astrumDeusHeadMain = npc.whoAmI; - colorChange = NPC.AnyNPCs(mod.NPCType("AstrumDeusHead")); + colorChange = NPC.AnyNPCs(ModContent.NPCType()); int astrumDeusTotalHP = 0; double mainDeusHPRatio = (double)npc.life / (double)npc.lifeMax; if (colorChange) { for (int i = 0; i < 200; i++) { - if (Main.npc[i].type == mod.NPCType("AstrumDeusHead")) + if (Main.npc[i].type == ModContent.NPCType()) { astrumDeusTotalHP += Main.npc[i].life; if (deusHeadCount < 10) @@ -182,11 +182,11 @@ namespace CalamityMod.NPCs.AstrumDeus int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AstrumDeusBodySpectral"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AstrumDeusTailSpectral"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } if (num36 % 2 == 0) { @@ -454,11 +454,11 @@ namespace CalamityMod.NPCs.AstrumDeus public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("RainbowBoom") || ProjectileID.Sets.StardustDragon[projectile.type]) + if (projectile.type == ModContent.ProjectileType() || ProjectileID.Sets.StardustDragon[projectile.type]) { damage = (int)((double)damage * 0.1); } - else if (projectile.type == mod.ProjectileType("RainBolt") || projectile.type == mod.ProjectileType("AtlantisSpear2") || projectile.type == mod.ProjectileType("MalachiteBolt")) + else if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.2); } @@ -466,19 +466,19 @@ namespace CalamityMod.NPCs.AstrumDeus { damage = (int)((double)damage * 0.3); } - else if (projectile.type == mod.ProjectileType("SpikecragSpike")) + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.5); } if (projectile.penetrate == -1 && !projectile.minion) { - if (projectile.type == mod.ProjectileType("CosmicFire") || projectile.type == mod.ProjectileType("BigNuke")) + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) damage = (int)((double)damage * 0.3); else damage = (int)((double)damage * 0.2); } - else if (projectile.penetrate > 1 && projectile.type != mod.ProjectileType("BrinySpout")) + else if (projectile.penetrate > 1 && projectile.type != ModContent.ProjectileType()) { damage /= projectile.penetrate; } @@ -506,10 +506,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } @@ -517,15 +517,15 @@ namespace CalamityMod.NPCs.AstrumDeus public override void BossLoot(ref string name, ref int potionType) { - potionType = mod.ItemType("Stardust"); + potionType = ModContent.ItemType(); } public override bool SpecialNPCLoot() { int closestSegmentID = DropHelper.FindClosestWormSegment(npc, - mod.NPCType("AstrumDeusHeadSpectral"), - mod.NPCType("AstrumDeusBodySpectral"), - mod.NPCType("AstrumDeusTailSpectral")); + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType()); npc.position = Main.npc[closestSegmentID].position; return false; } @@ -535,9 +535,9 @@ namespace CalamityMod.NPCs.AstrumDeus DropHelper.DropBags(npc); DropHelper.DropItem(npc, ItemID.GreaterHealingPotion, 8, 14); - DropHelper.DropItemChance(npc, mod.ItemType("AstrumDeusTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeAstrumDeus"), !CalamityWorld.downedStarGod); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeAstralInfection"), !CalamityWorld.downedStarGod); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !CalamityWorld.downedStarGod); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !CalamityWorld.downedStarGod); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedStarGod, 4, 2, 1); // Drop a large spray of all 4 lunar fragments @@ -551,17 +551,17 @@ namespace CalamityMod.NPCs.AstrumDeus // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { - DropHelper.DropItemSpray(npc, mod.ItemType("Stardust"), 50, 80, 5); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 50, 80, 5); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("Starfall"), 5); - DropHelper.DropItemChance(npc, mod.ItemType("Quasar"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("HideofAstrumDeus"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("AstrumDeusMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } // Notify players that Astral Ore can be mined if Deus has never been killed yet @@ -582,7 +582,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 240, true); + player.AddBuff(ModContent.BuffType(), 240, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/AstrumDeus/AstrumDeusProbe.cs b/NPCs/AstrumDeus/AstrumDeusProbe.cs index 0826c41cb5..cb322739f3 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { public class AstrumDeusProbe : ModNPC { @@ -59,9 +59,9 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.localAI[0] = 0f; int num8 = expertMode ? 45 : 60; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, mod.ProjectileType("DeusMine"), num8, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, ModContent.ProjectileType(), num8, 0f, Main.myPlayer, 0f, 0f); } - bool anySmallDeusHeads = NPC.AnyNPCs(mod.NPCType("AstrumDeusHead")); + bool anySmallDeusHeads = NPC.AnyNPCs(ModContent.NPCType()); if (CalamityGlobalNPC.astrumDeusHeadMain < 0 || !Main.npc[CalamityGlobalNPC.astrumDeusHeadMain].active) { npc.active = false; @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.AstrumDeus return false; } Player player = Main.player[npc.target]; - int npcType = anySmallDeusHeads ? mod.NPCType("AstrumDeusHead") : mod.NPCType("AstrumDeusHeadSpectral"); + int npcType = anySmallDeusHeads ? ModContent.NPCType() : ModContent.NPCType(); NPC parent = Main.npc[NPC.FindFirstNPC(npcType)]; double deg = (double)npc.ai[1]; double rad = deg * (Math.PI / 180); @@ -92,7 +92,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.position.Y = npc.position.Y - (float)(npc.height / 2); for (int num621 = 0; num621 < 5; num621++) { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -102,10 +102,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } diff --git a/NPCs/AstrumDeus/AstrumDeusProbe2.cs b/NPCs/AstrumDeus/AstrumDeusProbe2.cs index 993918638c..f020ccc1b3 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe2.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe2.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { public class AstrumDeusProbe2 : ModNPC { @@ -60,9 +60,9 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.localAI[0] = 0f; int num8 = expertMode ? 45 : 60; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, mod.ProjectileType("DeusMine"), num8, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, ModContent.ProjectileType(), num8, 0f, Main.myPlayer, 0f, 0f); } - bool anySmallDeusHeads = NPC.AnyNPCs(mod.NPCType("AstrumDeusHead")); + bool anySmallDeusHeads = NPC.AnyNPCs(ModContent.NPCType()); if (CalamityGlobalNPC.astrumDeusHeadMain < 0 || !Main.npc[CalamityGlobalNPC.astrumDeusHeadMain].active) { npc.active = false; @@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.AstrumDeus return false; } Player player = Main.player[npc.target]; - int npcType = anySmallDeusHeads ? mod.NPCType("AstrumDeusHead") : mod.NPCType("AstrumDeusHeadSpectral"); + int npcType = anySmallDeusHeads ? ModContent.NPCType() : ModContent.NPCType(); NPC parent = Main.npc[NPC.FindFirstNPC(npcType)]; double deg = (double)npc.ai[1]; double rad = deg * (Math.PI / 180); @@ -93,7 +93,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.position.Y = npc.position.Y - (float)(npc.height / 2); for (int num621 = 0; num621 < 5; num621++) { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -103,10 +103,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } diff --git a/NPCs/AstrumDeus/AstrumDeusProbe3.cs b/NPCs/AstrumDeus/AstrumDeusProbe3.cs index a6d9227ad5..b433c41c19 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe3.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe3.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { public class AstrumDeusProbe3 : ModNPC { @@ -239,7 +239,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.position.Y = npc.position.Y - (float)(npc.height / 2); for (int num621 = 0; num621 < 5; num621++) { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -249,10 +249,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } for (int num625 = 0; num625 < 3; num625++) @@ -301,10 +301,10 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index 21a10340e4..87197c62a4 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { public class AstrumDeusTail : ModNPC { @@ -123,11 +123,11 @@ namespace CalamityMod.NPCs.AstrumDeus public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("RainbowBoom") || ProjectileID.Sets.StardustDragon[projectile.type]) + if (projectile.type == ModContent.ProjectileType() || ProjectileID.Sets.StardustDragon[projectile.type]) { damage = (int)((double)damage * 0.1); } - else if (projectile.type == mod.ProjectileType("RainBolt") || projectile.type == mod.ProjectileType("AtlantisSpear2") || projectile.type == mod.ProjectileType("MalachiteBolt")) + else if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.2); } @@ -135,19 +135,19 @@ namespace CalamityMod.NPCs.AstrumDeus { damage = (int)((double)damage * 0.3); } - else if (projectile.type == mod.ProjectileType("SpikecragSpike")) + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.5); } if (projectile.penetrate == -1 && !projectile.minion) { - if (projectile.type == mod.ProjectileType("CosmicFire") || projectile.type == mod.ProjectileType("BigNuke")) + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) damage = (int)((double)damage * 0.3); else damage = (int)((double)damage * 0.2); } - else if (projectile.penetrate > 1 && projectile.type != mod.ProjectileType("BrinySpout")) + else if (projectile.penetrate > 1 && projectile.type != ModContent.ProjectileType()) { damage /= projectile.penetrate; } @@ -175,10 +175,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } @@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs index 0b30024d40..e49ae06d36 100644 --- a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.AstrumDeus +namespace CalamityMod.NPCs { public class AstrumDeusTailSpectral : ModNPC { @@ -232,11 +232,11 @@ namespace CalamityMod.NPCs.AstrumDeus public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("RainbowBoom") || ProjectileID.Sets.StardustDragon[projectile.type]) + if (projectile.type == ModContent.ProjectileType() || ProjectileID.Sets.StardustDragon[projectile.type]) { damage = (int)((double)damage * 0.1); } - else if (projectile.type == mod.ProjectileType("RainBolt") || projectile.type == mod.ProjectileType("AtlantisSpear2") || projectile.type == mod.ProjectileType("MalachiteBolt")) + else if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.2); } @@ -244,19 +244,19 @@ namespace CalamityMod.NPCs.AstrumDeus { damage = (int)((double)damage * 0.3); } - else if (projectile.type == mod.ProjectileType("SpikecragSpike")) + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.5); } if (projectile.penetrate == -1 && !projectile.minion) { - if (projectile.type == mod.ProjectileType("CosmicFire") || projectile.type == mod.ProjectileType("BigNuke")) + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) damage = (int)((double)damage * 0.3); else damage = (int)((double)damage * 0.2); } - else if (projectile.penetrate > 1 && projectile.type != mod.ProjectileType("BrinySpout")) + else if (projectile.penetrate > 1 && projectile.type != ModContent.ProjectileType()) { damage /= projectile.penetrate; } @@ -284,10 +284,10 @@ namespace CalamityMod.NPCs.AstrumDeus } for (int num623 = 0; num623 < 10; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 3f); + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 2f); + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, ModContent.DustType(), 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } } @@ -305,7 +305,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/BrimstoneWaifu/Brimling.cs b/NPCs/BrimstoneWaifu/Brimling.cs index 88e3548523..3fd8724c35 100644 --- a/NPCs/BrimstoneWaifu/Brimling.cs +++ b/NPCs/BrimstoneWaifu/Brimling.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.BrimstoneWaifu +namespace CalamityMod.NPCs { public class Brimling : ModNPC { @@ -40,19 +40,19 @@ namespace CalamityMod.NPCs.BrimstoneWaifu npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.canGhostHeal = false; @@ -137,7 +137,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu num6 *= num8; num7 *= num8; int projectileDamage = Main.expertMode ? 28 : 35; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num6, num7, mod.ProjectileType("BrimstoneHellfireball"), projectileDamage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num6, num7, ModContent.ProjectileType(), projectileDamage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); } } if (vector251.Length() > 400f || !flag104) diff --git a/NPCs/BrimstoneWaifu/BrimstoneElemental.cs b/NPCs/BrimstoneWaifu/BrimstoneElemental.cs index 26e72af5a9..04b06380f9 100644 --- a/NPCs/BrimstoneWaifu/BrimstoneElemental.cs +++ b/NPCs/BrimstoneWaifu/BrimstoneElemental.cs @@ -7,9 +7,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.BrimstoneWaifu +namespace CalamityMod.NPCs { [AutoloadBossHead] public class BrimstoneElemental : ModNPC @@ -46,19 +46,19 @@ namespace CalamityMod.NPCs.BrimstoneWaifu npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; @@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeftAlone"); else music = MusicID.Boss4; - bossBag = mod.ItemType("BrimstoneWaifuBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -214,9 +214,9 @@ namespace CalamityMod.NPCs.BrimstoneWaifu npc.alpha += 2; if (npc.alpha >= 255) { - if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(mod.NPCType("Brimling")) < 2 && revenge) + if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(ModContent.NPCType()) < 2 && revenge) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Brimling"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } Main.PlaySound(SoundID.Item8, npc.Center); npc.alpha = 255; @@ -313,7 +313,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu for (int i = 0; i < numProj; i++) { offsetAngle = startAngle + deltaAngle * i; - Projectile.NewProjectile(vector93.X, vector93.Y, baseSpeed * (float)Math.Sin(offsetAngle), baseSpeed * (float)Math.Cos(offsetAngle), mod.ProjectileType("BrimstoneBarrage"), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(vector93.X, vector93.Y, baseSpeed * (float)Math.Sin(offsetAngle), baseSpeed * (float)Math.Cos(offsetAngle), ModContent.ProjectileType(), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 1f, 0f); } float relativeSpeedX = player.position.X + (float)player.width * 0.5f - shootFromVector.X; @@ -325,7 +325,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu shootFromVector.X += relativeSpeedX * 3f; shootFromVector.Y += relativeSpeedY * 3f; int projectileDamage = expertMode ? 28 : 35; - int projectileType = mod.ProjectileType("BrimstoneHellfireball"); + int projectileType = ModContent.ProjectileType(); int projectileShot = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, relativeSpeedX, relativeSpeedY, projectileType, projectileDamage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); Main.projectile[projectileShot].timeLeft = 240; } @@ -414,7 +414,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu num182 *= num183; int num184 = expertMode ? 25 : 30; - int num185 = mod.ProjectileType("BrimstoneHellblast"); + int num185 = ModContent.ProjectileType(); shootFromVector.X += num180; shootFromVector.Y += num182; @@ -444,8 +444,8 @@ namespace CalamityMod.NPCs.BrimstoneWaifu for (i = 0; i < 6; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; // Used to be 32 - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), mod.ProjectileType("BrimstoneBarrage"), num184 + (provy ? 30 : 0), 0f, Main.myPlayer, 1f, 0f); - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), mod.ProjectileType("BrimstoneBarrage"), num184 + (provy ? 30 : 0), 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184 + (provy ? 30 : 0), 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184 + (provy ? 30 : 0), 0f, Main.myPlayer, 1f, 0f); } } } @@ -472,7 +472,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } @@ -535,7 +535,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu // redo the rest of this drop code later if (Main.rand.NextBool(10)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrimstoneElementalTrophy")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.armageddon) { @@ -552,31 +552,31 @@ namespace CalamityMod.NPCs.BrimstoneWaifu { if (CalamityWorld.downedProvidence) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone"), Main.rand.Next(20, 31)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(20, 31)); } if (Main.rand.NextBool(10)) { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("RoseStone"), 1, true); + npc.DropItemInstanced(npc.position, npc.Size, ModContent.ItemType(), 1, true); } Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SoulofFright, Main.rand.Next(20, 41)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(4, 9)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(4, 9)); switch (Main.rand.Next(3)) { case 0: - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Abaddon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); break; case 1: - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Brimlance")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); break; case 2: - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeethingDischarge")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); break; } } DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedBrimstoneElemental, 4, 2, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeBrimstoneCrag"), true, !CalamityWorld.downedBrimstoneElemental); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeBrimstoneElemental"), true, !CalamityWorld.downedBrimstoneElemental); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedBrimstoneElemental); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedBrimstoneElemental); // if prime hasn't been killed and this is the first time killing brimmy, do the message string key = "Mods.CalamityMod.SteelSkullBossText"; diff --git a/NPCs/Bumblefuck/Bumblefuck.cs b/NPCs/Bumblefuck/Bumblefuck.cs index 0fe2eaafeb..02f4db11af 100644 --- a/NPCs/Bumblefuck/Bumblefuck.cs +++ b/NPCs/Bumblefuck/Bumblefuck.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Bumblefuck +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Bumblefuck : ModNPC @@ -36,15 +36,15 @@ namespace CalamityMod.NPCs.Bumblefuck } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("ExoFreeze")] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (calamityModMusic != null) @@ -56,7 +56,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.value = Item.buyPrice(0, 30, 0, 0); npc.HitSound = SoundID.NPCHit51; npc.DeathSound = SoundID.NPCDeath46; - bossBag = mod.ItemType("BumblebirbBag"); + bossBag = ModContent.ItemType(); } public override void AI() @@ -182,17 +182,17 @@ namespace CalamityMod.NPCs.Bumblefuck if (phase2) { Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 102); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)Main.rand.Next(-2, 3), -4f, mod.ProjectileType("RedLightningFeather"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)Main.rand.Next(-2, 3), -4f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } - else if (NPC.CountNPCS(mod.NPCType("Bumblefuck2")) < num1305) + else if (NPC.CountNPCS(ModContent.NPCType()) < num1305) { npc.ai[0] = 4f; Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 102); int featherAmt = phase2 ? 3 : 6; for (int num186 = 0; num186 < featherAmt; num186++) { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)Main.rand.Next(-4, 5), -3f, mod.ProjectileType("RedLightningFeather"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)Main.rand.Next(-4, 5), -3f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } } @@ -515,7 +515,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.ai[3] += 1f; if (npc.ai[3] == (float)num1325) - NPC.NewNPC(num1321 * 16 + 8, num1322 * 16, mod.NPCType("Bumblefuck2"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(num1321 * 16 + 8, num1322 * 16, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); else if (npc.ai[3] == (float)(num1325 * 2)) { npc.ai[0] = 0f; @@ -523,7 +523,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.ai[2] = 0f; npc.ai[3] = 0f; - if (NPC.CountNPCS(mod.NPCType("Bumblefuck2")) < num1305 && Main.rand.Next(5) != 0) + if (NPC.CountNPCS(ModContent.NPCType()) < num1305 && Main.rand.Next(5) != 0) npc.ai[0] = 4f; else if (Collision.SolidCollision(npc.position, npc.width, npc.height)) npc.ai[0] = 1f; @@ -589,19 +589,19 @@ namespace CalamityMod.NPCs.Bumblefuck { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("BumblebirbTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeBumblebirb"), true, !CalamityWorld.downedBumble); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedBumble); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedBumble, 5, 2, 1); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItemSpray(npc, mod.ItemType("EffulgentFeather"), 6, 11); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 6, 11); // Weapons - DropHelper.DropItemFromSet(npc, mod.ItemType("GildedProboscis"), mod.ItemType("GoldenEagle"), mod.ItemType("RougeSlash")); - DropHelper.DropItemChance(npc, mod.ItemType("Swordsplosion"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemFromSet(npc, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); } // Mark Bumblebirb as dead diff --git a/NPCs/Bumblefuck/Bumblefuck2.cs b/NPCs/Bumblefuck/Bumblefuck2.cs index 1a57cfaa15..3283ade507 100644 --- a/NPCs/Bumblefuck/Bumblefuck2.cs +++ b/NPCs/Bumblefuck/Bumblefuck2.cs @@ -1,10 +1,9 @@ -using CalamityMod.World; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Bumblefuck +namespace CalamityMod.NPCs { public class Bumblefuck2 : ModNPC { @@ -32,7 +31,7 @@ namespace CalamityMod.NPCs.Bumblefuck } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("ExoFreeze")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.lavaImmune = true; npc.noGravity = true; npc.canGhostHeal = false; diff --git a/NPCs/Calamitas/CalScreenShaderData.cs b/NPCs/Calamitas/CalScreenShaderData.cs index d4e665b055..c89ff7ea4d 100644 --- a/NPCs/Calamitas/CalScreenShaderData.cs +++ b/NPCs/Calamitas/CalScreenShaderData.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { public class CalScreenShaderData : ScreenShaderData { diff --git a/NPCs/Calamitas/CalSky.cs b/NPCs/Calamitas/CalSky.cs index 631732fe27..5c0e2ddf15 100644 --- a/NPCs/Calamitas/CalSky.cs +++ b/NPCs/Calamitas/CalSky.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { public class CalSky : CustomSky { diff --git a/NPCs/Calamitas/Calamitas.cs b/NPCs/Calamitas/Calamitas.cs index a38775ba06..d999960b8c 100644 --- a/NPCs/Calamitas/Calamitas.cs +++ b/NPCs/Calamitas/Calamitas.cs @@ -5,9 +5,9 @@ using System; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Calamitas : ModNPC @@ -46,19 +46,19 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.Calamitas { if ((double)npc.life <= (double)npc.lifeMax * 0.75 && Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, mod.NPCType("CalamitasRun3"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); string key = "Mods.CalamityMod.CalamitasBossText"; Color messageColor = Color.Orange; if (Main.netMode == NetmodeID.SinglePlayer) @@ -222,7 +222,7 @@ namespace CalamityMod.NPCs.Calamitas npc.localAI[1] = 0f; float num828 = CalamityWorld.bossRushActive ? 16f : (expertMode ? 13f : 10.5f); int num829 = expertMode ? 28 : 35; - int num830 = mod.ProjectileType("BrimstoneLaser"); + int num830 = ModContent.ProjectileType(); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); num827 = num828 / num827; num825 *= num827; @@ -296,7 +296,7 @@ namespace CalamityMod.NPCs.Calamitas npc.localAI[1] = 0f; float num837 = CalamityWorld.bossRushActive ? 14f : 10.5f; int num838 = expertMode ? 20 : 24; - int num839 = mod.ProjectileType("BrimstoneLaser"); + int num839 = ModContent.ProjectileType(); num836 = (float)Math.Sqrt((double)(num834 * num834 + num835 * num835)); num836 = num837 / num836; num834 *= num836; @@ -413,9 +413,9 @@ namespace CalamityMod.NPCs.Calamitas { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } - player.AddBuff(mod.BuffType("BrimstoneFlames"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/CalamitasRun.cs index 31d82ae56c..7ab6aa3d57 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/CalamitasRun.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { [AutoloadBossHead] public class CalamitasRun : ModNPC @@ -47,19 +47,19 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; @@ -292,7 +292,7 @@ namespace CalamityMod.NPCs.Calamitas npc.localAI[1] = 0f; float num867 = CalamityWorld.bossRushActive ? 9f : 6f; int num868 = expertMode ? 30 : 38; - int num869 = mod.ProjectileType("BrimstoneFire"); + int num869 = ModContent.ProjectileType(); vector86 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num864 = player.position.X + (float)(player.width / 2) - vector86.X; num865 = player.position.Y + (float)(player.height / 2) - vector86.Y; @@ -445,25 +445,25 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.rand.NextBool(10)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CataclysmTrophy")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.expertMode) { if (Main.rand.NextBool(10)) - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrimstoneFlamesprayer")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } else if (Main.rand.NextBool(12)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrimstoneFlamesprayer")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.expertMode) { if (Main.rand.NextBool(10)) - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrimstoneFlameblaster")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } else if (Main.rand.NextBool(12)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrimstoneFlameblaster")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } @@ -511,10 +511,10 @@ namespace CalamityMod.NPCs.Calamitas { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180); + player.AddBuff(ModContent.BuffType(), 180, true); } - player.AddBuff(mod.BuffType("BrimstoneFlames"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/CalamitasRun2.cs index 658421b5c6..254f8f56ec 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/CalamitasRun2.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { [AutoloadBossHead] public class CalamitasRun2 : ModNPC @@ -49,19 +49,19 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); @@ -293,7 +293,7 @@ namespace CalamityMod.NPCs.Calamitas npc.localAI[1] = 0f; float num867 = CalamityWorld.bossRushActive ? 18f : 12f; int num868 = expertMode ? 29 : 36; - int num869 = mod.ProjectileType("BrimstoneBall"); + int num869 = ModContent.ProjectileType(); vector86 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num864 = player.position.X + (float)(player.width / 2) - vector86.X; num865 = player.position.Y + (float)(player.height / 2) - vector86.Y; @@ -446,16 +446,16 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.rand.NextBool(10)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CatastropheTrophy")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.expertMode) { if (Main.rand.NextBool(10)) - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrushsawCrasher")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } else if (Main.rand.NextBool(15)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrushsawCrasher")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } @@ -503,10 +503,10 @@ namespace CalamityMod.NPCs.Calamitas { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180); + player.AddBuff(ModContent.BuffType(), 180, true); } - player.AddBuff(mod.BuffType("BrimstoneFlames"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 5c1f258abf..fec592b9ac 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -7,9 +7,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { [AutoloadBossHead] public class CalamitasRun3 : ModNPC @@ -53,19 +53,19 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; @@ -76,7 +76,7 @@ namespace CalamityMod.NPCs.Calamitas music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"); else music = MusicID.Boss2; - bossBag = mod.ItemType("CalamitasBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -120,7 +120,7 @@ namespace CalamityMod.NPCs.Calamitas Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); for (int I = 0; I < 5; I++) { - int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 72) * 150)), (int)(npc.Center.Y + (Math.Cos(I * 72) * 150)), mod.NPCType("SoulSeeker"), npc.whoAmI, 0, 0, 0, -1); + int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 72) * 150)), (int)(npc.Center.Y + (Math.Cos(I * 72) * 150)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); NPC Eye = Main.npc[FireEye]; Eye.ai[0] = I * 72; Eye.ai[3] = I * 72; @@ -151,8 +151,8 @@ namespace CalamityMod.NPCs.Calamitas bossLife = (float)npc.life; if (bossLife <= (float)npc.lifeMax * 0.1) { - NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, mod.NPCType("CalamitasRun"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, mod.NPCType("CalamitasRun2"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); string key = "Mods.CalamityMod.CalamitasBossText2"; Color messageColor = Color.Orange; @@ -162,9 +162,9 @@ namespace CalamityMod.NPCs.Calamitas NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); } else if (bossLife <= (float)npc.lifeMax * 0.4) - NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, mod.NPCType("CalamitasRun2"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); else - NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, mod.NPCType("CalamitasRun"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } } @@ -328,7 +328,7 @@ namespace CalamityMod.NPCs.Calamitas num828 += 5f; int num829 = expertMode ? 34 : 42; - int num830 = mod.ProjectileType("BrimstoneHellfireball"); + int num830 = ModContent.ProjectileType(); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); num827 = num828 / num827; num825 *= num827; @@ -411,7 +411,7 @@ namespace CalamityMod.NPCs.Calamitas npc.localAI[1] = 0f; float num837 = CalamityWorld.bossRushActive ? 15f : 11f; int num838 = expertMode ? 28 : 35; - int num839 = mod.ProjectileType("BrimstoneLaser"); + int num839 = ModContent.ProjectileType(); num836 = (float)Math.Sqrt((double)(num834 * num834 + num835 * num835)); num836 = num837 / num836; num834 *= num836; @@ -479,7 +479,7 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.rand.NextBool(10)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamitasTrophy")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (CalamityWorld.armageddon) { @@ -494,41 +494,41 @@ namespace CalamityMod.NPCs.Calamitas } else { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(4, 9)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamityDust"), Main.rand.Next(9, 15)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlightedLens"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(4, 9)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(9, 15)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); if (CalamityWorld.downedProvidence) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone"), Main.rand.Next(30, 41)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(30, 41)); } if (Main.rand.NextBool(10)) { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ChaosStone"), 1, true); + npc.DropItemInstanced(npc.position, npc.Size, ModContent.ItemType(), 1, true); } if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamitasInferno")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(7)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamitasMask")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheEyeofCalamitas")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlightedEyeStaff")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Animosity")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } DropHelper.DropItem(npc, ItemID.BrokenHeroSword, true); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeCalamitasClone"), !CalamityWorld.downedCalamitas); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !CalamityWorld.downedCalamitas); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedCalamitas, 4, 2, 1); // Abyss awakens after killing Calamitas OR Plantera @@ -608,9 +608,9 @@ namespace CalamityMod.NPCs.Calamitas { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } - player.AddBuff(mod.BuffType("BrimstoneFlames"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/Calamitas/LifeSeeker.cs b/NPCs/Calamitas/LifeSeeker.cs index 5654778547..8bfc8b50ae 100644 --- a/NPCs/Calamitas/LifeSeeker.cs +++ b/NPCs/Calamitas/LifeSeeker.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { public class LifeSeeker : ModNPC { @@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.Calamitas public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BrimstoneFlames"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/Calamitas/SoulSeeker.cs b/NPCs/Calamitas/SoulSeeker.cs index 0215d6b7e6..ebb101ef01 100644 --- a/NPCs/Calamitas/SoulSeeker.cs +++ b/NPCs/Calamitas/SoulSeeker.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Calamitas +namespace CalamityMod.NPCs { public class SoulSeeker : ModNPC { @@ -67,11 +67,11 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.netMode != NetmodeID.MultiplayerClient && Main.rand.NextBool(10)) { - if (NPC.CountNPCS(mod.NPCType("LifeSeeker")) < 10) + if (NPC.CountNPCS(ModContent.NPCType()) < 10) { int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 25)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 25)); - int num663 = mod.NPCType("LifeSeeker"); + int num663 = ModContent.NPCType(); int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); } for (int num621 = 0; num621 < 3; num621++) @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.Calamitas int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 235, 0f, 0f, 100, default, 2f); } int damage = expertMode ? 25 : 30; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, mod.ProjectileType("BrimstoneBarrage"), damage, 1f, npc.target); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, ModContent.ProjectileType(), damage, 1f, npc.target); } timer = 0; } @@ -90,7 +90,7 @@ namespace CalamityMod.NPCs.Calamitas return false; } Player player = Main.player[npc.target]; - NPC parent = Main.npc[NPC.FindFirstNPC(mod.NPCType("CalamitasRun3"))]; + NPC parent = Main.npc[NPC.FindFirstNPC(ModContent.NPCType())]; double deg = (double)npc.ai[1]; double rad = deg * (Math.PI / 180); double dist = 150; diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index a696dc7484..480d2c79a5 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -3,7 +3,7 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.NPCs { @@ -85,9 +85,9 @@ namespace CalamityMod.NPCs { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * velocity), - (float)(Math.Cos(offsetAngle) * velocity), mod.ProjectileType("AstralFlame"), laserDamage, 0f, Main.myPlayer, 0f, 0f); + (float)(Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), laserDamage, 0f, Main.myPlayer, 0f, 0f); Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * velocity), - (float)(-Math.Cos(offsetAngle) * velocity), mod.ProjectileType("AstralFlame"), laserDamage, 0f, Main.myPlayer, 0f, 0f); + (float)(-Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), laserDamage, 0f, Main.myPlayer, 0f, 0f); } } @@ -104,7 +104,7 @@ namespace CalamityMod.NPCs num183 = num179 / num183; num180 *= num183; num182 *= num183; - int num185 = mod.ProjectileType("AstralLaser"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 5; num186++) @@ -306,7 +306,7 @@ namespace CalamityMod.NPCs { for (int num623 = 0; num623 < 4; num623++) { - int num624 = Dust.NewDust(new Vector2(npc.position.X - 20f, npc.position.Y + (float)npc.height), npc.width + 20, 4, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.5f); + int num624 = Dust.NewDust(new Vector2(npc.position.X - 20f, npc.position.Y + (float)npc.height), npc.width + 20, 4, ModContent.DustType(), 0f, 0f, 100, default, 1.5f); Main.dust[num624].velocity *= 0.2f; } } @@ -365,10 +365,10 @@ namespace CalamityMod.NPCs { // Spawn slimes bool spawnFlag = revenge; - if (NPC.CountNPCS(mod.NPCType("AstrageldonSlime")) > 1) + if (NPC.CountNPCS(ModContent.NPCType()) > 1) spawnFlag = false; if (spawnFlag && Main.netMode != NetmodeID.MultiplayerClient) - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 25, mod.NPCType("AstrageldonSlime"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 25, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); // Reset localAI and find a teleport destination npc.localAI[1] = 0f; @@ -435,7 +435,7 @@ namespace CalamityMod.NPCs int num; for (int num245 = 0; num245 < 10; num245 = num + 1) { - int num244 = Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("AstralOrange"), npc.velocity.X, npc.velocity.Y, 255, default, 2f); + int num244 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), npc.velocity.X, npc.velocity.Y, 255, default, 2f); Main.dust[num244].noGravity = true; Main.dust[num244].velocity *= 0.5f; num = num245; @@ -451,10 +451,10 @@ namespace CalamityMod.NPCs { // Spawn slimes bool spawnFlag = revenge; - if (NPC.CountNPCS(mod.NPCType("AstrageldonSlime")) > 1) + if (NPC.CountNPCS(ModContent.NPCType()) > 1) spawnFlag = false; if (spawnFlag && Main.netMode != NetmodeID.MultiplayerClient) - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 25, mod.NPCType("AstrageldonSlime"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 25, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); // Become vulnerable npc.chaseable = true; @@ -478,7 +478,7 @@ namespace CalamityMod.NPCs int num; for (int num245 = 0; num245 < 10; num245 = num + 1) { - int num244 = Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("AstralOrange"), npc.velocity.X, npc.velocity.Y, 255, default, 2f); + int num244 = Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), npc.velocity.X, npc.velocity.Y, 255, default, 2f); Main.dust[num244].noGravity = true; Main.dust[num244].velocity *= 0.5f; num = num245; diff --git a/NPCs/CalamityBiomeNPCs/CultistAssassin.cs b/NPCs/CalamityBiomeNPCs/CultistAssassin.cs index 6351e543f4..53fc347138 100644 --- a/NPCs/CalamityBiomeNPCs/CultistAssassin.cs +++ b/NPCs/CalamityBiomeNPCs/CultistAssassin.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CalamityBiomeNPCs +namespace CalamityMod.NPCs { public class CultistAssassin : ModNPC { @@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.value = Item.buyPrice(0, 0, 50, 0); } banner = npc.type; - bannerItem = mod.ItemType("CultistAssassinBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } @@ -71,11 +71,11 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.downedProvidence && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/CalamityBiomeNPCs/DespairStone.cs b/NPCs/CalamityBiomeNPCs/DespairStone.cs index e4334c2797..e1e51ed4a6 100644 --- a/NPCs/CalamityBiomeNPCs/DespairStone.cs +++ b/NPCs/CalamityBiomeNPCs/DespairStone.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CalamityBiomeNPCs +namespace CalamityMod.NPCs { public class DespairStone : ModNPC { @@ -38,7 +38,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.value = Item.buyPrice(0, 0, 50, 0); } banner = npc.type; - bannerItem = mod.ItemType("DespairStoneBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -330,7 +330,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } @@ -343,11 +343,11 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.downedProvidence && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.hardMode && Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/CalamityBiomeNPCs/Scryllar.cs b/NPCs/CalamityBiomeNPCs/Scryllar.cs index 697524aaef..3515b3718d 100644 --- a/NPCs/CalamityBiomeNPCs/Scryllar.cs +++ b/NPCs/CalamityBiomeNPCs/Scryllar.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CalamityBiomeNPCs +namespace CalamityMod.NPCs { public class Scryllar : ModNPC { @@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.value = Item.buyPrice(0, 0, 50, 0); } banner = npc.type; - bannerItem = mod.ItemType("ScryllarBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -247,7 +247,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } @@ -260,11 +260,11 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.downedProvidence && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.hardMode && Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/CalamityBiomeNPCs/ScryllarRage.cs b/NPCs/CalamityBiomeNPCs/ScryllarRage.cs index 7812df0e11..91fba3315a 100644 --- a/NPCs/CalamityBiomeNPCs/ScryllarRage.cs +++ b/NPCs/CalamityBiomeNPCs/ScryllarRage.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CalamityBiomeNPCs +namespace CalamityMod.NPCs { public class ScryllarRage : ModNPC { @@ -36,8 +36,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.lifeMax = 2300; npc.value = Item.buyPrice(0, 0, 50, 0); } - banner = mod.NPCType("Scryllar"); - bannerItem = mod.ItemType("ScryllarBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -247,7 +247,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } @@ -260,11 +260,11 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.downedProvidence && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.hardMode && Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/CalamityBiomeNPCs/SoulSlurper.cs b/NPCs/CalamityBiomeNPCs/SoulSlurper.cs index 32386195ad..0c9639dce5 100644 --- a/NPCs/CalamityBiomeNPCs/SoulSlurper.cs +++ b/NPCs/CalamityBiomeNPCs/SoulSlurper.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CalamityBiomeNPCs +namespace CalamityMod.NPCs { public class SoulSlurper : ModNPC { @@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.value = Item.buyPrice(0, 0, 50, 0); } banner = npc.type; - bannerItem = mod.ItemType("SoulSlurperBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { num8 = 22; } - int num9 = mod.ProjectileType("BrimstoneLaser"); + int num9 = ModContent.ProjectileType(); Projectile.NewProjectile(vector.X, vector.Y, num4, num5, num9, num8 + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); } } @@ -216,7 +216,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } @@ -224,11 +224,11 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { if (CalamityWorld.downedProvidence && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.hardMode && Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index e86a38f59d..14549be070 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using Terraria; using Terraria.GameContent.Events; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.NPCs { @@ -123,7 +123,7 @@ namespace CalamityMod.NPCs bool phase2 = lifeRatio < 0.5f || CalamityWorld.death || CalamityWorld.bossRushActive; // Spawn crystal in phase 2 - if (phase2 && !NPC.AnyNPCs(mod.NPCType("KingSlimeJewel"))) + if (phase2 && !NPC.AnyNPCs(ModContent.NPCType())) { Vector2 vector = npc.Center + new Vector2(-40f, (float)(-(float)npc.height / 2)); for (int num621 = 0; num621 < 20; num621++) @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs } } Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 38); - NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("KingSlimeJewel")); + NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType()); } // Set up health value for spawning slimes @@ -2074,7 +2074,7 @@ namespace CalamityMod.NPCs num183 = num179 / num183; num180 += (float)Main.rand.Next(-120, 121); num180 *= num183; - Projectile.NewProjectile(value9.X, value9.Y, num180, -5f, mod.ProjectileType("BloodGeyser"), 12, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, num180, -5f, ModContent.ProjectileType(), 12, 0f, Main.myPlayer, 0f, 0f); } } @@ -4362,7 +4362,7 @@ namespace CalamityMod.NPCs if (phase3 || calamityGlobalNPC.newAI[2] > 0f) { damage += 4; - projectileType = mod.ProjectileType("DestroyerHomingLaser"); + projectileType = ModContent.ProjectileType(); } else if (phase2) { @@ -4386,7 +4386,7 @@ namespace CalamityMod.NPCs // Shoot projectile and set timeLeft if not a homing laser/metal scrap so lasers don't last for too long int proj = Projectile.NewProjectile(vector.X, vector.Y, num6, num7, projectileType, damage, 0f, Main.myPlayer, 0f, 0f); - if (projectileType != mod.ProjectileType("DestroyerHomingLaser") && projectileType != ProjectileID.SaucerScrap) + if (projectileType != ModContent.ProjectileType() && projectileType != ProjectileID.SaucerScrap) Main.projectile[proj].timeLeft = 300; npc.netUpdate = true; @@ -5268,7 +5268,7 @@ namespace CalamityMod.NPCs float num353 = 6f; int num354 = 30; - int num355 = mod.ProjectileType("ScavengerLaser"); + int num355 = ModContent.ProjectileType(); vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num349 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector34.X; @@ -5806,7 +5806,7 @@ namespace CalamityMod.NPCs float num446 = CalamityWorld.bossRushActive ? 9f : 6f; int num447 = 33; - int num448 = mod.ProjectileType("Shadowflamethrower"); + int num448 = ModContent.ProjectileType(); vector46 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num443 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector46.X; @@ -6087,7 +6087,7 @@ namespace CalamityMod.NPCs { float num430 = 16f; int num431 = 31; - int num432 = mod.ProjectileType("Shadowflame"); + int num432 = ModContent.ProjectileType(); float num429 = (float)Math.Sqrt((double)(num427 * num427 + num428 * num428)); num429 = num430 / num429; @@ -8292,7 +8292,7 @@ namespace CalamityMod.NPCs { offsetAngle = startAngle + deltaAngle * i; float ai0 = (float)Main.rand.Next(3); - Projectile.NewProjectile(vector93.X, vector93.Y, baseSpeed * (float)Math.Sin(offsetAngle), baseSpeed * (float)Math.Cos(offsetAngle), mod.ProjectileType("SporeGasPlantera"), damage, 0f, Main.myPlayer, ai0, 0f); + Projectile.NewProjectile(vector93.X, vector93.Y, baseSpeed * (float)Math.Sin(offsetAngle), baseSpeed * (float)Math.Cos(offsetAngle), ModContent.ProjectileType(), damage, 0f, Main.myPlayer, ai0, 0f); } calamityGlobalNPC.newAI[0] = 0f; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 573113dea9..61f26ee47f 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1,5 +1,4 @@ -using CalamityMod.Buffs.DoTDebuffs; -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs; using CalamityMod.CalPlayer; using CalamityMod.Utilities; using CalamityMod.World; @@ -10,7 +9,7 @@ using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.NPCs { @@ -300,16 +299,16 @@ namespace CalamityMod.NPCs } bool inAbyss = ((npc.position.Y / 16f > (Main.rockLayer - Main.maxTilesY * 0.05)) && ((double)(npc.position.Y / 16f) <= Main.maxTilesY - 250) && abyssPosX) || CalamityWorld.abyssTiles > 200; - bool hurtByAbyss = npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && inAbyss && !npc.buffImmune[mod.BuffType("CrushDepth")]; + bool hurtByAbyss = npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && inAbyss && !npc.buffImmune[ModContent.BuffType()]; if (hurtByAbyss) { - npc.AddBuff(mod.BuffType("CrushDepth"), 2); + npc.AddBuff(ModContent.BuffType(), 2); npc.DeathSound = null; npc.HitSound = null; } if (npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && CalamityWorld.sulphurTiles > 30 && - !npc.buffImmune[BuffID.Poisoned] && !npc.buffImmune[mod.BuffType("CrushDepth")]) + !npc.buffImmune[BuffID.Poisoned] && !npc.buffImmune[ModContent.BuffType()]) { if (npc.wet) { @@ -318,7 +317,7 @@ namespace CalamityMod.NPCs if (Main.raining) { - npc.AddBuff(mod.BuffType("Irradiated"), 2); + npc.AddBuff(ModContent.BuffType(), 2); } } @@ -333,7 +332,7 @@ namespace CalamityMod.NPCs for (int j = 0; j < 1000; j++) { if (Main.projectile[j].active && - (Main.projectile[j].type == mod.ProjectileType("Lionfish") || Main.projectile[j].type == mod.ProjectileType("SulphuricAcidCannon2")) && + (Main.projectile[j].type == ModContent.ProjectileType() || Main.projectile[j].type == ModContent.ProjectileType()) && Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI) { projectileCount++; @@ -342,7 +341,7 @@ namespace CalamityMod.NPCs for (int j = 0; j < 1000; j++) { if (Main.projectile[j].active && - (Main.projectile[j].type == mod.ProjectileType("ScourgeoftheSeasStealth")) && + (Main.projectile[j].type == ModContent.ProjectileType()) && Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI) { projectileCount += 6; @@ -371,7 +370,7 @@ namespace CalamityMod.NPCs for (int j = 0; j < 1000; j++) { if (Main.projectile[j].active && - (Main.projectile[j].type == mod.ProjectileType("Shellfish")) && + (Main.projectile[j].type == ModContent.ProjectileType()) && Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI && projectileCount < 5) { @@ -398,7 +397,7 @@ namespace CalamityMod.NPCs for (int j = 0; j < 1000; j++) { if (Main.projectile[j].active && - (Main.projectile[j].type == mod.ProjectileType("SnapClamProj")) && + (Main.projectile[j].type == ModContent.ProjectileType()) && Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI && projectileCount < 2) { @@ -519,10 +518,10 @@ namespace CalamityMod.NPCs if (npc.boss && CalamityWorld.revenge) { - if (npc.type != mod.NPCType("HiveMindP2") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("StormWeaverHeadNaked") && - npc.type != mod.NPCType("StormWeaverBodyNaked") && npc.type != mod.NPCType("StormWeaverTailNaked") && - npc.type != mod.NPCType("DevourerofGodsHeadS") && npc.type != mod.NPCType("DevourerofGodsBodyS") && - npc.type != mod.NPCType("DevourerofGodsTailS")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { if (Main.netMode != NetmodeID.Server) { @@ -542,9 +541,9 @@ namespace CalamityMod.NPCs { if (CalamityMod.enemyImmunityList.Contains(npc.type)) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; - npc.buffImmune[mod.BuffType("TimeSlow")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; } if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail || @@ -566,7 +565,7 @@ namespace CalamityMod.NPCs } } - npc.buffImmune[mod.BuffType("Enraged")] = false; + npc.buffImmune[ModContent.BuffType()] = false; BossValueChanges(npc); @@ -604,7 +603,7 @@ namespace CalamityMod.NPCs npc.buffImmune[k] = true; } - if (npc.type != mod.NPCType("DevourerofGodsHeadS") && npc.type != mod.NPCType("DevourerofGodsBodyS") && npc.type != mod.NPCType("DevourerofGodsTailS")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; @@ -1008,80 +1007,80 @@ namespace CalamityMod.NPCs } else if (npc.type == thorium.NPCType("TheGrandThunderBirdv2")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 2.3) : (int)(npc.lifeMax * 1.5); } else if (npc.type == thorium.NPCType("QueenJelly")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 1.9) : (int)(npc.lifeMax * 1.35); } else if (npc.type == thorium.NPCType("Viscount")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 1.65) : (int)(npc.lifeMax * 1.25); } else if (npc.type == thorium.NPCType("GraniteEnergyStorm")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 1.25) : (int)(npc.lifeMax * 1.1); } else if (npc.type == thorium.NPCType("TheBuriedWarrior") || npc.type == thorium.NPCType("TheBuriedWarrior1") || npc.type == thorium.NPCType("TheBuriedWarrior2")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 1.5) : (int)(npc.lifeMax * 1.2); } else if (npc.type == thorium.NPCType("ThePrimeScouter") || npc.type == thorium.NPCType("CryoCore") || npc.type == thorium.NPCType("BioCore") || npc.type == thorium.NPCType("PyroCore")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 1.75) : (int)(npc.lifeMax * 1.3); } else if (npc.type == thorium.NPCType("BoreanStrider") || npc.type == thorium.NPCType("BoreanStriderPopped")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 2.0) : (int)(npc.lifeMax * 1.4); } else if (npc.type == thorium.NPCType("FallenDeathBeholder") || npc.type == thorium.NPCType("FallenDeathBeholder2")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 2.5) : (int)(npc.lifeMax * 1.6); } else if (npc.type == thorium.NPCType("Lich") || npc.type == thorium.NPCType("LichHeadless")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 2.5) : (int)(npc.lifeMax * 1.6); } else if (npc.type == thorium.NPCType("Abyssion") || npc.type == thorium.NPCType("AbyssionCracked") || npc.type == thorium.NPCType("AbyssionReleased")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 2.3) : (int)(npc.lifeMax * 1.5); } else if (npc.type == thorium.NPCType("SlagFury") || npc.type == thorium.NPCType("Omnicide") || npc.type == thorium.NPCType("RealityBreaker") || npc.type == thorium.NPCType("Aquaius") || npc.type == thorium.NPCType("Aquaius2")) { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 1.75) : (int)(npc.lifeMax * 1.3); } @@ -1326,7 +1325,7 @@ namespace CalamityMod.NPCs { SetPatreonTownNPCName(npc); - if (npc.type == NPCID.TargetDummy || npc.type == mod.NPCType("SuperDummy")) + if (npc.type == NPCID.TargetDummy || npc.type == ModContent.NPCType()) { npc.chaseable = !CalamityPlayer.areThereAnyDamnBosses; npc.dontTakeDamage = CalamityPlayer.areThereAnyDamnBosses; @@ -1335,7 +1334,7 @@ namespace CalamityMod.NPCs if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail || npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) { - npc.buffImmune[mod.BuffType("Enraged")] = false; + npc.buffImmune[ModContent.BuffType()] = false; } if (npc.type == NPCID.Bee || npc.type == NPCID.BeeSmall || npc.type == NPCID.Hornet || npc.type == NPCID.HornetFatty || npc.type == NPCID.HornetHoney || @@ -1610,7 +1609,7 @@ namespace CalamityMod.NPCs break; case 2: - if (npc.type != NPCID.KingSlime && npc.type != NPCID.BlueSlime && npc.type != NPCID.SlimeSpiked && npc.type != mod.NPCType("KingSlimeJewel") && + if (npc.type != NPCID.KingSlime && npc.type != NPCID.BlueSlime && npc.type != NPCID.SlimeSpiked && npc.type != ModContent.NPCType() && npc.type != NPCID.YellowSlime && npc.type != NPCID.PurpleSlime && npc.type != NPCID.GreenSlime && npc.type != NPCID.RedSlime && npc.type != NPCID.IceSlime && npc.type != NPCID.UmbrellaSlime && npc.type != NPCID.RainbowSlime && npc.type != NPCID.Pinky) { @@ -1650,8 +1649,8 @@ namespace CalamityMod.NPCs break; case 6: - if (npc.type != mod.NPCType("ProfanedGuardianBoss") && npc.type != mod.NPCType("ProfanedGuardianBoss2") && - npc.type != mod.NPCType("ProfanedGuardianBoss3")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1670,7 +1669,7 @@ namespace CalamityMod.NPCs break; case 8: - if (npc.type != mod.NPCType("Astrageldon") && npc.type != mod.NPCType("AstrageldonSlime")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1698,7 +1697,7 @@ namespace CalamityMod.NPCs break; case 11: - if (npc.type != mod.NPCType("Bumblefuck") && npc.type != mod.NPCType("Bumblefuck2") && + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != NPCID.Spazmatism && npc.type != NPCID.Retinazer) { npc.active = false; @@ -1719,9 +1718,9 @@ namespace CalamityMod.NPCs break; case 13: - if (npc.type != mod.NPCType("HiveMind") && npc.type != mod.NPCType("HiveMindP2") && - npc.type != mod.NPCType("DarkHeart") && npc.type != mod.NPCType("HiveBlob") && - npc.type != mod.NPCType("DankCreeper") && npc.type != mod.NPCType("HiveBlob2")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1739,10 +1738,10 @@ namespace CalamityMod.NPCs break; case 15: - if (npc.type != mod.NPCType("StormWeaverHead") && npc.type != mod.NPCType("StormWeaverBody") && - npc.type != mod.NPCType("StormWeaverTail") && npc.type != mod.NPCType("StormWeaverHeadNaked") && - npc.type != mod.NPCType("StormWeaverBodyNaked") && npc.type != mod.NPCType("StormWeaverTailNaked") && - npc.type != mod.NPCType("StasisProbe") && npc.type != mod.NPCType("StasisProbeNaked")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1751,11 +1750,11 @@ namespace CalamityMod.NPCs break; case 16: - if (npc.type != mod.NPCType("AquaticScourgeHead") && npc.type != mod.NPCType("AquaticScourgeBody") && - npc.type != mod.NPCType("AquaticScourgeBodyAlt") && npc.type != mod.NPCType("AquaticScourgeTail") && - npc.type != mod.NPCType("AquaticParasite") && npc.type != mod.NPCType("AquaticUrchin") && - npc.type != mod.NPCType("AquaticSeekerHead") && npc.type != mod.NPCType("AquaticSeekerBody") && - npc.type != mod.NPCType("AquaticSeekerTail")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1764,11 +1763,11 @@ namespace CalamityMod.NPCs break; case 17: - if (npc.type != mod.NPCType("DesertScourgeHead") && npc.type != mod.NPCType("DesertScourgeBody") && - npc.type != mod.NPCType("DesertScourgeTail") && npc.type != mod.NPCType("DesertScourgeHeadSmall") && - npc.type != mod.NPCType("DesertScourgeBodySmall") && npc.type != mod.NPCType("DesertScourgeTailSmall") && - npc.type != mod.NPCType("DriedSeekerHead") && npc.type != mod.NPCType("DriedSeekerBody") && - npc.type != mod.NPCType("DriedSeekerTail")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1789,7 +1788,7 @@ namespace CalamityMod.NPCs break; case 19: - if (npc.type != mod.NPCType("CrabulonIdle") && npc.type != mod.NPCType("CrabShroom")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1808,8 +1807,8 @@ namespace CalamityMod.NPCs break; case 21: - if (npc.type != mod.NPCType("CeaselessVoid") && npc.type != mod.NPCType("DarkEnergy") && - npc.type != mod.NPCType("DarkEnergy2") && npc.type != mod.NPCType("DarkEnergy3")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1818,11 +1817,11 @@ namespace CalamityMod.NPCs break; case 22: - if (npc.type != mod.NPCType("PerforatorHive") && npc.type != mod.NPCType("PerforatorHeadLarge") && - npc.type != mod.NPCType("PerforatorBodyLarge") && npc.type != mod.NPCType("PerforatorTailLarge") && - npc.type != mod.NPCType("PerforatorHeadMedium") && npc.type != mod.NPCType("PerforatorBodyMedium") && - npc.type != mod.NPCType("PerforatorTailMedium") && npc.type != mod.NPCType("PerforatorHeadSmall") && - npc.type != mod.NPCType("PerforatorBodySmall") && npc.type != mod.NPCType("PerforatorTailSmall")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1831,9 +1830,9 @@ namespace CalamityMod.NPCs break; case 23: - if (npc.type != mod.NPCType("Cryogen") && npc.type != mod.NPCType("CryogenIce") && - npc.type != mod.NPCType("IceMass") && npc.type != mod.NPCType("Cryocore") && - npc.type != mod.NPCType("Cryocore2")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1842,7 +1841,7 @@ namespace CalamityMod.NPCs break; case 24: - if (npc.type != mod.NPCType("BrimstoneElemental") && npc.type != mod.NPCType("Brimling")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1851,8 +1850,8 @@ namespace CalamityMod.NPCs break; case 25: - if (npc.type != mod.NPCType("CosmicWraith") && npc.type != mod.NPCType("SignusBomb") && - npc.type != mod.NPCType("CosmicLantern")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1861,11 +1860,11 @@ namespace CalamityMod.NPCs break; case 26: - if (npc.type != mod.NPCType("ScavengerBody") && npc.type != mod.NPCType("ScavengerHead") && - npc.type != mod.NPCType("ScavengerClawLeft") && npc.type != mod.NPCType("ScavengerClawRight") && - npc.type != mod.NPCType("ScavengerLegLeft") && npc.type != mod.NPCType("ScavengerLegRight") && - npc.type != mod.NPCType("ScavengerHead2") && npc.type != mod.NPCType("RockPillar") && - npc.type != mod.NPCType("FlamePillar")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1894,11 +1893,11 @@ namespace CalamityMod.NPCs break; case 29: - if (npc.type != mod.NPCType("AstrumDeusHead") && npc.type != mod.NPCType("AstrumDeusBody") && - npc.type != mod.NPCType("AstrumDeusTail") && npc.type != mod.NPCType("AstrumDeusHeadSpectral") && - npc.type != mod.NPCType("AstrumDeusBodySpectral") && npc.type != mod.NPCType("AstrumDeusTailSpectral") && - npc.type != mod.NPCType("AstrumDeusProbe") && npc.type != mod.NPCType("AstrumDeusProbe2") && - npc.type != mod.NPCType("AstrumDeusProbe3")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1907,8 +1906,8 @@ namespace CalamityMod.NPCs break; case 30: - if (npc.type != mod.NPCType("Polterghast") && npc.type != mod.NPCType("PhantomFuckYou") && - npc.type != mod.NPCType("PolterghastHook") && npc.type != mod.NPCType("PolterPhantom")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1917,9 +1916,9 @@ namespace CalamityMod.NPCs break; case 31: - if (npc.type != mod.NPCType("PlaguebringerGoliath") && npc.type != mod.NPCType("PlagueBeeG") && - npc.type != mod.NPCType("PlagueBeeLargeG") && npc.type != mod.NPCType("PlagueHomingMissile") && - npc.type != mod.NPCType("PlagueMine") && npc.type != mod.NPCType("PlaguebringerShade")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1928,9 +1927,9 @@ namespace CalamityMod.NPCs break; case 32: - if (npc.type != mod.NPCType("Calamitas") && npc.type != mod.NPCType("CalamitasRun") && - npc.type != mod.NPCType("CalamitasRun2") && npc.type != mod.NPCType("CalamitasRun3") && - npc.type != mod.NPCType("LifeSeeker") && npc.type != mod.NPCType("SoulSeeker")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1939,9 +1938,9 @@ namespace CalamityMod.NPCs break; case 33: - if (npc.type != mod.NPCType("Siren") && npc.type != mod.NPCType("Leviathan") && - npc.type != mod.NPCType("AquaticAberration") && npc.type != mod.NPCType("Parasea") && - npc.type != mod.NPCType("SirenClone") && npc.type != mod.NPCType("SirenIce")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1950,11 +1949,11 @@ namespace CalamityMod.NPCs break; case 34: - if (npc.type != mod.NPCType("SlimeGod") && npc.type != mod.NPCType("SlimeGodRun") && - npc.type != mod.NPCType("SlimeGodCore") && npc.type != mod.NPCType("SlimeGodSplit") && - npc.type != mod.NPCType("SlimeGodRunSplit") && npc.type != mod.NPCType("SlimeSpawnCorrupt") && - npc.type != mod.NPCType("SlimeSpawnCorrupt2") && npc.type != mod.NPCType("SlimeSpawnCrimson") && - npc.type != mod.NPCType("SlimeSpawnCrimson2")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1963,8 +1962,8 @@ namespace CalamityMod.NPCs break; case 35: - if (npc.type != mod.NPCType("Providence") && npc.type != mod.NPCType("ProvSpawnDefense") && - npc.type != mod.NPCType("ProvSpawnOffense") && npc.type != mod.NPCType("ProvSpawnHealer")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1973,11 +1972,11 @@ namespace CalamityMod.NPCs break; case 36: - if (npc.type != mod.NPCType("SupremeCalamitas") && npc.type != mod.NPCType("SCalWormBody") && - npc.type != mod.NPCType("SCalWormBodyWeak") && npc.type != mod.NPCType("SCalWormHead") && - npc.type != mod.NPCType("SCalWormTail") && npc.type != mod.NPCType("SoulSeekerSupreme") && - npc.type != mod.NPCType("SCalWormHeart") && npc.type != mod.NPCType("SupremeCataclysm") && - npc.type != mod.NPCType("SupremeCatastrophe")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1986,8 +1985,8 @@ namespace CalamityMod.NPCs break; case 37: - if (npc.type != mod.NPCType("Yharon") && npc.type != mod.NPCType("DetonatingFlare") && - npc.type != mod.NPCType("DetonatingFlare2")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -1996,8 +1995,8 @@ namespace CalamityMod.NPCs break; case 38: - if (npc.type != mod.NPCType("DevourerofGodsHeadS") && npc.type != mod.NPCType("DevourerofGodsBodyS") && - npc.type != mod.NPCType("DevourerofGodsTailS")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType()) { npc.active = false; npc.netUpdate = true; @@ -2014,10 +2013,10 @@ namespace CalamityMod.NPCs if (!CalamityWorld.spawnedHardBoss) { if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer || npc.type == NPCID.SkeletronPrime || - npc.type == NPCID.Plantera || npc.type == mod.NPCType("Cryogen") || npc.type == mod.NPCType("AquaticScourgeHead") || - npc.type == mod.NPCType("BrimstoneElemental") || npc.type == mod.NPCType("Astrageldon") || npc.type == mod.NPCType("AstrumDeusHeadSpectral") || - npc.type == mod.NPCType("Calamitas") || npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("PlaguebringerGoliath") || - npc.type == mod.NPCType("ScavengerBody") || npc.type == NPCID.DukeFishron || npc.type == NPCID.CultistBoss || npc.type == NPCID.Golem) + npc.type == NPCID.Plantera || npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || + npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || + npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || + npc.type == ModContent.NPCType() || npc.type == NPCID.DukeFishron || npc.type == NPCID.CultistBoss || npc.type == NPCID.Golem) { CalamityWorld.spawnedHardBoss = true; CalamityMod.UpdateServerBoolean(); @@ -2076,20 +2075,20 @@ namespace CalamityMod.NPCs { if (npc.type == NPCID.Demon || npc.type == NPCID.VoodooDemon || npc.type == NPCID.RedDevil) { - target.AddBuff(mod.BuffType("PopoNoseless"), 36000); + target.AddBuff(ModContent.BuffType(), 36000); } } switch (npc.type) { case NPCID.Golem: - target.AddBuff(mod.BuffType("ArmorCrunch"), 300); + target.AddBuff(ModContent.BuffType(), 300); break; case NPCID.GolemHead: case NPCID.GolemFistRight: case NPCID.GolemFistLeft: - target.AddBuff(mod.BuffType("ArmorCrunch"), 180); + target.AddBuff(ModContent.BuffType(), 180); break; default: @@ -2109,15 +2108,15 @@ namespace CalamityMod.NPCs npc.type == thorium.NPCType("Omnicide") || npc.type == thorium.NPCType("RealityBreaker") || npc.type == thorium.NPCType("Aquaius") || npc.type == thorium.NPCType("Aquaius2")) { - target.AddBuff(mod.BuffType("MarkedforDeath"), 180); + target.AddBuff(ModContent.BuffType(), 180); } else if (npc.type == thorium.NPCType("ViscountBaby") || npc.type == thorium.NPCType("EnemyBeholder") || npc.type == thorium.NPCType("AbyssalSpawn") || npc.type == thorium.NPCType("Viscount") || npc.type == thorium.NPCType("FallenDeathBeholder") || npc.type == thorium.NPCType("FallenDeathBeholder2") || npc.type == thorium.NPCType("Lich") || npc.type == thorium.NPCType("LichHeadless") || npc.type == thorium.NPCType("Abyssion") || npc.type == thorium.NPCType("AbyssionCracked") || npc.type == thorium.NPCType("AbyssionReleased")) { - target.AddBuff(mod.BuffType("MarkedforDeath"), 180); - target.AddBuff(mod.BuffType("Horror"), 180); + target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } @@ -2134,7 +2133,7 @@ namespace CalamityMod.NPCs case NPCID.FaceMonster: case NPCID.BloodCrawler: case NPCID.BloodCrawlerWall: - target.AddBuff(mod.BuffType("Horror"), 60); + target.AddBuff(ModContent.BuffType(), 60); break; case NPCID.DevourerHead: @@ -2164,7 +2163,7 @@ namespace CalamityMod.NPCs case NPCID.CrimsonGoldfish: case NPCID.CrimsonPenguin: case NPCID.Drippler: - target.AddBuff(mod.BuffType("Horror"), 120); + target.AddBuff(ModContent.BuffType(), 120); break; case NPCID.EyeofCthulhu: @@ -2192,26 +2191,26 @@ namespace CalamityMod.NPCs case NPCID.Medusa: case NPCID.SandsharkCorrupt: case NPCID.SandsharkCrimson: - target.AddBuff(mod.BuffType("Horror"), 180); + target.AddBuff(ModContent.BuffType(), 180); break; case NPCID.MourningWood: case NPCID.Pumpking: - target.AddBuff(mod.BuffType("Horror"), 240); + target.AddBuff(ModContent.BuffType(), 240); break; case NPCID.WallofFlesh: case NPCID.Krampus: - target.AddBuff(mod.BuffType("Horror"), 300); + target.AddBuff(ModContent.BuffType(), 300); break; case NPCID.DungeonGuardian: - target.AddBuff(mod.BuffType("Horror"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); break; case NPCID.Creeper: - target.AddBuff(mod.BuffType("Horror"), 60); - target.AddBuff(mod.BuffType("MarkedforDeath"), 120); + target.AddBuff(ModContent.BuffType(), 60); + target.AddBuff(ModContent.BuffType(), 120); break; case NPCID.CursedSkull: @@ -2220,48 +2219,48 @@ namespace CalamityMod.NPCs case NPCID.TheHungryII: case NPCID.PumpkingBlade: case NPCID.BloodZombie: - target.AddBuff(mod.BuffType("Horror"), 120); - target.AddBuff(mod.BuffType("MarkedforDeath"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); break; case NPCID.DarkMummy: - target.AddBuff(mod.BuffType("Horror"), 180); - target.AddBuff(mod.BuffType("MarkedforDeath"), 120); + target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 120); break; case NPCID.EaterofWorldsHead: case NPCID.GiantCursedSkull: case NPCID.Butcher: case NPCID.Psycho: - target.AddBuff(mod.BuffType("Horror"), 180); - target.AddBuff(mod.BuffType("MarkedforDeath"), 180); + target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 180); break; case NPCID.Wraith: case NPCID.VampireBat: case NPCID.Vampire: case NPCID.Reaper: - target.AddBuff(mod.BuffType("Horror"), 240); - target.AddBuff(mod.BuffType("MarkedforDeath"), 180); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 180); break; case NPCID.AncientCultistSquidhead: - target.AddBuff(mod.BuffType("Horror"), 240); - target.AddBuff(mod.BuffType("MarkedforDeath"), 240); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); break; case NPCID.DungeonSpirit: - target.AddBuff(mod.BuffType("Horror"), 300); - target.AddBuff(mod.BuffType("MarkedforDeath"), 180); + target.AddBuff(ModContent.BuffType(), 300); + target.AddBuff(ModContent.BuffType(), 180); break; case NPCID.AncientDoom: - target.AddBuff(mod.BuffType("Horror"), 300); - target.AddBuff(mod.BuffType("MarkedforDeath"), 300); + target.AddBuff(ModContent.BuffType(), 300); + target.AddBuff(ModContent.BuffType(), 300); break; case NPCID.Snatcher: - target.AddBuff(mod.BuffType("MarkedforDeath"), 60); + target.AddBuff(ModContent.BuffType(), 60); break; case NPCID.BurningSphere: @@ -2269,7 +2268,7 @@ namespace CalamityMod.NPCs case NPCID.Mummy: case NPCID.EnchantedSword: case NPCID.Werewolf: - target.AddBuff(mod.BuffType("MarkedforDeath"), 120); + target.AddBuff(ModContent.BuffType(), 120); break; case NPCID.Spazmatism: @@ -2287,16 +2286,16 @@ namespace CalamityMod.NPCs case NPCID.Sharkron2: case NPCID.ShadowFlameApparition: case NPCID.MartianDrone: - target.AddBuff(mod.BuffType("MarkedforDeath"), 180); + target.AddBuff(ModContent.BuffType(), 180); break; case NPCID.Mimic: case NPCID.AngryTrapper: - target.AddBuff(mod.BuffType("MarkedforDeath"), 240); + target.AddBuff(ModContent.BuffType(), 240); break; case NPCID.DetonatingBubble: - target.AddBuff(mod.BuffType("MarkedforDeath"), 360); + target.AddBuff(ModContent.BuffType(), 360); break; default: @@ -2311,11 +2310,11 @@ namespace CalamityMod.NPCs { if (npc.type == NPCID.TheDestroyerBody) { - if (((projectile.penetrate == -1 || projectile.penetrate > 1) && !projectile.minion) || projectile.type == mod.ProjectileType("KelvinCatalystStar")) + if (((projectile.penetrate == -1 || projectile.penetrate > 1) && !projectile.minion) || projectile.type == ModContent.ProjectileType()) { damage = (int)(damage * 0.5); } - else if (projectile.type == mod.ProjectileType("FossilShardThrown") || projectile.type == mod.ProjectileType("FrostShardFriendly")) + else if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) { damage = (int)(damage * 0.75); } @@ -2418,15 +2417,15 @@ namespace CalamityMod.NPCs switch (Main.rand.Next(3)) { case 0: - Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorAtkBuff"), 120); + Main.player[projectile.owner].AddBuff(ModContent.BuffType(), 120); break; case 1: - Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorRegenBuff"), 120); + Main.player[projectile.owner].AddBuff(ModContent.BuffType(), 120); break; case 2: - Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorDefBuff"), 120); + Main.player[projectile.owner].AddBuff(ModContent.BuffType(), 120); break; default: @@ -2457,10 +2456,10 @@ namespace CalamityMod.NPCs public override bool CheckDead(NPC npc) { if (npc.lifeMax > 1000 && npc.type != 288 && - npc.type != mod.NPCType("PhantomSpirit") && - npc.type != mod.NPCType("PhantomSpiritS") && - npc.type != mod.NPCType("PhantomSpiritM") && - npc.type != mod.NPCType("PhantomSpiritL") && + npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.value > 0f && npc.HasPlayerTarget && NPC.downedMoonlord && Main.player[npc.target].ZoneDungeon) @@ -2473,19 +2472,19 @@ namespace CalamityMod.NPCs switch (randomType) { case 0: - randomType = mod.NPCType("PhantomSpirit"); + randomType = ModContent.NPCType(); break; case 1: - randomType = mod.NPCType("PhantomSpiritS"); + randomType = ModContent.NPCType(); break; case 2: - randomType = mod.NPCType("PhantomSpiritM"); + randomType = ModContent.NPCType(); break; case 3: - randomType = mod.NPCType("PhantomSpiritL"); + randomType = ModContent.NPCType(); break; default: @@ -2582,7 +2581,7 @@ namespace CalamityMod.NPCs break; } - if (npc.type == mod.NPCType("SandTortoise") || npc.type == mod.NPCType("PlaguedTortoise")) + if (npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType()) { if (npc.life <= npc.lifeMax * 0.25) { @@ -2740,7 +2739,7 @@ namespace CalamityMod.NPCs { if (Main.rand.Next(5) < 4) { - int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, mod.DustType("BrimstoneFlame"), npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 3.5f); + int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, ModContent.DustType(), npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 3.5f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 1.8f; Main.dust[dust].velocity.Y -= 0.5f; @@ -2756,7 +2755,7 @@ namespace CalamityMod.NPCs { if (Main.rand.Next(5) < 4) { - int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, mod.DustType("BrimstoneFlame"), npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 3.5f); + int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, ModContent.DustType(), npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 3.5f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 1.8f; Main.dust[dust].velocity.Y -= 0.25f; @@ -2787,7 +2786,7 @@ namespace CalamityMod.NPCs { if (Main.rand.Next(5) < 4) { - int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, mod.DustType("HolyFlame"), npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 3.5f); + int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, ModContent.DustType(), npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 3.5f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 1.8f; Main.dust[dust].velocity.Y -= 0.5f; @@ -2835,7 +2834,7 @@ namespace CalamityMod.NPCs { if (Main.rand.Next(5) < 3) { - int dustType = Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"); + int dustType = Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(); int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, dustType, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 0.6f); Main.dust[dust].noGravity = true; Main.dust[dust].velocity *= 1.2f; @@ -3060,8 +3059,8 @@ namespace CalamityMod.NPCs #region Get Chat public override void GetChat(NPC npc, ref string chat) { - int fapsol = NPC.FindFirstNPC(mod.NPCType("FAP")); - int permadong = NPC.FindFirstNPC(mod.NPCType("DILF")); + int fapsol = NPC.FindFirstNPC(ModContent.NPCType()); + int permadong = NPC.FindFirstNPC(ModContent.NPCType()); switch (npc.type) { @@ -3169,7 +3168,7 @@ namespace CalamityMod.NPCs break; case NPCID.GoblinTinkerer: - int banditIndex = NPC.FindFirstNPC(mod.NPCType("Bandit")); + int banditIndex = NPC.FindFirstNPC(ModContent.NPCType()); if (Main.rand.NextBool(10) && banditIndex != -1 && Main.LocalPlayer.Calamity().reforges >= 10) { var thief = Main.npc[banditIndex]; @@ -3408,7 +3407,7 @@ namespace CalamityMod.NPCs { if (type == NPCID.Merchant) { - SetShopItem(ref shop, ref nextSlot, ItemID.Flare, Main.LocalPlayer.HasItem(mod.ItemType("FirestormCannon")) || Main.LocalPlayer.HasItem(mod.ItemType("SpectralstormCannon"))); + SetShopItem(ref shop, ref nextSlot, ItemID.Flare, Main.LocalPlayer.HasItem(ModContent.ItemType()) || Main.LocalPlayer.HasItem(ModContent.ItemType())); SetShopItem(ref shop, ref nextSlot, ItemID.ApprenticeBait, NPC.downedBoss1); SetShopItem(ref shop, ref nextSlot, ItemID.JourneymanBait, NPC.downedBoss2); SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.Vilethorn : ItemID.TheRottedFork, NPC.downedBoss2); @@ -3417,7 +3416,7 @@ namespace CalamityMod.NPCs if (type == NPCID.ArmsDealer) { - SetShopItem(ref shop, ref nextSlot, ItemID.Stake, Main.LocalPlayer.HasItem(mod.ItemType("Impaler"))); + SetShopItem(ref shop, ref nextSlot, ItemID.Stake, Main.LocalPlayer.HasItem(ModContent.ItemType())); SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.Musket : ItemID.TheUndertaker, NPC.downedBoss2); SetShopItem(ref shop, ref nextSlot, ItemID.Boomstick, NPC.downedQueenBee, price: Item.buyPrice(0, 20, 0, 0)); } @@ -3428,44 +3427,44 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemID.NaturesGift, price: Item.buyPrice(0, 10)); SetShopItem(ref shop, ref nextSlot, ItemID.GoblinBattleStandard, price: Item.buyPrice(0, 1)); SetShopItem(ref shop, ref nextSlot, ItemID.SlimeCrown, NPC.downedSlimeKing, Item.buyPrice(0, 2)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("DriedSeafood"), CalamityWorld.downedDesertScourge, Item.buyPrice(0, 2)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedDesertScourge, Item.buyPrice(0, 2)); SetShopItem(ref shop, ref nextSlot, ItemID.SuspiciousLookingEye, NPC.downedBoss1, Item.buyPrice(0, 3)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("DecapoditaSprout"), CalamityWorld.downedCrabulon, Item.buyPrice(0, 4)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedCrabulon, Item.buyPrice(0, 4)); SetShopItem(ref shop, ref nextSlot, ItemID.BloodySpine, NPC.downedBoss2, Item.buyPrice(0, 6)); SetShopItem(ref shop, ref nextSlot, ItemID.WormFood, NPC.downedBoss2, Item.buyPrice(0, 6)); SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.BandofStarpower : ItemID.PanicNecklace, NPC.downedBoss2); SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.WormScarf : ItemID.BrainOfConfusion, Main.expertMode && NPC.downedBoss2); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("BloodyWormFood"), CalamityWorld.downedPerforator, Item.buyPrice(0, 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("RottenBrain"), CalamityWorld.downedPerforator && Main.expertMode); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("Teratoma"), CalamityWorld.downedHiveMind, Item.buyPrice(0, 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("BloodyWormTooth"), CalamityWorld.downedHiveMind && Main.expertMode); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("OverloadedSludge"), CalamityWorld.downedSlimeGod, Item.buyPrice(0, 15)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("Seafood"), CalamityWorld.downedAquaticScourge, Item.buyPrice(0, 20)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedPerforator, Item.buyPrice(0, 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedPerforator && Main.expertMode); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedHiveMind, Item.buyPrice(0, 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedHiveMind && Main.expertMode); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedSlimeGod, Item.buyPrice(0, 15)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedAquaticScourge, Item.buyPrice(0, 20)); SetShopItem(ref shop, ref nextSlot, ItemID.PumpkinMoonMedallion, NPC.downedHalloweenKing, Item.buyPrice(0, 25)); SetShopItem(ref shop, ref nextSlot, ItemID.NaughtyPresent, NPC.downedChristmasIceQueen, Item.buyPrice(0, 25)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("RomajedaOrchid")); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType()); } if (type == NPCID.GoblinTinkerer) { - SetShopItem(ref shop, ref nextSlot, mod.ItemType("MeleeLevelMeter"), price: Item.buyPrice(0, 5)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("RangedLevelMeter"), price: Item.buyPrice(0, 5)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("MagicLevelMeter"), price: Item.buyPrice(0, 5)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("SummonLevelMeter"), price: Item.buyPrice(0, 5)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("RogueLevelMeter"), price: Item.buyPrice(0, 5)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(0, 5)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(0, 5)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(0, 5)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(0, 5)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(0, 5)); } if (type == NPCID.Clothier) { - SetShopItem(ref shop, ref nextSlot, mod.ItemType("BlueBrickWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("BlueSlabWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("BlueTiledWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("GreenBrickWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("GreenSlabWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("GreenTiledWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("PinkBrickWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("PinkSlabWallUnsafe"), price: Item.buyPrice(copper: 10)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("PinkTiledWallUnsafe"), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), price: Item.buyPrice(copper: 10)); SetShopItem(ref shop, ref nextSlot, ItemID.GoldenKey, Main.hardMode, Item.buyPrice(0, 5)); } @@ -3479,31 +3478,31 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemID.MechanicalWorm, NPC.downedMechBoss1, Item.buyPrice(0, 20)); SetShopItem(ref shop, ref nextSlot, ItemID.MechanicalEye, NPC.downedMechBoss2, Item.buyPrice(0, 20)); SetShopItem(ref shop, ref nextSlot, ItemID.MechanicalSkull, NPC.downedMechBoss3, Item.buyPrice(0, 20)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("AstralSolution"), Main.LocalPlayer.Calamity().ZoneAstral && Main.hardMode, Item.buyPrice(0, 0, 5)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), Main.LocalPlayer.Calamity().ZoneAstral && Main.hardMode, Item.buyPrice(0, 0, 5)); } if (type == NPCID.Wizard) { - SetShopItem(ref shop, ref nextSlot, mod.ItemType("CryoKey"), CalamityWorld.downedCryogen, Item.buyPrice(0, 15)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("CharredIdol"), CalamityWorld.downedBrimstoneElemental, Item.buyPrice(0, 20)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("AstralChunk"), CalamityWorld.downedAstrageldon, Item.buyPrice(0, 25)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedCryogen, Item.buyPrice(0, 15)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedBrimstoneElemental, Item.buyPrice(0, 20)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedAstrageldon, Item.buyPrice(0, 25)); SetShopItem(ref shop, ref nextSlot, ItemID.MagicMissile, price: Item.buyPrice(0, 5)); SetShopItem(ref shop, ref nextSlot, ItemID.SpectreStaff, NPC.downedGolemBoss, Item.buyPrice(0, 25)); SetShopItem(ref shop, ref nextSlot, ItemID.InfernoFork, NPC.downedGolemBoss, Item.buyPrice(0, 25)); SetShopItem(ref shop, ref nextSlot, ItemID.ShadowbeamStaff, NPC.downedGolemBoss, Item.buyPrice(0, 25)); SetShopItem(ref shop, ref nextSlot, ItemID.CelestialSigil, NPC.downedMoonlord, Item.buyPrice(3)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("ProfanedShard"), CalamityWorld.downedGuardians, Item.buyPrice(10)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedGuardians, Item.buyPrice(10)); } if (type == NPCID.WitchDoctor) { SetShopItem(ref shop, ref nextSlot, ItemID.Abeemination, price: Item.buyPrice(0, 8)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("BulbofDoom"), NPC.downedPlantBoss, Item.buyPrice(0, 20)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), NPC.downedPlantBoss, Item.buyPrice(0, 20)); SetShopItem(ref shop, ref nextSlot, ItemID.SolarTablet, NPC.downedGolemBoss, Item.buyPrice(0, 25)); SetShopItem(ref shop, ref nextSlot, ItemID.LihzahrdPowerCell, NPC.downedGolemBoss, Item.buyPrice(0, 30)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("AncientMedallion"), CalamityWorld.downedScavenger, Item.buyPrice(0, 50)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("Abomination"), CalamityWorld.downedPlaguebringer, Item.buyPrice(0, 50)); - SetShopItem(ref shop, ref nextSlot, mod.ItemType("BirbPheromones"), CalamityWorld.downedBumble, Item.buyPrice(5)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedScavenger, Item.buyPrice(0, 50)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedPlaguebringer, Item.buyPrice(0, 50)); + SetShopItem(ref shop, ref nextSlot, ModContent.ItemType(), CalamityWorld.downedBumble, Item.buyPrice(5)); } } @@ -3511,7 +3510,7 @@ namespace CalamityMod.NPCs { if (Main.moonPhase == 0) { - shop[nextSlot] = mod.ItemType("FrostBarrier"); + shop[nextSlot] = ModContent.ItemType(); nextSlot++; } } @@ -3539,8 +3538,8 @@ namespace CalamityMod.NPCs for (int i = 0; i < 200; i++) { if (Main.npc[i].active && Main.npc[i].type != NPCID.MartianSaucerCore && - (Main.npc[i].boss || Main.npc[i].type == NPCID.EaterofWorldsHead || Main.npc[i].type == NPCID.EaterofWorldsTail || Main.npc[i].type == mod.NPCType("SlimeGodRun") || - Main.npc[i].type == mod.NPCType("SlimeGodRunSplit") || Main.npc[i].type == mod.NPCType("SlimeGod") || Main.npc[i].type == mod.NPCType("SlimeGodSplit"))) + (Main.npc[i].boss || Main.npc[i].type == NPCID.EaterofWorldsHead || Main.npc[i].type == NPCID.EaterofWorldsTail || Main.npc[i].type == ModContent.NPCType() || + Main.npc[i].type == ModContent.NPCType() || Main.npc[i].type == ModContent.NPCType() || Main.npc[i].type == ModContent.NPCType())) { return true; } @@ -3571,8 +3570,8 @@ namespace CalamityMod.NPCs if (target.damage > 0 && !target.boss && !target.friendly && !target.dontTakeDamage && target.type != NPCID.Mothron && target.type != NPCID.Pumpking && target.type != NPCID.TheDestroyerBody && target.type != NPCID.TheDestroyerTail && target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 && target.type != NPCID.IceQueen && - target.type != mod.NPCType("Reaper") && target.type != mod.NPCType("Mauler") && target.type != mod.NPCType("EidolonWyrmHead") && - target.type != mod.NPCType("EidolonWyrmHeadHuge") && target.type != mod.NPCType("ColossalSquid") && target.type != NPCID.DD2Betsy) + target.type != ModContent.NPCType() && target.type != ModContent.NPCType() && target.type != ModContent.NPCType() && + target.type != ModContent.NPCType() && target.type != ModContent.NPCType() && target.type != NPCID.DD2Betsy) { return true; } @@ -3597,7 +3596,7 @@ namespace CalamityMod.NPCs Projectile projectile = Main.projectile[m]; if (projectile.active && projectile.bobber && projectile.owner == plr) { - int num8 = NPC.NewNPC((int)projectile.Center.X, (int)projectile.Center.Y + 100, mod.NPCType("OldDuke")); + int num8 = NPC.NewNPC((int)projectile.Center.X, (int)projectile.Center.Y + 100, ModContent.NPCType()); string typeName2 = Main.npc[num8].TypeName; if (Main.netMode == NetmodeID.SinglePlayer) { diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index bd88b361e2..d69651c5d3 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.NPCs { @@ -46,7 +46,7 @@ namespace CalamityMod.NPCs // Mechanical Bosses' combined lore item bool mechLore = !NPC.downedMechBossAny && (lastTwinStanding || npc.type == NPCID.TheDestroyer || npc.type == NPCID.SkeletronPrime); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeMechs"), true, mechLore); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, mechLore); if (npc.type == NPCID.KingSlime) { @@ -60,40 +60,40 @@ namespace CalamityMod.NPCs } else if (npc.type == NPCID.EyeofCthulhu) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeEyeofCthulhu"), true, !NPC.downedBoss1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedBoss1); DropHelper.DropResidentEvilAmmo(npc, NPC.downedBoss1, 2, 0, 0); } else if ((npc.boss && (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail)) || npc.type == NPCID.BrainofCthulhu) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeCorruption"), true, !WorldGen.crimson && !NPC.downedBoss2); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeEaterofWorlds"), true, !WorldGen.crimson && !NPC.downedBoss2); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeCrimson"), true, WorldGen.crimson && !NPC.downedBoss2); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeBrainofCthulhu"), true, WorldGen.crimson && !NPC.downedBoss2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !WorldGen.crimson && !NPC.downedBoss2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !WorldGen.crimson && !NPC.downedBoss2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, WorldGen.crimson && !NPC.downedBoss2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, WorldGen.crimson && !NPC.downedBoss2); DropHelper.DropResidentEvilAmmo(npc, NPC.downedBoss2, 2, 0, 0); } else if (npc.type == NPCID.QueenBee) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeQueenBee"), true, !NPC.downedQueenBee); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedQueenBee); DropHelper.DropResidentEvilAmmo(npc, NPC.downedQueenBee, 2, 0, 0); } else if (npc.type == NPCID.SkeletronHead) { - DropHelper.DropItemCondition(npc, mod.ItemType("ClothiersWrath"), !Main.expertMode, DropHelper.RareVariantDropRateInt, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeSkeletron"), true, !NPC.downedBoss3); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, DropHelper.RareVariantDropRateInt, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedBoss3); DropHelper.DropResidentEvilAmmo(npc, NPC.downedBoss3, 3, 1, 0); } else if (npc.type == NPCID.WallofFlesh) { - DropHelper.DropItemCondition(npc, mod.ItemType("MLGRune"), !Main.expertMode); // Demon Trophy - DropHelper.DropItemCondition(npc, mod.ItemType("Meowthrower"), !Main.expertMode, 5, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("BlackHawkRemote"), !Main.expertMode, 5, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("BlastBarrel"), !Main.expertMode, 5, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("RogueEmblem"), !Main.expertMode, 8, 1, 1); - DropHelper.DropItemChance(npc, mod.ItemType("IbarakiBox"), !Main.hardMode, Main.hardMode ? 0.1f : 1f); // 100% chance on first kill, 10% chance afterwards + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode); // Demon Trophy + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 5, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 5, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 5, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 8, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), !Main.hardMode, Main.hardMode ? 0.1f : 1f); // 100% chance on first kill, 10% chance afterwards DropHelper.DropItemFromSetCondition(npc, !Main.expertMode, 5, ItemID.CorruptionKey, ItemID.CrimsonKey); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeUnderworld"), true, !Main.hardMode); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeWallofFlesh"), true, !Main.hardMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.hardMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.hardMode); DropHelper.DropResidentEvilAmmo(npc, Main.hardMode, 3, 1, 0); // First kill text (this is not a loot function) @@ -113,18 +113,18 @@ namespace CalamityMod.NPCs } else if (lastTwinStanding) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeTwins"), true, !NPC.downedMechBoss2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedMechBoss2); DropHelper.DropResidentEvilAmmo(npc, NPC.downedMechBoss2, 4, 2, 1); } else if (npc.type == NPCID.TheDestroyer) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeDestroyer"), true, !NPC.downedMechBoss1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedMechBoss1); DropHelper.DropResidentEvilAmmo(npc, NPC.downedMechBoss1, 4, 2, 1); } else if (npc.type == NPCID.SkeletronPrime) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeSkeletronPrime"), true, !NPC.downedMechBoss3); - DropHelper.DropItemCondition(npc, mod.ItemType("GoldBurdenBreaker"), true, npc.ai[1] == 2f && CalamityWorld.revenge); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedMechBoss3); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, npc.ai[1] == 2f && CalamityWorld.revenge); DropHelper.DropResidentEvilAmmo(npc, NPC.downedMechBoss3, 4, 2, 1); // If neither Prime nor Brimmy have been killed, show this text (not a loot function) @@ -145,7 +145,7 @@ namespace CalamityMod.NPCs else if (npc.type == NPCID.Plantera) { DropHelper.DropItemCondition(npc, ItemID.JungleKey, !Main.expertMode, 5, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgePlantera"), true, !NPC.downedPlantBoss); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedPlantBoss); DropHelper.DropResidentEvilAmmo(npc, NPC.downedPlantBoss, 4, 2, 1); // Spawn Perennial Ore if Plantera has never been killed @@ -154,7 +154,7 @@ namespace CalamityMod.NPCs string key2 = "Mods.CalamityMod.PlantOreText"; Color messageColor2 = Color.GreenYellow; - WorldGenerationMethods.SpawnOre(mod.TileType("PerennialOre"), 12E-05, .5f, .7f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 12E-05, .5f, .7f); if (Main.netMode == NetmodeID.SinglePlayer) { @@ -190,7 +190,7 @@ namespace CalamityMod.NPCs else if (npc.type == NPCID.Golem) { DropHelper.DropItemCondition(npc, ItemID.Picksaw, true, !NPC.downedGolemBoss); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeGolem"), true, !NPC.downedGolemBoss); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedGolemBoss); DropHelper.DropResidentEvilAmmo(npc, NPC.downedGolemBoss, 4, 2, 1); // If Golem has never been killed, send messages about PBG and Ravager @@ -223,16 +223,16 @@ namespace CalamityMod.NPCs } else if (npc.type == NPCID.DukeFishron) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeDukeFishron"), true, !NPC.downedFishron); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedFishron); DropHelper.DropResidentEvilAmmo(npc, NPC.downedPlantBoss, 4, 2, 1); } else if (npc.type == NPCID.CultistBoss) { - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeLunaticCultist"), true, !NPC.downedAncientCultist); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedAncientCultist); DropHelper.DropResidentEvilAmmo(npc, NPC.downedAncientCultist, 4, 2, 1); // Blood Moon lore item - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeBloodMoon"), true, Main.bloodMoon); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, Main.bloodMoon); // Deus text (this is not a loot function) if (!NPC.downedAncientCultist) @@ -252,11 +252,11 @@ namespace CalamityMod.NPCs } else if (npc.type == NPCID.MoonLordCore) { - DropHelper.DropItemCondition(npc, mod.ItemType("MLGRune2"), true, !Main.expertMode); - DropHelper.DropItemCondition(npc, mod.ItemType("UtensilPoker"), !Main.expertMode, 9, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("GrandDad"), !Main.expertMode, DropHelper.RareVariantDropRateInt, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("Infinity"), !Main.expertMode, DropHelper.RareVariantDropRateInt, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeMoonLord"), true, !NPC.downedMoonlord); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 9, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, DropHelper.RareVariantDropRateInt, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, DropHelper.RareVariantDropRateInt, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedMoonlord); DropHelper.DropResidentEvilAmmo(npc, NPC.downedMoonlord, 5, 2, 1); string key = "Mods.CalamityMod.MoonBossText"; @@ -273,7 +273,7 @@ namespace CalamityMod.NPCs // Spawn Exodium and send messages about Providence, Bloodstone, Phantoplasm, etc. if ML has not been killed yet if (!NPC.downedMoonlord) { - WorldGenerationMethods.SpawnOre(mod.TileType("ExodiumOre"), 12E-05, .01f, .07f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 12E-05, .01f, .07f); if (Main.netMode == NetmodeID.SinglePlayer) { @@ -301,7 +301,7 @@ namespace CalamityMod.NPCs #region Boss Rush Loot Cancel private bool BossRushLootCancel(NPC npc, Mod mod) { - if (npc.type == mod.NPCType("ProfanedGuardianBoss")) + if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 7; DespawnProj(); @@ -324,122 +324,122 @@ namespace CalamityMod.NPCs DespawnProj(); } } - else if (npc.type == mod.NPCType("Astrageldon")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 9; DespawnProj(); } - else if (npc.type == mod.NPCType("Bumblefuck")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 12; DespawnProj(); } - else if (npc.type == mod.NPCType("HiveMindP2")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 14; DespawnProj(); } - else if (npc.type == mod.NPCType("StormWeaverHeadNaked")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 16; DespawnProj(); } - else if (npc.type == mod.NPCType("AquaticScourgeHead")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 17; DespawnProj(); } - else if (npc.type == mod.NPCType("DesertScourgeHead")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 18; DespawnProj(); } - else if (npc.type == mod.NPCType("CrabulonIdle")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 20; DespawnProj(); } - else if (npc.type == mod.NPCType("CeaselessVoid")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 22; DespawnProj(); } - else if (npc.type == mod.NPCType("PerforatorHive")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 23; DespawnProj(); } - else if (npc.type == mod.NPCType("Cryogen")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 24; DespawnProj(); } - else if (npc.type == mod.NPCType("BrimstoneElemental")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 25; DespawnProj(); } - else if (npc.type == mod.NPCType("CosmicWraith")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 26; DespawnProj(); } - else if (npc.type == mod.NPCType("ScavengerBody")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 27; DespawnProj(); } - else if (npc.type == mod.NPCType("AstrumDeusHeadSpectral")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 30; DespawnProj(); } - else if (npc.type == mod.NPCType("Polterghast")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 31; DespawnProj(); } - else if (npc.type == mod.NPCType("PlaguebringerGoliath")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 32; DespawnProj(); } - else if (npc.type == mod.NPCType("CalamitasRun3")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 33; DespawnProj(); } - else if (npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("Leviathan")) + else if (npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType()) { - int bossType = (npc.type == mod.NPCType("Siren")) ? mod.NPCType("Leviathan") : mod.NPCType("Siren"); + int bossType = (npc.type == ModContent.NPCType()) ? ModContent.NPCType() : ModContent.NPCType(); if (!NPC.AnyNPCs(bossType)) { CalamityWorld.bossRushStage = 34; DespawnProj(); } } - else if (npc.type == mod.NPCType("SlimeGodCore") || npc.type == mod.NPCType("SlimeGodSplit") || npc.type == mod.NPCType("SlimeGodRunSplit")) + else if (npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType()) { - if (npc.type == mod.NPCType("SlimeGodCore") && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) && - !NPC.AnyNPCs(mod.NPCType("SlimeGod")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) + if (npc.type == ModContent.NPCType() && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && + !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityWorld.bossRushStage = 35; DespawnProj(); } - else if (npc.type == mod.NPCType("SlimeGodSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) && - NPC.CountNPCS(mod.NPCType("SlimeGodSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) + else if (npc.type == ModContent.NPCType() && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && + NPC.CountNPCS(ModContent.NPCType()) < 2 && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityWorld.bossRushStage = 35; DespawnProj(); } - else if (npc.type == mod.NPCType("SlimeGodRunSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && - NPC.CountNPCS(mod.NPCType("SlimeGodRunSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGod"))) + else if (npc.type == ModContent.NPCType() && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && + NPC.CountNPCS(ModContent.NPCType()) < 2 && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityWorld.bossRushStage = 35; DespawnProj(); } } - else if (npc.type == mod.NPCType("Providence")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 36; DespawnProj(); @@ -455,19 +455,19 @@ namespace CalamityMod.NPCs NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); } } - else if (npc.type == mod.NPCType("SupremeCalamitas")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 37; DespawnProj(); } - else if (npc.type == mod.NPCType("Yharon")) + else if (npc.type == ModContent.NPCType()) { CalamityWorld.bossRushStage = 38; DespawnProj(); } - else if (npc.type == mod.NPCType("DevourerofGodsHeadS")) + else if (npc.type == ModContent.NPCType()) { - DropHelper.DropItem(npc, mod.ItemType("Rock"), true); + DropHelper.DropItem(npc, ModContent.ItemType(), true); CalamityWorld.bossRushStage = 0; DespawnProj(); CalamityWorld.bossRushActive = false; @@ -652,7 +652,7 @@ namespace CalamityMod.NPCs bool hurtByAbyss = npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && (((npc.position.Y / 16f > (Main.rockLayer - Main.maxTilesY * 0.05)) && - abyssPosY && abyssPosX) || CalamityWorld.abyssTiles > 200) && !npc.buffImmune[mod.BuffType("CrushDepth")]; + abyssPosY && abyssPosX) || CalamityWorld.abyssTiles > 200) && !npc.buffImmune[ModContent.BuffType()]; return hurtByAbyss; } @@ -685,10 +685,10 @@ namespace CalamityMod.NPCs if (npc.boss && revenge) { - if (npc.type != mod.NPCType("HiveMind") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("Siren") && - npc.type != mod.NPCType("StormWeaverHead") && npc.type != mod.NPCType("StormWeaverBody") && - npc.type != mod.NPCType("StormWeaverTail") && npc.type != mod.NPCType("DevourerofGodsHead") && - npc.type != mod.NPCType("DevourerofGodsBody") && npc.type != mod.NPCType("DevourerofGodsTail")) + if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && + npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType()) { if (Main.netMode != NetmodeID.Server) { @@ -714,27 +714,27 @@ namespace CalamityMod.NPCs switch (npc.type) { case NPCID.BloodZombie: - DropHelper.DropItemCondition(npc, mod.ItemType("Carnage"), NPC.downedBoss3 && !npc.SpawnedFromStatue, 200, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), NPC.downedBoss3 && !npc.SpawnedFromStatue, 200, 1, 1); break; case NPCID.TacticalSkeleton: - DropHelper.DropItemChance(npc, mod.ItemType("TrueConferenceCall"), 200); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 200); break; case NPCID.DesertBeast: - DropHelper.DropItemChance(npc, mod.ItemType("EvilSmasher"), 200); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 200); break; case NPCID.DungeonSpirit: - DropHelper.DropItemChance(npc, mod.ItemType("PearlGod"), 200); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 200); break; case NPCID.RuneWizard: - DropHelper.DropItemChance(npc, mod.ItemType("EyeofMagnus"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); break; case NPCID.Mimic: - DropHelper.DropItemCondition(npc, mod.ItemType("TheBee"), !npc.SpawnedFromStatue, 100, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !npc.SpawnedFromStatue, 100, 1, 1); break; default: @@ -1016,11 +1016,11 @@ namespace CalamityMod.NPCs } // Because all switch cases must be constant at compile time, modded NPC IDs (which can change) can't be included. - if (npc.type == mod.NPCType("SunBat")) + if (npc.type == ModContent.NPCType()) { DropHelper.DropItemChance(npc, ItemID.HelFire, DropHelper.DefiledDropRateInt); } - else if (npc.type == mod.NPCType("Cryon")) + else if (npc.type == ModContent.NPCType()) { DropHelper.DropItemChance(npc, ItemID.Amarok, DropHelper.DefiledDropRateInt); } @@ -1084,8 +1084,8 @@ namespace CalamityMod.NPCs // not really drop code private void CheckBossSpawn(NPC npc, Mod mod) { - if ((npc.type == mod.NPCType("PhantomSpirit") || npc.type == mod.NPCType("PhantomSpiritS") || npc.type == mod.NPCType("PhantomSpiritM") || - npc.type == mod.NPCType("PhantomSpiritL")) && !NPC.AnyNPCs(mod.NPCType("Polterghast")) && !CalamityWorld.downedPolterghast) + if ((npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType() || + npc.type == ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && !CalamityWorld.downedPolterghast) { CalamityMod.ghostKillCount++; if (CalamityMod.ghostKillCount == 10) @@ -1128,13 +1128,13 @@ namespace CalamityMod.NPCs if (lastPlayer >= 0) { - NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("Polterghast")); + NPC.SpawnOnPlayer(lastPlayer, ModContent.NPCType()); CalamityMod.ghostKillCount = 0; } } } - if (NPC.downedPlantBoss && npc.type == NPCID.SandShark && !NPC.AnyNPCs(mod.NPCType("GreatSandShark"))) + if (NPC.downedPlantBoss && npc.type == NPCID.SandShark && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityMod.sharkKillCount++; if (CalamityMod.sharkKillCount == 4) @@ -1182,13 +1182,13 @@ namespace CalamityMod.NPCs if (lastPlayer >= 0) { - NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("GreatSandShark")); + NPC.SpawnOnPlayer(lastPlayer, ModContent.NPCType()); CalamityMod.sharkKillCount = -5; } } } - if (NPC.downedAncientCultist && !CalamityWorld.downedStarGod && npc.type == mod.NPCType("Atlas") && !NPC.AnyNPCs(mod.NPCType("AstrumDeusHeadSpectral"))) + if (NPC.downedAncientCultist && !CalamityWorld.downedStarGod && npc.type == ModContent.NPCType() && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityMod.astralKillCount++; if (CalamityMod.astralKillCount == 1) @@ -1234,10 +1234,10 @@ namespace CalamityMod.NPCs for (int x = 0; x < 10; x++) { - NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("AstrumDeusHead")); + NPC.SpawnOnPlayer(lastPlayer, ModContent.NPCType()); } - NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("AstrumDeusHeadSpectral")); + NPC.SpawnOnPlayer(lastPlayer, ModContent.NPCType()); CalamityMod.astralKillCount = 0; } } @@ -1262,11 +1262,11 @@ namespace CalamityMod.NPCs { if (Main.player[Player.FindClosest(npc.position, npc.width, npc.height)].Calamity().bloodflareSet) { - DropHelper.DropItemChance(npc, mod.ItemType("BloodOrb"), 2); // 50% chance of 1 orb with Bloodflare + DropHelper.DropItemChance(npc, ModContent.ItemType(), 2); // 50% chance of 1 orb with Bloodflare } // 1/12 chance to get a Blood Orb with or without Bloodflare - DropHelper.DropItemChance(npc, mod.ItemType("BloodOrb"), 12); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 12); } } #endregion @@ -1278,16 +1278,16 @@ namespace CalamityMod.NPCs { case NPCID.Drippler: int eyeballDropRate = CalamityWorld.defiled ? DropHelper.DefiledDropRateInt : 300; - DropHelper.DropItemChance(npc, mod.ItemType("BouncingEyeball"), eyeballDropRate, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), eyeballDropRate, 1, 1); break; case NPCID.PossessedArmor: int amuletDropRate = CalamityWorld.defiled ? DropHelper.DefiledDropRateInt : Main.expertMode ? 150 : 200; - DropHelper.DropItemChance(npc, mod.ItemType("PsychoticAmulet"), amuletDropRate, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), amuletDropRate, 1, 1); break; case NPCID.SeaSnail: - DropHelper.DropItemChance(npc, mod.ItemType("SeaShell"), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.GreekSkeleton: @@ -1301,147 +1301,147 @@ namespace CalamityMod.NPCs int tortoiseDropRate = Main.expertMode ? 5 : 7; float shellRoll = Main.rand.NextFloat(); bool fabledShell = shellRoll < 0.005f; // Exact 1/200 chance for rare regardless of difficulty - DropHelper.DropItemCondition(npc, mod.ItemType("GiantTortoiseShell"), !fabledShell, tortoiseDropRate, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("FabledTortoiseShell"), fabledShell, tortoiseDropRate, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !fabledShell, tortoiseDropRate, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), fabledShell, tortoiseDropRate, 1, 1); break; case NPCID.GiantShelly: case NPCID.GiantShelly2: - DropHelper.DropItemChance(npc, mod.ItemType("GiantShell"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.AnomuraFungus: - DropHelper.DropItemChance(npc, mod.ItemType("FungalCarapace"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.Crawdad: case NPCID.Crawdad2: - DropHelper.DropItemChance(npc, mod.ItemType("CrawCarapace"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.GreenJellyfish: - DropHelper.DropItemChance(npc, mod.ItemType("VitalJelly"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.PinkJellyfish: - DropHelper.DropItemChance(npc, mod.ItemType("LifeJelly"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.BlueJellyfish: - DropHelper.DropItemChance(npc, mod.ItemType("ManaJelly"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.DarkCaster: - DropHelper.DropItemChance(npc, mod.ItemType("AncientShiv"), Main.expertMode ? 20 : 25); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); break; case NPCID.BigMimicHallow: case NPCID.BigMimicCorruption: case NPCID.BigMimicCrimson: case NPCID.BigMimicJungle: // arguably unnecessary - DropHelper.DropItemChance(npc, mod.ItemType("CelestialClaymore"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.Clinger: - DropHelper.DropItemChance(npc, mod.ItemType("CursedDagger"), Main.expertMode ? 20 : 25); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); break; case NPCID.Shark: - DropHelper.DropItemChance(npc, mod.ItemType("DepthBlade"), Main.expertMode ? 10 : 15); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 10 : 15); DropHelper.DropItemChance(npc, ItemID.SharkToothNecklace, Main.expertMode ? 20 : 30); break; case NPCID.PresentMimic: - DropHelper.DropItemChance(npc, mod.ItemType("HolidayHalberd"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.IchorSticker: int spearDropRate = Main.expertMode ? 20 : 25; float spearRoll = Main.rand.NextFloat(); bool spearOfDestiny = spearRoll < 0.005f; // Exact 1/200 chance for rare regardless of difficulty - DropHelper.DropItemCondition(npc, mod.ItemType("IchorSpear"), !spearOfDestiny, spearDropRate, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("SpearofDestiny"), spearOfDestiny, spearDropRate, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !spearOfDestiny, spearDropRate, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), spearOfDestiny, spearDropRate, 1, 1); break; case NPCID.Harpy: int glazeDropRate = CalamityWorld.defiled ? 20 : Main.expertMode ? 60 : 80; - DropHelper.DropItemCondition(npc, mod.ItemType("SkyGlaze"), NPC.downedBoss1, glazeDropRate, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), NPC.downedBoss1, glazeDropRate, 1, 1); break; case NPCID.Antlion: case NPCID.WalkingAntlion: case NPCID.FlyingAntlion: - DropHelper.DropItemChance(npc, mod.ItemType("MandibleClaws"), Main.expertMode ? 30 : 40); - DropHelper.DropItemChance(npc, mod.ItemType("MandibleBow"), Main.expertMode ? 30 : 40); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 30 : 40); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 30 : 40); break; case NPCID.TombCrawlerHead: - DropHelper.DropItemChance(npc, mod.ItemType("BurntSienna"), Main.expertMode ? 15 : 20); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 15 : 20); break; case NPCID.DuneSplicerHead: - DropHelper.DropItemCondition(npc, mod.ItemType("Terracotta"), NPC.downedPlantBoss, Main.expertMode ? 20 : 30, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), NPC.downedPlantBoss, Main.expertMode ? 20 : 30, 1, 1); break; case NPCID.MartianSaucerCore: - DropHelper.DropItemChance(npc, mod.ItemType("NullificationRifle"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.Demon: - DropHelper.DropItemChance(npc, mod.ItemType("DemonicBoneAsh"), Main.expertMode ? 2 : 3); - DropHelper.DropItemChance(npc, mod.ItemType("BladecrestOathsword"), Main.expertMode ? 20 : 25); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); break; case NPCID.BoneSerpentHead: - DropHelper.DropItemChance(npc, mod.ItemType("DemonicBoneAsh"), Main.expertMode ? 2 : 3); - DropHelper.DropItemChance(npc, mod.ItemType("OldLordOathsword"), Main.expertMode ? 10 : 15); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 10 : 15); break; case NPCID.Tim: - DropHelper.DropItemChance(npc, mod.ItemType("PlasmaRod"), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.GoblinSorcerer: - DropHelper.DropItemChance(npc, mod.ItemType("PlasmaRod"), Main.expertMode ? 20 : 25); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); break; case NPCID.PirateDeadeye: - DropHelper.DropItemChance(npc, mod.ItemType("ProporsePistol"), Main.expertMode ? 20 : 25); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); break; case NPCID.PirateCrossbower: int crossbowDropRate = Main.expertMode ? 20 : 25; float arbalestRoll = Main.rand.NextFloat(); bool arbalest = arbalestRoll < 0.005f; // Exact 1/200 chance for rare regardless of difficulty - DropHelper.DropItemCondition(npc, mod.ItemType("RaidersGlory"), !arbalest, crossbowDropRate, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("Arbalest"), arbalest, crossbowDropRate, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !arbalest, crossbowDropRate, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), arbalest, crossbowDropRate, 1, 1); break; case NPCID.GoblinSummoner: - DropHelper.DropItemChance(npc, mod.ItemType("TheFirstShadowflame"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.SandElemental: - DropHelper.DropItemChance(npc, mod.ItemType("WifeinaBottle"), Main.expertMode ? 5 : 7); - DropHelper.DropItemCondition(npc, mod.ItemType("WifeinaBottlewithBoobs"), Main.expertMode, 20, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, 20, 1, 1); break; case NPCID.GoblinWarrior: - DropHelper.DropItemChance(npc, mod.ItemType("Warblade"), Main.expertMode ? 15 : 20); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 15 : 20); break; case NPCID.MartianWalker: - DropHelper.DropItemChance(npc, mod.ItemType("Wingman"), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); break; case NPCID.GiantCursedSkull: - DropHelper.DropItemChance(npc, mod.ItemType("WrathoftheAncients"), Main.expertMode ? 20 : 25); - DropHelper.DropItemCondition(npc, mod.ItemType("Keelhaul"), CalamityWorld.downedLeviathan, 10, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedLeviathan, 10, 1, 1); break; case NPCID.Necromancer: case NPCID.NecromancerArmored: - DropHelper.DropItemChance(npc, mod.ItemType("WrathoftheAncients"), Main.expertMode ? 20 : 25); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); break; default: @@ -1452,14 +1452,14 @@ namespace CalamityMod.NPCs if (CalamityMod.mossHornetList.Contains(npc.type)) { int needlerDropRate = Main.expertMode ? 20 : 25; - DropHelper.DropItemChance(npc, mod.ItemType("Needler"), needlerDropRate); + DropHelper.DropItemChance(npc, ModContent.ItemType(), needlerDropRate); } // Every type of Skeleton counts for the Waraxe and Ancient Bone Dust if (CalamityMod.skeletonList.Contains(npc.type)) { - DropHelper.DropItemCondition(npc, mod.ItemType("Waraxe"), !Main.hardMode, Main.expertMode ? 15 : 20, 1, 1); - DropHelper.DropItemChance(npc, mod.ItemType("AncientBoneDust"), Main.expertMode ? 4 : 5); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.hardMode, Main.expertMode ? 15 : 20, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); } } #endregion @@ -1470,90 +1470,90 @@ namespace CalamityMod.NPCs switch (npc.type) { case NPCID.Vulture: - DropHelper.DropItemChance(npc, mod.ItemType("DesertFeather"), 2, 1, Main.expertMode ? 2 : 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 2, 1, Main.expertMode ? 2 : 1); break; case NPCID.RedDevil: - DropHelper.DropItemChance(npc, mod.ItemType("EssenceofChaos"), Main.expertMode ? 1f : 0.5f); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 1f : 0.5f); break; case NPCID.WyvernHead: - DropHelper.DropItem(npc, mod.ItemType("EssenceofCinder"), 1, Main.expertMode ? 2 : 1); + DropHelper.DropItem(npc, ModContent.ItemType(), 1, Main.expertMode ? 2 : 1); break; case NPCID.AngryNimbus: - DropHelper.DropItemChance(npc, mod.ItemType("EssenceofCinder"), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.IcyMerman: case NPCID.IceTortoise: - DropHelper.DropItemChance(npc, mod.ItemType("EssenceofEleum"), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.IceGolem: - DropHelper.DropItem(npc, mod.ItemType("EssenceofEleum"), 1, 2); + DropHelper.DropItem(npc, ModContent.ItemType(), 1, 2); break; case NPCID.Plantera: - DropHelper.DropItemCondition(npc, mod.ItemType("LivingShard"), !Main.expertMode, 6, 9); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 6, 9); break; case NPCID.NebulaBrain: case NPCID.NebulaSoldier: case NPCID.NebulaHeadcrab: case NPCID.NebulaBeast: - DropHelper.DropItemChance(npc, mod.ItemType("MeldBlob"), 4, Main.expertMode ? 2 : 1, Main.expertMode ? 3 : 2); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4, Main.expertMode ? 2 : 1, Main.expertMode ? 3 : 2); break; case NPCID.DungeonGuardian: - DropHelper.DropItemCondition(npc, mod.ItemType("GoldBurdenBreaker"), Main.hardMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode); break; case NPCID.CultistBoss: - DropHelper.DropItemChance(npc, mod.ItemType("StardustStaff"), Main.expertMode ? 3 : 5); - DropHelper.DropItemChance(npc, mod.ItemType("ThornBlossom"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 3 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); break; case NPCID.EyeofCthulhu: - DropHelper.DropItemCondition(npc, mod.ItemType("VictoryShard"), !Main.expertMode, 2, 4); - DropHelper.DropItemCondition(npc, mod.ItemType("TeardropCleaver"), !Main.expertMode, 5, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 2, 4); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, 5, 1, 1); break; case NPCID.DevourerHead: case NPCID.SeekerHead: - DropHelper.DropItemChance(npc, mod.ItemType("FetidEssence"), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.FaceMonster: case NPCID.Herpling: - DropHelper.DropItemChance(npc, mod.ItemType("BloodlettingEssence"), Main.expertMode ? 4 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); break; case NPCID.ManEater: - DropHelper.DropItemChance(npc, mod.ItemType("ManeaterBulb"), Main.expertMode ? 2 : 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); break; case NPCID.AngryTrapper: - DropHelper.DropItemChance(npc, mod.ItemType("TrapperBulb"), Main.expertMode ? 4 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); break; case NPCID.MotherSlime: case NPCID.CorruptSlime: case NPCID.Crimslime: - DropHelper.DropItemChance(npc, mod.ItemType("MurkySludge"), Main.expertMode ? 3 : 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 3 : 4); break; case NPCID.Moth: - DropHelper.DropItemChance(npc, mod.ItemType("GypsyPowder"), Main.expertMode ? 1f : 0.5f); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 1f : 0.5f); break; case NPCID.Derpling: - DropHelper.DropItemChance(npc, mod.ItemType("BeetleJuice"), Main.expertMode ? 4 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); break; case NPCID.SpikedJungleSlime: case NPCID.Arapaima: - DropHelper.DropItemChance(npc, mod.ItemType("MurkyPaste"), Main.expertMode ? 4 : 5); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5); break; default: @@ -1563,7 +1563,7 @@ namespace CalamityMod.NPCs // All hardmode dungeon enemies drop Ectoblood if (CalamityMod.dungeonEnemyBuffList.Contains(npc.type)) { - DropHelper.DropItemChance(npc, mod.ItemType("Ectoblood"), 2, 1, Main.expertMode ? 3 : 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 2, 1, Main.expertMode ? 3 : 1); } } #endregion @@ -1581,15 +1581,15 @@ namespace CalamityMod.NPCs // Nightmare Fuel, Endothermic Energy and Darksun Fragments if (npc.type == NPCID.Pumpking) { - DropHelper.DropItemCondition(npc, mod.ItemType("NightmareFuel"), CalamityWorld.downedDoG, 10, 20); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedDoG, 10, 20); } else if (npc.type == NPCID.IceQueen) { - DropHelper.DropItemCondition(npc, mod.ItemType("EndothermicEnergy"), CalamityWorld.downedDoG, 20, 40); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedDoG, 20, 40); } else if (npc.type == NPCID.Mothron && CalamityWorld.buffedEclipse) { - DropHelper.DropItem(npc, mod.ItemType("DarksunFragment"), 10, 20); + DropHelper.DropItem(npc, ModContent.ItemType(), 10, 20); // Mark a buffed Mothron as killed (allowing access to Yharon P2) CalamityWorld.downedBuffedMothron = true; diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index c07ba8e69d..e761d03eac 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -6,9 +6,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CeaselessVoid +namespace CalamityMod.NPCs { [AutoloadBossHead] public class CeaselessVoid : ModNPC @@ -101,9 +101,9 @@ namespace CalamityMod.NPCs.CeaselessVoid npc.TargetClosest(true); Player player = Main.player[npc.target]; - if (NPC.CountNPCS(mod.NPCType("DarkEnergy")) > 0 || - NPC.CountNPCS(mod.NPCType("DarkEnergy2")) > 0 || - NPC.CountNPCS(mod.NPCType("DarkEnergy3")) > 0) + if (NPC.CountNPCS(ModContent.NPCType()) > 0 || + NPC.CountNPCS(ModContent.NPCType()) > 0 || + NPC.CountNPCS(ModContent.NPCType()) > 0) { npc.dontTakeDamage = true; } @@ -222,7 +222,7 @@ namespace CalamityMod.NPCs.CeaselessVoid num942 *= num944; num943 *= num944; int num945 = expertMode ? 50 : 60; - int num946 = mod.ProjectileType("DoGBeamPortal"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); @@ -241,7 +241,7 @@ namespace CalamityMod.NPCs.CeaselessVoid for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * 3f), (float)(Math.Cos(offsetAngle) * 3f), mod.ProjectileType("DarkEnergyBall"), damage, 0f, Main.myPlayer, passedVar, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * 3f), (float)(Math.Cos(offsetAngle) * 3f), ModContent.ProjectileType(), damage, 0f, Main.myPlayer, passedVar, 0f); passedVar += 1f; } } @@ -312,7 +312,7 @@ namespace CalamityMod.NPCs.CeaselessVoid } for (int num662 = 0; num662 < glob; num662++) { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("DarkEnergySpawn"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } } } @@ -325,26 +325,26 @@ namespace CalamityMod.NPCs.CeaselessVoid if (CalamityWorld.DoGSecondStageCountdown <= 0) { // Materials - DropHelper.DropItem(npc, mod.ItemType("DarkPlasma"), true, 2, 3); + DropHelper.DropItem(npc, ModContent.ItemType(), true, 2, 3); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("MirrorBlade"), 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); // Equipment float f = Main.rand.NextFloat(); bool replaceWithRare = f <= DropHelper.RareVariantDropRateFloat; // 1/40 chance overall of getting The Evolution if (f < 0.2f) // 1/5 chance of getting Arcanum of the Void OR The Evolution replacing it { - DropHelper.DropItemCondition(npc, mod.ItemType("ArcanumoftheVoid"), !replaceWithRare); - DropHelper.DropItemCondition(npc, mod.ItemType("TheEvolution"), replaceWithRare); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !replaceWithRare); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), replaceWithRare); } // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("CeaselessVoidTrophy"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); // Other bool lastSentinelKilled = !CalamityWorld.downedSentinel1 && CalamityWorld.downedSentinel2 && CalamityWorld.downedSentinel3; - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeSentinels"), true, lastSentinelKilled); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, lastSentinelKilled); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedSentinel1, 5, 2, 1); } diff --git a/NPCs/CeaselessVoid/DarkEnergy.cs b/NPCs/CeaselessVoid/DarkEnergy.cs index 6eaa02d734..6f3c040b2c 100644 --- a/NPCs/CeaselessVoid/DarkEnergy.cs +++ b/NPCs/CeaselessVoid/DarkEnergy.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CeaselessVoid +namespace CalamityMod.NPCs { public class DarkEnergy : ModNPC { @@ -191,7 +191,7 @@ namespace CalamityMod.NPCs.CeaselessVoid { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } diff --git a/NPCs/CeaselessVoid/DarkEnergy2.cs b/NPCs/CeaselessVoid/DarkEnergy2.cs index f0098de6d0..f092a57265 100644 --- a/NPCs/CeaselessVoid/DarkEnergy2.cs +++ b/NPCs/CeaselessVoid/DarkEnergy2.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CeaselessVoid +namespace CalamityMod.NPCs { public class DarkEnergy2 : ModNPC { @@ -155,7 +155,7 @@ namespace CalamityMod.NPCs.CeaselessVoid { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } diff --git a/NPCs/CeaselessVoid/DarkEnergy3.cs b/NPCs/CeaselessVoid/DarkEnergy3.cs index 6d2542fdb7..c9e186a326 100644 --- a/NPCs/CeaselessVoid/DarkEnergy3.cs +++ b/NPCs/CeaselessVoid/DarkEnergy3.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CeaselessVoid +namespace CalamityMod.NPCs { public class DarkEnergy3 : ModNPC { @@ -182,7 +182,7 @@ namespace CalamityMod.NPCs.CeaselessVoid { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } diff --git a/NPCs/CosmicWraith/CosmicLantern.cs b/NPCs/CosmicWraith/CosmicLantern.cs index 5005d0e081..d245b83b88 100644 --- a/NPCs/CosmicWraith/CosmicLantern.cs +++ b/NPCs/CosmicWraith/CosmicLantern.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CosmicWraith +namespace CalamityMod.NPCs { public class CosmicLantern : ModNPC { @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.CosmicWraith { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); + player.AddBuff(ModContent.BuffType(), 180); } } diff --git a/NPCs/CosmicWraith/CosmicWraith.cs b/NPCs/CosmicWraith/CosmicWraith.cs index 9268fb2aa4..1e6fdd58ca 100644 --- a/NPCs/CosmicWraith/CosmicWraith.cs +++ b/NPCs/CosmicWraith/CosmicWraith.cs @@ -6,9 +6,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CosmicWraith +namespace CalamityMod.NPCs { [AutoloadBossHead] public class CosmicWraith : ModNPC @@ -68,15 +68,15 @@ namespace CalamityMod.NPCs.CosmicWraith } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("ExoFreeze")] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; @@ -288,12 +288,12 @@ namespace CalamityMod.NPCs.CosmicWraith Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); if (Main.netMode != NetmodeID.MultiplayerClient && revenge) { - int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + 750f), (int)Main.player[npc.target].position.Y, mod.NPCType("SignusBomb"), 0, 0f, 0f, 0f, 0f, 255); + int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + 750f), (int)Main.player[npc.target].position.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } - int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - 750f), (int)Main.player[npc.target].position.Y, mod.NPCType("SignusBomb"), 0, 0f, 0f, 0f, 0f, 255); + int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - 750f), (int)Main.player[npc.target].position.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(23, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); @@ -403,7 +403,7 @@ namespace CalamityMod.NPCs.CosmicWraith num1071 *= num1073; num1072 *= num1073; int num1074 = expertMode ? 48 : 60; //projectile damage - int num1075 = mod.ProjectileType("SignusScythe"); //projectile type + int num1075 = ModContent.ProjectileType(); //projectile type Projectile.NewProjectile(vector121.X, vector121.Y, num1071, num1072, num1075, num1074, 0f, Main.myPlayer, 0f, (float)(npc.target + 1)); } } @@ -468,16 +468,16 @@ namespace CalamityMod.NPCs.CosmicWraith { if (Main.netMode != NetmodeID.MultiplayerClient) { - if (NPC.CountNPCS(mod.NPCType("CosmicLantern")) < 5) + if (NPC.CountNPCS(ModContent.NPCType()) < 5) { for (int x = 0; x < 5; x++) { - int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + (float)spawnX), (int)(Main.player[npc.target].position.Y + (float)spawnY), mod.NPCType("CosmicLantern"), 0, 0f, 0f, 0f, 0f, 255); + int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + (float)spawnX), (int)(Main.player[npc.target].position.Y + (float)spawnY), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } - int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - (float)spawnX), (int)(Main.player[npc.target].position.Y + (float)spawnY), mod.NPCType("CosmicLantern"), 0, 0f, 0f, 0f, 0f, 255); + int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - (float)spawnX), (int)(Main.player[npc.target].position.Y + (float)spawnY), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(23, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); @@ -570,7 +570,7 @@ namespace CalamityMod.NPCs.CosmicWraith Main.PlaySound(SoundID.Item73, npc.position); int damage = expertMode ? 60 : 70; Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, mod.ProjectileType("EssenceDust"), damage, 0f, Main.myPlayer, 0f, 0f); + int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[projectile].timeLeft = 60; Main.projectile[projectile].velocity.X = 0f; Main.projectile[projectile].velocity.Y = 0f; @@ -729,18 +729,18 @@ namespace CalamityMod.NPCs.CosmicWraith if (CalamityWorld.DoGSecondStageCountdown <= 0) { // Materials - DropHelper.DropItem(npc, mod.ItemType("TwistingNether"), true, 2, 3); + DropHelper.DropItem(npc, ModContent.ItemType(), true, 2, 3); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("Cosmilamp"), 3); - DropHelper.DropItemChance(npc, mod.ItemType("CosmicKunai"), 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("SignusTrophy"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); // Other bool lastSentinelKilled = CalamityWorld.downedSentinel1 && CalamityWorld.downedSentinel2 && !CalamityWorld.downedSentinel3; - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeSentinels"), true, lastSentinelKilled); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, lastSentinelKilled); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedSentinel3, 5, 2, 1); } @@ -811,10 +811,10 @@ namespace CalamityMod.NPCs.CosmicWraith public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("WhisperingDeath"), 420, true); + player.AddBuff(ModContent.BuffType(), 420, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/CosmicWraith/SignusBomb.cs b/NPCs/CosmicWraith/SignusBomb.cs index 9831a65d3c..8d6a54255d 100644 --- a/NPCs/CosmicWraith/SignusBomb.cs +++ b/NPCs/CosmicWraith/SignusBomb.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.CosmicWraith +namespace CalamityMod.NPCs { public class SignusBomb : ModNPC { diff --git a/NPCs/Crabulon/CrabShroom.cs b/NPCs/Crabulon/CrabShroom.cs index a416f0a18e..fb9131cc5f 100644 --- a/NPCs/Crabulon/CrabShroom.cs +++ b/NPCs/Crabulon/CrabShroom.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Crabulon +namespace CalamityMod.NPCs { public class CrabShroom : ModNPC { diff --git a/NPCs/Crabulon/CrabulonIdle.cs b/NPCs/Crabulon/CrabulonIdle.cs index 0e37d5f4af..70b8ba6723 100644 --- a/NPCs/Crabulon/CrabulonIdle.cs +++ b/NPCs/Crabulon/CrabulonIdle.cs @@ -6,9 +6,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Crabulon +namespace CalamityMod.NPCs { [AutoloadBossHead] public class CrabulonIdle : ModNPC @@ -33,8 +33,8 @@ namespace CalamityMod.NPCs.Crabulon npc.lifeMax += (int)(npc.lifeMax * HPBoost); npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.noGravity = false; npc.noTileCollide = false; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); @@ -47,7 +47,7 @@ namespace CalamityMod.NPCs.Crabulon npc.value = Item.buyPrice(0, 4, 0, 0); npc.HitSound = SoundID.NPCHit45; npc.DeathSound = SoundID.NPCDeath1; - bossBag = mod.ItemType("CrabulonBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Crabulon } float num353 = 10f; int num354 = expertMode ? 11 : 14; - int num355 = mod.ProjectileType("MushBomb"); + int num355 = ModContent.ProjectileType(); Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); if (CalamityWorld.bossRushActive) { @@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.Crabulon { if (!player.dead && player.active && (player.Center - npc.Center).Length() < 800f) { - player.AddBuff(mod.BuffType("Mushy"), 2); + player.AddBuff(ModContent.BuffType(), 2); } } int sporeDust = Dust.NewDust(npc.position, npc.width, npc.height, 56, npc.velocity.X, npc.velocity.Y, 255, new Color(0, 80, 255, 80), 1.2f); @@ -336,7 +336,7 @@ namespace CalamityMod.NPCs.Crabulon Main.PlaySound(SoundID.Item14, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { - Projectile.NewProjectile((int)npc.Center.X, (int)npc.Center.Y + 20, 0f, 0f, mod.ProjectileType("Mushmash"), 20, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)npc.Center.X, (int)npc.Center.Y + 20, 0f, 0f, ModContent.ProjectileType(), 20, 0f, Main.myPlayer, 0f, 0f); } npc.ai[2] += 1f; if (npc.ai[2] >= 3f) @@ -346,7 +346,7 @@ namespace CalamityMod.NPCs.Crabulon for (int x = 0; x < 20; x++) { int num354 = expertMode ? 11 : 14; - Projectile.NewProjectile(npc.Center.X + (float)shotSpacing, npc.Center.Y - 1000f, 0f, 0f, mod.ProjectileType("MushBombFall"), num354, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X + (float)shotSpacing, npc.Center.Y - 1000f, 0f, 0f, ModContent.ProjectileType(), num354, 0f, Main.myPlayer, 0f, 0f); shotSpacing -= 100; } shotSpacing = 1000; @@ -434,7 +434,7 @@ namespace CalamityMod.NPCs.Crabulon { int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num663 = mod.NPCType("CrabShroom"); + int num663 = ModContent.NPCType(); int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num664].SetDefaults(num663, -1f); Main.npc[num664].velocity.X = (float)Main.rand.Next(-50, 51) * 0.1f; @@ -482,8 +482,8 @@ namespace CalamityMod.NPCs.Crabulon { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("CrabulonTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeCrabulon"), true, !CalamityWorld.downedCrabulon); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedCrabulon); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedCrabulon, 2, 0, 0); // All other drops are contained in the bag, so they only drop directly on Normal @@ -494,13 +494,13 @@ namespace CalamityMod.NPCs.Crabulon DropHelper.DropItem(npc, ItemID.MushroomGrassSeeds, 3, 6); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("MycelialClaws"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Fungicide"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("HyphaeRod"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Mycoroot"), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("CrabulonMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } // Mark Crabulon as dead diff --git a/NPCs/Cryogen/Cryocore.cs b/NPCs/Cryogen/Cryocore.cs index b6b5b79cdd..672290ffbb 100644 --- a/NPCs/Cryogen/Cryocore.cs +++ b/NPCs/Cryogen/Cryocore.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Cryogen +namespace CalamityMod.NPCs { public class Cryocore : ModNPC { diff --git a/NPCs/Cryogen/Cryocore2.cs b/NPCs/Cryogen/Cryocore2.cs index 45e305c769..ce34552f7d 100644 --- a/NPCs/Cryogen/Cryocore2.cs +++ b/NPCs/Cryogen/Cryocore2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Cryogen +namespace CalamityMod.NPCs { public class Cryocore2 : ModNPC { diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index e51536f679..219e64ed79 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -7,9 +7,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Cryogen +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Cryogen : ModNPC @@ -45,21 +45,21 @@ namespace CalamityMod.NPCs.Cryogen npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.OnFire] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; @@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.Cryogen music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"); else music = MusicID.FrostMoon; - bossBag = mod.ItemType("CryogenBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -102,7 +102,7 @@ namespace CalamityMod.NPCs.Cryogen npc.TargetClosest(true); if (npc.ai[2] == 0f && npc.localAI[1] == 0f && Main.netMode != NetmodeID.MultiplayerClient && (npc.ai[0] < 4f || CalamityWorld.bossRushActive)) //spawn shield for phase 0 1 2 3, not 4 5 { - int num6 = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("CryogenIce"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + int num6 = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); npc.ai[2] = (float)(num6 + 1); npc.localAI[1] = -1f; npc.netUpdate = true; @@ -110,7 +110,7 @@ namespace CalamityMod.NPCs.Cryogen Main.npc[num6].netUpdate = true; } int num7 = (int)npc.ai[2] - 1; - if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == mod.NPCType("CryogenIce")) + if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == ModContent.NPCType()) { npc.dontTakeDamage = true; } @@ -177,8 +177,8 @@ namespace CalamityMod.NPCs.Cryogen for (i = 0; i < 2; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBomb"), num184, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBomb"), num184, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); } time = 0; } @@ -206,8 +206,8 @@ namespace CalamityMod.NPCs.Cryogen for (i = 0; i < 8; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); } } } @@ -259,8 +259,8 @@ namespace CalamityMod.NPCs.Cryogen for (i = 0; i < 6; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); + int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); Main.projectile[ice].timeLeft = 300; Main.projectile[ice2].timeLeft = 300; } @@ -337,7 +337,7 @@ namespace CalamityMod.NPCs.Cryogen if (CalamityWorld.bossRushActive) velocity = 9f; - Projectile.NewProjectile((float)num1169, (float)num1170, 0f, velocity, mod.ProjectileType("IceRain"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)num1169, (float)num1170, 0f, velocity, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } if ((double)npc.life < (double)npc.lifeMax * (0.66 + multAdd)) @@ -373,8 +373,8 @@ namespace CalamityMod.NPCs.Cryogen for (i = 0; i < 6; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * velocity), (float)(Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); + int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * velocity), (float)(-Math.Cos(offsetAngle) * velocity), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); Main.projectile[ice].timeLeft = 300; Main.projectile[ice2].timeLeft = 300; } @@ -394,7 +394,7 @@ namespace CalamityMod.NPCs.Cryogen num180 *= num183; num182 *= num183; int num184 = expertMode ? 23 : 26; - int num185 = mod.ProjectileType("IceRain"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 15; num186++) @@ -462,7 +462,7 @@ namespace CalamityMod.NPCs.Cryogen num180 *= num183; num182 *= num183; int num184 = expertMode ? 23 : 26; - int num185 = mod.ProjectileType("IceRain"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 15; num186++) @@ -545,7 +545,7 @@ namespace CalamityMod.NPCs.Cryogen if (CalamityWorld.bossRushActive) velocity = 9f; - Projectile.NewProjectile((float)num1169, (float)num1170, 0f, velocity, mod.ProjectileType("IceRain"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)num1169, (float)num1170, 0f, velocity, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } if ((double)npc.life < (double)npc.lifeMax * (0.32 + multAdd)) @@ -577,8 +577,8 @@ namespace CalamityMod.NPCs.Cryogen for (i = 0; i < 6; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); + int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); Main.projectile[ice].timeLeft = 300; Main.projectile[ice2].timeLeft = 300; } @@ -833,15 +833,15 @@ namespace CalamityMod.NPCs.Cryogen int randomSpawn = Main.rand.Next(3); if (randomSpawn == 0) { - randomSpawn = mod.NPCType("Cryocore"); + randomSpawn = ModContent.NPCType(); } else if (randomSpawn == 1) { - randomSpawn = mod.NPCType("IceMass"); + randomSpawn = ModContent.NPCType(); } else { - randomSpawn = mod.NPCType("Cryocore2"); + randomSpawn = ModContent.NPCType(); } int num664 = NPC.NewNPC(x, y, randomSpawn, 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server && num664 < 200) @@ -965,43 +965,43 @@ namespace CalamityMod.NPCs.Cryogen { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("CryogenTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeCryogen"), true, !CalamityWorld.downedCryogen); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedCryogen); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedCryogen, 4, 2, 1); if (!Main.expertMode) { // Materials DropHelper.DropItem(npc, ItemID.SoulofMight, 20, 40); - DropHelper.DropItem(npc, mod.ItemType("CryoBar"), 15, 25); - DropHelper.DropItemSpray(npc, mod.ItemType("EssenceofEleum"), 4, 8); + DropHelper.DropItem(npc, ModContent.ItemType(), 15, 25); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 4, 8); DropHelper.DropItem(npc, ItemID.FrostCore); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("Avalanche"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("GlacialCrusher"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("EffluviumBow"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("BittercoldStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("SnowstormStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Icebreaker"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("IceStar"), 4, 100, 150); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4, 100, 150); // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("CryoStone"), 10); - DropHelper.DropItemChance(npc, mod.ItemType("Regenator"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("CryogenMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); // Other DropHelper.DropItemChance(npc, ItemID.FrozenKey, 5); } // Spawn Permafrost if he isn't in the world - int permafrostNPC = NPC.FindFirstNPC(mod.NPCType("DILF")); + int permafrostNPC = NPC.FindFirstNPC(ModContent.NPCType()); if (permafrostNPC == -1 && Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DILF"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } // If Cryogen has not been killed, notify players about Cryonic Ore @@ -1009,7 +1009,7 @@ namespace CalamityMod.NPCs.Cryogen { string key = "Mods.CalamityMod.IceOreText"; Color messageColor = Color.LightSkyBlue; - WorldGenerationMethods.SpawnOre(mod.TileType("CryonicOre"), 15E-05, .45f, .65f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 15E-05, .45f, .65f); if (Main.netMode == NetmodeID.SinglePlayer) Main.NewText(Language.GetTextValue(key), messageColor); diff --git a/NPCs/Cryogen/CryogenIce.cs b/NPCs/Cryogen/CryogenIce.cs index b3ff269585..ed214fc4a2 100644 --- a/NPCs/Cryogen/CryogenIce.cs +++ b/NPCs/Cryogen/CryogenIce.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Cryogen +namespace CalamityMod.NPCs { public class CryogenIce : ModNPC { @@ -42,10 +42,10 @@ namespace CalamityMod.NPCs.Cryogen npc.alpha = 0; } npc.rotation += 0.15f; - if (npc.type == mod.NPCType("CryogenIce")) + if (npc.type == ModContent.NPCType()) { int num989 = (int)npc.ai[0]; - if (Main.npc[num989].active && Main.npc[num989].type == mod.NPCType("Cryogen")) + if (Main.npc[num989].active && Main.npc[num989].type == ModContent.NPCType()) { npc.velocity = Vector2.Zero; npc.position = Main.npc[num989].Center; @@ -112,8 +112,8 @@ namespace CalamityMod.NPCs.Cryogen for (i = 0; i < 2; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); + int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); Main.projectile[ice].timeLeft = 300; Main.projectile[ice2].timeLeft = 300; } diff --git a/NPCs/Cryogen/IceMass.cs b/NPCs/Cryogen/IceMass.cs index 7e930baa6f..668031b484 100644 --- a/NPCs/Cryogen/IceMass.cs +++ b/NPCs/Cryogen/IceMass.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Cryogen +namespace CalamityMod.NPCs { public class IceMass : ModNPC { diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index 756001f1df..f087cd192c 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DesertScourgeBody : ModNPC { @@ -104,7 +104,7 @@ namespace CalamityMod.NPCs.DesertScourge float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); - int projectileType = mod.ProjectileType("SandBlast"); + int projectileType = ModContent.ProjectileType(); int damage = 12; float num941 = CalamityWorld.bossRushActive ? 12f : 6f; num944 = num941 / num944; @@ -135,12 +135,12 @@ namespace CalamityMod.NPCs.DesertScourge public override void HitEffect(int hitDirection, double damage) { int wormCount = 5; - if (npc.life <= (npc.lifeMax * 0.75f) && NPC.CountNPCS(mod.NPCType("DriedSeekerHead")) < wormCount) + if (npc.life <= (npc.lifeMax * 0.75f) && NPC.CountNPCS(ModContent.NPCType()) < wormCount) { if (Main.rand.NextBool(10) && Main.netMode != NetmodeID.MultiplayerClient) { Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); - int seeker = NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("DriedSeekerHead")); + int seeker = NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); if (Main.netMode == NetmodeID.Server && seeker < 200) { NetMessage.SendData(23, -1, -1, null, seeker, 0f, 0f, 0f, 0, 0, 0); diff --git a/NPCs/DesertScourge/DesertScourgeBodySmall.cs b/NPCs/DesertScourge/DesertScourgeBodySmall.cs index 1b28f3e5ba..2774640163 100644 --- a/NPCs/DesertScourge/DesertScourgeBodySmall.cs +++ b/NPCs/DesertScourge/DesertScourgeBodySmall.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DesertScourgeBodySmall : ModNPC { @@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.DesertScourge aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 6381d1324e..21539d3176 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -7,9 +7,9 @@ using Terraria; using Terraria.GameContent.Events; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { [AutoloadBossHead] public class DesertScourgeHead : ModNPC @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; - bossBag = mod.ItemType("DesertScourgeBag"); + bossBag = ModContent.ItemType(); Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (calamityModMusic != null) music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/DesertScourge"); @@ -114,11 +114,11 @@ namespace CalamityMod.NPCs.DesertScourge int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DesertScourgeBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DesertScourgeTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -430,9 +430,9 @@ namespace CalamityMod.NPCs.DesertScourge public override bool SpecialNPCLoot() { int closestSegmentID = DropHelper.FindClosestWormSegment(npc, - mod.NPCType("DesertScourgeHead"), - mod.NPCType("DesertScourgeBody"), - mod.NPCType("DesertScourgeTail")); + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType()); npc.position = Main.npc[closestSegmentID].position; return false; } @@ -442,38 +442,38 @@ namespace CalamityMod.NPCs.DesertScourge DropHelper.DropBags(npc); DropHelper.DropItem(npc, ItemID.LesserHealingPotion, 8, 14); - DropHelper.DropItemChance(npc, mod.ItemType("DesertScourgeTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeDesertScourge"), true, !CalamityWorld.downedDesertScourge); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedDesertScourge); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedDesertScourge, 2, 0, 0); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItem(npc, mod.ItemType("VictoryShard"), 7, 14); + DropHelper.DropItem(npc, ModContent.ItemType(), 7, 14); DropHelper.DropItem(npc, ItemID.Coral, 5, 9); DropHelper.DropItem(npc, ItemID.Seashell, 5, 9); DropHelper.DropItem(npc, ItemID.Starfish, 5, 9); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("AquaticDischarge"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Barinade"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("StormSpray"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("SeaboundStaff"), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); float f = Main.rand.NextFloat(); bool replaceWithRare = f <= DropHelper.RareVariantDropRateFloat; // 1/40 chance overall of getting Dune Hopper if (f < 0.25f) // 1/4 chance of getting Scourge of the Desert OR Dune Hopper replacing it { - DropHelper.DropItemCondition(npc, mod.ItemType("ScourgeoftheDesert"), !replaceWithRare); - DropHelper.DropItemCondition(npc, mod.ItemType("DuneHopper"), replaceWithRare); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !replaceWithRare); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), replaceWithRare); } // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("AeroStone"), 10); - DropHelper.DropItemChance(npc, mod.ItemType("DeepDiver"), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("DesertScourgeMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); // Fishing DropHelper.DropItemChance(npc, ItemID.HighTestFishingLine, 15); diff --git a/NPCs/DesertScourge/DesertScourgeHeadSmall.cs b/NPCs/DesertScourge/DesertScourgeHeadSmall.cs index 2af719460e..175a68dc7d 100644 --- a/NPCs/DesertScourge/DesertScourgeHeadSmall.cs +++ b/NPCs/DesertScourge/DesertScourgeHeadSmall.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DesertScourgeHeadSmall : ModNPC { @@ -75,11 +75,11 @@ namespace CalamityMod.NPCs.DesertScourge int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DesertScourgeBodySmall"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DesertScourgeTailSmall"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index 8ac5bda5fc..8c37feb176 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DesertScourgeTail : ModNPC { diff --git a/NPCs/DesertScourge/DesertScourgeTailSmall.cs b/NPCs/DesertScourge/DesertScourgeTailSmall.cs index 46420af657..8d2ff924fe 100644 --- a/NPCs/DesertScourge/DesertScourgeTailSmall.cs +++ b/NPCs/DesertScourge/DesertScourgeTailSmall.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DesertScourgeTailSmall : ModNPC { @@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.DesertScourge aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/DesertScourge/DriedSeekerBody.cs b/NPCs/DesertScourge/DriedSeekerBody.cs index ed7c199ef0..aa3c43b3e0 100644 --- a/NPCs/DesertScourge/DriedSeekerBody.cs +++ b/NPCs/DesertScourge/DriedSeekerBody.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DriedSeekerBody : ModNPC { diff --git a/NPCs/DesertScourge/DriedSeekerHead.cs b/NPCs/DesertScourge/DriedSeekerHead.cs index 806461c9fa..6e36c31991 100644 --- a/NPCs/DesertScourge/DriedSeekerHead.cs +++ b/NPCs/DesertScourge/DriedSeekerHead.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DriedSeekerHead : ModNPC { @@ -47,11 +47,11 @@ namespace CalamityMod.NPCs.DesertScourge int lol; if (num36 >= 0 && num36 < 3) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DriedSeekerBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DriedSeekerTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; diff --git a/NPCs/DesertScourge/DriedSeekerTail.cs b/NPCs/DesertScourge/DriedSeekerTail.cs index f70424130b..4a706b1463 100644 --- a/NPCs/DesertScourge/DriedSeekerTail.cs +++ b/NPCs/DesertScourge/DriedSeekerTail.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.DesertScourge +namespace CalamityMod.NPCs { public class DriedSeekerTail : ModNPC { diff --git a/NPCs/GreatSandShark/GreatSandShark.cs b/NPCs/GreatSandShark/GreatSandShark.cs index a54cb2b33e..85121a0bac 100644 --- a/NPCs/GreatSandShark/GreatSandShark.cs +++ b/NPCs/GreatSandShark/GreatSandShark.cs @@ -6,9 +6,9 @@ using System.IO; using Terraria; using Terraria.GameContent.Events; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.GreatSandShark +namespace CalamityMod.NPCs { public class GreatSandShark : ModNPC { @@ -46,25 +46,25 @@ namespace CalamityMod.NPCs.GreatSandShark npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.behindTiles = true; npc.netAlways = true; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.timeLeft = NPC.activeTime * 30; banner = npc.type; - bannerItem = mod.ItemType("GreatSandSharkBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -468,7 +468,7 @@ namespace CalamityMod.NPCs.GreatSandShark int spawnX = (int)(npc.width / 2); for (int sand = 0; sand < 5; sand++) Projectile.NewProjectile(npc.Center.X + (float)Main.rand.Next(-spawnX, spawnX), npc.Center.Y, - (float)Main.rand.Next(-3, 4), (float)Main.rand.Next(-12, -6), mod.ProjectileType("GreatSandBlast"), 40, 0f, Main.myPlayer, 0f, 0f); + (float)Main.rand.Next(-3, 4), (float)Main.rand.Next(-12, -6), ModContent.ProjectileType(), 40, 0f, Main.myPlayer, 0f, 0f); } npc.ai[2] = -30f; Vector2 vector261 = npc.DirectionTo(vector260 + new Vector2(0f, -80f)); @@ -671,10 +671,10 @@ namespace CalamityMod.NPCs.GreatSandShark public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrandScale")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); if (Main.expertMode && Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrandScale")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/HiveMind/DankCreeper.cs b/NPCs/HiveMind/DankCreeper.cs index f1d157b664..b58556c251 100644 --- a/NPCs/HiveMind/DankCreeper.cs +++ b/NPCs/HiveMind/DankCreeper.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.HiveMind +namespace CalamityMod.NPCs { public class DankCreeper : ModNPC { @@ -86,7 +86,7 @@ namespace CalamityMod.NPCs.HiveMind { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(ModContent.BuffType(), 120); } } @@ -112,7 +112,7 @@ namespace CalamityMod.NPCs.HiveMind { if (Main.expertMode && Main.netMode != NetmodeID.MultiplayerClient) { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("ShadeNimbusHostile"), 14, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, ModContent.ProjectileType(), 14, 0f, Main.myPlayer, 0f, 0f); } } } diff --git a/NPCs/HiveMind/DarkHeart.cs b/NPCs/HiveMind/DarkHeart.cs index 52cf99ff8f..5d25979f55 100644 --- a/NPCs/HiveMind/DarkHeart.cs +++ b/NPCs/HiveMind/DarkHeart.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.HiveMind +namespace CalamityMod.NPCs { public class DarkHeart : ModNPC { @@ -112,7 +112,7 @@ namespace CalamityMod.NPCs.HiveMind int num1169 = (int)(npc.position.X + 10f + (float)Main.rand.Next(npc.width - 20)); int num1170 = (int)(npc.position.Y + (float)npc.height + 4f); int num184 = Main.expertMode ? 14 : 18; - Projectile.NewProjectile((float)num1169, (float)num1170, 0f, 5f, mod.ProjectileType("ShaderainHostile"), num184, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)num1169, (float)num1170, 0f, 5f, ModContent.ProjectileType(), num184, 0f, Main.myPlayer, 0f, 0f); } } } diff --git a/NPCs/HiveMind/HiveBlob.cs b/NPCs/HiveMind/HiveBlob.cs index 2e79cf9573..5d5c189af1 100644 --- a/NPCs/HiveMind/HiveBlob.cs +++ b/NPCs/HiveMind/HiveBlob.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.HiveMind +namespace CalamityMod.NPCs { public class HiveBlob : ModNPC { @@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.HiveMind num942 *= num944; num943 *= num944; int num945 = expertMode ? 12 : 15; - int num946 = mod.ProjectileType("VileClot"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); diff --git a/NPCs/HiveMind/HiveBlob2.cs b/NPCs/HiveMind/HiveBlob2.cs index 6b3a234e83..2ab87cd571 100644 --- a/NPCs/HiveMind/HiveBlob2.cs +++ b/NPCs/HiveMind/HiveBlob2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.HiveMind +namespace CalamityMod.NPCs { public class HiveBlob2 : ModNPC { @@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.HiveMind num942 *= num944; num943 *= num944; int num945 = expertMode ? 12 : 15; - int num946 = mod.ProjectileType("VileClot"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); diff --git a/NPCs/HiveMind/HiveCyst.cs b/NPCs/HiveMind/HiveCyst.cs index 944a6b8688..280a766551 100644 --- a/NPCs/HiveMind/HiveCyst.cs +++ b/NPCs/HiveMind/HiveCyst.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.HiveMind +namespace CalamityMod.NPCs { public class HiveCyst : ModNPC { @@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.HiveMind public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || NPC.AnyNPCs(mod.NPCType("HiveCyst")) || NPC.AnyNPCs(mod.NPCType("HiveMind")) || NPC.AnyNPCs(mod.NPCType("HiveMindP2"))) + if (spawnInfo.playerSafe || NPC.AnyNPCs(ModContent.NPCType()) || NPC.AnyNPCs(ModContent.NPCType()) || NPC.AnyNPCs(ModContent.NPCType())) { return 0f; } @@ -69,10 +69,10 @@ namespace CalamityMod.NPCs.HiveMind { Dust.NewDust(npc.position, npc.width, npc.height, 14, hitDirection, -1f, 0, default, 1f); } - if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(mod.NPCType("HiveMind")) < 1) + if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(ModContent.NPCType()) < 1) { Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("HiveMind")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } } } diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 6189168141..81ca180dba 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.HiveMind +namespace CalamityMod.NPCs { [AutoloadBossHead] public class HiveMind : ModNPC @@ -30,8 +30,8 @@ namespace CalamityMod.NPCs.HiveMind npc.lifeMax += (int)(npc.lifeMax * HPBoost); npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.knockBackResist = 0f; npc.boss = true; npc.value = 0f; @@ -108,7 +108,7 @@ namespace CalamityMod.NPCs.HiveMind if (npc.localAI[1] >= 600f) { npc.localAI[1] = 0f; - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("HiveBlob"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } if (npc.localAI[0] == 0f) @@ -116,7 +116,7 @@ namespace CalamityMod.NPCs.HiveMind npc.localAI[0] = 1f; for (int num723 = 0; num723 < 5; num723++) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("HiveBlob"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } } @@ -126,7 +126,7 @@ namespace CalamityMod.NPCs.HiveMind { for (int num569 = 0; num569 < 200; num569++) { - if (Main.npc[num569].active && Main.npc[num569].type == mod.NPCType("DankCreeper")) + if (Main.npc[num569].active && Main.npc[num569].type == ModContent.NPCType()) { flag100 = true; num568++; @@ -158,10 +158,10 @@ namespace CalamityMod.NPCs.HiveMind { int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num663 = mod.NPCType("HiveBlob"); + int num663 = ModContent.NPCType(); if (Main.rand.NextBool(3) || npc.Calamity().enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive)) { - num663 = mod.NPCType("DankCreeper"); + num663 = ModContent.NPCType(); } int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num664].SetDefaults(num663, -1f); @@ -298,9 +298,9 @@ namespace CalamityMod.NPCs.HiveMind Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindGore4"), 1f); if (Main.netMode != NetmodeID.MultiplayerClient) { - if (NPC.CountNPCS(mod.NPCType("HiveMindP2")) < 1) + if (NPC.CountNPCS(ModContent.NPCType()) < 1) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("HiveMindP2"), npc.whoAmI, 0f, 0f, 0f, 0f, npc.target); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, npc.target); Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); } } @@ -326,7 +326,7 @@ namespace CalamityMod.NPCs.HiveMind { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/HiveMind/HiveMindP2.cs b/NPCs/HiveMind/HiveMindP2.cs index 37ab115948..724643b8ce 100644 --- a/NPCs/HiveMind/HiveMindP2.cs +++ b/NPCs/HiveMind/HiveMindP2.cs @@ -6,7 +6,7 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; /* states: * 0 = slow drift @@ -18,7 +18,7 @@ using Terraria.ModLoader; * 6 = deceleration */ -namespace CalamityMod.NPCs.HiveMind +namespace CalamityMod.NPCs { [AutoloadBossHead] public class HiveMindP2 : ModNPC @@ -64,8 +64,8 @@ namespace CalamityMod.NPCs.HiveMind npc.lifeMax += (int)(npc.lifeMax * HPBoost); npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 6, 0, 0); npc.boss = true; @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.HiveMind music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"); else music = MusicID.Boss2; - bossBag = mod.ItemType("HiveMindBag"); + bossBag = ModContent.ItemType(); NPCID.Sets.TrailCacheLength[npc.type] = 8; NPCID.Sets.TrailingMode[npc.type] = 1; if (Main.expertMode) @@ -208,15 +208,15 @@ namespace CalamityMod.NPCs.HiveMind maxAmount = 1; break; case 1: - type = mod.NPCType("DankCreeper"); + type = ModContent.NPCType(); maxAmount = 1; break; case 2: - type = mod.NPCType("DankCreeper"); + type = ModContent.NPCType(); maxAmount = 2; break; case 3: - type = mod.NPCType("HiveBlob2"); + type = ModContent.NPCType(); maxAmount = 2; break; case 4: @@ -224,7 +224,7 @@ namespace CalamityMod.NPCs.HiveMind maxAmount = 2; break; case 5: - type = mod.NPCType("DarkHeart"); + type = ModContent.NPCType(); maxAmount = 2; break; } @@ -503,9 +503,9 @@ namespace CalamityMod.NPCs.HiveMind { if (npc.ai[0] == 2 || npc.ai[0] == 4) { - if ((Main.expertMode || CalamityWorld.bossRushActive) && NPC.CountNPCS(mod.NPCType("DarkHeart")) < 2) + if ((Main.expertMode || CalamityWorld.bossRushActive) && NPC.CountNPCS(ModContent.NPCType()) < 2) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DarkHeart")); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType()); } } else if (NPC.CountNPCS(NPCID.EaterofSouls) < 2) @@ -557,7 +557,7 @@ namespace CalamityMod.NPCs.HiveMind if (Main.netMode != NetmodeID.MultiplayerClient) { int damage = Main.expertMode ? 14 : 18; - Projectile.NewProjectile(npc.position.X + Main.rand.Next(npc.width), npc.position.Y + Main.rand.Next(npc.height), 0, 0, mod.ProjectileType("ShadeNimbusHostile"), damage, 0, Main.myPlayer, 11, 0); + Projectile.NewProjectile(npc.position.X + Main.rand.Next(npc.width), npc.position.Y + Main.rand.Next(npc.height), 0, 0, ModContent.ProjectileType(), damage, 0, Main.myPlayer, 11, 0); } if (npc.ai[0] == 10) { @@ -617,10 +617,10 @@ namespace CalamityMod.NPCs.HiveMind { Dust.NewDust(npc.position, npc.width, npc.height, 14, hitDirection, -1f, 0, default, 1f); } - if (Main.netMode != NetmodeID.MultiplayerClient && Main.rand.NextBool(15) && NPC.CountNPCS(mod.NPCType("HiveBlob2")) < 2) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.rand.NextBool(15) && NPC.CountNPCS(ModContent.NPCType()) < 2) { Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("HiveBlob2")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } if (npc.life <= 0) { @@ -666,31 +666,31 @@ namespace CalamityMod.NPCs.HiveMind { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("HiveMindTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeHiveMind"), true, !CalamityWorld.downedHiveMind); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedHiveMind); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedHiveMind, 2, 0, 0); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItemSpray(npc, mod.ItemType("TrueShadowScale"), 25, 30); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 25, 30); DropHelper.DropItemSpray(npc, ItemID.DemoniteBar, 7, 10); DropHelper.DropItemSpray(npc, ItemID.RottenChunk, 9, 15); if (Main.hardMode) DropHelper.DropItemSpray(npc, ItemID.CursedFlame, 10, 20); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("PerfectDark"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("LeechingDagger"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Shadethrower"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("ShadowdropStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("ShaderainStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("DankStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("RotBall"), 4, 25, 50); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4, 25, 50); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("HiveMindMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } // If neither The Hive Mind nor The Perforator Hive have been killed yet, notify players of Aerialite Ore @@ -698,7 +698,7 @@ namespace CalamityMod.NPCs.HiveMind { string key = "Mods.CalamityMod.SkyOreText"; Color messageColor = Color.Cyan; - WorldGenerationMethods.SpawnOre(mod.TileType("AerialiteOre"), 12E-05, .4f, .6f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 12E-05, .4f, .6f); if (Main.netMode == NetmodeID.SinglePlayer) Main.NewText(Language.GetTextValue(key), messageColor); @@ -715,7 +715,7 @@ namespace CalamityMod.NPCs.HiveMind { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/Leviathan/AquaticAberration.cs b/NPCs/Leviathan/AquaticAberration.cs index dea66b1254..f42054b270 100644 --- a/NPCs/Leviathan/AquaticAberration.cs +++ b/NPCs/Leviathan/AquaticAberration.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { public class AquaticAberration : ModNPC { @@ -35,7 +35,7 @@ namespace CalamityMod.NPCs.Leviathan npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("AquaticAberrationBanner"); + bannerItem = ModContent.ItemType(); } public override void FindFrame(int frameHeight) @@ -199,7 +199,7 @@ namespace CalamityMod.NPCs.Leviathan player.AddBuff(BuffID.Wet, 120, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(ModContent.BuffType(), 120); } } diff --git a/NPCs/Leviathan/LevScreenShaderData.cs b/NPCs/Leviathan/LevScreenShaderData.cs index 1750c129d7..e25e047726 100644 --- a/NPCs/Leviathan/LevScreenShaderData.cs +++ b/NPCs/Leviathan/LevScreenShaderData.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { public class LevScreenShaderData : ScreenShaderData { diff --git a/NPCs/Leviathan/LevSky.cs b/NPCs/Leviathan/LevSky.cs index 9043aac52c..f60cdcf7be 100644 --- a/NPCs/Leviathan/LevSky.cs +++ b/NPCs/Leviathan/LevSky.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { public class LevSky : CustomSky { diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index c2c4180c14..82dbcf40c7 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -6,9 +6,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Leviathan : ModNPC @@ -43,16 +43,16 @@ namespace CalamityMod.NPCs.Leviathan npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit56; npc.DeathSound = SoundID.NPCDeath60; npc.noTileCollide = true; @@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.Leviathan music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndSiren"); else music = MusicID.Boss3; - bossBag = mod.ItemType("LeviathanBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -140,7 +140,7 @@ namespace CalamityMod.NPCs.Leviathan { for (int x = 0; x < 200; x++) { - if (Main.npc[x].type == mod.NPCType("Siren")) + if (Main.npc[x].type == ModContent.NPCType()) { Main.npc[x].active = false; Main.npc[x].netUpdate = true; @@ -241,7 +241,7 @@ namespace CalamityMod.NPCs.Leviathan { float num418 = sirenAlive ? 13.5f : 16f; int num419 = 40; - int num420 = mod.ProjectileType("LeviathanBomb"); + int num420 = ModContent.ProjectileType(); if (expertMode) { num418 = sirenAlive ? 14f : 17f; @@ -296,7 +296,7 @@ namespace CalamityMod.NPCs.Leviathan if (flag103) { Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, soundChoice); - if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(mod.NPCType("Parasea")) < spawnLimit2 && NPC.CountNPCS(mod.NPCType("AquaticAberration")) < spawnLimit) + if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(ModContent.NPCType()) < spawnLimit2 && NPC.CountNPCS(ModContent.NPCType()) < spawnLimit) { int num1061; int value = CalamityWorld.death ? 2 : 3; @@ -304,11 +304,11 @@ namespace CalamityMod.NPCs.Leviathan value++; if (Main.rand.Next(value) == 0) { - num1061 = mod.NPCType("AquaticAberration"); + num1061 = ModContent.NPCType(); } else { - num1061 = mod.NPCType("Parasea"); + num1061 = ModContent.NPCType(); } int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, num1061, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num1062].velocity.X = (float)Main.rand.Next(-200, 201) * 0.01f; @@ -601,7 +601,7 @@ namespace CalamityMod.NPCs.Leviathan // The Leviathan runs the same loot code as Anahita, but only if she dies last. public override void NPCLoot() { - if (!NPC.AnyNPCs(mod.NPCType("Siren"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) DropSirenLeviLoot(npc); } @@ -611,29 +611,29 @@ namespace CalamityMod.NPCs.Leviathan CalamityMod mod = ModContent.GetInstance(); DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("LeviathanTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeOcean"), true, !CalamityWorld.downedLeviathan); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeLeviathanandSiren"), true, !CalamityWorld.downedLeviathan); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedLeviathan); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedLeviathan); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedLeviathan, 4, 2, 1); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Weapons - DropHelper.DropItemCondition(npc, mod.ItemType("Greentide"), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("Leviatitan"), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("SirensSong"), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("Atlantis"), Main.hardMode, 4, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("BrackishFlask"), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); // Equipment - DropHelper.DropItemCondition(npc, mod.ItemType("LureofEnthrallment"), Main.hardMode, 4, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 4, 1, 1); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("LeviathanMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); // Fishing - DropHelper.DropItem(npc, mod.ItemType("EnchantedPearl")); + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemChance(npc, ItemID.HotlineFishingHook, 10); DropHelper.DropItemChance(npc, ItemID.BottomlessBucket, 10); DropHelper.DropItemChance(npc, ItemID.SuperAbsorbantSponge, 10); @@ -642,7 +642,7 @@ namespace CalamityMod.NPCs.Leviathan DropHelper.DropItemChance(npc, ItemID.CratePotion, 5, 5, 8); // Other - DropHelper.DropItemCondition(npc, mod.ItemType("IOU"), !Main.hardMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.hardMode); } // Mark Siren & Levi as dead diff --git a/NPCs/Leviathan/LeviathanStart.cs b/NPCs/Leviathan/LeviathanStart.cs index b103bcacd3..8be9392cbc 100644 --- a/NPCs/Leviathan/LeviathanStart.cs +++ b/NPCs/Leviathan/LeviathanStart.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { public class LeviathanStart : ModNPC { @@ -57,9 +57,9 @@ namespace CalamityMod.NPCs.Leviathan { if (spawnInfo.playerSafe || NPC.AnyNPCs(NPCID.DukeFishron) || - NPC.AnyNPCs(mod.NPCType("LeviathanStart")) || - NPC.AnyNPCs(mod.NPCType("Siren")) || - NPC.AnyNPCs(mod.NPCType("Leviathan")) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || spawnInfo.player.Calamity().ZoneSulphur) { return 0f; @@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.Leviathan { if (CalamityWorld.revenge && Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, Main.rand.NextBool(2) ? mod.ItemType("SirensHeart") : mod.ItemType("SirensHeartAlt")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, Main.rand.NextBool(2) ? ModContent.ItemType() : ModContent.ItemType()); } } @@ -106,7 +106,7 @@ namespace CalamityMod.NPCs.Leviathan } if (Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, mod.NPCType("Siren"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } } diff --git a/NPCs/Leviathan/Parasea.cs b/NPCs/Leviathan/Parasea.cs index 92ee15623b..b717cd14a7 100644 --- a/NPCs/Leviathan/Parasea.cs +++ b/NPCs/Leviathan/Parasea.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { public class Parasea : ModNPC { @@ -35,7 +35,7 @@ namespace CalamityMod.NPCs.Leviathan npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("ParaseaBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() diff --git a/NPCs/Leviathan/Siren.cs b/NPCs/Leviathan/Siren.cs index c5684e6b8c..533e303920 100644 --- a/NPCs/Leviathan/Siren.cs +++ b/NPCs/Leviathan/Siren.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Siren : ModNPC @@ -44,19 +44,19 @@ namespace CalamityMod.NPCs.Leviathan npc.buffImmune[k] = true; } npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit1; @@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.Leviathan music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Siren"); else music = MusicID.Boss3; - bossBag = mod.ItemType("LeviathanBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -125,7 +125,7 @@ namespace CalamityMod.NPCs.Leviathan if (!spawnedLevi) { if (revenge) - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, mod.NPCType("SirenClone")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, ModContent.NPCType()); Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (calamityModMusic != null) @@ -133,7 +133,7 @@ namespace CalamityMod.NPCs.Leviathan else music = MusicID.Boss3; - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("Leviathan")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); spawnedLevi = true; } } @@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.Leviathan { if (!secondClone) { - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, mod.NPCType("SirenClone")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, ModContent.NPCType()); secondClone = true; } } @@ -152,7 +152,7 @@ namespace CalamityMod.NPCs.Leviathan // Ice Shield if (npc.ai[3] == 0f && npc.localAI[1] == 0f && Main.netMode != NetmodeID.MultiplayerClient) { - int num6 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("SirenIce"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + int num6 = NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); npc.ai[3] = (float)(num6 + 1); npc.localAI[1] = -1f; npc.netUpdate = true; @@ -161,7 +161,7 @@ namespace CalamityMod.NPCs.Leviathan } int num7 = (int)npc.ai[3] - 1; - if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == mod.NPCType("SirenIce")) + if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == ModContent.NPCType()) npc.dontTakeDamage = true; else { @@ -428,20 +428,20 @@ namespace CalamityMod.NPCs.Leviathan num1072 *= num1073; int num1074 = expertMode ? 26 : 32; - int num1075 = mod.ProjectileType("WaterSpear"); + int num1075 = ModContent.ProjectileType(); switch (Main.rand.Next(6)) { case 0: - num1075 = mod.ProjectileType("SirenSong"); + num1075 = ModContent.ProjectileType(); break; case 1: - num1075 = mod.ProjectileType("FrostMist"); + num1075 = ModContent.ProjectileType(); break; case 2: case 3: case 4: case 5: - num1075 = mod.ProjectileType("WaterSpear"); + num1075 = ModContent.ProjectileType(); break; } if (isNotOcean) @@ -572,7 +572,7 @@ namespace CalamityMod.NPCs.Leviathan { for (int x = 0; x < 200; x++) { - if (Main.npc[x].type == mod.NPCType("Leviathan")) + if (Main.npc[x].type == ModContent.NPCType()) { Main.npc[x].active = false; Main.npc[x].netUpdate = true; @@ -815,7 +815,7 @@ namespace CalamityMod.NPCs.Leviathan // Anahita runs the same loot code as the Leviathan, but only if she dies last. public override void NPCLoot() { - if (!NPC.AnyNPCs(mod.NPCType("Leviathan"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) Leviathan.DropSirenLeviLoot(npc); } diff --git a/NPCs/Leviathan/SirenClone.cs b/NPCs/Leviathan/SirenClone.cs index 6b29250f33..f36af9577f 100644 --- a/NPCs/Leviathan/SirenClone.cs +++ b/NPCs/Leviathan/SirenClone.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { public class SirenClone : ModNPC { @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.Leviathan if (Main.netMode != NetmodeID.MultiplayerClient) { int damage = Main.expertMode ? 26 : 32; - Projectile.NewProjectile(center.X, center.Y, direction.X, direction.Y, mod.ProjectileType("WaterSpear"), damage, 0f, npc.target); + Projectile.NewProjectile(center.X, center.Y, direction.X, direction.Y, ModContent.ProjectileType(), damage, 0f, npc.target); } } } diff --git a/NPCs/Leviathan/SirenIce.cs b/NPCs/Leviathan/SirenIce.cs index a68379475d..23a361d280 100644 --- a/NPCs/Leviathan/SirenIce.cs +++ b/NPCs/Leviathan/SirenIce.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Leviathan +namespace CalamityMod.NPCs { public class SirenIce : ModNPC { @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.Leviathan } Player player = Main.player[npc.target]; int num989 = (int)npc.ai[0]; - if (Main.npc[num989].active && Main.npc[num989].type == mod.NPCType("Siren")) + if (Main.npc[num989].active && Main.npc[num989].type == ModContent.NPCType()) { npc.rotation = Main.npc[num989].rotation; npc.spriteDirection = Main.npc[num989].direction; @@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.Leviathan public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type != mod.ProjectileType("FlakKraken")) + if (projectile.type != ModContent.ProjectileType()) { if (projectile.penetrate == -1 && !projectile.minion) { diff --git a/NPCs/NormalNPCs/AeroSlime.cs b/NPCs/NormalNPCs/AeroSlime.cs index 4ab6ebff76..4f3637004a 100644 --- a/NPCs/NormalNPCs/AeroSlime.cs +++ b/NPCs/NormalNPCs/AeroSlime.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class AeroSlime : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("AeroSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AerialiteOre"), Main.rand.Next(10, 27)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 27)); } } } diff --git a/NPCs/NormalNPCs/AngryDog.cs b/NPCs/NormalNPCs/AngryDog.cs index c94fa814c0..e571493981 100644 --- a/NPCs/NormalNPCs/AngryDog.cs +++ b/NPCs/NormalNPCs/AngryDog.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class AngryDog : ModNPC { @@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = mod.GetLegacySoundSlot(SoundType.NPCHit, "Sounds/NPCHit/AngryDogHit"); npc.DeathSound = SoundID.NPCDeath5; banner = npc.type; - bannerItem = mod.ItemType("AngryDogBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -656,7 +656,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.rand.NextBool(100)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Cryophobia")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/ArmoredDiggerBody.cs b/NPCs/NormalNPCs/ArmoredDiggerBody.cs index 01a2ce7279..4ffc07f7bb 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerBody.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerBody.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ArmoredDiggerBody : ModNPC { @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.NormalNPCs } npc.netAlways = true; npc.dontCountMe = true; - banner = mod.NPCType("ArmoredDiggerHead"); - bannerItem = mod.ItemType("ArmoredDiggerBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/NormalNPCs/ArmoredDiggerHead.cs b/NPCs/NormalNPCs/ArmoredDiggerHead.cs index d44d7e8262..2b182db0f6 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerHead.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerHead.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ArmoredDiggerHead : ModNPC { @@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.NormalNPCs } npc.netAlways = true; banner = npc.type; - bannerItem = mod.ItemType("ArmoredDiggerBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -63,10 +63,10 @@ namespace CalamityMod.NPCs.NormalNPCs int num3 = 40; for (int j = 0; j <= num3; j++) { - int num4 = mod.NPCType("ArmoredDiggerBody"); + int num4 = ModContent.NPCType(); if (j == num3) { - num4 = mod.NPCType("ArmoredDiggerTail"); + num4 = ModContent.NPCType(); } int num5 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), num4, npc.whoAmI, 0f, 0f, 0f, 0f, 255); Main.npc[num5].ai[3] = (float)npc.whoAmI; @@ -164,8 +164,8 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int a = 0; a < 200; a++) { - if (Main.npc[a].type == mod.NPCType("ArmoredDiggerHead") || Main.npc[a].type == mod.NPCType("ArmoredDiggerBody") || - Main.npc[a].type == mod.NPCType("ArmoredDiggerTail")) + if (Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType() || + Main.npc[a].type == ModContent.NPCType()) { Main.npc[a].active = false; } @@ -411,13 +411,13 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(40)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LeadWizard")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DraedonsRemote")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh"), Main.rand.Next(2, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 5)); } } } diff --git a/NPCs/NormalNPCs/ArmoredDiggerTail.cs b/NPCs/NormalNPCs/ArmoredDiggerTail.cs index 702b32f078..27e012a899 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerTail.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerTail.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ArmoredDiggerTail : ModNPC { @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.NormalNPCs } npc.netAlways = true; npc.dontCountMe = true; - banner = mod.NPCType("ArmoredDiggerHead"); - bannerItem = mod.ItemType("ArmoredDiggerBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/NormalNPCs/BlightedEye.cs b/NPCs/NormalNPCs/BlightedEye.cs index 3f7585fe9a..1bcb47a018 100644 --- a/NPCs/NormalNPCs/BlightedEye.cs +++ b/NPCs/NormalNPCs/BlightedEye.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class BlightedEye : ModNPC { @@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("BlightedEyeBanner"); + bannerItem = ModContent.ItemType(); } public override void HitEffect(int hitDirection, double damage) @@ -62,7 +62,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlightedLens")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/BloomSlime.cs b/NPCs/NormalNPCs/BloomSlime.cs index 9f82562cfc..b692a87d10 100644 --- a/NPCs/NormalNPCs/BloomSlime.cs +++ b/NPCs/NormalNPCs/BloomSlime.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class BloomSlime : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("BloomSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("UelibloomOre"), Main.rand.Next(10, 27)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 27)); } } } diff --git a/NPCs/NormalNPCs/Bohldohr.cs b/NPCs/NormalNPCs/Bohldohr.cs index 1d9a9a3cf4..b750ee0e20 100644 --- a/NPCs/NormalNPCs/Bohldohr.cs +++ b/NPCs/NormalNPCs/Bohldohr.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Bohldohr : ModNPC { @@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath35; npc.behindTiles = true; banner = npc.type; - bannerItem = mod.ItemType("BOHLDOHRBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -341,7 +341,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.downedSCal) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("NO")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/CalamityEye.cs b/NPCs/NormalNPCs/CalamityEye.cs index 23b0c4d998..4de769d53f 100644 --- a/NPCs/NormalNPCs/CalamityEye.cs +++ b/NPCs/NormalNPCs/CalamityEye.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CalamityEye : ModNPC { @@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("CalamityEyeBanner"); + bannerItem = ModContent.ItemType(); } public override void HitEffect(int hitDirection, double damage) @@ -57,14 +57,14 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Weak, 120, true); - player.AddBuff(mod.BuffType("BrimstoneFlames"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlightedLens")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(2)) { diff --git a/NPCs/NormalNPCs/CharredSlime.cs b/NPCs/NormalNPCs/CharredSlime.cs index d293a19d7c..35111e0fc7 100644 --- a/NPCs/NormalNPCs/CharredSlime.cs +++ b/NPCs/NormalNPCs/CharredSlime.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CharredSlime : ModNPC { @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("CharredSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -59,7 +59,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CharredOre"), Main.rand.Next(10, 27)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 27)); } } } diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index 3c2935bd03..537894197e 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Cnidrion : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath18; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("CnidrionBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -112,7 +112,7 @@ namespace CalamityMod.NPCs.NormalNPCs num830 *= num831; num829 *= 1f + (float)Main.rand.Next(-10, 11) * 0.01f; num830 *= 1f + (float)Main.rand.Next(-10, 11) * 0.01f; - Projectile.NewProjectile(vector18.X, vector18.Y, num829, num830, mod.ProjectileType("HorsWaterBlast"), expertMode ? 8 : 11, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector18.X, vector18.Y, num829, num830, ModContent.ProjectileType(), expertMode ? 8 : 11, 0f, Main.myPlayer, 0f, 0f); } if (npc.ai[1] >= 120f) { @@ -137,7 +137,7 @@ namespace CalamityMod.NPCs.NormalNPCs num830 *= num831; num829 *= 1f + (float)Main.rand.Next(-15, 16) * 0.01f; num830 *= 1f + (float)Main.rand.Next(-15, 16) * 0.01f; - Projectile.NewProjectile(vector18.X, vector18.Y, num829, num830, mod.ProjectileType("HorsWaterBlast"), expertMode ? 9 : 12, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector18.X, vector18.Y, num829, num830, ModContent.ProjectileType(), expertMode ? 9 : 12, 0f, Main.myPlayer, 0f, 0f); } if (npc.ai[1] >= 300f) { @@ -162,7 +162,7 @@ namespace CalamityMod.NPCs.NormalNPCs num845 *= num846; num844 *= 1f + (float)Main.rand.Next(-10, 11) * 0.001f; num845 *= 1f + (float)Main.rand.Next(-10, 11) * 0.001f; - int num848 = Projectile.NewProjectile(vector18.X, vector18.Y, num844, num845, mod.ProjectileType("HorsWaterBlast"), expertMode ? 11 : 14, 0f, Main.myPlayer, 0f, 0f); + int num848 = Projectile.NewProjectile(vector18.X, vector18.Y, num844, num845, ModContent.ProjectileType(), expertMode ? 11 : 14, 0f, Main.myPlayer, 0f, 0f); } if (npc.ai[1] >= 120f) { @@ -187,7 +187,7 @@ namespace CalamityMod.NPCs.NormalNPCs num830 *= num831; num829 *= 1f + (float)Main.rand.Next(-5, 6) * 0.01f; num830 *= 1f + (float)Main.rand.Next(-5, 6) * 0.01f; - int num833 = Projectile.NewProjectile(vector18.X, vector18.Y, num829, num830, mod.ProjectileType("HorsWaterBlast"), expertMode ? 13 : 17, 0f, Main.myPlayer, 0f, 0f); + int num833 = Projectile.NewProjectile(vector18.X, vector18.Y, num829, num830, ModContent.ProjectileType(), expertMode ? 13 : 17, 0f, Main.myPlayer, 0f, 0f); } if (npc.ai[1] >= 240f) { @@ -290,13 +290,13 @@ namespace CalamityMod.NPCs.NormalNPCs Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Coral, Main.rand.Next(1, 4)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Starfish, Main.rand.Next(1, 4)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Seashell, Main.rand.Next(1, 4)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(1, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 4)); if (Main.rand.NextBool(4)) { if (Main.rand.NextBool(25)) - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheTransformer")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); else - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AmidiasSpark")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/CosmicElemental.cs b/NPCs/NormalNPCs/CosmicElemental.cs index abeb9dbc98..587bc51270 100644 --- a/NPCs/NormalNPCs/CosmicElemental.cs +++ b/NPCs/NormalNPCs/CosmicElemental.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CosmicElemental : ModNPC { @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit7; npc.DeathSound = SoundID.NPCDeath6; banner = npc.type; - bannerItem = mod.ItemType("CosmicElementalBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } player.AddBuff(BuffID.Confused, 180, true); } diff --git a/NPCs/NormalNPCs/CrawlerAmber.cs b/NPCs/NormalNPCs/CrawlerAmber.cs index 97e5ab7f43..3dbeb859d4 100644 --- a/NPCs/NormalNPCs/CrawlerAmber.cs +++ b/NPCs/NormalNPCs/CrawlerAmber.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerAmber : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("AmberCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/NormalNPCs/CrawlerAmethyst.cs b/NPCs/NormalNPCs/CrawlerAmethyst.cs index 0f95abe0a9..b8a35a913a 100644 --- a/NPCs/NormalNPCs/CrawlerAmethyst.cs +++ b/NPCs/NormalNPCs/CrawlerAmethyst.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerAmethyst : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("AmethystCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/NormalNPCs/CrawlerCrystal.cs b/NPCs/NormalNPCs/CrawlerCrystal.cs index 7b49fa57b4..ff4ba6de5d 100644 --- a/NPCs/NormalNPCs/CrawlerCrystal.cs +++ b/NPCs/NormalNPCs/CrawlerCrystal.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerCrystal : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("CrystalCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -267,7 +267,7 @@ namespace CalamityMod.NPCs.NormalNPCs Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CrystalShard, Main.rand.Next(2, 5)); if (Main.rand.NextBool(5)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrystalBlade")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/CrawlerDiamond.cs b/NPCs/NormalNPCs/CrawlerDiamond.cs index 13007272e9..2bb2cc193e 100644 --- a/NPCs/NormalNPCs/CrawlerDiamond.cs +++ b/NPCs/NormalNPCs/CrawlerDiamond.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerDiamond : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("DiamondCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/NormalNPCs/CrawlerEmerald.cs b/NPCs/NormalNPCs/CrawlerEmerald.cs index cb17e4c080..ddc4f4c17c 100644 --- a/NPCs/NormalNPCs/CrawlerEmerald.cs +++ b/NPCs/NormalNPCs/CrawlerEmerald.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerEmerald : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("EmeraldCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/NormalNPCs/CrawlerRuby.cs b/NPCs/NormalNPCs/CrawlerRuby.cs index b27b80668e..2da820fbea 100644 --- a/NPCs/NormalNPCs/CrawlerRuby.cs +++ b/NPCs/NormalNPCs/CrawlerRuby.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerRuby : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("RubyCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/NormalNPCs/CrawlerSapphire.cs b/NPCs/NormalNPCs/CrawlerSapphire.cs index 471880c24a..0b0d0d0340 100644 --- a/NPCs/NormalNPCs/CrawlerSapphire.cs +++ b/NPCs/NormalNPCs/CrawlerSapphire.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerSapphire : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("SapphireCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/NormalNPCs/CrawlerTopaz.cs b/NPCs/NormalNPCs/CrawlerTopaz.cs index fb00923c98..3b3add723e 100644 --- a/NPCs/NormalNPCs/CrawlerTopaz.cs +++ b/NPCs/NormalNPCs/CrawlerTopaz.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrawlerTopaz : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("TopazCrawlerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/NormalNPCs/CrimulanBlightSlime.cs b/NPCs/NormalNPCs/CrimulanBlightSlime.cs index e6b9b3a7f8..14fda11d78 100644 --- a/NPCs/NormalNPCs/CrimulanBlightSlime.cs +++ b/NPCs/NormalNPCs/CrimulanBlightSlime.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CrimulanBlightSlime : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[24] = true; banner = npc.type; - bannerItem = mod.ItemType("CrimulanBlightSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -66,11 +66,11 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EbonianGel"), Main.rand.Next(15, 17)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(15, 17)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(10, 15)); if (Main.rand.NextBool(100) && NPC.downedBoss3) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Carnage")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/CryoSlime.cs b/NPCs/NormalNPCs/CryoSlime.cs index 4e81ac53e3..779f151c06 100644 --- a/NPCs/NormalNPCs/CryoSlime.cs +++ b/NPCs/NormalNPCs/CryoSlime.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class CryoSlime : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("CryoSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -48,20 +48,20 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int k = 0; k < 5; k++) { - Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("MSparkle"), hitDirection, -1f, 0, default, 1f); + Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), hitDirection, -1f, 0, default, 1f); } if (npc.life <= 0) { for (int k = 0; k < 20; k++) { - Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("MSparkle"), hitDirection, -1f, 0, default, 1f); + Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), hitDirection, -1f, 0, default, 1f); } } } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CryonicOre"), Main.rand.Next(10, 27)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 27)); } } } diff --git a/NPCs/NormalNPCs/Cryon.cs b/NPCs/NormalNPCs/Cryon.cs index a2afc45bd8..8bb2a2de11 100644 --- a/NPCs/NormalNPCs/Cryon.cs +++ b/NPCs/NormalNPCs/Cryon.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Cryon : ModNPC { @@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath7; banner = npc.type; - bannerItem = mod.ItemType("CryonBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -351,7 +351,7 @@ namespace CalamityMod.NPCs.NormalNPCs player.AddBuff(BuffID.Frostburn, 300, true); if (Main.rand.NextBool(3)) { - player.AddBuff(mod.BuffType("GlacialState"), 30, true); + player.AddBuff(ModContent.BuffType(), 30, true); } } @@ -374,7 +374,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/EbonianBlightSlime.cs b/NPCs/NormalNPCs/EbonianBlightSlime.cs index df8bf114c4..91f00bba84 100644 --- a/NPCs/NormalNPCs/EbonianBlightSlime.cs +++ b/NPCs/NormalNPCs/EbonianBlightSlime.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class EbonianBlightSlime : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[24] = true; banner = npc.type; - bannerItem = mod.ItemType("EbonianBlightSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override void HitEffect(int hitDirection, double damage) @@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EbonianGel"), Main.rand.Next(15, 17)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(15, 17)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(10, 15)); } } diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index bb7c66c30a..2334c143f6 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Eidolist : ModNPC { @@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath59; npc.timeLeft = NPC.activeTime * 2; banner = npc.type; - bannerItem = mod.ItemType("EidolistBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -316,17 +316,17 @@ namespace CalamityMod.NPCs.NormalNPCs { if (!NPC.LunarApocalypseIsUp) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EidolonTablet")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlueLunaticHood); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlueLunaticRobe); } if (CalamityWorld.downedCalamitas || NPC.downedPlantBoss) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite"), Main.rand.Next(8, 11)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(8, 11)); if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite"), Main.rand.Next(2, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 5)); } } if (NPC.downedPlantBoss) diff --git a/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs b/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs index ece2b7705f..1602847187 100644 --- a/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs +++ b/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class FearlessGoldfishWarrior : ModNPC { @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; //banner = npc.type; - //bannerItem = mod.ItemType("OverloadedSoldierBanner"); + //bannerItem = ModContent.ItemType(); } public override void AI() diff --git a/NPCs/NormalNPCs/HeatSpirit.cs b/NPCs/NormalNPCs/HeatSpirit.cs index 3cfb0763a7..40a340be7d 100644 --- a/NPCs/NormalNPCs/HeatSpirit.cs +++ b/NPCs/NormalNPCs/HeatSpirit.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class HeatSpirit : ModNPC { @@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; banner = npc.type; - bannerItem = mod.ItemType("HeatSpiritBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.OnFire, 120, true); - player.AddBuff(mod.BuffType("BrimstoneFlames"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void HitEffect(int hitDirection, double damage) @@ -93,7 +93,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/Horse.cs b/NPCs/NormalNPCs/Horse.cs index 0009a81ede..c568d786eb 100644 --- a/NPCs/NormalNPCs/Horse.cs +++ b/NPCs/NormalNPCs/Horse.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Horse : ModNPC { @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit4; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("EarthElementalBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -81,19 +81,19 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AridArtifact")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlagMagnum")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Aftershock")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EarthenPike")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } @@ -192,12 +192,12 @@ namespace CalamityMod.NPCs.NormalNPCs num180 *= num183; num182 *= num183; int num184 = 30; - int num185 = mod.ProjectileType("EarthRockSmall"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 4; num186++) { - num185 = Main.rand.NextBool(4) ? mod.ProjectileType("EarthRockBig") : mod.ProjectileType("EarthRockSmall"); + num185 = Main.rand.NextBool(4) ? ModContent.ProjectileType() : ModContent.ProjectileType(); num180 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - value9.X; num182 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - value9.Y; num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); diff --git a/NPCs/NormalNPCs/IceClasper.cs b/NPCs/NormalNPCs/IceClasper.cs index 3f1954fe2d..7eef40f883 100644 --- a/NPCs/NormalNPCs/IceClasper.cs +++ b/NPCs/NormalNPCs/IceClasper.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class IceClasper : ModNPC { @@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.coldDamage = true; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("IceClasperBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -247,7 +247,7 @@ namespace CalamityMod.NPCs.NormalNPCs player.AddBuff(BuffID.Frostburn, 300, true); if (Main.rand.NextBool(3)) { - player.AddBuff(mod.BuffType("GlacialState"), 30, true); + player.AddBuff(ModContent.BuffType(), 30, true); } } @@ -268,14 +268,14 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); if (Main.rand.NextBool(10)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FrostBarrier")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientIceChunk")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/ImpiousImmolator.cs b/NPCs/NormalNPCs/ImpiousImmolator.cs index d6858006dd..3812900057 100644 --- a/NPCs/NormalNPCs/ImpiousImmolator.cs +++ b/NPCs/NormalNPCs/ImpiousImmolator.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ImpiousImmolator : ModNPC { @@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath7; npc.knockBackResist = 0.2f; banner = npc.type; - bannerItem = mod.ItemType("ImpiousImmolatorBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -140,7 +140,7 @@ namespace CalamityMod.NPCs.NormalNPCs { damage = 42; } - int beam = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num6, num7, mod.ProjectileType("FlameBurstHostile"), damage, 0f, Main.myPlayer, 0f, 0f); + int beam = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num6, num7, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[beam].tileCollide = true; } } @@ -261,15 +261,15 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.OnFire, 180, true); - player.AddBuff(mod.BuffType("HolyLight"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("UnholyEssence"), Main.rand.Next(2, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 5)); if (Main.rand.NextBool(15)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EnergyStaff")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/NormalNPCs/IrradiatedSlime.cs b/NPCs/NormalNPCs/IrradiatedSlime.cs index c232fc9e0e..130df3135e 100644 --- a/NPCs/NormalNPCs/IrradiatedSlime.cs +++ b/NPCs/NormalNPCs/IrradiatedSlime.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class IrradiatedSlime : ModNPC { @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("IrradiatedSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(10)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LeadCore")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/KingSlimeJewel.cs b/NPCs/NormalNPCs/KingSlimeJewel.cs index 37a2b2a871..537a555962 100644 --- a/NPCs/NormalNPCs/KingSlimeJewel.cs +++ b/NPCs/NormalNPCs/KingSlimeJewel.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class KingSlimeJewel : ModNPC { diff --git a/NPCs/NormalNPCs/OverloadedSoldier.cs b/NPCs/NormalNPCs/OverloadedSoldier.cs index 7f21b7a875..1bd303546b 100644 --- a/NPCs/NormalNPCs/OverloadedSoldier.cs +++ b/NPCs/NormalNPCs/OverloadedSoldier.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class OverloadedSoldier : ModNPC { @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit2; npc.DeathSound = SoundID.NPCDeath2; banner = npc.type; - bannerItem = mod.ItemType("OverloadedSoldierBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(ModContent.BuffType(), 120); } } @@ -71,10 +71,10 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientBoneDust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); if (NPC.downedMoonlord) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Phantoplasm")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/PerennialSlime.cs b/NPCs/NormalNPCs/PerennialSlime.cs index 076ab46fd9..c58714d4e6 100644 --- a/NPCs/NormalNPCs/PerennialSlime.cs +++ b/NPCs/NormalNPCs/PerennialSlime.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PerennialSlime : ModNPC { @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("PerennialSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -47,20 +47,20 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int k = 0; k < 5; k++) { - Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("CESparkle"), hitDirection, -1f, 0, default, 1f); + Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), hitDirection, -1f, 0, default, 1f); } if (npc.life <= 0) { for (int k = 0; k < 20; k++) { - Dust.NewDust(npc.position, npc.width, npc.height, mod.DustType("CESparkle"), hitDirection, -1f, 0, default, 1f); + Dust.NewDust(npc.position, npc.width, npc.height, ModContent.DustType(), hitDirection, -1f, 0, default, 1f); } } } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PerennialOre"), Main.rand.Next(10, 27)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(10, 27)); } } } diff --git a/NPCs/NormalNPCs/PhantomDebris.cs b/NPCs/NormalNPCs/PhantomDebris.cs index 1ecbdb13bd..f85b935e7f 100644 --- a/NPCs/NormalNPCs/PhantomDebris.cs +++ b/NPCs/NormalNPCs/PhantomDebris.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PhantomDebris : ModNPC { @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit2; npc.DeathSound = SoundID.NPCDeath36; banner = npc.type; - bannerItem = mod.ItemType("PhantomDebrisBanner"); + bannerItem = ModContent.ItemType(); } public override void FindFrame(int frameHeight) @@ -97,7 +97,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(ModContent.BuffType(), 120); } } @@ -118,10 +118,10 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientBoneDust")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); if (NPC.downedMoonlord) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Phantoplasm")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/PhantomSpirit.cs b/NPCs/NormalNPCs/PhantomSpirit.cs index 1f36f1ffb2..50e4c22f0a 100644 --- a/NPCs/NormalNPCs/PhantomSpirit.cs +++ b/NPCs/NormalNPCs/PhantomSpirit.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PhantomSpirit : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noGravity = true; npc.noTileCollide = true; banner = npc.type; - bannerItem = mod.ItemType("PhantomSpiritBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(ModContent.BuffType(), 120); } } @@ -91,7 +91,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Phantoplasm")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/PhantomSpiritL.cs b/NPCs/NormalNPCs/PhantomSpiritL.cs index c31da30144..9c9c5ab6a9 100644 --- a/NPCs/NormalNPCs/PhantomSpiritL.cs +++ b/NPCs/NormalNPCs/PhantomSpiritL.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PhantomSpiritL : ModNPC { @@ -31,8 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath39; npc.noGravity = true; npc.noTileCollide = true; - banner = mod.NPCType("PhantomSpirit"); - bannerItem = mod.ItemType("PhantomSpiritBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override void FindFrame(int frameHeight) @@ -93,7 +93,7 @@ namespace CalamityMod.NPCs.NormalNPCs { float num151 = 5f; int num152 = Main.expertMode ? 53 : 65; - int num153 = mod.ProjectileType("PhantomGhostShot"); + int num153 = ModContent.ProjectileType(); num149 = num151 / num149; num147 *= num149; num148 *= num149; @@ -106,7 +106,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); + player.AddBuff(ModContent.BuffType(), 180); } } @@ -136,7 +136,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Phantoplasm"), Main.rand.Next(2, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 5)); } } } diff --git a/NPCs/NormalNPCs/PhantomSpiritM.cs b/NPCs/NormalNPCs/PhantomSpiritM.cs index b60c4ebfac..3edb794dc4 100644 --- a/NPCs/NormalNPCs/PhantomSpiritM.cs +++ b/NPCs/NormalNPCs/PhantomSpiritM.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PhantomSpiritM : ModNPC { @@ -31,8 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath39; npc.noGravity = true; npc.noTileCollide = true; - banner = mod.NPCType("PhantomSpirit"); - bannerItem = mod.ItemType("PhantomSpiritBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override void FindFrame(int frameHeight) @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 150); + player.AddBuff(ModContent.BuffType(), 150); } } @@ -99,7 +99,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Phantoplasm"), Main.rand.Next(1, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 4)); } } } diff --git a/NPCs/NormalNPCs/PhantomSpiritS.cs b/NPCs/NormalNPCs/PhantomSpiritS.cs index e40c8cf0f3..d1c7460ede 100644 --- a/NPCs/NormalNPCs/PhantomSpiritS.cs +++ b/NPCs/NormalNPCs/PhantomSpiritS.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PhantomSpiritS : ModNPC { @@ -30,8 +30,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath39; npc.noGravity = true; npc.noTileCollide = true; - banner = mod.NPCType("PhantomSpirit"); - bannerItem = mod.ItemType("PhantomSpiritBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override void FindFrame(int frameHeight) @@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 150); + player.AddBuff(ModContent.BuffType(), 150); } } @@ -98,7 +98,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Phantoplasm"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } } } diff --git a/NPCs/NormalNPCs/Piggy.cs b/NPCs/NormalNPCs/Piggy.cs index 8e7a0c63c3..b2aa080013 100644 --- a/NPCs/NormalNPCs/Piggy.cs +++ b/NPCs/NormalNPCs/Piggy.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Piggy : ModNPC { @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("PiggyBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/NPCs/NormalNPCs/Pitbull.cs b/NPCs/NormalNPCs/Pitbull.cs index 3c3d7ca217..fe0ab710bf 100644 --- a/NPCs/NormalNPCs/Pitbull.cs +++ b/NPCs/NormalNPCs/Pitbull.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Pitbull : ModNPC { @@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath5; banner = npc.type; - bannerItem = mod.ItemType("PitbullBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/NPCs/NormalNPCs/PlagueBee.cs b/NPCs/NormalNPCs/PlagueBee.cs index 20cced37db..b26e82e2cc 100644 --- a/NPCs/NormalNPCs/PlagueBee.cs +++ b/NPCs/NormalNPCs/PlagueBee.cs @@ -1,8 +1,10 @@ -using Terraria; +using CalamityMod.Buffs; +using CalamityMod.Items; +using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PlagueBee : ModNPC { @@ -37,16 +39,16 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; banner = npc.type; - bannerItem = mod.ItemType("PlagueChargerBanner"); + bannerItem = ModContent.ItemType(); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -60,7 +62,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/NormalNPCs/PlagueBeeLarge.cs b/NPCs/NormalNPCs/PlagueBeeLarge.cs index d84712f26b..f188f97986 100644 --- a/NPCs/NormalNPCs/PlagueBeeLarge.cs +++ b/NPCs/NormalNPCs/PlagueBeeLarge.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PlagueBeeLarge : ModNPC { @@ -37,16 +37,16 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; - banner = mod.NPCType("PlagueBee"); - bannerItem = mod.ItemType("PlagueChargerBanner"); + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -60,7 +60,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/NormalNPCs/PlaguedDerpling.cs b/NPCs/NormalNPCs/PlaguedDerpling.cs index 9e8b506a73..50b34a67a1 100644 --- a/NPCs/NormalNPCs/PlaguedDerpling.cs +++ b/NPCs/NormalNPCs/PlaguedDerpling.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PlaguedDerpling : ModNPC { @@ -36,11 +36,11 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; banner = npc.type; - bannerItem = mod.ItemType("VirulingBanner"); + bannerItem = ModContent.ItemType(); } public override void FindFrame(int frameHeight) @@ -161,7 +161,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } public override void HitEffect(int hitDirection, double damage) @@ -184,7 +184,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } } } diff --git a/NPCs/NormalNPCs/PlaguedFlyingFox.cs b/NPCs/NormalNPCs/PlaguedFlyingFox.cs index f356e9f176..2793b42f26 100644 --- a/NPCs/NormalNPCs/PlaguedFlyingFox.cs +++ b/NPCs/NormalNPCs/PlaguedFlyingFox.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PlaguedFlyingFox : ModNPC { @@ -35,11 +35,11 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; banner = npc.type; - bannerItem = mod.ItemType("MelterBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -53,7 +53,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } public override void HitEffect(int hitDirection, double damage) @@ -73,7 +73,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } } } diff --git a/NPCs/NormalNPCs/PlaguedJungleSlime.cs b/NPCs/NormalNPCs/PlaguedJungleSlime.cs index 4a712320c3..29f3e74472 100644 --- a/NPCs/NormalNPCs/PlaguedJungleSlime.cs +++ b/NPCs/NormalNPCs/PlaguedJungleSlime.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PlaguedJungleSlime : ModNPC { @@ -41,11 +41,11 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; banner = npc.type; - bannerItem = mod.ItemType("PestilentSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -77,7 +77,7 @@ namespace CalamityMod.NPCs.NormalNPCs vector4.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.005f; vector4.Normalize(); vector4 *= 4f + (float)Main.rand.Next(-50, 51) * 0.01f; - Projectile.NewProjectile(vector3.X, vector3.Y, vector4.X, vector4.Y, mod.ProjectileType("PlagueStingerGoliathV2"), 25, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector3.X, vector3.Y, vector4.X, vector4.Y, ModContent.ProjectileType(), 25, 0f, Main.myPlayer, 0f, 0f); spikeTimer = 30f; } } @@ -98,7 +98,7 @@ namespace CalamityMod.NPCs.NormalNPCs num14 *= num16; num15 *= num16; spikeTimer = 50f; - Projectile.NewProjectile(vector3.X, vector3.Y, num14, num15, mod.ProjectileType("PlagueStingerGoliathV2"), 22, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector3.X, vector3.Y, num14, num15, ModContent.ProjectileType(), 22, 0f, Main.myPlayer, 0f, 0f); } } } @@ -130,12 +130,12 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 3)); } public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/NormalNPCs/PlaguedTortoise.cs b/NPCs/NormalNPCs/PlaguedTortoise.cs index 4ec405857c..ab1623c2a0 100644 --- a/NPCs/NormalNPCs/PlaguedTortoise.cs +++ b/NPCs/NormalNPCs/PlaguedTortoise.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class PlaguedTortoise : ModNPC { @@ -35,11 +35,11 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; banner = npc.type; - bannerItem = mod.ItemType("PlagueshellBanner"); + bannerItem = ModContent.ItemType(); } public override void HitEffect(int hitDirection, double damage) @@ -68,12 +68,12 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(3, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(3, 5)); } } } diff --git a/NPCs/NormalNPCs/ProfanedEnergyBody.cs b/NPCs/NormalNPCs/ProfanedEnergyBody.cs index 9eb750d7eb..d488fb4e17 100644 --- a/NPCs/NormalNPCs/ProfanedEnergyBody.cs +++ b/NPCs/NormalNPCs/ProfanedEnergyBody.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ProfanedEnergyBody : ModNPC { @@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; banner = npc.type; - bannerItem = mod.ItemType("ProfanedEnergyBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.localAI[0] = 1f; for (int num723 = 0; num723 < 2; num723++) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("ProfanedEnergyLantern"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } } @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("UnholyEssence"), Main.rand.Next(2, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 5)); } } } diff --git a/NPCs/NormalNPCs/ProfanedEnergyLantern.cs b/NPCs/NormalNPCs/ProfanedEnergyLantern.cs index 5404afdbb8..a01325a524 100644 --- a/NPCs/NormalNPCs/ProfanedEnergyLantern.cs +++ b/NPCs/NormalNPCs/ProfanedEnergyLantern.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ProfanedEnergyLantern : ModNPC { @@ -163,7 +163,7 @@ namespace CalamityMod.NPCs.NormalNPCs num191 = num196 / num191; num189 *= num191; num190 *= num191; - int num9 = mod.ProjectileType("HolyBomb"); + int num9 = ModContent.ProjectileType(); Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num189, num190, num9, 40, 0f, Main.myPlayer, 0f, 0f); npc.localAI[1] = 0f; return; diff --git a/NPCs/NormalNPCs/SandTortoise.cs b/NPCs/NormalNPCs/SandTortoise.cs index 1079ae6280..4e9255d9b9 100644 --- a/NPCs/NormalNPCs/SandTortoise.cs +++ b/NPCs/NormalNPCs/SandTortoise.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class SandTortoise : ModNPC { @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath27; npc.noGravity = false; banner = npc.type; - bannerItem = mod.ItemType("SandTortoiseBanner"); + bannerItem = ModContent.ItemType(); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/NormalNPCs/ScornEater.cs b/NPCs/NormalNPCs/ScornEater.cs index 2578d019a6..a577e6e556 100644 --- a/NPCs/NormalNPCs/ScornEater.cs +++ b/NPCs/NormalNPCs/ScornEater.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ScornEater : ModNPC { @@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit23; npc.DeathSound = SoundID.NPCDeath26; banner = npc.type; - bannerItem = mod.ItemType("ScornEaterBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -181,7 +181,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("UnholyEssence"), Main.rand.Next(2, 5)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 5)); } } } diff --git a/NPCs/NormalNPCs/ShockstormShuttle.cs b/NPCs/NormalNPCs/ShockstormShuttle.cs index fcefe4aa2d..2ee30a78c7 100644 --- a/NPCs/NormalNPCs/ShockstormShuttle.cs +++ b/NPCs/NormalNPCs/ShockstormShuttle.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ShockstormShuttle : ModNPC { @@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noGravity = true; npc.noTileCollide = true; banner = npc.type; - bannerItem = mod.ItemType("ShockstormShuttleBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -572,7 +572,7 @@ namespace CalamityMod.NPCs.NormalNPCs Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MartianConduitPlating, Main.rand.Next(10, 30)); if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/StormlionCharger.cs b/NPCs/NormalNPCs/StormlionCharger.cs index 5fde98d3f5..5e1a821edb 100644 --- a/NPCs/NormalNPCs/StormlionCharger.cs +++ b/NPCs/NormalNPCs/StormlionCharger.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class StormlionCharger : ModNPC { @@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit31; npc.DeathSound = SoundID.NPCDeath34; banner = npc.type; - bannerItem = mod.ItemType("StormlionBanner"); + bannerItem = ModContent.ItemType(); } public override void HitEffect(int hitDirection, double damage) @@ -62,7 +62,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StormlionMandible")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/SunBat.cs b/NPCs/NormalNPCs/SunBat.cs index 50b96efd64..c3c43ce86a 100644 --- a/NPCs/NormalNPCs/SunBat.cs +++ b/NPCs/NormalNPCs/SunBat.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class SunBat : ModNPC { @@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath4; banner = npc.type; - bannerItem = mod.ItemType("SunBatBanner"); + bannerItem = ModContent.ItemType(); } public override void FindFrame(int frameHeight) @@ -56,7 +56,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.OnFire, 120, true); - player.AddBuff(mod.BuffType("HolyLight"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void HitEffect(int hitDirection, double damage) @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/Sunskater.cs b/NPCs/NormalNPCs/Sunskater.cs index ad954df69c..d229294a82 100644 --- a/NPCs/NormalNPCs/Sunskater.cs +++ b/NPCs/NormalNPCs/Sunskater.cs @@ -2,9 +2,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class Sunskater : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/Sunskater"); npc.knockBackResist = 0.7f; banner = npc.type; - bannerItem = mod.ItemType("SunskaterBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -227,14 +227,14 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.OnFire, 120, true); - player.AddBuff(mod.BuffType("HolyLight"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void NPCLoot() { if (Main.hardMode && Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/NormalNPCs/SuperDummy.cs b/NPCs/NormalNPCs/SuperDummy.cs index 6d71a689ed..9a77381f28 100644 --- a/NPCs/NormalNPCs/SuperDummy.cs +++ b/NPCs/NormalNPCs/SuperDummy.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class SuperDummy : ModNPC { diff --git a/NPCs/NormalNPCs/ThiccWaifu.cs b/NPCs/NormalNPCs/ThiccWaifu.cs index 5aee897c8c..2d0f9205e6 100644 --- a/NPCs/NormalNPCs/ThiccWaifu.cs +++ b/NPCs/NormalNPCs/ThiccWaifu.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Generic; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class ThiccWaifu : ModNPC { @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noTileCollide = true; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("CloudElementalBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -116,7 +116,7 @@ namespace CalamityMod.NPCs.NormalNPCs } foreach (Point current2 in list4) { - Projectile.NewProjectile((float)(current2.X * 16), (float)(current2.Y * 16), 0f, 0f, mod.ProjectileType("StormMarkHostile"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)(current2.X * 16), (float)(current2.Y * 16), 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } } new Vector2(0.9f, 2f); @@ -126,7 +126,7 @@ namespace CalamityMod.NPCs.NormalNPCs for (int num1472 = 0; num1472 < 1000; num1472++) { Projectile projectile9 = Main.projectile[num1472]; - if (projectile9.active && projectile9.type == mod.ProjectileType("StormMarkHostile")) + if (projectile9.active && projectile9.type == ModContent.ProjectileType()) { list5.Add(projectile9.Center); } @@ -297,25 +297,25 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder"), Main.rand.Next(2, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 4)); if (Main.rand.NextBool(100) && CalamityWorld.downedProvidence) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Thunderstorm")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.expertMode) { if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EyeoftheStorm")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } else if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EyeoftheStorm")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } if (Main.rand.NextBool(5)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StormSaber")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/WulfrumDrone.cs b/NPCs/NormalNPCs/WulfrumDrone.cs index 52bbf7538e..1b464afe22 100644 --- a/NPCs/NormalNPCs/WulfrumDrone.cs +++ b/NPCs/NormalNPCs/WulfrumDrone.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class WulfrumDrone : ModNPC { @@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("WulfrumDroneBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -68,10 +68,10 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WulfrumShard"), Main.rand.Next(1, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 4)); if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WulfrumShard")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/WulfrumSlime.cs b/NPCs/NormalNPCs/WulfrumSlime.cs index 4e2356dd56..0007f6be8c 100644 --- a/NPCs/NormalNPCs/WulfrumSlime.cs +++ b/NPCs/NormalNPCs/WulfrumSlime.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.NormalNPCs +namespace CalamityMod.NPCs { public class WulfrumSlime : ModNPC { @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("WulfrumSlimeBanner"); + bannerItem = ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -59,10 +59,10 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WulfrumShard")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); if (Main.expertMode && Main.rand.NextBool(2)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WulfrumShard")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/Perforator/PerforatorBodyLarge.cs b/NPCs/Perforator/PerforatorBodyLarge.cs index 6e2a47ae31..e1c549ab2f 100644 --- a/NPCs/Perforator/PerforatorBodyLarge.cs +++ b/NPCs/Perforator/PerforatorBodyLarge.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { public class PerforatorBodyLarge : ModNPC { @@ -33,8 +33,8 @@ namespace CalamityMod.NPCs.Perforator aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -75,7 +75,7 @@ namespace CalamityMod.NPCs.Perforator num942 += (float)Main.rand.Next(-50, 51) * 0.05f; num943 += (float)Main.rand.Next(-50, 51) * 0.05f; int num945 = expertMode ? 12 : 15; - int num946 = mod.ProjectileType("BloodClot"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; if (Main.rand.NextBool(2)) @@ -147,7 +147,7 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); player.AddBuff(BuffID.Bleeding, 180, true); } } diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index ccec58301a..9c1c7191da 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { public class PerforatorBodyMedium : ModNPC { @@ -32,8 +32,8 @@ namespace CalamityMod.NPCs.Perforator aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -74,7 +74,7 @@ namespace CalamityMod.NPCs.Perforator num942 += (float)Main.rand.Next(-50, 51) * 0.05f; num943 += (float)Main.rand.Next(-50, 51) * 0.05f; int num945 = expertMode ? 12 : 15; - int num946 = mod.ProjectileType("BloodClot"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; if (Main.rand.NextBool(2)) @@ -137,7 +137,7 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); player.AddBuff(BuffID.Bleeding, 120, true); } } diff --git a/NPCs/Perforator/PerforatorBodySmall.cs b/NPCs/Perforator/PerforatorBodySmall.cs index 88e52b71c9..f71b90e5dc 100644 --- a/NPCs/Perforator/PerforatorBodySmall.cs +++ b/NPCs/Perforator/PerforatorBodySmall.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { public class PerforatorBodySmall : ModNPC { @@ -32,8 +32,8 @@ namespace CalamityMod.NPCs.Perforator aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -74,7 +74,7 @@ namespace CalamityMod.NPCs.Perforator num942 += (float)Main.rand.Next(-50, 51) * 0.05f; num943 += (float)Main.rand.Next(-50, 51) * 0.05f; int num945 = expertMode ? 12 : 15; - int num946 = mod.ProjectileType("BloodClot"); + int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; vector104.Y += num943 * 5f; if (Main.rand.NextBool(2)) @@ -136,7 +136,7 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 90, true); + player.AddBuff(ModContent.BuffType(), 90, true); player.AddBuff(BuffID.Bleeding, 90, true); } } diff --git a/NPCs/Perforator/PerforatorCyst.cs b/NPCs/Perforator/PerforatorCyst.cs index faa03d7598..c2bdbc54ce 100644 --- a/NPCs/Perforator/PerforatorCyst.cs +++ b/NPCs/Perforator/PerforatorCyst.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { public class PerforatorCyst : ModNPC { @@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.Perforator public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || NPC.AnyNPCs(mod.NPCType("PerforatorCyst")) || NPC.AnyNPCs(mod.NPCType("PerforatorHive"))) + if (spawnInfo.playerSafe || NPC.AnyNPCs(ModContent.NPCType()) || NPC.AnyNPCs(ModContent.NPCType())) { return 0f; } @@ -69,10 +69,10 @@ namespace CalamityMod.NPCs.Perforator { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default, 1f); } - if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(mod.NPCType("PerforatorHive")) < 1) + if (Main.netMode != NetmodeID.MultiplayerClient && NPC.CountNPCS(ModContent.NPCType()) < 1) { Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("PerforatorHive")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } } } diff --git a/NPCs/Perforator/PerforatorHeadLarge.cs b/NPCs/Perforator/PerforatorHeadLarge.cs index 795055cb92..0106161696 100644 --- a/NPCs/Perforator/PerforatorHeadLarge.cs +++ b/NPCs/Perforator/PerforatorHeadLarge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { [AutoloadBossHead] public class PerforatorHeadLarge : ModNPC @@ -39,8 +39,8 @@ namespace CalamityMod.NPCs.Perforator aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -82,11 +82,11 @@ namespace CalamityMod.NPCs.Perforator int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("PerforatorBodyLarge"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("PerforatorTailLarge"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } if (num36 % 2 == 0) { @@ -419,7 +419,7 @@ namespace CalamityMod.NPCs.Perforator public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodSample"), Main.rand.Next(4, 9)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(4, 9)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Vertebrae, Main.rand.Next(3, 6)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CrimtaneBar, Main.rand.Next(2, 5)); } @@ -431,11 +431,11 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); player.AddBuff(BuffID.Bleeding, 300, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } } diff --git a/NPCs/Perforator/PerforatorHeadMedium.cs b/NPCs/Perforator/PerforatorHeadMedium.cs index 94875d79d3..ef699c23fa 100644 --- a/NPCs/Perforator/PerforatorHeadMedium.cs +++ b/NPCs/Perforator/PerforatorHeadMedium.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { [AutoloadBossHead] public class PerforatorHeadMedium : ModNPC @@ -40,8 +40,8 @@ namespace CalamityMod.NPCs.Perforator animationType = 10; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -83,11 +83,11 @@ namespace CalamityMod.NPCs.Perforator int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("PerforatorBodyMedium"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("PerforatorTailMedium"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -416,7 +416,7 @@ namespace CalamityMod.NPCs.Perforator public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodSample"), Main.rand.Next(3, 8)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(3, 8)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Vertebrae, Main.rand.Next(2, 5)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CrimtaneBar, Main.rand.Next(2, 4)); } @@ -428,11 +428,11 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 240, true); + player.AddBuff(ModContent.BuffType(), 240, true); player.AddBuff(BuffID.Bleeding, 240, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } } diff --git a/NPCs/Perforator/PerforatorHeadSmall.cs b/NPCs/Perforator/PerforatorHeadSmall.cs index 013e5ae974..2c1fa88fc8 100644 --- a/NPCs/Perforator/PerforatorHeadSmall.cs +++ b/NPCs/Perforator/PerforatorHeadSmall.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { [AutoloadBossHead] public class PerforatorHeadSmall : ModNPC @@ -38,8 +38,8 @@ namespace CalamityMod.NPCs.Perforator aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -81,11 +81,11 @@ namespace CalamityMod.NPCs.Perforator int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("PerforatorBodySmall"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("PerforatorTailSmall"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -413,7 +413,7 @@ namespace CalamityMod.NPCs.Perforator public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodSample"), Main.rand.Next(2, 6)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(2, 6)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Vertebrae, Main.rand.Next(1, 4)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CrimtaneBar, Main.rand.Next(1, 3)); } @@ -425,11 +425,11 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); player.AddBuff(BuffID.Bleeding, 180, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } } diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 6864a0e151..a4ddc2da0a 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -6,9 +6,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { [AutoloadBossHead] public class PerforatorHive : ModNPC @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.Perforator npc.lifeMax += (int)(npc.lifeMax * HPBoost); npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 6, 0, 0); npc.boss = true; @@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.Perforator music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/BloodCoagulant"); else music = MusicID.Boss2; - bossBag = mod.ItemType("PerforatorBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.Perforator npc.timeLeft = 1800; } bool wormAlive = false; - if (NPC.AnyNPCs(mod.NPCType("PerforatorHeadLarge"))) + if (NPC.AnyNPCs(ModContent.NPCType())) { wormAlive = true; } @@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.Perforator num180 *= num183; num182 *= num183; int num184 = expertMode ? 14 : 18; - int num185 = Main.rand.NextBool(2) ? mod.ProjectileType("IchorShot") : mod.ProjectileType("BloodGeyser"); + int num185 = Main.rand.NextBool(2) ? ModContent.ProjectileType() : ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 20; num186++) @@ -233,7 +233,7 @@ namespace CalamityMod.NPCs.Perforator if ((float)(npc.life + num660) < npc.ai[3]) { npc.ai[3] = (float)npc.life; - int wormType = mod.NPCType("PerforatorHeadSmall"); + int wormType = ModContent.NPCType(); if (!small) { small = true; @@ -241,12 +241,12 @@ namespace CalamityMod.NPCs.Perforator else if (!medium) { medium = true; - wormType = mod.NPCType("PerforatorHeadMedium"); + wormType = ModContent.NPCType(); } else if (!large) { large = true; - wormType = mod.NPCType("PerforatorHeadLarge"); + wormType = ModContent.NPCType(); } NPC.SpawnOnPlayer(npc.FindClosestPlayer(), wormType); return; @@ -257,7 +257,7 @@ namespace CalamityMod.NPCs.Perforator public override bool CheckDead() { - if (NPC.AnyNPCs(mod.NPCType("PerforatorHeadLarge"))) + if (NPC.AnyNPCs(ModContent.NPCType())) { return false; } @@ -279,33 +279,33 @@ namespace CalamityMod.NPCs.Perforator { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("PerforatorTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgePerforators"), true, !CalamityWorld.downedPerforator); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedPerforator); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedPerforator, 2, 0, 0); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItemSpray(npc, mod.ItemType("BloodSample"), 7, 14); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 7, 14); DropHelper.DropItemSpray(npc, ItemID.CrimtaneBar, 2, 5); DropHelper.DropItemSpray(npc, ItemID.Vertebrae, 3, 9); if (Main.hardMode) DropHelper.DropItemSpray(npc, ItemID.Ichor, 10, 20); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("VeinBurster"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("BloodyRupture"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("SausageMaker"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Aorta"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Eviscerator"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("BloodBath"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("BloodClotStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("ToothBall"), 4, 25, 50); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4, 25, 50); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("PerforatorMask"), 7); - DropHelper.DropItemChance(npc, mod.ItemType("BloodyVein"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); } // If neither The Hive Mind nor The Perforator Hive have been killed yet, notify players of Aerialite Ore @@ -313,7 +313,7 @@ namespace CalamityMod.NPCs.Perforator { string key = "Mods.CalamityMod.SkyOreText"; Color messageColor = Color.Cyan; - WorldGenerationMethods.SpawnOre(mod.TileType("AerialiteOre"), 12E-05, .4f, .6f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 12E-05, .4f, .6f); if (Main.netMode == NetmodeID.SinglePlayer) Main.NewText(Language.GetTextValue(key), messageColor); diff --git a/NPCs/Perforator/PerforatorTailLarge.cs b/NPCs/Perforator/PerforatorTailLarge.cs index 5f933526b7..789c60c9f0 100644 --- a/NPCs/Perforator/PerforatorTailLarge.cs +++ b/NPCs/Perforator/PerforatorTailLarge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { public class PerforatorTailLarge : ModNPC { @@ -31,8 +31,8 @@ namespace CalamityMod.NPCs.Perforator aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 90, true); + player.AddBuff(ModContent.BuffType(), 90, true); player.AddBuff(BuffID.Bleeding, 90, true); } } diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index 9d46967fad..1991ea8170 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { public class PerforatorTailMedium : ModNPC { @@ -31,8 +31,8 @@ namespace CalamityMod.NPCs.Perforator aiType = -1; npc.knockBackResist = 0f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); player.AddBuff(BuffID.Bleeding, 60, true); } } diff --git a/NPCs/Perforator/PerforatorTailSmall.cs b/NPCs/Perforator/PerforatorTailSmall.cs index a4d432ae5b..f33803ffdb 100644 --- a/NPCs/Perforator/PerforatorTailSmall.cs +++ b/NPCs/Perforator/PerforatorTailSmall.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Perforator +namespace CalamityMod.NPCs { public class PerforatorTailSmall : ModNPC { @@ -32,8 +32,8 @@ namespace CalamityMod.NPCs.Perforator npc.knockBackResist = 0f; npc.scale = 0.9f; npc.alpha = 255; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Perforator public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("BurningBlood"), 60, true); + player.AddBuff(ModContent.BuffType(), 60, true); player.AddBuff(BuffID.Bleeding, 60, true); } } diff --git a/NPCs/PlaguebringerGoliath/PbGScreenShaderData.cs b/NPCs/PlaguebringerGoliath/PbGScreenShaderData.cs index 4710384930..205d3f30bb 100644 --- a/NPCs/PlaguebringerGoliath/PbGScreenShaderData.cs +++ b/NPCs/PlaguebringerGoliath/PbGScreenShaderData.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerGoliath +namespace CalamityMod.NPCs { public class PbGScreenShaderData : ScreenShaderData { diff --git a/NPCs/PlaguebringerGoliath/PbGSky.cs b/NPCs/PlaguebringerGoliath/PbGSky.cs index 9215dfc332..dda68fa2ea 100644 --- a/NPCs/PlaguebringerGoliath/PbGSky.cs +++ b/NPCs/PlaguebringerGoliath/PbGSky.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerGoliath +namespace CalamityMod.NPCs { public class PbGSky : CustomSky { diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs index 3843d221f1..561a54c81d 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerGoliath +namespace CalamityMod.NPCs { public class PlagueBeeG : ModNPC { @@ -44,9 +44,9 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; } public override void AI() @@ -211,7 +211,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs index 4b57b8674b..510abec201 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerGoliath +namespace CalamityMod.NPCs { public class PlagueBeeLargeG : ModNPC { @@ -42,9 +42,9 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; } public override void FindFrame(int frameHeight) @@ -104,7 +104,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs index 81613b284c..605ec9f30b 100644 --- a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs +++ b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerGoliath +namespace CalamityMod.NPCs { public class PlagueHomingMissile : ModNPC { @@ -38,9 +38,9 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.buffImmune[39] = true; npc.buffImmune[24] = true; npc.buffImmune[20] = true; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; - npc.buffImmune[mod.BuffType("HolyLight")] = true; - npc.buffImmune[mod.BuffType("Plague")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; } public override void AI() @@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.cs b/NPCs/PlaguebringerGoliath/PlagueMine.cs index 27b104efc2..3b58f4a034 100644 --- a/NPCs/PlaguebringerGoliath/PlagueMine.cs +++ b/NPCs/PlaguebringerGoliath/PlagueMine.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerGoliath +namespace CalamityMod.NPCs { public class PlagueMine : ModNPC { diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 64dfe14524..bf125fbb68 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -7,9 +7,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerGoliath +namespace CalamityMod.NPCs { [AutoloadBossHead] public class PlaguebringerGoliath : ModNPC @@ -63,15 +63,15 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; @@ -81,7 +81,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"); else music = MusicID.Boss3; - bossBag = mod.ItemType("PlaguebringerGoliathBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -479,17 +479,17 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath { int randomAmt = expertMode ? 2 : 4; if (Main.rand.Next(randomAmt) == 0) - randomAmt = mod.NPCType("PlagueBeeLargeG"); + randomAmt = ModContent.NPCType(); else - randomAmt = mod.NPCType("PlagueBeeG"); + randomAmt = ModContent.NPCType(); - if (expertMode && NPC.CountNPCS(mod.NPCType("PlagueMine")) < (aboveGroundEnrage ? 4 : 2)) - NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueMine"), 0, 0f, 0f, 0f, 0f, 255); + if (expertMode && NPC.CountNPCS(ModContent.NPCType()) < (aboveGroundEnrage ? 4 : 2)) + NPC.NewNPC((int)vector119.X, (int)vector119.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); - if (revenge && NPC.CountNPCS(mod.NPCType("PlaguebringerShade")) < (aboveGroundEnrage ? 2 : 1)) - NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlaguebringerShade"), 0, 0f, 0f, 0f, 0f, 255); + if (revenge && NPC.CountNPCS(ModContent.NPCType()) < (aboveGroundEnrage ? 2 : 1)) + NPC.NewNPC((int)vector119.X, (int)vector119.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); - if (NPC.CountNPCS(mod.NPCType("PlagueBeeLargeG")) < 2) + if (NPC.CountNPCS(ModContent.NPCType()) < 2) { int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, randomAmt, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num1062].velocity.X = (float)Main.rand.Next(-200, 201) * (CalamityWorld.bossRushActive ? 0.04f : 0.02f); @@ -552,11 +552,11 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (Main.netMode != NetmodeID.MultiplayerClient) { - if (expertMode && NPC.CountNPCS(mod.NPCType("PlagueMine")) < (aboveGroundEnrage ? 6 : 4)) - NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueMine"), 0, 0f, 0f, 0f, 0f, 255); + if (expertMode && NPC.CountNPCS(ModContent.NPCType()) < (aboveGroundEnrage ? 6 : 4)) + NPC.NewNPC((int)vector119.X, (int)vector119.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); - if (revenge && NPC.CountNPCS(mod.NPCType("PlaguebringerShade")) < 1 && aboveGroundEnrage) - NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlaguebringerShade"), 0, 0f, 0f, 0f, 0f, 255); + if (revenge && NPC.CountNPCS(ModContent.NPCType()) < 1 && aboveGroundEnrage) + NPC.NewNPC((int)vector119.X, (int)vector119.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); float projectileSpeed = revenge ? 6f : 5f; float num1071 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector119.X; @@ -567,9 +567,9 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath num1071 *= num1073; num1072 *= num1073; - if (NPC.CountNPCS(mod.NPCType("PlagueHomingMissile")) < (aboveGroundEnrage ? 8 : 5)) + if (NPC.CountNPCS(ModContent.NPCType()) < (aboveGroundEnrage ? 8 : 5)) { - int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueHomingMissile"), 0, 0f, 0f, 0f, 0f, 255); + int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); Main.npc[num1062].velocity.X = num1071; Main.npc[num1062].velocity.Y = num1072; Main.npc[num1062].netUpdate = true; @@ -640,7 +640,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath num1072 *= num1073; int num1074 = 40; - int num1075 = Main.rand.NextBool(2) ? mod.ProjectileType("PlagueStingerGoliath") : mod.ProjectileType("PlagueStingerGoliathV2"); + int num1075 = Main.rand.NextBool(2) ? ModContent.ProjectileType() : ModContent.ProjectileType(); if (expertMode) { num1074 = 32; @@ -650,7 +650,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (Main.rand.NextBool(6)) { num1074 += 8; - num1075 = mod.ProjectileType("HiveBombGoliath"); + num1075 = ModContent.ProjectileType(); } } else @@ -658,7 +658,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (Main.rand.NextBool(9)) { num1074 = 50; - num1075 = mod.ProjectileType("HiveBombGoliath"); + num1075 = ModContent.ProjectileType(); } } Projectile.NewProjectile(vector121.X, vector121.Y, num1071, num1072, num1075, num1074, 0f, Main.myPlayer, 0f, Main.player[npc.target].position.Y); @@ -727,7 +727,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath spawn.X = spawn.X + i * 30 - (MissileProjectiles * 15); Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-MissileAngleSpread / 2 + (MissileAngleSpread * i / (float)MissileProjectiles))); velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; - Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, mod.ProjectileType("HiveBombGoliath"), damage, 0f, Main.myPlayer, 0f, Main.player[npc.target].position.Y); + Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, Main.player[npc.target].position.Y); } } } @@ -1017,31 +1017,31 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("PlaguebringerGoliathTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgePlaguebringerGoliath"), true, !CalamityWorld.downedPlaguebringer); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedPlaguebringer); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedPlaguebringer, 4, 2, 1); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItemSpray(npc, mod.ItemType("PlagueCellCluster"), 10, 14); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 10, 14); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("VirulentKatana"), 4); // Virulence - DropHelper.DropItemChance(npc, mod.ItemType("DiseasedPike"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("ThePlaguebringer"), 4); // Pandemic - DropHelper.DropItemChance(npc, mod.ItemType("Malevolence"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("PestilentDefiler"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("TheHive"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("MepheticSprayer"), 4); // Blight Spewer - DropHelper.DropItemChance(npc, mod.ItemType("PlagueStaff"), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Virulence + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Pandemic + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Blight Spewer + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("BloomStone"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("PlaguebringerGoliathMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } // Mark PBG as dead @@ -1057,11 +1057,11 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 180, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); + player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/NPCs/PlaguebringerShade/PlaguebringerShade.cs b/NPCs/PlaguebringerShade/PlaguebringerShade.cs index 9cbbf31fa7..74b64404dd 100644 --- a/NPCs/PlaguebringerShade/PlaguebringerShade.cs +++ b/NPCs/PlaguebringerShade/PlaguebringerShade.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.PlaguebringerShade +namespace CalamityMod.NPCs { public class PlaguebringerShade : ModNPC { @@ -39,23 +39,23 @@ namespace CalamityMod.NPCs.PlaguebringerShade } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; banner = npc.type; - bannerItem = mod.ItemType("PlaguebringerBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -358,13 +358,13 @@ namespace CalamityMod.NPCs.PlaguebringerShade int num1061; if (Main.rand.NextBool(4)) { - num1061 = mod.NPCType("PlagueBeeLargeG"); + num1061 = ModContent.NPCType(); } else { - num1061 = mod.NPCType("PlagueBeeG"); + num1061 = ModContent.NPCType(); } - if (NPC.CountNPCS(mod.NPCType("PlagueBeeG")) < 3) + if (NPC.CountNPCS(ModContent.NPCType()) < 3) { int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, num1061, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num1062].velocity.X = (float)Main.rand.Next(-200, 201) * 0.005f; @@ -475,11 +475,11 @@ namespace CalamityMod.NPCs.PlaguebringerShade num1071 *= num1073; num1072 *= num1073; int num1074 = 26; - int num1075 = mod.ProjectileType("PlagueStingerGoliathV2"); + int num1075 = ModContent.ProjectileType(); if (Main.rand.NextBool(15)) { num1074 = 33; - num1075 = mod.ProjectileType("HiveBombGoliath"); + num1075 = ModContent.ProjectileType(); } Projectile.NewProjectile(vector121.X, vector121.Y, num1071, num1072, num1075, num1074, 0f, Main.myPlayer, 0f, 0f); } @@ -621,12 +621,12 @@ namespace CalamityMod.NPCs.PlaguebringerShade public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(8, 13)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(8, 13)); } public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("Plague"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/NPCs/Polterghast/PhantomFuckYou.cs b/NPCs/Polterghast/PhantomFuckYou.cs index f889e94433..14bea29b2b 100644 --- a/NPCs/Polterghast/PhantomFuckYou.cs +++ b/NPCs/Polterghast/PhantomFuckYou.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Polterghast +namespace CalamityMod.NPCs { public class PhantomFuckYou : ModNPC { @@ -87,7 +87,7 @@ namespace CalamityMod.NPCs.Polterghast if (Main.netMode != NetmodeID.MultiplayerClient) { int damage = expertMode ? 62 : 75; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X * 0.05f, direction.Y * 0.05f, mod.ProjectileType("PhantomMine"), damage, 1f, npc.target); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X * 0.05f, direction.Y * 0.05f, ModContent.ProjectileType(), damage, 1f, npc.target); } timer = 0; diff --git a/NPCs/Polterghast/PolterPhantom.cs b/NPCs/Polterghast/PolterPhantom.cs index cf53561973..21398e07c8 100644 --- a/NPCs/Polterghast/PolterPhantom.cs +++ b/NPCs/Polterghast/PolterPhantom.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Polterghast +namespace CalamityMod.NPCs { public class PolterPhantom : ModNPC { @@ -44,11 +44,11 @@ namespace CalamityMod.NPCs.Polterghast } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; @@ -106,7 +106,7 @@ namespace CalamityMod.NPCs.Polterghast int num; for (int num733 = 0; num733 < 200; num733 = num + 1) { - if (Main.npc[num733].active && Main.npc[num733].type == mod.NPCType("PolterghastHook")) + if (Main.npc[num733].active && Main.npc[num733].type == ModContent.NPCType()) { num730 += Main.npc[num733].Center.X; num731 += Main.npc[num733].Center.Y; @@ -253,7 +253,7 @@ namespace CalamityMod.NPCs.Polterghast public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override bool CanHitPlayer(Player target, ref int cooldownSlot) diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index cb1c209b7a..c6d4b3ee0f 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -6,9 +6,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Polterghast +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Polterghast : ModNPC @@ -54,11 +54,11 @@ namespace CalamityMod.NPCs.Polterghast } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.Polterghast music = MusicID.Plantera; npc.HitSound = SoundID.NPCHit7; npc.DeathSound = SoundID.NPCDeath39; - bossBag = mod.ItemType("PolterghastBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -124,10 +124,10 @@ namespace CalamityMod.NPCs.Polterghast if (npc.localAI[0] == 0f && Main.netMode != NetmodeID.MultiplayerClient) { npc.localAI[0] = 1f; - int num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + int num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } int[] array2 = new int[4]; @@ -137,7 +137,7 @@ namespace CalamityMod.NPCs.Polterghast int num; for (int num733 = 0; num733 < 200; num733 = num + 1) { - if (Main.npc[num733].active && Main.npc[num733].type == mod.NPCType("PolterghastHook")) + if (Main.npc[num733].active && Main.npc[num733].type == ModContent.NPCType()) { num730 += Main.npc[num733].Center.X; num731 += Main.npc[num733].Center.Y; @@ -226,7 +226,7 @@ namespace CalamityMod.NPCs.Polterghast npc.localAI[2] = 0f; if (Main.netMode != NetmodeID.MultiplayerClient) - NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterPhantom"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); @@ -389,13 +389,13 @@ namespace CalamityMod.NPCs.Polterghast num744 *= num745; int num746 = expertMode ? 48 : 60; - int num747 = mod.ProjectileType("PhantomShot"); + int num747 = ModContent.ProjectileType(); if (Main.rand.NextBool(3)) { num746 = expertMode ? 60 : 70; npc.localAI[1] = -30f; - num747 = mod.ProjectileType("PhantomBlast"); + num747 = ModContent.ProjectileType(); } if (speedBoost1 || npc.Calamity().enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive)) @@ -405,7 +405,7 @@ namespace CalamityMod.NPCs.Polterghast vector93.Y += num744 * 3f; int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num748].timeLeft = num747 == mod.ProjectileType("PhantomBlast") ? 300 : 1200; + Main.projectile[num748].timeLeft = num747 == ModContent.ProjectileType() ? 300 : 1200; } else { @@ -427,7 +427,7 @@ namespace CalamityMod.NPCs.Polterghast num744 *= num745; int num746 = expertMode ? 60 : 70; - int num747 = mod.ProjectileType("PhantomBlast"); + int num747 = ModContent.ProjectileType(); if (speedBoost1 || npc.Calamity().enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive)) num746 *= 2; @@ -523,13 +523,13 @@ namespace CalamityMod.NPCs.Polterghast num744 *= num745; int num746 = expertMode ? 53 : 65; - int num747 = mod.ProjectileType("PhantomShot2"); + int num747 = ModContent.ProjectileType(); if (Main.rand.NextBool(3)) { num746 = expertMode ? 65 : 75; npc.localAI[1] = -30f; - num747 = mod.ProjectileType("PhantomBlast2"); + num747 = ModContent.ProjectileType(); } if (speedBoost1 || npc.Calamity().enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive)) @@ -539,7 +539,7 @@ namespace CalamityMod.NPCs.Polterghast vector93.Y += num744 * 3f; int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num748].timeLeft = num747 == mod.ProjectileType("PhantomBlast2") ? 300 : 1200; + Main.projectile[num748].timeLeft = num747 == ModContent.ProjectileType() ? 300 : 1200; } else { @@ -561,7 +561,7 @@ namespace CalamityMod.NPCs.Polterghast num744 *= num745; int num746 = expertMode ? 65 : 75; - int num747 = mod.ProjectileType("PhantomBlast2"); + int num747 = ModContent.ProjectileType(); if (speedBoost1 || npc.Calamity().enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive)) num746 *= 2; @@ -585,12 +585,12 @@ namespace CalamityMod.NPCs.Polterghast if (Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterPhantom"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); for (int I = 0; I < 3; I++) { int Phantom = NPC.NewNPC((int)(Main.player[npc.target].Center.X + (Math.Sin(I * 120) * 500)), - (int)(Main.player[npc.target].Center.Y + (Math.Cos(I * 120) * 500)), mod.NPCType("PhantomFuckYou"), 0, 0, 0, 0, -1); + (int)(Main.player[npc.target].Center.Y + (Math.Cos(I * 120) * 500)), ModContent.NPCType(), 0, 0, 0, 0, -1); NPC Eye = Main.npc[Phantom]; Eye.ai[0] = I * 120; Eye.ai[3] = I * 120; @@ -658,9 +658,9 @@ namespace CalamityMod.NPCs.Polterghast num758 *= num761; num760 *= num761; - if (NPC.CountNPCS(mod.NPCType("PhantomSpiritL")) < (revenge ? 3 : 2) && Main.netMode != NetmodeID.MultiplayerClient) + if (NPC.CountNPCS(ModContent.NPCType()) < (revenge ? 3 : 2) && Main.netMode != NetmodeID.MultiplayerClient) { - int num762 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PhantomSpiritL"), 0, 0f, 0f, 0f, 0f, 255); + int num762 = NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); Main.npc[num762].velocity.X = num758; Main.npc[num762].velocity.Y = num760; Main.npc[num762].netUpdate = true; @@ -679,24 +679,24 @@ namespace CalamityMod.NPCs.Polterghast { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("PolterghastTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgePolterghast"), true, !CalamityWorld.downedPolterghast); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedPolterghast); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedPolterghast, 6, 3, 2); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItem(npc, mod.ItemType("RuinousSoul"), 5, 8); + DropHelper.DropItem(npc, ModContent.ItemType(), 5, 8); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("TerrorBlade"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("BansheeHook"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("DaemonsFlame"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("FatesReveal"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("GhastlyVisage"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("EtherealSubjugator"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("GhoulishGouger"), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); } // If Polterghast has not been killed, notify players about the Abyss minibosses now dropping items @@ -759,7 +759,7 @@ namespace CalamityMod.NPCs.Polterghast public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } public override bool CanHitPlayer(Player target, ref int cooldownSlot) diff --git a/NPCs/Polterghast/PolterghastHook.cs b/NPCs/Polterghast/PolterghastHook.cs index c4400692b7..68ee6d98ef 100644 --- a/NPCs/Polterghast/PolterghastHook.cs +++ b/NPCs/Polterghast/PolterghastHook.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Polterghast +namespace CalamityMod.NPCs { public class PolterghastHook : ModNPC { @@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.Polterghast { float num151 = CalamityWorld.bossRushActive ? 7.5f : 5f; int num152 = Main.expertMode ? 48 : 60; - int num153 = mod.ProjectileType("PhantomHookShot"); + int num153 = ModContent.ProjectileType(); num149 = num151 / num149; num147 *= num149; num148 *= num149; @@ -362,7 +362,7 @@ namespace CalamityMod.NPCs.Polterghast public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) - player.AddBuff(mod.BuffType("Horror"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs index ee8e802946..08e88f168d 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs @@ -6,9 +6,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.ProfanedGuardianBoss +namespace CalamityMod.NPCs { [AutoloadBossHead] public class ProfanedGuardianBoss : ModNPC @@ -52,14 +52,14 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.value = Item.buyPrice(0, 25, 0, 0); npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; @@ -99,8 +99,8 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss if (Main.netMode != NetmodeID.MultiplayerClient && npc.localAI[1] == 0f) { npc.localAI[1] = 1f; - NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("ProfanedGuardianBoss2"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("ProfanedGuardianBoss3"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } bool expertMode = Main.expertMode || CalamityWorld.bossRushActive; bool revenge = CalamityWorld.revenge || CalamityWorld.bossRushActive; @@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss bool flag100 = false; for (int num569 = 0; num569 < 200; num569++) { - if ((Main.npc[num569].active && Main.npc[num569].type == mod.NPCType("ProfanedGuardianBoss2")) || (Main.npc[num569].active && Main.npc[num569].type == mod.NPCType("ProfanedGuardianBoss3"))) + if ((Main.npc[num569].active && Main.npc[num569].type == ModContent.NPCType()) || (Main.npc[num569].active && Main.npc[num569].type == ModContent.NPCType())) { flag100 = true; } @@ -199,7 +199,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss double deltaAngle = spread / (float)totalProjectiles; // Angle between each projectile, 0.04363325 float velocity = 5f; int damage = expertMode ? 50 : 60; - int projectileType = mod.ProjectileType("ProfanedSpear"); + int projectileType = ModContent.ProjectileType(); double offsetAngle; int i; @@ -315,7 +315,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss Main.PlaySound(SoundID.Item20, npc.position); int damage = expertMode ? 55 : 70; Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, mod.ProjectileType("FlareDust"), damage, 0f, Main.myPlayer, 0f, 0f); //changed + int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); //changed Main.projectile[projectile].timeLeft = 120; Main.projectile[projectile].velocity.X = 0f; Main.projectile[projectile].velocity.Y = 0f; @@ -421,8 +421,8 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss public override void NPCLoot() { // Profaned Guardians have no actual drops and no treasure bag - DropHelper.DropItem(npc, mod.ItemType("ProfanedCore")); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeProfanedGuardians"), true, !CalamityWorld.downedGuardians); + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedGuardians); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedGuardians, 5, 2, 1); // Mark the Profaned Guardians as dead diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs index b1d7a4509a..ce0b8a73e3 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.ProfanedGuardianBoss +namespace CalamityMod.NPCs { [AutoloadBossHead] public class ProfanedGuardianBoss2 : ModNPC @@ -45,14 +45,14 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; } @@ -191,7 +191,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss double deltaAngle = spread / 8f; double offsetAngle; int damage = expertMode ? 50 : 60; - int projectileShot = mod.ProjectileType("ProfanedSpear"); + int projectileShot = ModContent.ProjectileType(); int i; for (i = 0; i < 3; i++) { diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs index e278822ca4..aa78fba3de 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.ProfanedGuardianBoss +namespace CalamityMod.NPCs { [AutoloadBossHead] public class ProfanedGuardianBoss3 : ModNPC @@ -45,14 +45,14 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; } @@ -191,7 +191,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss double deltaAngle = spread / 8f; double offsetAngle; int damage = 0; - int projectileShot = mod.ProjectileType("HealOrbProv"); + int projectileShot = ModContent.ProjectileType(); int i; for (i = 0; i < 3; i++) { diff --git a/NPCs/Providence/ProvScreenShaderData.cs b/NPCs/Providence/ProvScreenShaderData.cs index e32df5e51c..0696c7cbcd 100644 --- a/NPCs/Providence/ProvScreenShaderData.cs +++ b/NPCs/Providence/ProvScreenShaderData.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Providence +namespace CalamityMod.NPCs { public class ProvScreenShaderData : ScreenShaderData { diff --git a/NPCs/Providence/ProvSky.cs b/NPCs/Providence/ProvSky.cs index abe581a651..dff00ba6ae 100644 --- a/NPCs/Providence/ProvSky.cs +++ b/NPCs/Providence/ProvSky.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Providence +namespace CalamityMod.NPCs { public class ProvSky : CustomSky { diff --git a/NPCs/Providence/ProvSpawnDefense.cs b/NPCs/Providence/ProvSpawnDefense.cs index 04d1cfb019..80e1dc976f 100644 --- a/NPCs/Providence/ProvSpawnDefense.cs +++ b/NPCs/Providence/ProvSpawnDefense.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Providence +namespace CalamityMod.NPCs { public class ProvSpawnDefense : ModNPC { @@ -41,14 +41,14 @@ namespace CalamityMod.NPCs.Providence } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; } diff --git a/NPCs/Providence/ProvSpawnHealer.cs b/NPCs/Providence/ProvSpawnHealer.cs index ecef8892f6..4f42fa8268 100644 --- a/NPCs/Providence/ProvSpawnHealer.cs +++ b/NPCs/Providence/ProvSpawnHealer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Providence +namespace CalamityMod.NPCs { public class ProvSpawnHealer : ModNPC { @@ -41,14 +41,14 @@ namespace CalamityMod.NPCs.Providence } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; } diff --git a/NPCs/Providence/ProvSpawnOffense.cs b/NPCs/Providence/ProvSpawnOffense.cs index a6a4358efe..9084a92193 100644 --- a/NPCs/Providence/ProvSpawnOffense.cs +++ b/NPCs/Providence/ProvSpawnOffense.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Providence +namespace CalamityMod.NPCs { public class ProvSpawnOffense : ModNPC { @@ -46,14 +46,14 @@ namespace CalamityMod.NPCs.Providence } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; } @@ -182,7 +182,7 @@ namespace CalamityMod.NPCs.Providence Main.PlaySound(SoundID.Item20, npc.position); int damage = expertMode ? 40 : 59; Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, mod.ProjectileType("FlareDust"), damage, 0f, Main.myPlayer, 0f, 0f); //changed + int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); //changed Main.projectile[projectile].timeLeft = 120; Main.projectile[projectile].velocity.X = 0f; Main.projectile[projectile].velocity.Y = 0f; @@ -289,7 +289,7 @@ namespace CalamityMod.NPCs.Providence { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 180); + player.AddBuff(ModContent.BuffType(), 180); } player.AddBuff(BuffID.OnFire, 600, true); } diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index d8ba39de17..42833fd917 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -7,9 +7,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Providence +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Providence : ModNPC @@ -59,14 +59,14 @@ namespace CalamityMod.NPCs.Providence } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.Providence music = MusicID.LunarBoss; npc.HitSound = SoundID.NPCHit44; npc.DeathSound = SoundID.NPCDeath46; - bossBag = mod.ItemType("ProvidenceBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -154,7 +154,7 @@ namespace CalamityMod.NPCs.Providence if (Vector2.Distance(player.Center, vector) > 2800f) { if (!player.dead && player.active) - player.AddBuff(mod.BuffType("HolyInferno"), 2); + player.AddBuff(ModContent.BuffType(), 2); } // Count the remaining Guardians, healer especially because it allows the boss to heal @@ -300,9 +300,9 @@ namespace CalamityMod.NPCs.Providence bossLife = (float)npc.life; int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - NPC.NewNPC(x - 100, y - 100, mod.NPCType("ProvSpawnDefense"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC(x + 100, y - 100, mod.NPCType("ProvSpawnHealer"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC(x, y + 100, mod.NPCType("ProvSpawnOffense"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(x - 100, y - 100, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(x + 100, y - 100, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(x, y + 100, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } } } @@ -631,7 +631,7 @@ namespace CalamityMod.NPCs.Providence num858 *= num859; int holyDamage = expertMode ? 52 : 65; - Projectile.NewProjectile(vector.X, vector.Y, num857, num858, mod.ProjectileType("HolyBlast"), holyDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector.X, vector.Y, num857, num858, ModContent.ProjectileType(), holyDamage, 0f, Main.myPlayer, 0f, 0f); } } else if (npc.ai[3] < 0f) @@ -674,7 +674,7 @@ namespace CalamityMod.NPCs.Providence num865 += expertMode ? 4f : 3f; int fireDamage = expertMode ? 48 : 60; - Projectile.NewProjectile(vector113.X, vector113.Y, npc.velocity.X * 0.25f, num865, mod.ProjectileType("HolyFire"), fireDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector113.X, vector113.Y, npc.velocity.X * 0.25f, num865, ModContent.ProjectileType(), fireDamage, 0f, Main.myPlayer, 0f, 0f); } } @@ -723,9 +723,9 @@ namespace CalamityMod.NPCs.Providence if (Main.netMode != NetmodeID.MultiplayerClient) { if (Main.rand.NextBool(4) && !CalamityWorld.death && !CalamityWorld.bossRushActive) - Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, mod.ProjectileType("HolyLight"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); else - Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, mod.ProjectileType("HolyBurnOrb"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } } @@ -754,7 +754,7 @@ namespace CalamityMod.NPCs.Providence if (!player2.dead && player2.active && Vector2.Distance(player2.Center, vector) < 2800f && !inLiquid) { Main.PlaySound(SoundID.Item20, player2.position); - player2.AddBuff(mod.BuffType("ExtremeGravity"), 3000, true); + player2.AddBuff(ModContent.BuffType(), 3000, true); for (int num621 = 0; num621 < 40; num621++) { @@ -825,7 +825,7 @@ namespace CalamityMod.NPCs.Providence num858 *= num859; int holyDamage = expertMode ? 42 : 55; - Projectile.NewProjectile(vector.X, vector.Y, num857 * 0.1f, num858, mod.ProjectileType("MoltenBlast"), holyDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector.X, vector.Y, num857 * 0.1f, num858, ModContent.ProjectileType(), holyDamage, 0f, Main.myPlayer, 0f, 0f); } } else if (npc.ai[3] < 0f) @@ -868,7 +868,7 @@ namespace CalamityMod.NPCs.Providence num865 += expertMode ? 4f : 3f; int fireDamage = expertMode ? 48 : 60; - Projectile.NewProjectile(vector113.X, vector113.Y, npc.velocity.X * 0.25f, num865, mod.ProjectileType("HolyBomb"), fireDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector113.X, vector113.Y, npc.velocity.X * 0.25f, num865, ModContent.ProjectileType(), fireDamage, 0f, Main.myPlayer, 0f, 0f); } } @@ -915,9 +915,9 @@ namespace CalamityMod.NPCs.Providence vector93.Y += num744 * 3f; int num746 = expertMode ? 52 : 65; - int num747 = mod.ProjectileType("HolyShot"); + int num747 = ModContent.ProjectileType(); Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + (float)Main.rand.Next(-100, 100), 0f, 0f, mod.ProjectileType("HolySpear"), num746, 0f, Main.myPlayer, (float)Main.rand.Next(2), 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + (float)Main.rand.Next(-100, 100), 0f, 0f, ModContent.ProjectileType(), num746, 0f, Main.myPlayer, (float)Main.rand.Next(2), 0f); } } @@ -945,7 +945,7 @@ namespace CalamityMod.NPCs.Providence if (npc.ai[1] >= 60f) { int damage = expertMode ? 57 : 70; - Projectile.NewProjectile(player.Center.X, player.Center.Y - 360f, 0f, 0f, mod.ProjectileType("ProvidenceCrystal"), damage, 0f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y - 360f, 0f, 0f, ModContent.ProjectileType(), damage, 0f, player.whoAmI, 0f, 0f); npc.ai[0] = -1f; } } @@ -1008,10 +1008,10 @@ namespace CalamityMod.NPCs.Providence num1225 = 1f; vector200 = vector200.RotatedBy((double)(-(double)num1225 * 6.28318548f / 6f), default); - Projectile.NewProjectile(vector.X, vector.Y - 32f, vector200.X, vector200.Y, mod.ProjectileType("ProvidenceHolyRay"), 100, 0f, Main.myPlayer, num1225 * 6.28318548f / rotation, (float)npc.whoAmI); + Projectile.NewProjectile(vector.X, vector.Y - 32f, vector200.X, vector200.Y, ModContent.ProjectileType(), 100, 0f, Main.myPlayer, num1225 * 6.28318548f / rotation, (float)npc.whoAmI); if (revenge) - Projectile.NewProjectile(vector.X, vector.Y - 32f, -vector200.X, -vector200.Y, mod.ProjectileType("ProvidenceHolyRay"), 100, 0f, Main.myPlayer, -num1225 * 6.28318548f / rotation, (float)npc.whoAmI); + Projectile.NewProjectile(vector.X, vector.Y - 32f, -vector200.X, -vector200.Y, ModContent.ProjectileType(), 100, 0f, Main.myPlayer, -num1225 * 6.28318548f / rotation, (float)npc.whoAmI); npc.ai[3] = (vector200.ToRotation() + 9.424778f) * num1225; npc.netUpdate = true; @@ -1055,36 +1055,36 @@ namespace CalamityMod.NPCs.Providence public override void NPCLoot() { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("ProvidenceTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeProvidence"), true, !CalamityWorld.downedProvidence); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedProvidence); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedProvidence, 5, 2, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("ElysianWings"), biomeType != 2); - DropHelper.DropItemCondition(npc, mod.ItemType("ElysianAegis"), biomeType == 2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), biomeType != 2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), biomeType == 2); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItemSpray(npc, mod.ItemType("UnholyEssence"), 20, 30); - DropHelper.DropItemSpray(npc, mod.ItemType("DivineGeode"), 10, 15); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 20, 30); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 10, 15); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("HolyCollider"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("SolarFlare"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("TelluricGlare"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("BlissfulBombardier"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("PurgeGuzzler"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("MoltenAmputator"), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("SamuraiBadge"), 40); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 40); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("ProvidenceMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); // Other - DropHelper.DropItem(npc, mod.ItemType("RuneofCos")); + DropHelper.DropItem(npc, ModContent.ItemType()); } if (Main.netMode != NetmodeID.MultiplayerClient) @@ -1100,7 +1100,7 @@ namespace CalamityMod.NPCs.Providence string key3 = "Mods.CalamityMod.TreeOreText"; Color messageColor3 = Color.LightGreen; - WorldGenerationMethods.SpawnOre(mod.TileType("UelibloomOre"), 15E-05, .4f, .8f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 15E-05, .4f, .8f); if (Main.netMode == NetmodeID.SinglePlayer) { @@ -1131,7 +1131,7 @@ namespace CalamityMod.NPCs.Providence if ((x == tileCenterX - halfBox || x == tileCenterX + halfBox || y == tileCenterY - halfBox || y == tileCenterY + halfBox) && !Main.tile[x, y].active()) { - Main.tile[x, y].type = (ushort)mod.TileType("ProfanedRock"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); Main.tile[x, y].active(true); } Main.tile[x, y].lava(false); diff --git a/NPCs/Scavenger/FlamePillar.cs b/NPCs/Scavenger/FlamePillar.cs index bdc5792d1c..6010ed4aeb 100644 --- a/NPCs/Scavenger/FlamePillar.cs +++ b/NPCs/Scavenger/FlamePillar.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class FlamePillar : ModNPC { @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Scavenger { Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); int damage = 45; - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, SpeedX, SpeedY, mod.ProjectileType("RavagerFlame"), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); } npc.localAI[0] = 0f; npc.netUpdate = true; diff --git a/NPCs/Scavenger/RockPillar.cs b/NPCs/Scavenger/RockPillar.cs index 104b9c168e..95ad97fda9 100644 --- a/NPCs/Scavenger/RockPillar.cs +++ b/NPCs/Scavenger/RockPillar.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class RockPillar : ModNPC { diff --git a/NPCs/Scavenger/ScavengerBody.cs b/NPCs/Scavenger/ScavengerBody.cs index cbceadd6be..a5611054f0 100644 --- a/NPCs/Scavenger/ScavengerBody.cs +++ b/NPCs/Scavenger/ScavengerBody.cs @@ -6,9 +6,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { [AutoloadBossHead] public class ScavengerBody : ModNPC @@ -49,15 +49,15 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.alpha = 255; npc.HitSound = SoundID.NPCHit41; @@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.Scavenger music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Ravager"); else music = MusicID.Boss4; - bossBag = mod.ItemType("RavagerBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -109,11 +109,11 @@ namespace CalamityMod.NPCs.Scavenger if (npc.localAI[0] == 0f && Main.netMode != NetmodeID.MultiplayerClient) { npc.localAI[0] = 1f; - NPC.NewNPC((int)npc.Center.X - 70, (int)npc.Center.Y + 88, mod.NPCType("ScavengerLegLeft"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X + 70, (int)npc.Center.Y + 88, mod.NPCType("ScavengerLegRight"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X - 120, (int)npc.Center.Y + 50, mod.NPCType("ScavengerClawLeft"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X + 120, (int)npc.Center.Y + 50, mod.NPCType("ScavengerClawRight"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X + 1, (int)npc.Center.Y - 20, mod.NPCType("ScavengerHead"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X - 70, (int)npc.Center.Y + 88, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X + 70, (int)npc.Center.Y + 88, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X - 120, (int)npc.Center.Y + 50, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X + 120, (int)npc.Center.Y + 50, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X + 1, (int)npc.Center.Y - 20, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } if (npc.target >= 0 && Main.player[npc.target].dead) @@ -140,15 +140,15 @@ namespace CalamityMod.NPCs.Scavenger for (int num619 = 0; num619 < 200; num619++) { - if (Main.npc[num619].active && Main.npc[num619].type == mod.NPCType("ScavengerHead")) + if (Main.npc[num619].active && Main.npc[num619].type == ModContent.NPCType()) headActive = true; - if (Main.npc[num619].active && Main.npc[num619].type == mod.NPCType("ScavengerClawRight")) + if (Main.npc[num619].active && Main.npc[num619].type == ModContent.NPCType()) rightClawActive = true; - if (Main.npc[num619].active && Main.npc[num619].type == mod.NPCType("ScavengerClawLeft")) + if (Main.npc[num619].active && Main.npc[num619].type == ModContent.NPCType()) leftClawActive = true; - if (Main.npc[num619].active && Main.npc[num619].type == mod.NPCType("ScavengerLegRight")) + if (Main.npc[num619].active && Main.npc[num619].type == ModContent.NPCType()) rightLegActive = true; - if (Main.npc[num619].active && Main.npc[num619].type == mod.NPCType("ScavengerLegLeft")) + if (Main.npc[num619].active && Main.npc[num619].type == ModContent.NPCType()) leftLegActive = true; } @@ -164,7 +164,7 @@ namespace CalamityMod.NPCs.Scavenger if (Main.netMode != NetmodeID.Server) { if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) - Main.player[Main.myPlayer].AddBuff(mod.BuffType("WeakPetrification"), 2); + Main.player[Main.myPlayer].AddBuff(ModContent.BuffType(), 2); } } @@ -419,16 +419,16 @@ namespace CalamityMod.NPCs.Scavenger if (Main.netMode != NetmodeID.MultiplayerClient) { - if (NPC.CountNPCS(mod.NPCType("RockPillar")) < 2) + if (NPC.CountNPCS(ModContent.NPCType()) < 2) { - NPC.NewNPC((int)npc.Center.X - 360, (int)npc.Center.Y - 10, mod.NPCType("RockPillar"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X + 360, (int)npc.Center.Y - 10, mod.NPCType("RockPillar"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X - 360, (int)npc.Center.Y - 10, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X + 360, (int)npc.Center.Y - 10, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } - if (NPC.CountNPCS(mod.NPCType("FlamePillar")) < 2) + if (NPC.CountNPCS(ModContent.NPCType()) < 2) { - NPC.NewNPC((int)Main.player[npc.target].Center.X - 180, (int)Main.player[npc.target].Center.Y - 10, mod.NPCType("FlamePillar"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)Main.player[npc.target].Center.X + 180, (int)Main.player[npc.target].Center.Y - 10, mod.NPCType("FlamePillar"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)Main.player[npc.target].Center.X - 180, (int)Main.player[npc.target].Center.Y - 10, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)Main.player[npc.target].Center.X + 180, (int)Main.player[npc.target].Center.Y - 10, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } } @@ -532,7 +532,7 @@ namespace CalamityMod.NPCs.Scavenger Main.spriteBatch.Draw(mod.GetTexture("NPCs/Scavenger/ScavengerLegLeft"), new Vector2(center.X - Main.screenPosition.X - 112f, center.Y - Main.screenPosition.Y + 20f), //72 new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, mod.GetTexture("NPCs/Scavenger/ScavengerLegLeft").Width, mod.GetTexture("NPCs/Scavenger/ScavengerLegLeft").Height)), color2, 0f, default, 1f, SpriteEffects.None, 0f); - if (NPC.CountNPCS(mod.NPCType("ScavengerHead")) > 0) + if (NPC.CountNPCS(ModContent.NPCType()) > 0) { Main.spriteBatch.Draw(mod.GetTexture("NPCs/Scavenger/ScavengerHead"), new Vector2(center.X - Main.screenPosition.X - 70f, center.Y - Main.screenPosition.Y - 75f), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, mod.GetTexture("NPCs/Scavenger/ScavengerHead").Width, mod.GetTexture("NPCs/Scavenger/ScavengerHead").Height)), @@ -578,7 +578,7 @@ namespace CalamityMod.NPCs.Scavenger { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 600, true); + player.AddBuff(ModContent.BuffType(), 600, true); } } @@ -592,8 +592,8 @@ namespace CalamityMod.NPCs.Scavenger { DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("RavagerTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeRavager"), true, !CalamityWorld.downedScavenger); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedScavenger); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedScavenger, 4, 2, 1); // All other drops are contained in the bag, so they only drop directly on Normal @@ -604,27 +604,27 @@ namespace CalamityMod.NPCs.Scavenger int barMax = CalamityWorld.downedProvidence ? 10 : 3; int coreMin = CalamityWorld.downedProvidence ? 1 : 1; int coreMax = CalamityWorld.downedProvidence ? 3 : 2; - DropHelper.DropItemCondition(npc, mod.ItemType("Bloodstone"), CalamityWorld.downedProvidence, 50, 60); - DropHelper.DropItem(npc, mod.ItemType("VerstaltiteBar"), barMin, barMax); - DropHelper.DropItem(npc, mod.ItemType("DraedonBar"), barMin, barMax); - DropHelper.DropItem(npc, mod.ItemType("CruptixBar"), barMin, barMax); - DropHelper.DropItem(npc, mod.ItemType("CoreofCinder"), coreMin, coreMax); - DropHelper.DropItem(npc, mod.ItemType("CoreofEleum"), coreMin, coreMax); - DropHelper.DropItem(npc, mod.ItemType("CoreofChaos"), coreMin, coreMax); - DropHelper.DropItemCondition(npc, mod.ItemType("BarofLife"), CalamityWorld.downedProvidence, 2, 1, 1); - DropHelper.DropItemCondition(npc, mod.ItemType("CoreofCalamity"), CalamityWorld.downedProvidence, 3, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedProvidence, 50, 60); + DropHelper.DropItem(npc, ModContent.ItemType(), barMin, barMax); + DropHelper.DropItem(npc, ModContent.ItemType(), barMin, barMax); + DropHelper.DropItem(npc, ModContent.ItemType(), barMin, barMax); + DropHelper.DropItem(npc, ModContent.ItemType(), coreMin, coreMax); + DropHelper.DropItem(npc, ModContent.ItemType(), coreMin, coreMax); + DropHelper.DropItem(npc, ModContent.ItemType(), coreMin, coreMax); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedProvidence, 2, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedProvidence, 3, 1, 1); // Weapons DropHelper.DropItemFromSet(npc, - mod.ItemType("UltimusCleaver"), - mod.ItemType("RealmRavager"), - mod.ItemType("Hematemesis"), - mod.ItemType("SpikecragStaff"), - mod.ItemType("CraniumSmasher")); + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType()); // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("BloodPact"), 3); - DropHelper.DropItemChance(npc, mod.ItemType("FleshTotem"), 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); } // Mark Ravager as dead diff --git a/NPCs/Scavenger/ScavengerClawLeft.cs b/NPCs/Scavenger/ScavengerClawLeft.cs index c6ced6f372..d1d1d6e8cd 100644 --- a/NPCs/Scavenger/ScavengerClawLeft.cs +++ b/NPCs/Scavenger/ScavengerClawLeft.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class ScavengerClawLeft : ModNPC { @@ -34,15 +34,15 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.canGhostHeal = false; npc.alpha = 255; @@ -303,7 +303,7 @@ namespace CalamityMod.NPCs.Scavenger { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } diff --git a/NPCs/Scavenger/ScavengerClawRight.cs b/NPCs/Scavenger/ScavengerClawRight.cs index d59b40536b..eb106a8c5e 100644 --- a/NPCs/Scavenger/ScavengerClawRight.cs +++ b/NPCs/Scavenger/ScavengerClawRight.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class ScavengerClawRight : ModNPC { @@ -34,15 +34,15 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.canGhostHeal = false; npc.alpha = 255; @@ -304,7 +304,7 @@ namespace CalamityMod.NPCs.Scavenger { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 300, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } diff --git a/NPCs/Scavenger/ScavengerHead.cs b/NPCs/Scavenger/ScavengerHead.cs index 3864c75dec..c5c9603e02 100644 --- a/NPCs/Scavenger/ScavengerHead.cs +++ b/NPCs/Scavenger/ScavengerHead.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class ScavengerHead : ModNPC { @@ -32,15 +32,15 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.canGhostHeal = false; npc.noTileCollide = true; @@ -121,7 +121,7 @@ namespace CalamityMod.NPCs.Scavenger playerDistanceX *= totalPlayerDistance; playerDistanceY *= totalPlayerDistance; int nukeDamage = expertMode ? 45 : 60; - int projectileType = mod.ProjectileType("ScavengerNuke"); + int projectileType = ModContent.ProjectileType(); if (Main.netMode != NetmodeID.MultiplayerClient) { int nuke = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, playerDistanceX, playerDistanceY, projectileType, nukeDamage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); @@ -148,7 +148,7 @@ namespace CalamityMod.NPCs.Scavenger } else if (Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, mod.NPCType("ScavengerHead2"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } } diff --git a/NPCs/Scavenger/ScavengerHead2.cs b/NPCs/Scavenger/ScavengerHead2.cs index a8b802481c..13bc8a0d8b 100644 --- a/NPCs/Scavenger/ScavengerHead2.cs +++ b/NPCs/Scavenger/ScavengerHead2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class ScavengerHead2 : ModNPC { @@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.Scavenger playerDistanceX *= totalPlayerDistance; playerDistanceY *= totalPlayerDistance; int nukeDamage = Main.expertMode ? 45 : 60; - int projectileType = mod.ProjectileType("ScavengerNuke"); + int projectileType = ModContent.ProjectileType(); if (Main.netMode != NetmodeID.MultiplayerClient) { Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, playerDistanceX, playerDistanceY, projectileType, nukeDamage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); @@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.Scavenger { Main.PlaySound(SoundID.Item33, npc.position); int num8 = 40; - int num9 = mod.ProjectileType("ScavengerLaser"); + int num9 = ModContent.ProjectileType(); Projectile.NewProjectile(vector.X, vector.Y, num4, num5, num9, num8 + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); } } diff --git a/NPCs/Scavenger/ScavengerLegLeft.cs b/NPCs/Scavenger/ScavengerLegLeft.cs index 34299ee0ac..336fd39786 100644 --- a/NPCs/Scavenger/ScavengerLegLeft.cs +++ b/NPCs/Scavenger/ScavengerLegLeft.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class ScavengerLegLeft : ModNPC { @@ -32,14 +32,14 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.canGhostHeal = false; npc.noTileCollide = true; diff --git a/NPCs/Scavenger/ScavengerLegRight.cs b/NPCs/Scavenger/ScavengerLegRight.cs index add864882f..2e2791f8ce 100644 --- a/NPCs/Scavenger/ScavengerLegRight.cs +++ b/NPCs/Scavenger/ScavengerLegRight.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Scavenger +namespace CalamityMod.NPCs { public class ScavengerLegRight : ModNPC { @@ -32,14 +32,14 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.canGhostHeal = false; npc.noTileCollide = true; diff --git a/NPCs/SlimeGod/SlimeGod.cs b/NPCs/SlimeGod/SlimeGod.cs index 68831bc4c4..2b09aaeca0 100644 --- a/NPCs/SlimeGod/SlimeGod.cs +++ b/NPCs/SlimeGod/SlimeGod.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SlimeGod : ModNPC @@ -30,8 +30,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.lifeMax += (int)(npc.lifeMax * HPBoost); npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.knockBackResist = 0f; animationType = 50; npc.value = 0f; @@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.SlimeGod music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"); else music = MusicID.Boss1; - bossBag = mod.ItemType("SlimeGodBag"); + bossBag = ModContent.ItemType(); } public override void AI() @@ -61,8 +61,8 @@ namespace CalamityMod.NPCs.SlimeGod { Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 1); Vector2 spawnAt = vector + new Vector2(0f, (float)npc.height / 2f); - NPC.NewNPC((int)spawnAt.X - 30, (int)spawnAt.Y, mod.NPCType("SlimeGodSplit")); - NPC.NewNPC((int)spawnAt.X + 30, (int)spawnAt.Y, mod.NPCType("SlimeGodSplit")); + NPC.NewNPC((int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType()); + NPC.NewNPC((int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType()); npc.active = false; npc.netUpdate = true; return; @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = 24; - int num185 = mod.ProjectileType("AbyssMine"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 3; num186++) @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = expertMode ? 17 : 21; - int num185 = mod.ProjectileType("AbyssBallVolley"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 4; num186++) @@ -506,7 +506,7 @@ namespace CalamityMod.NPCs.SlimeGod { int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num663 = mod.NPCType("SlimeSpawnCorrupt"); + int num663 = ModContent.NPCType(); int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num664].SetDefaults(num663, -1f); Main.npc[num664].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; @@ -532,10 +532,10 @@ namespace CalamityMod.NPCs.SlimeGod public override void NPCLoot() { bool otherSlimeGodsAlive = - NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()); if (!otherSlimeGodsAlive) SlimeGodCore.DropSlimeGodLoot(npc); } diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 154cddbf41..0051e3186b 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -6,9 +6,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SlimeGodCore : ModNPC @@ -32,8 +32,8 @@ namespace CalamityMod.NPCs.SlimeGod NPCID.Sets.TrailingMode[npc.type] = 1; npc.aiStyle = -1; aiType = -1; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 8, 0, 0); npc.alpha = 80; @@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.SlimeGod music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"); else music = MusicID.Boss1; - bossBag = mod.ItemType("SlimeGodBag"); + bossBag = ModContent.ItemType(); } public override void AI() @@ -98,8 +98,8 @@ namespace CalamityMod.NPCs.SlimeGod { for (int x = 0; x < 200; x++) { - if (Main.npc[x].type == mod.NPCType("SlimeGod") || Main.npc[x].type == mod.NPCType("SlimeGodSplit") || - Main.npc[x].type == mod.NPCType("SlimeGodRun") || Main.npc[x].type == mod.NPCType("SlimeGodRunSplit")) + if (Main.npc[x].type == ModContent.NPCType() || Main.npc[x].type == ModContent.NPCType() || + Main.npc[x].type == ModContent.NPCType() || Main.npc[x].type == ModContent.NPCType()) { Main.npc[x].active = false; Main.npc[x].netUpdate = true; @@ -145,11 +145,11 @@ namespace CalamityMod.NPCs.SlimeGod int num185 = Main.rand.Next(2); if (num185 == 0) { - num185 = mod.ProjectileType("AbyssMine"); + num185 = ModContent.ProjectileType(); } else { - num185 = mod.ProjectileType("AbyssMine2"); + num185 = ModContent.ProjectileType(); num184 = 22; } value9.X += num180; @@ -187,11 +187,11 @@ namespace CalamityMod.NPCs.SlimeGod int num185 = Main.rand.Next(2); if (num185 == 0) { - num185 = mod.ProjectileType("AbyssBallVolley"); + num185 = ModContent.ProjectileType(); } else { - num185 = mod.ProjectileType("AbyssBallVolley2"); + num185 = ModContent.ProjectileType(); num184 = expertMode ? 16 : 19; } value9.X += num180; @@ -320,10 +320,10 @@ namespace CalamityMod.NPCs.SlimeGod public override void NPCLoot() { bool otherSlimeGodsAlive = - NPC.AnyNPCs(mod.NPCType("SlimeGod")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()); if (!otherSlimeGodsAlive) DropSlimeGodLoot(npc); } @@ -334,15 +334,15 @@ namespace CalamityMod.NPCs.SlimeGod CalamityMod mod = ModContent.GetInstance(); DropHelper.DropBags(npc); - DropHelper.DropItemChance(npc, mod.ItemType("SlimeGodTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeSlimeGod"), true, !CalamityWorld.downedSlimeGod); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedSlimeGod); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedSlimeGod, 3, 1, 0); // Purified Jam is once per player, but drops for all players. CalamityPlayer mp = Main.player[Player.FindClosest(npc.position, npc.width, npc.height)].Calamity(); if (!mp.revJamDrop) { - DropHelper.DropItemCondition(npc, mod.ItemType("PurifiedJam"), true, CalamityWorld.revenge && !CalamityWorld.downedSlimeGod, 6, 8); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, CalamityWorld.revenge && !CalamityWorld.downedSlimeGod, 6, 8); mp.revJamDrop = true; } @@ -353,21 +353,21 @@ namespace CalamityMod.NPCs.SlimeGod if (!Main.expertMode) { // Materials - DropHelper.DropItemSpray(npc, mod.ItemType("PurifiedGel"), 25, 40); + DropHelper.DropItemSpray(npc, ModContent.ItemType(), 25, 40); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("OverloadedBlaster"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("AbyssalTome"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("EldritchTome"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("CorroslimeStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("CrimslimeStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("GelDart"), 4, 80, 100); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4, 80, 100); // Vanity - DropHelper.DropItemFromSetChance(npc, 7, mod.ItemType("SlimeGodMask"), mod.ItemType("SlimeGodMask2")); + DropHelper.DropItemFromSetChance(npc, 7, ModContent.ItemType(), ModContent.ItemType()); // Other - DropHelper.DropItem(npc, mod.ItemType("StaticRefiner")); + DropHelper.DropItem(npc, ModContent.ItemType()); } // Mark the Slime God as dead @@ -420,8 +420,8 @@ namespace CalamityMod.NPCs.SlimeGod player.AddBuff(BuffID.VortexDebuff, 240, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 120, true); - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(ModContent.BuffType(), 120, true); + player.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/NPCs/SlimeGod/SlimeGodRun.cs b/NPCs/SlimeGod/SlimeGodRun.cs index e6a8206762..dc03f0b594 100644 --- a/NPCs/SlimeGod/SlimeGodRun.cs +++ b/NPCs/SlimeGod/SlimeGodRun.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SlimeGodRun : ModNPC @@ -30,8 +30,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.lifeMax += (int)(npc.lifeMax * HPBoost); npc.knockBackResist = 0f; animationType = 50; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; npc.value = 0f; npc.alpha = 60; npc.lavaImmune = false; @@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.SlimeGod music = MusicID.Boss1; npc.aiStyle = -1; aiType = -1; - bossBag = mod.ItemType("SlimeGodBag"); + bossBag = ModContent.ItemType(); } public override void AI() @@ -64,8 +64,8 @@ namespace CalamityMod.NPCs.SlimeGod { Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 1); Vector2 spawnAt = vector + new Vector2(0f, (float)npc.height / 2f); - NPC.NewNPC((int)spawnAt.X - 30, (int)spawnAt.Y, mod.NPCType("SlimeGodRunSplit")); - NPC.NewNPC((int)spawnAt.X + 30, (int)spawnAt.Y, mod.NPCType("SlimeGodRunSplit")); + NPC.NewNPC((int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType()); + NPC.NewNPC((int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType()); npc.active = false; npc.netUpdate = true; return; @@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = 22; - int num185 = mod.ProjectileType("AbyssMine2"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 2; num186++) @@ -164,7 +164,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = expertMode ? 16 : 19; - int num185 = mod.ProjectileType("AbyssBallVolley2"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 2; num186++) @@ -531,10 +531,10 @@ namespace CalamityMod.NPCs.SlimeGod { int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num663 = mod.NPCType("SlimeSpawnCrimson"); + int num663 = ModContent.NPCType(); if (Main.rand.NextBool(3)) { - num663 = mod.NPCType("SlimeSpawnCrimson2"); + num663 = ModContent.NPCType(); } int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num664].SetDefaults(num663, -1f); @@ -561,10 +561,10 @@ namespace CalamityMod.NPCs.SlimeGod public override void NPCLoot() { bool otherSlimeGodsAlive = - NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || - NPC.AnyNPCs(mod.NPCType("SlimeGod")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()); if (!otherSlimeGodsAlive) SlimeGodCore.DropSlimeGodLoot(npc); } diff --git a/NPCs/SlimeGod/SlimeGodRunSplit.cs b/NPCs/SlimeGod/SlimeGodRunSplit.cs index 4dc73c5cc8..8b0386925c 100644 --- a/NPCs/SlimeGod/SlimeGodRunSplit.cs +++ b/NPCs/SlimeGod/SlimeGodRunSplit.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SlimeGodRunSplit : ModNPC @@ -29,8 +29,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.scale = 0.8f; npc.defense = 10; npc.knockBackResist = 0f; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; animationType = 50; npc.value = Item.buyPrice(0, 1, 0, 0); npc.alpha = 60; @@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.SlimeGod music = MusicID.Boss1; npc.aiStyle = -1; aiType = -1; - bossBag = mod.ItemType("SlimeGodBag"); + bossBag = ModContent.ItemType(); } public override void AI() @@ -108,7 +108,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = 22; - int num185 = mod.ProjectileType("AbyssMine2"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; num180 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - value9.X; @@ -142,7 +142,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = expertMode ? 16 : 19; - int num185 = mod.ProjectileType("AbyssBallVolley2"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; num180 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - value9.X; @@ -506,10 +506,10 @@ namespace CalamityMod.NPCs.SlimeGod { int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num663 = mod.NPCType("SlimeSpawnCrimson"); + int num663 = ModContent.NPCType(); if (Main.rand.NextBool(3)) { - num663 = mod.NPCType("SlimeSpawnCrimson2"); + num663 = ModContent.NPCType(); } int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num664].SetDefaults(num663, -1f); @@ -530,11 +530,11 @@ namespace CalamityMod.NPCs.SlimeGod public override void NPCLoot() { bool otherSlimeGodsAlive = - NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || - NPC.AnyNPCs(mod.NPCType("SlimeGod")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || - NPC.CountNPCS(mod.NPCType("SlimeGodRunSplit")) > 1; // the other crimulan split is alive + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.CountNPCS(ModContent.NPCType()) > 1; // the other crimulan split is alive if (!otherSlimeGodsAlive) SlimeGodCore.DropSlimeGodLoot(npc); } diff --git a/NPCs/SlimeGod/SlimeGodSplit.cs b/NPCs/SlimeGod/SlimeGodSplit.cs index fabb149fd4..eb2ef2f0f2 100644 --- a/NPCs/SlimeGod/SlimeGodSplit.cs +++ b/NPCs/SlimeGod/SlimeGodSplit.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SlimeGodSplit : ModNPC @@ -31,8 +31,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[ModContent.BuffType()] = true; animationType = 50; npc.value = Item.buyPrice(0, 1, 0, 0); npc.alpha = 60; @@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.SlimeGod music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"); else music = MusicID.Boss1; - bossBag = mod.ItemType("SlimeGodBag"); + bossBag = ModContent.ItemType(); } public override void AI() @@ -91,7 +91,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = 24; - int num185 = mod.ProjectileType("AbyssMine"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; num180 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - value9.X; @@ -123,7 +123,7 @@ namespace CalamityMod.NPCs.SlimeGod num180 *= num183; num182 *= num183; int num184 = expertMode ? 17 : 21; - int num185 = mod.ProjectileType("AbyssBallVolley"); + int num185 = ModContent.ProjectileType(); value9.X += num180; value9.Y += num182; for (int num186 = 0; num186 < 2; num186++) @@ -491,7 +491,7 @@ namespace CalamityMod.NPCs.SlimeGod { int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num663 = mod.NPCType("SlimeSpawnCorrupt"); + int num663 = ModContent.NPCType(); int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num664].SetDefaults(num663, -1f); Main.npc[num664].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; @@ -511,11 +511,11 @@ namespace CalamityMod.NPCs.SlimeGod public override void NPCLoot() { bool otherSlimeGodsAlive = - NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || - NPC.AnyNPCs(mod.NPCType("SlimeGod")) || - NPC.CountNPCS(mod.NPCType("SlimeGodSplit")) > 1 || // the other ebonian split is alive - NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.CountNPCS(ModContent.NPCType()) > 1 || // the other ebonian split is alive + NPC.AnyNPCs(ModContent.NPCType()) || + NPC.AnyNPCs(ModContent.NPCType()); if (!otherSlimeGodsAlive) SlimeGodCore.DropSlimeGodLoot(npc); } diff --git a/NPCs/SlimeGod/SlimeSpawnCorrupt.cs b/NPCs/SlimeGod/SlimeSpawnCorrupt.cs index 67f8d76c22..1d43d47df4 100644 --- a/NPCs/SlimeGod/SlimeSpawnCorrupt.cs +++ b/NPCs/SlimeGod/SlimeSpawnCorrupt.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { public class SlimeSpawnCorrupt : ModNPC { @@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.SlimeGod if (Main.netMode != NetmodeID.MultiplayerClient && npc.life <= 0) { Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("SlimeSpawnCorrupt2")); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } for (int k = 0; k < 5; k++) { diff --git a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs index 0f67833f1b..446a3eaaaa 100644 --- a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { public class SlimeSpawnCorrupt2 : ModNPC { diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson.cs b/NPCs/SlimeGod/SlimeSpawnCrimson.cs index f65009d95d..f5fcb24411 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { public class SlimeSpawnCrimson : ModNPC { diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs index cf1c71275d..cf5caee600 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SlimeGod +namespace CalamityMod.NPCs { public class SlimeSpawnCrimson2 : ModNPC { @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.SlimeGod vector4.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.005f; vector4.Normalize(); vector4 *= 4f + (float)Main.rand.Next(-50, 51) * 0.01f; - Projectile.NewProjectile(vector3.X, vector3.Y, vector4.X, vector4.Y, mod.ProjectileType("CrimsonSpike"), 13, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector3.X, vector3.Y, vector4.X, vector4.Y, ModContent.ProjectileType(), 13, 0f, Main.myPlayer, 0f, 0f); spikeTimer = 30f; } } @@ -89,7 +89,7 @@ namespace CalamityMod.NPCs.SlimeGod num14 *= num16; num15 *= num16; spikeTimer = 50f; - Projectile.NewProjectile(vector3.X, vector3.Y, num14, num15, mod.ProjectileType("CrimsonSpike"), 12, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector3.X, vector3.Y, num14, num15, ModContent.ProjectileType(), 12, 0f, Main.myPlayer, 0f, 0f); } } } diff --git a/NPCs/StormWeaver/StasisProbe.cs b/NPCs/StormWeaver/StasisProbe.cs index a386ae50ac..bbda16c063 100644 --- a/NPCs/StormWeaver/StasisProbe.cs +++ b/NPCs/StormWeaver/StasisProbe.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { public class StasisProbe : ModNPC { diff --git a/NPCs/StormWeaver/StasisProbeNaked.cs b/NPCs/StormWeaver/StasisProbeNaked.cs index ca68500ae3..e5fc59176f 100644 --- a/NPCs/StormWeaver/StasisProbeNaked.cs +++ b/NPCs/StormWeaver/StasisProbeNaked.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { public class StasisProbeNaked : ModNPC { diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index 1df853bce1..b856497e07 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { public class StormWeaverBody : ModNPC { @@ -231,12 +231,12 @@ namespace CalamityMod.NPCs.StormWeaver Main.dust[num624].velocity *= 2f; } } - if (NPC.CountNPCS(mod.NPCType("StasisProbe")) < 3) + if (NPC.CountNPCS(ModContent.NPCType()) < 3) { if (npc.life > 0 && Main.netMode != NetmodeID.MultiplayerClient && spawn == 0 && Main.rand.NextBool(15)) { spawn = 1; - int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), mod.NPCType("StasisProbe"), 0, 0f, 0f, 0f, 0f, 255); + int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); diff --git a/NPCs/StormWeaver/StormWeaverBodyNaked.cs b/NPCs/StormWeaver/StormWeaverBodyNaked.cs index 8922fd3490..070450d35e 100644 --- a/NPCs/StormWeaver/StormWeaverBodyNaked.cs +++ b/NPCs/StormWeaver/StormWeaverBodyNaked.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { public class StormWeaverBodyNaked : ModNPC { @@ -291,13 +291,13 @@ namespace CalamityMod.NPCs.StormWeaver Main.dust[num624].velocity *= 2f; } } - if (NPC.CountNPCS(mod.NPCType("StasisProbeNaked")) < 3) + if (NPC.CountNPCS(ModContent.NPCType()) < 3) { spawn--; if (npc.life > 0 && Main.netMode != NetmodeID.MultiplayerClient && spawn <= 0) { spawn = 14; - int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), mod.NPCType("StasisProbeNaked"), 0, 0f, 0f, 0f, 0f, 255); + int num660 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index 30f6ee9e91..8c359cedf1 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { [AutoloadBossHead] public class StormWeaverHead : ModNPC @@ -133,11 +133,11 @@ namespace CalamityMod.NPCs.StormWeaver int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("StormWeaverBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("StormWeaverTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -570,7 +570,7 @@ namespace CalamityMod.NPCs.StormWeaver } if (Main.netMode != NetmodeID.MultiplayerClient) { - NPC.SpawnOnPlayer(Main.LocalPlayer.whoAmI, mod.NPCType("StormWeaverHeadNaked")); + NPC.SpawnOnPlayer(Main.LocalPlayer.whoAmI, ModContent.NPCType()); } return true; } diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked.cs b/NPCs/StormWeaver/StormWeaverHeadNaked.cs index 45a1851012..321f7d5ee9 100644 --- a/NPCs/StormWeaver/StormWeaverHeadNaked.cs +++ b/NPCs/StormWeaver/StormWeaverHeadNaked.cs @@ -5,9 +5,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { [AutoloadBossHead] public class StormWeaverHeadNaked : ModNPC @@ -150,11 +150,11 @@ namespace CalamityMod.NPCs.StormWeaver int lol; if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("StormWeaverBodyNaked"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("StormWeaverTailNaked"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -590,7 +590,7 @@ namespace CalamityMod.NPCs.StormWeaver { for (int num569 = 0; num569 < 200; num569++) { - if (Main.npc[num569].active && (Main.npc[num569].type == mod.NPCType("StormWeaverBodyNaked") || Main.npc[num569].type == mod.NPCType("StormWeaverTailNaked"))) + if (Main.npc[num569].active && (Main.npc[num569].type == ModContent.NPCType() || Main.npc[num569].type == ModContent.NPCType())) { Main.npc[num569].active = false; } @@ -606,9 +606,9 @@ namespace CalamityMod.NPCs.StormWeaver public override bool SpecialNPCLoot() { int closestSegmentID = DropHelper.FindClosestWormSegment(npc, - mod.NPCType("StormWeaverHeadNaked"), - mod.NPCType("StormWeaverBodyNaked"), - mod.NPCType("StormWeaverTailNaked")); + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType()); npc.position = Main.npc[closestSegmentID].position; return false; } @@ -619,18 +619,18 @@ namespace CalamityMod.NPCs.StormWeaver if (CalamityWorld.DoGSecondStageCountdown <= 0) { // Materials - DropHelper.DropItem(npc, mod.ItemType("ArmoredShell"), true, 5, 8); + DropHelper.DropItem(npc, ModContent.ItemType(), true, 5, 8); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("TheStorm"), 3); - DropHelper.DropItemChance(npc, mod.ItemType("StormDragoon"), 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("WeaverTrophy"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); // Other bool lastSentinelKilled = CalamityWorld.downedSentinel1 && !CalamityWorld.downedSentinel2 && CalamityWorld.downedSentinel3; - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeSentinels"), true, lastSentinelKilled); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, lastSentinelKilled); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedSentinel2, 5, 2, 1); } diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 4e3908f19c..77d9351422 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { public class StormWeaverTail : ModNPC { diff --git a/NPCs/StormWeaver/StormWeaverTailNaked.cs b/NPCs/StormWeaver/StormWeaverTailNaked.cs index f630f45816..9c57e886cc 100644 --- a/NPCs/StormWeaver/StormWeaverTailNaked.cs +++ b/NPCs/StormWeaver/StormWeaverTailNaked.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.StormWeaver +namespace CalamityMod.NPCs { public class StormWeaverTailNaked : ModNPC { diff --git a/NPCs/SunkenSeaNPCs/BlindedAngler.cs b/NPCs/SunkenSeaNPCs/BlindedAngler.cs index f84993e63d..c377358332 100644 --- a/NPCs/SunkenSeaNPCs/BlindedAngler.cs +++ b/NPCs/SunkenSeaNPCs/BlindedAngler.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class BlindedAngler : ModNPC { @@ -34,7 +34,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.1f; banner = npc.type; - bannerItem = mod.ItemType("BlindedAnglerBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -257,9 +257,9 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs { if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EutrophicScimitar")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PrismShard"), Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(5, 10)); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/SunkenSeaNPCs/Clam.cs b/NPCs/SunkenSeaNPCs/Clam.cs index ff9e936033..102f95fe8f 100644 --- a/NPCs/SunkenSeaNPCs/Clam.cs +++ b/NPCs/SunkenSeaNPCs/Clam.cs @@ -1,9 +1,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class Clam : ModNPC { @@ -35,7 +35,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitSound = SoundID.NPCHit4; npc.knockBackResist = 0.05f; banner = npc.type; - bannerItem = mod.ItemType("ClamBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -216,10 +216,10 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs } public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Navystone"), Main.rand.Next(8, 13)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(8, 13)); if (Main.rand.NextBool(2) && Main.hardMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MolluskHusk")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } } diff --git a/NPCs/SunkenSeaNPCs/EutrophicRay.cs b/NPCs/SunkenSeaNPCs/EutrophicRay.cs index c92f5b836e..50d1ce7922 100644 --- a/NPCs/SunkenSeaNPCs/EutrophicRay.cs +++ b/NPCs/SunkenSeaNPCs/EutrophicRay.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class EutrophicRay : ModNPC { @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.DeathSound = SoundID.NPCDeath55; npc.knockBackResist = 0f; banner = npc.type; - bannerItem = mod.ItemType("EutrophicRayBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -195,7 +195,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs { if (Main.rand.NextBool(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EutrophicShank")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/SunkenSeaNPCs/GhostBell.cs b/NPCs/SunkenSeaNPCs/GhostBell.cs index 8c9a03275b..93991f1fe4 100644 --- a/NPCs/SunkenSeaNPCs/GhostBell.cs +++ b/NPCs/SunkenSeaNPCs/GhostBell.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class GhostBell : ModNPC { @@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitSound = SoundID.NPCHit25; npc.DeathSound = SoundID.NPCDeath28; banner = npc.type; - bannerItem = mod.ItemType("GhostBellBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/SunkenSeaNPCs/GhostBellSmall.cs b/NPCs/SunkenSeaNPCs/GhostBellSmall.cs index 2426454d75..2e873013b2 100644 --- a/NPCs/SunkenSeaNPCs/GhostBellSmall.cs +++ b/NPCs/SunkenSeaNPCs/GhostBellSmall.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class GhostBellSmall : ModNPC { @@ -34,7 +34,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitSound = SoundID.NPCHit25; npc.DeathSound = SoundID.NPCDeath28; banner = npc.type; - bannerItem = mod.ItemType("GhostBellSmallBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/SunkenSeaNPCs/GiantClam.cs b/NPCs/SunkenSeaNPCs/GiantClam.cs index 6991f9b5bd..379a5a7bee 100644 --- a/NPCs/SunkenSeaNPCs/GiantClam.cs +++ b/NPCs/SunkenSeaNPCs/GiantClam.cs @@ -6,9 +6,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class GiantClam : ModNPC { @@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.knockBackResist = 0f; npc.rarity = 2; banner = npc.type; - bannerItem = mod.ItemType("GiantClamBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -91,7 +91,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs { if (!Main.player[npc.target].dead && Main.player[npc.target].active) { - player.AddBuff(mod.BuffType("Clamity"), 2); //CLAM INVASION + player.AddBuff(ModContent.BuffType(), 2); //CLAM INVASION } } @@ -137,9 +137,9 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs hide = false; attack = -1; npc.defense = Main.hardMode ? 35 : 10; - NPC.NewNPC((int)(npc.Center.X + 5), (int)npc.Center.Y, mod.NPCType("Clam"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Clam"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)(npc.Center.X - 5), (int)npc.Center.Y, mod.NPCType("Clam"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(npc.Center.X + 5), (int)npc.Center.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(npc.Center.X - 5), (int)npc.Center.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } } else if (attack == 1) @@ -258,7 +258,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; double offsetAngle; - int projectileShot = mod.ProjectileType("PearlBurst"); + int projectileShot = ModContent.ProjectileType(); int damage = Main.expertMode ? 28 : 35; float speed = 5f; Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); @@ -287,7 +287,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs float shotSpacing = 750f; for (int i = 0; i < 11; i++) { - Projectile.NewProjectile(player.Center.X + shotSpacing, player.Center.Y - 750f, 0f, 8f, mod.ProjectileType("PearlRain"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X + shotSpacing, player.Center.Y - 750f, 0f, 8f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); shotSpacing -= 150f; } } @@ -347,7 +347,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.player.Calamity().ZoneSunkenSea && spawnInfo.water && CalamityWorld.downedDesertScourge && !NPC.AnyNPCs(mod.NPCType("GiantClam"))) + if (spawnInfo.player.Calamity().ZoneSunkenSea && spawnInfo.water && CalamityWorld.downedDesertScourge && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.12f; } @@ -397,27 +397,27 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs public override void NPCLoot() { // Spawn Amidias if he isn't in the world - int amidiasNPC = NPC.FindFirstNPC(mod.NPCType("SEAHOE")); + int amidiasNPC = NPC.FindFirstNPC(ModContent.NPCType()); if (amidiasNPC == -1 && Main.netMode != NetmodeID.MultiplayerClient) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("SEAHOE"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } // Materials - DropHelper.DropItem(npc, mod.ItemType("Navystone"), 25, 35); - DropHelper.DropItemCondition(npc, mod.ItemType("MolluskHusk"), Main.hardMode, 6, 11); + DropHelper.DropItem(npc, ModContent.ItemType(), 25, 35); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, 6, 11); // Weapons DropHelper.DropItemFromSetCondition(npc, Main.hardMode, - mod.ItemType("ClamCrusher"), - mod.ItemType("ClamorRifle"), - mod.ItemType("Poseidon"), - mod.ItemType("ShellfishStaff") + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType() ); // Equipment - DropHelper.DropItemChance(npc, mod.ItemType("GiantPearl"), 3); - DropHelper.DropItemCondition(npc, mod.ItemType("AmidiasPendant"), CalamityWorld.revenge, 0.5f); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 3); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.revenge, 0.5f); // Mark Giant Clam as dead CalamityWorld.downedCLAM = true; diff --git a/NPCs/SunkenSeaNPCs/PrismTurtle.cs b/NPCs/SunkenSeaNPCs/PrismTurtle.cs index 61b101e58f..f9d96c9048 100644 --- a/NPCs/SunkenSeaNPCs/PrismTurtle.cs +++ b/NPCs/SunkenSeaNPCs/PrismTurtle.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class PrismTurtle : ModNPC { @@ -35,7 +35,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.DeathSound = SoundID.NPCDeath27; npc.knockBackResist = 0.15f; banner = npc.type; - bannerItem = mod.ItemType("PrismTurtleBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -265,7 +265,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs { if (CalamityWorld.downedDesertScourge) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PrismShard"), Main.rand.Next(1, 4)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType(), Main.rand.Next(1, 4)); } } diff --git a/NPCs/SunkenSeaNPCs/SeaFloaty.cs b/NPCs/SunkenSeaNPCs/SeaFloaty.cs index 390a499645..089993807c 100644 --- a/NPCs/SunkenSeaNPCs/SeaFloaty.cs +++ b/NPCs/SunkenSeaNPCs/SeaFloaty.cs @@ -1,9 +1,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class SeaFloaty : ModNPC { @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("SeaFloatyBanner"); + bannerItem = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) diff --git a/NPCs/SunkenSeaNPCs/SeaMinnow.cs b/NPCs/SunkenSeaNPCs/SeaMinnow.cs index 4445b80959..b07eb3645d 100644 --- a/NPCs/SunkenSeaNPCs/SeaMinnow.cs +++ b/NPCs/SunkenSeaNPCs/SeaMinnow.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class SeaMinnow : ModNPC { @@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; - bannerItem = mod.ItemType("SeaMinnowBanner"); + bannerItem = ModContent.ItemType(); npc.chaseable = false; } diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent1.cs b/NPCs/SunkenSeaNPCs/SeaSerpent1.cs index e70e539d1e..5c5c8489db 100644 --- a/NPCs/SunkenSeaNPCs/SeaSerpent1.cs +++ b/NPCs/SunkenSeaNPCs/SeaSerpent1.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class SeaSerpent1 : ModNPC { @@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; banner = npc.type; - bannerItem = mod.ItemType("SeaSerpentBanner"); + bannerItem = ModContent.ItemType(); } public override void AI() @@ -65,19 +65,19 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs int lol = 0; if (segment == 0 || segment == 1 || segment == 4 || segment == 5) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent2"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else if (segment == 2 || segment == 3 || segment == 6) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent3"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else if (segment == 7) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent4"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else if (segment == 8) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent5"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; @@ -106,7 +106,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs { npc.alpha = 0; } - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(mod.NPCType("SeaSerpent5"))) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } @@ -315,7 +315,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (Main.hardMode && spawnInfo.player.Calamity().ZoneSunkenSea && spawnInfo.water && - !NPC.AnyNPCs(mod.NPCType("SeaSerpent1")) && !spawnInfo.player.Calamity().clamity && !spawnInfo.playerSafe) + !NPC.AnyNPCs(ModContent.NPCType()) && !spawnInfo.player.Calamity().clamity && !spawnInfo.playerSafe) { return SpawnCondition.CaveJellyfish.Chance * 0.3f; } @@ -326,7 +326,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs { if (Main.rand.NextBool(4)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Serpentine")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } } diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent2.cs b/NPCs/SunkenSeaNPCs/SeaSerpent2.cs index da6ee1ca91..4d69df397f 100644 --- a/NPCs/SunkenSeaNPCs/SeaSerpent2.cs +++ b/NPCs/SunkenSeaNPCs/SeaSerpent2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class SeaSerpent2 : ModNPC { @@ -38,8 +38,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("SeaSerpent1"); - bannerItem = mod.ItemType("SeaSerpentBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent3.cs b/NPCs/SunkenSeaNPCs/SeaSerpent3.cs index 2a4349cbc3..08dbe4f19f 100644 --- a/NPCs/SunkenSeaNPCs/SeaSerpent3.cs +++ b/NPCs/SunkenSeaNPCs/SeaSerpent3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class SeaSerpent3 : ModNPC { @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("SeaSerpent1"); - bannerItem = mod.ItemType("SeaSerpentBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent4.cs b/NPCs/SunkenSeaNPCs/SeaSerpent4.cs index 875419364b..b2553c29a0 100644 --- a/NPCs/SunkenSeaNPCs/SeaSerpent4.cs +++ b/NPCs/SunkenSeaNPCs/SeaSerpent4.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class SeaSerpent4 : ModNPC { @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("SeaSerpent1"); - bannerItem = mod.ItemType("SeaSerpentBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent5.cs b/NPCs/SunkenSeaNPCs/SeaSerpent5.cs index 124bfa09b1..218623689f 100644 --- a/NPCs/SunkenSeaNPCs/SeaSerpent5.cs +++ b/NPCs/SunkenSeaNPCs/SeaSerpent5.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SunkenSeaNPCs +namespace CalamityMod.NPCs { public class SeaSerpent5 : ModNPC { @@ -35,8 +35,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - banner = mod.NPCType("SeaSerpent1"); - bannerItem = mod.ItemType("SeaSerpentBanner"); + banner = ModContent.NPCType(); + bannerItem = ModContent.ItemType(); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.HitEffect(0, 10.0); npc.checkDead(); } - if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.active = false; } diff --git a/NPCs/SupremeCalamitas/SCalScreenShaderData.cs b/NPCs/SupremeCalamitas/SCalScreenShaderData.cs index da72a3af8e..c0edddee74 100644 --- a/NPCs/SupremeCalamitas/SCalScreenShaderData.cs +++ b/NPCs/SupremeCalamitas/SCalScreenShaderData.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SCalScreenShaderData : ScreenShaderData { diff --git a/NPCs/SupremeCalamitas/SCalSky.cs b/NPCs/SupremeCalamitas/SCalSky.cs index 7f33d9fb4e..2ab1203570 100644 --- a/NPCs/SupremeCalamitas/SCalSky.cs +++ b/NPCs/SupremeCalamitas/SCalSky.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SCalSky : CustomSky { diff --git a/NPCs/SupremeCalamitas/SCalWormBody.cs b/NPCs/SupremeCalamitas/SCalWormBody.cs index 468b52a303..0ccdbf4a54 100644 --- a/NPCs/SupremeCalamitas/SCalWormBody.cs +++ b/NPCs/SupremeCalamitas/SCalWormBody.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SCalWormBody : ModNPC { diff --git a/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs b/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs index 378afbf579..e603ffe8f8 100644 --- a/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs +++ b/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs @@ -2,9 +2,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SCalWormBodyWeak : ModNPC { @@ -81,10 +81,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas { npc.localAI[0] = 0f; int damage = Main.expertMode ? 150 : 200; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 1f, 1f, mod.ProjectileType("BrimstoneBarrage"), damage, 0f, npc.target, 0f, 0f); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, -1f, 1f, mod.ProjectileType("BrimstoneBarrage"), damage, 0f, npc.target, 0f, 0f); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 1f, -1f, mod.ProjectileType("BrimstoneBarrage"), damage, 0f, npc.target, 0f, 0f); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, -1f, -1f, mod.ProjectileType("BrimstoneBarrage"), damage, 0f, npc.target, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 1f, 1f, ModContent.ProjectileType(), damage, 0f, npc.target, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, -1f, 1f, ModContent.ProjectileType(), damage, 0f, npc.target, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 1f, -1f, ModContent.ProjectileType(), damage, 0f, npc.target, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, -1f, -1f, ModContent.ProjectileType(), damage, 0f, npc.target, 0f, 0f); npc.netUpdate = true; } } diff --git a/NPCs/SupremeCalamitas/SCalWormHead.cs b/NPCs/SupremeCalamitas/SCalWormHead.cs index 8511a445df..16ea482a0a 100644 --- a/NPCs/SupremeCalamitas/SCalWormHead.cs +++ b/NPCs/SupremeCalamitas/SCalWormHead.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SCalWormHead : ModNPC { @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void AI() { CalamityGlobalNPC.SCalWorm = npc.whoAmI; - if (!NPC.AnyNPCs(mod.NPCType("SCalWormHeart")) || CalamityGlobalNPC.SCal < 0 || !Main.npc[CalamityGlobalNPC.SCal].active) + if (!NPC.AnyNPCs(ModContent.NPCType()) || CalamityGlobalNPC.SCal < 0 || !Main.npc[CalamityGlobalNPC.SCal].active) { npc.life = 0; npc.HitEffect(0, 10.0); @@ -103,13 +103,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas int lol; if (num36 >= 0 && num36 < minLength && num36 % 2 == 0) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SCalWormBodyWeak"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); Main.npc[lol].localAI[0] += passedVar; passedVar += 36f; } else if (num36 >= 0 && num36 < minLength) { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SCalWormBody"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); if (npc.localAI[0] % 2 == 0) { Main.npc[lol].localAI[3] = 1f; @@ -122,7 +122,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } else { - lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SCalWormTail"), npc.whoAmI); + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; diff --git a/NPCs/SupremeCalamitas/SCalWormHeart.cs b/NPCs/SupremeCalamitas/SCalWormHeart.cs index 8107a57148..8dd0ff08d7 100644 --- a/NPCs/SupremeCalamitas/SCalWormHeart.cs +++ b/NPCs/SupremeCalamitas/SCalWormHeart.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SCalWormHeart : ModNPC { @@ -59,7 +59,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("Celestus2")) + if (projectile.type == ModContent.ProjectileType()) { damage = (int)((double)damage * 0.66); } diff --git a/NPCs/SupremeCalamitas/SCalWormTail.cs b/NPCs/SupremeCalamitas/SCalWormTail.cs index e70398b331..44eaa7e2cf 100644 --- a/NPCs/SupremeCalamitas/SCalWormTail.cs +++ b/NPCs/SupremeCalamitas/SCalWormTail.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SCalWormTail : ModNPC { diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index d314c8d139..80e9bf4ded 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { public class SoulSeekerSupreme : ModNPC { @@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != NetmodeID.MultiplayerClient) { int damage = expertMode ? 150 : 200; //600 500 - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, mod.ProjectileType("BrimstoneBarrage"), damage, 1f, npc.target); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, direction.X, direction.Y, ModContent.ProjectileType(), damage, 1f, npc.target); } timer = 0; } @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas return false; } Player player = Main.player[npc.target]; - NPC parent = Main.npc[NPC.FindFirstNPC(mod.NPCType("SupremeCalamitas"))]; + NPC parent = Main.npc[NPC.FindFirstNPC(ModContent.NPCType())]; double deg = (double)npc.ai[1]; double rad = deg * (Math.PI / 180); double dist = 300; diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 71547ec43a..2e28e506c0 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -7,9 +7,9 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SupremeCalamitas : ModNPC @@ -331,7 +331,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if ((num55 == num52 - num54 || num55 == num52 + num54 || num56 == num53 - num54 || num56 == num53 + num54) && !Main.tile[num55, num56].active()) { - Main.tile[num55, num56].type = (ushort)mod.TileType("ArenaTile"); + Main.tile[num55, num56].type = (ushort)ModContent.TileType(); Main.tile[num55, num56].active(true); } if (Main.netMode == NetmodeID.Server) @@ -432,18 +432,18 @@ namespace CalamityMod.NPCs.SupremeCalamitas int damage = expertMode ? 200 : 250; //800 500 if (bulletHellCounter2 < 300) //blasts from above { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else if (bulletHellCounter2 < 600) //blasts from left and right { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else //blasts from above, left, and right { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } return; } @@ -471,16 +471,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas } for (int x = 0; x < 5; x++) { - NPC.NewNPC(spawnX + 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(spawnX + 50, spawnY, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); spawnX += spawnXAdd; - NPC.NewNPC(spawnX2 - 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(spawnX2 - 50, spawnY, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); spawnX2 -= spawnXAdd; spawnY += spawnYAdd; } spawnX = spawnXReset; spawnX2 = spawnXReset2; spawnY = spawnYReset; - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SCalWormHead")); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), ModContent.NPCType()); } startBattle = true; } @@ -506,21 +506,21 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (bulletHellCounter2 % 180 == 0) //blasts from top { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } else if (bulletHellCounter2 < 1500 && bulletHellCounter2 > 1200) { if (bulletHellCounter2 % 180 == 0) //blasts from right { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -5f * uDieLul, 0f, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } else if (bulletHellCounter2 > 1500) { if (bulletHellCounter2 % 180 == 0) //blasts from top { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } bulletHellCounter += 1; @@ -529,16 +529,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas bulletHellCounter = 0; if (bulletHellCounter2 < 1200) //blasts from below { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else if (bulletHellCounter2 < 1500) //blasts from left { - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else //blasts from left and right { - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } return; } @@ -580,11 +580,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas int damage = expertMode ? 150 : 200; if (bulletHellCounter2 % 180 == 0) //blasts from top { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } if (bulletHellCounter2 % 240 == 0) //fireblasts from above { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 1f, 0f); } bulletHellCounter += 1; if (bulletHellCounter > ((npc.Calamity().enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive)) ? 9 : 11)) @@ -592,16 +592,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas bulletHellCounter = 0; if (bulletHellCounter2 < 2100) //blasts from above { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else if (bulletHellCounter2 < 2400) //blasts from right { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else //blasts from left and right { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } return; } @@ -648,15 +648,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas int damage = expertMode ? 150 : 200; if (bulletHellCounter2 % 180 == 0) //blasts from top { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } if (bulletHellCounter2 % 240 == 0) //fireblasts from above { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 1f, 0f); } if (bulletHellCounter2 % 450 == 0) //giant homing fireballs { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, mod.ProjectileType("BrimstoneMonster"), damage, 0f, Main.myPlayer, 0f, passedVar); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, passedVar); passedVar += 1f; } bulletHellCounter += 1; @@ -665,16 +665,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas bulletHellCounter = 0; if (bulletHellCounter2 < 3000) //blasts from below { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else if (bulletHellCounter2 < 3300) //blasts from left { - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else //blasts from left and right { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } return; } @@ -721,20 +721,20 @@ namespace CalamityMod.NPCs.SupremeCalamitas int damage = expertMode ? 150 : 200; if (bulletHellCounter2 % 240 == 0) //blasts from top { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } if (bulletHellCounter2 % 360 == 0) //fireblasts from above { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 1f, 0f); } if (bulletHellCounter2 % 450 == 0) //giant homing fireballs { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, mod.ProjectileType("BrimstoneMonster"), damage, 0f, Main.myPlayer, 0f, passedVar); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, passedVar); passedVar += 1f; } if (bulletHellCounter2 % 30 == 0) //projectiles that move in wave pattern { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-500, 500), -10f * uDieLul, 0f, mod.ProjectileType("BrimstoneWave"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-500, 500), -10f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } bulletHellCounter += 1; if (bulletHellCounter > ((npc.Calamity().enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive)) ? 16 : 18)) @@ -742,18 +742,18 @@ namespace CalamityMod.NPCs.SupremeCalamitas bulletHellCounter = 0; if (bulletHellCounter2 < 3900) //blasts from above { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else if (bulletHellCounter2 < 4200) //blasts from left and right { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } else //blasts from above, left, and right { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } return; } @@ -932,16 +932,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas } for (int x = 0; x < 5; x++) { - NPC.NewNPC(spawnX + 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(spawnX + 50, spawnY, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); spawnX += spawnXAdd; - NPC.NewNPC(spawnX2 - 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(spawnX2 - 50, spawnY, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); spawnX2 -= spawnXAdd; spawnY += spawnYAdd; } spawnX = spawnXReset; spawnX2 = spawnXReset2; spawnY = spawnYReset; - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SCalWormHead")); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), ModContent.NPCType()); } gettingTired = true; return; @@ -957,14 +957,14 @@ namespace CalamityMod.NPCs.SupremeCalamitas Projectile projectile = Main.projectile[x]; if (projectile.active) { - if (projectile.type == mod.ProjectileType("BrimstoneHellblast2") || - projectile.type == mod.ProjectileType("BrimstoneBarrage") || - projectile.type == mod.ProjectileType("BrimstoneWave")) + if (projectile.type == ModContent.ProjectileType() || + projectile.type == ModContent.ProjectileType() || + projectile.type == ModContent.ProjectileType()) { projectile.Kill(); } - else if (projectile.type == mod.ProjectileType("BrimstoneGigaBlast") || - projectile.type == mod.ProjectileType("BrimstoneFireblast")) + else if (projectile.type == ModContent.ProjectileType() || + projectile.type == ModContent.ProjectileType()) { projectile.active = false; } @@ -1008,7 +1008,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); for (int I = 0; I < 20; I++) { - int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 18) * 300)), (int)(npc.Center.Y + (Math.Cos(I * 18) * 300)), mod.NPCType("SoulSeekerSupreme"), npc.whoAmI, 0, 0, 0, -1); + int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 18) * 300)), (int)(npc.Center.Y + (Math.Cos(I * 18) * 300)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); NPC Eye = Main.npc[FireEye]; Eye.ai[0] = I * 18; Eye.ai[3] = I * 18; @@ -1029,8 +1029,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas if ((float)(npc.life + num660) < bossLife) { bossLife = (float)npc.life; - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SupremeCataclysm")); - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SupremeCatastrophe")); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), ModContent.NPCType()); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), ModContent.NPCType()); string key = "Mods.CalamityMod.SupremeBossText6"; Color messageColor = Color.Orange; if (Main.netMode == NetmodeID.SinglePlayer) @@ -1208,7 +1208,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (randomShot == 0 && canFireSplitingFireball) { canFireSplitingFireball = false; - randomShot = mod.ProjectileType("BrimstoneFireblast"); + randomShot = ModContent.ProjectileType(); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); num827 = num828 / num827; num825 *= num827; @@ -1220,7 +1220,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas else if (randomShot == 1 && canFireSplitingFireball) { canFireSplitingFireball = false; - randomShot = mod.ProjectileType("BrimstoneGigaBlast"); + randomShot = ModContent.ProjectileType(); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); num827 = num828 / num827; num825 *= num827; @@ -1232,7 +1232,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas else { canFireSplitingFireball = true; - randomShot = mod.ProjectileType("BrimstoneBarrage"); + randomShot = ModContent.ProjectileType(); for (int num186 = 1; num186 <= 8; num186++) { num180 = player.position.X + (float)player.width * 0.5f - value9.X; @@ -1390,7 +1390,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { float num418 = 10f * uDieLul; int num419 = expertMode ? 150 : 200; //600 500 - int num420 = mod.ProjectileType("BrimstoneHellblast"); + int num420 = ModContent.ProjectileType(); num417 = (float)Math.Sqrt((double)(num415 * num415 + num416 * num416)); num417 = num418 / num417; num415 *= num417; @@ -1462,7 +1462,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.localAI[1] = 0f; float num837 = 5f * uDieLul; int num838 = expertMode ? 150 : 200; //600 500 - int num839 = mod.ProjectileType("BrimstoneFireblast"); + int num839 = ModContent.ProjectileType(); num836 = (float)Math.Sqrt((double)(num834 * num834 + num835 * num835)); num836 = num837 / num836; num834 *= num836; @@ -1653,7 +1653,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } else { - if (NPC.AnyNPCs(mod.NPCType("SoulSeekerSupreme"))) + if (NPC.AnyNPCs(ModContent.NPCType())) { npc.dontTakeDamage = true; npc.chaseable = false; @@ -1740,7 +1740,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (randomShot == 0 && canFireSplitingFireball) { canFireSplitingFireball = false; - randomShot = mod.ProjectileType("BrimstoneFireblast"); + randomShot = ModContent.ProjectileType(); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); num827 = num828 / num827; num825 *= num827; @@ -1752,7 +1752,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas else if (randomShot == 1 && canFireSplitingFireball) { canFireSplitingFireball = false; - randomShot = mod.ProjectileType("BrimstoneGigaBlast"); + randomShot = ModContent.ProjectileType(); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); num827 = num828 / num827; num825 *= num827; @@ -1764,7 +1764,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas else { canFireSplitingFireball = true; - randomShot = mod.ProjectileType("BrimstoneBarrage"); + randomShot = ModContent.ProjectileType(); for (int num186 = 1; num186 <= 8; num186++) { num180 = player.position.X + (float)player.width * 0.5f - value9.X; @@ -1914,7 +1914,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { float num418 = 10f * uDieLul; int num419 = expertMode ? 150 : 200; //600 500 - int num420 = mod.ProjectileType("BrimstoneHellblast"); + int num420 = ModContent.ProjectileType(); num417 = (float)Math.Sqrt((double)(num415 * num415 + num416 * num416)); num417 = num418 / num417; num415 *= num417; @@ -1986,7 +1986,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.localAI[1] = 0f; float num837 = 5f * uDieLul; int num838 = expertMode ? 150 : 200; //600 500 - int num839 = mod.ProjectileType("BrimstoneFireblast"); + int num839 = ModContent.ProjectileType(); num836 = (float)Math.Sqrt((double)(num834 * num834 + num835 * num835)); num836 = num837 / num836; num834 *= num836; @@ -2108,7 +2108,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas #region Loot public override void BossLoot(ref string name, ref int potionType) { - potionType = mod.ItemType("OmegaHealingPotion"); + potionType = ModContent.ItemType(); } // If SCal is killed too quickly, cancel all drops and chastise the player @@ -2143,36 +2143,36 @@ namespace CalamityMod.NPCs.SupremeCalamitas // Materials int essenceMin = Main.expertMode ? 30 : 20; int essenceMax = Main.expertMode ? 40 : 30; - DropHelper.DropItem(npc, mod.ItemType("CalamitousEssence"), true, essenceMin, essenceMax); + DropHelper.DropItem(npc, ModContent.ItemType(), true, essenceMin, essenceMax); // Weapons // All non-hybrid weapons are listed twice so that the drop rates are actually equal between each unique weapon DropHelper.DropItemFromSetCondition(npc, Main.expertMode, - mod.ItemType("Animus"), mod.ItemType("Animus"), - mod.ItemType("Azathoth"), mod.ItemType("Azathoth"), - mod.ItemType("Contagion"), mod.ItemType("Contagion"), - mod.ItemType("CrystylCrusher"), mod.ItemType("CrystylCrusher"), - mod.ItemType("DraconicDestruction"), mod.ItemType("DraconicDestruction"), - mod.ItemType("Earth"), mod.ItemType("Earth"), - mod.ItemType("Fabstaff"), mod.ItemType("Fabstaff"), - mod.ItemType("RoyalKnivesMelee"), mod.ItemType("RoyalKnives"), // Illustrious Knives - mod.ItemType("NanoblackReaperMelee"), mod.ItemType("NanoblackReaperRogue"), - mod.ItemType("RedSun"), mod.ItemType("RedSun"), - mod.ItemType("ScarletDevil"), mod.ItemType("ScarletDevil"), - mod.ItemType("SomaPrime"), mod.ItemType("SomaPrime"), - mod.ItemType("BlushieStaff"), mod.ItemType("BlushieStaff"), // Staff of Blushie - mod.ItemType("Svantechnical"), mod.ItemType("Svantechnical"), - mod.ItemType("Judgement"), mod.ItemType("Judgement"), // The Dance of Light - mod.ItemType("TriactisTruePaladinianMageHammerofMightMelee"), mod.ItemType("TriactisTruePaladinianMageHammerofMight"), - mod.ItemType("Megafleet"), mod.ItemType("Megafleet") // Voidragon + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), // Illustrious Knives + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), // Staff of Blushie + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), // The Dance of Light + ModContent.ItemType(), ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType() // Voidragon ); - DropHelper.DropItemCondition(npc, mod.ItemType("Vehemenc"), CalamityWorld.revenge); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.revenge); // Vanity - DropHelper.DropItemCondition(npc, mod.ItemType("Levi"), CalamityWorld.death); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.death); // Other - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeCalamitas"), true, !CalamityWorld.downedSCal); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedSCal); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedSCal, 6, 3, 2); // Mark Supreme Calamitas as dead @@ -2202,7 +2202,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas break; case 3: // Three deaths exactly rewards Lul key = "Mods.CalamityMod.SupremeBossText19"; - DropHelper.DropItem(npc, mod.ItemType("CheatTestThing")); + DropHelper.DropItem(npc, ModContent.ItemType()); break; default: // Four or more deaths: Lul is permanently missed key = "Mods.CalamityMod.SupremeBossText10"; @@ -2223,7 +2223,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("AngryChicken")) + if (projectile.type == ModContent.ProjectileType()) { damage /= 2; } @@ -2353,10 +2353,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("VulnerabilityHex"), 600, true); + player.AddBuff(ModContent.BuffType(), 600, true); if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("Horror"), 600, true); + player.AddBuff(ModContent.BuffType(), 600, true); } } } diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index f021c620b5..63d064c891 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SupremeCataclysm : ModNPC @@ -155,14 +155,14 @@ namespace CalamityMod.NPCs.SupremeCalamitas Vector2 vector85 = new Vector2(npc.Center.X, npc.Center.Y); float num689 = -8f; int num690 = expertMode ? 150 : 200; //600 500 - int num691 = mod.ProjectileType("BrimstoneWave"); + int num691 = ModContent.ProjectileType(); if (Main.netMode != NetmodeID.MultiplayerClient) { int num695 = Projectile.NewProjectile(vector85.X, vector85.Y, num689, 0f, num691, num690, 0f, Main.myPlayer, 0f, 0f); } } npc.ai[2] += 1f; - if (!NPC.AnyNPCs(mod.NPCType("SupremeCatastrophe"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.ai[2] += 2f; } @@ -182,8 +182,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas for (i = 0; i < 8; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * num689), (float)(Math.Cos(offsetAngle) * num689), mod.ProjectileType("BrimstoneBarrage"), num690, 0f, Main.myPlayer, 0f, 1f); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(-Math.Sin(offsetAngle) * num689), (float)(-Math.Cos(offsetAngle) * num689), mod.ProjectileType("BrimstoneBarrage"), num690, 0f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * num689), (float)(Math.Cos(offsetAngle) * num689), ModContent.ProjectileType(), num690, 0f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(-Math.Sin(offsetAngle) * num689), (float)(-Math.Cos(offsetAngle) * num689), ModContent.ProjectileType(), num690, 0f, Main.myPlayer, 0f, 1f); } } for (int dust = 0; dust <= 5; dust++) @@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("AngryChicken")) + if (projectile.type == ModContent.ProjectileType()) { damage /= 2; } diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index fd7fd56c07..5c7c03118d 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.SupremeCalamitas +namespace CalamityMod.NPCs { [AutoloadBossHead] public class SupremeCatastrophe : ModNPC @@ -155,14 +155,14 @@ namespace CalamityMod.NPCs.SupremeCalamitas Vector2 vector85 = new Vector2(npc.Center.X, npc.Center.Y); float num689 = 4f; int num690 = expertMode ? 150 : 200; //600 500 - int num691 = mod.ProjectileType("BrimstoneHellblast2"); + int num691 = ModContent.ProjectileType(); if (Main.netMode != NetmodeID.MultiplayerClient) { int num695 = Projectile.NewProjectile(vector85.X, vector85.Y, num689, 0f, num691, num690, 0f, Main.myPlayer, 0f, 0f); } } npc.ai[2] += 1f; - if (!NPC.AnyNPCs(mod.NPCType("SupremeCataclysm"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { npc.ai[2] += 2f; } @@ -182,8 +182,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas for (i = 0; i < 8; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * num689), (float)(Math.Cos(offsetAngle) * num689), mod.ProjectileType("BrimstoneBarrage"), num690, 0f, Main.myPlayer, 0f, 1f); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(-Math.Sin(offsetAngle) * num689), (float)(-Math.Cos(offsetAngle) * num689), mod.ProjectileType("BrimstoneBarrage"), num690, 0f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * num689), (float)(Math.Cos(offsetAngle) * num689), ModContent.ProjectileType(), num690, 0f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(-Math.Sin(offsetAngle) * num689), (float)(-Math.Cos(offsetAngle) * num689), ModContent.ProjectileType(), num690, 0f, Main.myPlayer, 0f, 1f); } } for (int dust = 0; dust <= 5; dust++) @@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (projectile.type == mod.ProjectileType("AngryChicken")) + if (projectile.type == ModContent.ProjectileType()) { damage /= 2; } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBody.cs b/NPCs/TheDevourerofGods/DevourerofGodsBody.cs index ebdc7a84ee..afa70b43aa 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBody.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DevourerofGodsBody : ModNPC { @@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.netMode != NetmodeID.MultiplayerClient) { npc.localAI[0] += expertMode ? 2f : 1f; - int projectileType = mod.ProjectileType("DoGNebulaShot"); + int projectileType = ModContent.ProjectileType(); int damage = expertMode ? 58 : 70; float num941 = 5f; if (npc.localAI[0] >= (float)Main.rand.Next(1400, 16000)) @@ -269,8 +269,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 240, true); - player.AddBuff(mod.BuffType("WhisperingDeath"), 300, true); + player.AddBuff(ModContent.BuffType(), 240, true); + player.AddBuff(ModContent.BuffType(), 300, true); player.AddBuff(BuffID.Frostburn, 240, true); player.AddBuff(BuffID.Darkness, 240, true); } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs b/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs index 91eb2d4042..b30130c127 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs @@ -2,9 +2,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DevourerofGodsBody2 : ModNPC { @@ -151,7 +151,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 120, true); + player.AddBuff(ModContent.BuffType(), 120, true); player.AddBuff(BuffID.Frostburn, 120, true); player.AddBuff(BuffID.Darkness, 120, true); } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs b/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs index 794af8e961..3398331fa1 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { [AutoloadBossHead] public class DevourerofGodsBodyS : ModNPC @@ -249,8 +249,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 240, true); - player.AddBuff(mod.BuffType("WhisperingDeath"), 300, true); + player.AddBuff(ModContent.BuffType(), 240, true); + player.AddBuff(ModContent.BuffType(), 300, true); player.AddBuff(BuffID.Frostburn, 240, true); player.AddBuff(BuffID.Darkness, 240, true); } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHead.cs b/NPCs/TheDevourerofGods/DevourerofGodsHead.cs index 30504a2f64..3ba140ceb7 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHead.cs @@ -6,9 +6,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { [AutoloadBossHead] public class DevourerofGodsHead : ModNPC @@ -129,7 +129,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (spawnDoGCountdown == 0 && Main.netMode != NetmodeID.MultiplayerClient) { for (int i = 0; i < 2; i++) - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("DevourerofGodsHead2")); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), ModContent.NPCType()); } } } @@ -146,7 +146,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods { spawnDoGCountdown--; if (spawnDoGCountdown == 0 && Main.netMode != NetmodeID.MultiplayerClient) - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("DevourerofGodsHead2")); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), ModContent.NPCType()); } } @@ -179,9 +179,9 @@ namespace CalamityMod.NPCs.TheDevourerofGods { int segment; if (segmentSpawn >= 0 && segmentSpawn < minLength) - segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DevourerofGodsBody"), npc.whoAmI); + segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); else - segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DevourerofGodsTail"), npc.whoAmI); + segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); Main.npc[segment].realLife = npc.whoAmI; Main.npc[segment].ai[2] = (float)npc.whoAmI; @@ -207,7 +207,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods { for (int a = 0; a < 200; a++) { - if (Main.npc[a].type == mod.NPCType("DevourerofGodsHead") || Main.npc[a].type == mod.NPCType("DevourerofGodsBody") || Main.npc[a].type == mod.NPCType("DevourerofGodsTail")) + if (Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType()) Main.npc[a].active = false; } } @@ -242,7 +242,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.netMode != NetmodeID.Server) { if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active && Vector2.Distance(Main.player[Main.myPlayer].Center, vector) < 5600f) - Main.player[Main.myPlayer].AddBuff(mod.BuffType("Warped"), 2); + Main.player[Main.myPlayer].AddBuff(ModContent.BuffType(), 2); } // Flying movement @@ -452,7 +452,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.netMode != NetmodeID.Server) { if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active && Vector2.Distance(Main.player[Main.myPlayer].Center, vector) < 5600f) - Main.player[Main.myPlayer].AddBuff(mod.BuffType("ExtremeGrav"), 2); + Main.player[Main.myPlayer].AddBuff(ModContent.BuffType(), 2); } phaseSwitch += 1; @@ -766,8 +766,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 300, true); - player.AddBuff(mod.BuffType("WhisperingDeath"), 420, true); + player.AddBuff(ModContent.BuffType(), 300, true); + player.AddBuff(ModContent.BuffType(), 420, true); if (CalamityWorld.death) { player.KillMe(PlayerDeathReason.ByOther(10), 1000.0, 0, false); diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs b/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs index 29ad374e0b..5e289865c3 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DevourerofGodsHead2 : ModNPC { @@ -108,11 +108,11 @@ namespace CalamityMod.NPCs.TheDevourerofGods int segment; if (segmentSpawn >= 0 && segmentSpawn < minLength) { - segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DevourerofGodsBody2"), npc.whoAmI); + segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } else { - segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DevourerofGodsTail2"), npc.whoAmI); + segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); } Main.npc[segment].realLife = npc.whoAmI; Main.npc[segment].ai[2] = (float)npc.whoAmI; @@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods { for (int num569 = 0; num569 < 200; num569++) { - if (Main.npc[num569].active && (Main.npc[num569].type == mod.NPCType("DevourerofGodsHead2") || Main.npc[num569].type == mod.NPCType("DevourerofGodsBody2") || Main.npc[num569].type == mod.NPCType("DevourerofGodsTail2"))) + if (Main.npc[num569].active && (Main.npc[num569].type == ModContent.NPCType() || Main.npc[num569].type == ModContent.NPCType() || Main.npc[num569].type == ModContent.NPCType())) { Main.npc[num569].active = false; } @@ -481,7 +481,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 180, true); + player.AddBuff(ModContent.BuffType(), 180, true); player.AddBuff(BuffID.Frostburn, 180, true); player.AddBuff(BuffID.Darkness, 180, true); } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs b/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs index c1da8cbcf7..65941954ef 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs @@ -7,9 +7,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { [AutoloadBossHead] public class DevourerofGodsHeadS : ModNPC @@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/UniversalCollapse"); else music = MusicID.LunarBoss; - bossBag = mod.ItemType("DevourerofGodsBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -211,9 +211,9 @@ namespace CalamityMod.NPCs.TheDevourerofGods { int segment; if (segmentSpawn >= 0 && segmentSpawn < minLength) - segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DevourerofGodsBodyS"), npc.whoAmI); + segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); else - segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("DevourerofGodsTailS"), npc.whoAmI); + segment = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType(), npc.whoAmI); Main.npc[segment].realLife = npc.whoAmI; Main.npc[segment].ai[2] = (float)npc.whoAmI; @@ -239,7 +239,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.netMode != NetmodeID.MultiplayerClient) { float num430 = 16f; - int num432 = mod.ProjectileType("DoGFire"); + int num432 = ModContent.ProjectileType(); float num429 = (float)Math.Sqrt((double)(num427 * num427 + num428 * num428)); num429 = num430 / num429; @@ -274,8 +274,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods // Side walls for (int x = 0; x < totalShots; x++) { - Projectile.NewProjectile(Main.player[npc.target].position.X + 1000f, targetPosY + (float)shotSpacing[0], -speed, 0f, mod.ProjectileType("DoGDeath"), projectileDamage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(Main.player[npc.target].position.X - 1000f, targetPosY + (float)shotSpacing[0], speed, 0f, mod.ProjectileType("DoGDeath"), projectileDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(Main.player[npc.target].position.X + 1000f, targetPosY + (float)shotSpacing[0], -speed, 0f, ModContent.ProjectileType(), projectileDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(Main.player[npc.target].position.X - 1000f, targetPosY + (float)shotSpacing[0], speed, 0f, ModContent.ProjectileType(), projectileDamage, 0f, Main.myPlayer, 0f, 0f); shotSpacing[0] -= spacingVar; } @@ -283,8 +283,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods { for (int x = 0; x < 10; x++) { - Projectile.NewProjectile(Main.player[npc.target].position.X + 1000f, targetPosY + (float)shotSpacing[3], -speed, 0f, mod.ProjectileType("DoGDeath"), projectileDamage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(Main.player[npc.target].position.X - 1000f, targetPosY + (float)shotSpacing[3], speed, 0f, mod.ProjectileType("DoGDeath"), projectileDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(Main.player[npc.target].position.X + 1000f, targetPosY + (float)shotSpacing[3], -speed, 0f, ModContent.ProjectileType(), projectileDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(Main.player[npc.target].position.X - 1000f, targetPosY + (float)shotSpacing[3], speed, 0f, ModContent.ProjectileType(), projectileDamage, 0f, Main.myPlayer, 0f, 0f); shotSpacing[3] -= Main.rand.NextBool(2) ? 180 : 200; } shotSpacing[3] = 1050; @@ -294,7 +294,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods // Lower wall for (int x = 0; x < totalShots; x++) { - Projectile.NewProjectile(Main.player[npc.target].position.X + (float)shotSpacing[1], Main.player[npc.target].position.Y + 1000f, 0f, -speed, mod.ProjectileType("DoGDeath"), projectileDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(Main.player[npc.target].position.X + (float)shotSpacing[1], Main.player[npc.target].position.Y + 1000f, 0f, -speed, ModContent.ProjectileType(), projectileDamage, 0f, Main.myPlayer, 0f, 0f); shotSpacing[1] -= spacingVar; } shotSpacing[1] = 1050; @@ -307,7 +307,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods for (int x = 0; x < 40; x++) { - Projectile.NewProjectile(Main.player[npc.target].position.X + (float)shotSpacing[2], Main.player[npc.target].position.Y - 1000f, 0f, speed, mod.ProjectileType("DoGDeath"), projectileDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(Main.player[npc.target].position.X + (float)shotSpacing[2], Main.player[npc.target].position.Y - 1000f, 0f, speed, ModContent.ProjectileType(), projectileDamage, 0f, Main.myPlayer, 0f, 0f); shotSpacing[2] -= spacingVar; } shotSpacing[2] = 2100; @@ -316,7 +316,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods { for (int x = 0; x < totalShots; x++) { - Projectile.NewProjectile(Main.player[npc.target].position.X + (float)shotSpacing[2], Main.player[npc.target].position.Y - 1000f, 0f, speed, mod.ProjectileType("DoGDeath"), projectileDamage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(Main.player[npc.target].position.X + (float)shotSpacing[2], Main.player[npc.target].position.Y - 1000f, 0f, speed, ModContent.ProjectileType(), projectileDamage, 0f, Main.myPlayer, 0f, 0f); shotSpacing[2] -= spacingVar; } shotSpacing[2] = 1050; @@ -326,7 +326,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods } // Despawn - if (!NPC.AnyNPCs(mod.NPCType("DevourerofGodsTailS"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) npc.active = false; float fallSpeed = 16f; @@ -343,7 +343,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods { for (int a = 0; a < 200; a++) { - if (Main.npc[a].type == mod.NPCType("DevourerofGodsHeadS") || Main.npc[a].type == mod.NPCType("DevourerofGodsBodyS") || Main.npc[a].type == mod.NPCType("DevourerofGodsTailS")) + if (Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType()) Main.npc[a].active = false; } } @@ -379,7 +379,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.netMode != NetmodeID.Server) { if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active && Vector2.Distance(Main.player[Main.myPlayer].Center, vector) < 5600f) - Main.player[Main.myPlayer].AddBuff(mod.BuffType("Warped"), 2); + Main.player[Main.myPlayer].AddBuff(ModContent.BuffType(), 2); } phaseSwitch += 1; @@ -600,7 +600,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.netMode != NetmodeID.Server) { if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active && Vector2.Distance(Main.player[Main.myPlayer].Center, vector) < 5600f) - Main.player[Main.myPlayer].AddBuff(mod.BuffType("ExtremeGrav"), 2); + Main.player[Main.myPlayer].AddBuff(ModContent.BuffType(), 2); } phaseSwitch += 1; @@ -826,15 +826,15 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void BossLoot(ref string name, ref int potionType) { - potionType = mod.ItemType("CosmiliteBrick"); + potionType = ModContent.ItemType(); } public override bool SpecialNPCLoot() { int closestSegmentID = DropHelper.FindClosestWormSegment(npc, - mod.NPCType("DevourerofGodsHeadS"), - mod.NPCType("DevourerofGodsBodyS"), - mod.NPCType("DevourerofGodsTailS")); + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType()); npc.position = Main.npc[closestSegmentID].position; return false; } @@ -843,31 +843,31 @@ namespace CalamityMod.NPCs.TheDevourerofGods { DropHelper.DropBags(npc); - DropHelper.DropItem(npc, mod.ItemType("SupremeHealingPotion"), 8, 14); - DropHelper.DropItemChance(npc, mod.ItemType("DevourerofGodsTrophy"), 10); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeDevourerofGods"), true, !CalamityWorld.downedDoG); + DropHelper.DropItem(npc, ModContent.ItemType(), 8, 14); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedDoG); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedDoG, 6, 3, 2); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { // Materials - DropHelper.DropItem(npc, mod.ItemType("CosmiliteBar"), 25, 35); - DropHelper.DropItem(npc, mod.ItemType("CosmiliteBrick"), 150, 250); + DropHelper.DropItem(npc, ModContent.ItemType(), 25, 35); + DropHelper.DropItem(npc, ModContent.ItemType(), 150, 250); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("Excelsus"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("EradicatorMelee"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("TheObliterator"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Deathwind"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Skullmasher"), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(npc, mod.ItemType("Norfleet"), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(npc, mod.ItemType("DeathhailStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("StaffoftheMechworm"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("Eradicator"), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("DevourerofGodsMask"), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } // If DoG has not been killed yet, notify players that the holiday moons are buffed @@ -1020,8 +1020,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 300, true); - player.AddBuff(mod.BuffType("WhisperingDeath"), 420, true); + player.AddBuff(ModContent.BuffType(), 300, true); + player.AddBuff(ModContent.BuffType(), 420, true); if ((CalamityWorld.death || CalamityWorld.bossRushActive) && npc.alpha <= 0) { player.KillMe(PlayerDeathReason.ByOther(10), 1000.0, 0, false); diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTail.cs b/NPCs/TheDevourerofGods/DevourerofGodsTail.cs index 96abf933d9..85d0806da1 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTail.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { [AutoloadBossHead] public class DevourerofGodsTail : ModNPC @@ -212,8 +212,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 180, true); - player.AddBuff(mod.BuffType("WhisperingDeath"), 240, true); + player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); int num = Main.rand.Next(2); string key = "Mods.CalamityMod.EdgyBossText8"; if (num == 0) diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs b/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs index e2ca9e9069..493ae9dcfa 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs @@ -2,9 +2,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DevourerofGodsTail2 : ModNPC { @@ -148,7 +148,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 90, true); + player.AddBuff(ModContent.BuffType(), 90, true); player.AddBuff(BuffID.Frostburn, 90, true); player.AddBuff(BuffID.Darkness, 90, true); } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs b/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs index d3699c03a0..f0a6130a0d 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs @@ -1,12 +1,11 @@ -using CalamityMod.World; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { [AutoloadBossHead] public class DevourerofGodsTailS : ModNPC @@ -280,8 +279,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(mod.BuffType("GodSlayerInferno"), 180, true); - player.AddBuff(mod.BuffType("WhisperingDeath"), 240, true); + player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); int num = Main.rand.Next(2); string key = "Mods.CalamityMod.EdgyBossText8"; if (num == 0) diff --git a/NPCs/TheDevourerofGods/DoGSCreenShaderDataS.cs b/NPCs/TheDevourerofGods/DoGSCreenShaderDataS.cs index b866d85b99..43f05284b4 100644 --- a/NPCs/TheDevourerofGods/DoGSCreenShaderDataS.cs +++ b/NPCs/TheDevourerofGods/DoGSCreenShaderDataS.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DoGScreenShaderDataS : ScreenShaderData { diff --git a/NPCs/TheDevourerofGods/DoGScreenShaderData.cs b/NPCs/TheDevourerofGods/DoGScreenShaderData.cs index 8513eacb24..74ace40c8c 100644 --- a/NPCs/TheDevourerofGods/DoGScreenShaderData.cs +++ b/NPCs/TheDevourerofGods/DoGScreenShaderData.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DoGScreenShaderData : ScreenShaderData { diff --git a/NPCs/TheDevourerofGods/DoGSky.cs b/NPCs/TheDevourerofGods/DoGSky.cs index b748f8b7d2..885bcd679c 100644 --- a/NPCs/TheDevourerofGods/DoGSky.cs +++ b/NPCs/TheDevourerofGods/DoGSky.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DoGSky : CustomSky { diff --git a/NPCs/TheDevourerofGods/DoGSkyS.cs b/NPCs/TheDevourerofGods/DoGSkyS.cs index cac586d9d3..f712ebf8a7 100644 --- a/NPCs/TheDevourerofGods/DoGSkyS.cs +++ b/NPCs/TheDevourerofGods/DoGSkyS.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TheDevourerofGods +namespace CalamityMod.NPCs { public class DoGSkyS : CustomSky { diff --git a/NPCs/TownNPCs/Bandit.cs b/NPCs/TownNPCs/Bandit.cs index 694b74b243..432b62d2d1 100644 --- a/NPCs/TownNPCs/Bandit.cs +++ b/NPCs/TownNPCs/Bandit.cs @@ -1,13 +1,11 @@ using CalamityMod.World; -using CalamityMod.Utilities; using System.Collections.Generic; -using System.Linq; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TownNPCs +namespace CalamityMod.NPCs { [AutoloadHead] public class Bandit : ModNPC @@ -125,8 +123,8 @@ namespace CalamityMod.NPCs.TownNPCs PossibleDialogs.Add("Providence HATES it when you take her stuff. I learned that the hard way."); PossibleDialogs.Add("You think I can get away with looting from ghosts? It ain't like they can pick things up."); } - if (Main.LocalPlayer.InventoryHas(mod.ItemType("Valediction")) || - Main.LocalPlayer.InventoryHas(mod.ItemType("TheReaper"))) + if (Main.LocalPlayer.InventoryHas(ModContent.ItemType()) || + Main.LocalPlayer.InventoryHas(ModContent.ItemType())) { PossibleDialogs.Add("Oh man, did you rip that off a shark!? Now that's a weapon!"); } @@ -145,7 +143,7 @@ namespace CalamityMod.NPCs.TownNPCs PossibleDialogs.Add($"Don't tell {nerd.GivenName}, but I took some of his stuff and replaced it with Angel Statues."); } - int cirrusIndex = NPC.FindFirstNPC(mod.NPCType("FAP")); + int cirrusIndex = NPC.FindFirstNPC(ModContent.NPCType()); if (cirrusIndex != -1) { NPC cirrus = Main.npc[cirrusIndex]; //please help me I'm stuck in a children's video game - Fabsol @@ -204,69 +202,69 @@ namespace CalamityMod.NPCs.TownNPCs public override void SetupShop(Chest shop, ref int nextSlot) { - shop.item[nextSlot].SetDefaults(mod.ItemType("Cinquedea")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 9, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Glaive")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 3, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Kylie")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 9, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("MonkeyDarts")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("OldDie")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 40, 0, 0); nextSlot++; if (Main.hardMode) { - shop.item[nextSlot].SetDefaults(mod.ItemType("SlickCane")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); nextSlot++; } if (NPC.downedMechBoss1 && NPC.downedMechBoss2 && NPC.downedMechBoss3) { - shop.item[nextSlot].SetDefaults(mod.ItemType("MomentumCapacitator")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 60, 0, 0); nextSlot++; } /*if (NPC.downedMechBoss1 || NPC.downedMechBoss2 || NPC.downedMechBoss3) { - shop.item[nextSlot].SetDefaults(mod.ItemType("BouncingBetty")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("LatcherMines")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; }*/ if (NPC.downedPlantBoss) { - shop.item[nextSlot].SetDefaults(mod.ItemType("GloveOfPrecicion")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("GloveofRecklessness")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - /*shop.item[nextSlot].SetDefaults(mod.ItemType("DeepWounder")); + /*shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++;*/ } /*if (NPC.downedGolemBoss) { - shop.item[nextSlot].SetDefaults(mod.ItemType("EtherealExtorter")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(1, 0, 0, 0); nextSlot++; }*/ if (NPC.downedMoonlord) { - shop.item[nextSlot].SetDefaults(mod.ItemType("CelestialReaper")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); nextSlot++; } /*if (CalamityWorld.downedProvidence) { - shop.item[nextSlot].SetDefaults(mod.ItemType("SylvanSlasher")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(5, 0, 0, 0); nextSlot++; }*/ if (CalamityWorld.buffedEclipse && !CalamityWorld.dragonScalesBought) { - shop.item[nextSlot].SetDefaults(mod.ItemType("DragonScales")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(40, 0, 0, 0); nextSlot++; } @@ -286,7 +284,7 @@ namespace CalamityMod.NPCs.TownNPCs public override void TownNPCAttackProj(ref int projType, ref int attackDelay) { - projType = mod.ProjectileType("CinquedeaProj"); //affected by nanotech. I'd look into this + projType = ModContent.ProjectileType(); //affected by nanotech. I'd look into this attackDelay = 1; } diff --git a/NPCs/TownNPCs/DILF.cs b/NPCs/TownNPCs/DILF.cs index 92381a6c28..935246cc72 100644 --- a/NPCs/TownNPCs/DILF.cs +++ b/NPCs/TownNPCs/DILF.cs @@ -4,9 +4,9 @@ using Terraria; using Terraria.GameContent.Events; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TownNPCs +namespace CalamityMod.NPCs { [AutoloadHead] public class DILF : ModNPC @@ -128,39 +128,39 @@ namespace CalamityMod.NPCs.TownNPCs public override void SetupShop(Chest shop, ref int nextSlot) { - shop.item[nextSlot].SetDefaults(mod.ItemType("ColdheartIcicle")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("AbsoluteZero")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("FrostbiteBlaster")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("EternalBlizzard")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("WintersFury")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("ArcticBearPaw")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("IcicleTrident")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("FrostyFlare")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("CryogenicStaff")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("PermafrostsConcoction")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("IcyBullet")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("IcicleArrow")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; shop.item[nextSlot].SetDefaults(ItemID.SuperManaPotion); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("DeliciousMeat")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("EnchantedMetal")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("BearEye")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Popo")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; } @@ -178,7 +178,7 @@ namespace CalamityMod.NPCs.TownNPCs public override void TownNPCAttackProj(ref int projType, ref int attackDelay) { - projType = mod.ProjectileType("DarkIce"); + projType = ModContent.ProjectileType(); attackDelay = 1; } diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 955787801b..bbf22aa72e 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -5,9 +5,9 @@ using Terraria.DataStructures; using Terraria.GameContent.Events; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TownNPCs +namespace CalamityMod.NPCs { [AutoloadHead] public class FAP : ModNPC @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.TownNPCs { for (int j = 0; j < player.inventory.Length; j++) { - if (player.inventory[j].type == mod.ItemType("FabsolsVodka")) + if (player.inventory[j].type == ModContent.ItemType()) { return Main.hardMode; } @@ -167,7 +167,7 @@ namespace CalamityMod.NPCs.TownNPCs if (dryad != -1) dialogue.Add(Main.npc[dryad].GivenName + " is cool too but she'd outlive me."); - int permadong = NPC.FindFirstNPC(mod.NPCType("DILF")); + int permadong = NPC.FindFirstNPC(ModContent.NPCType()); if (permadong != -1) dialogue.Add("I never realized how well-endowed " + Main.npc[permadong].GivenName + " was. It had to be the largest icicle I had ever seen."); @@ -239,109 +239,109 @@ namespace CalamityMod.NPCs.TownNPCs public override void SetupShop(Chest shop, ref int nextSlot) //charges 50% extra than the original item value { - shop.item[nextSlot].SetDefaults(mod.ItemType("GrapeBeer")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("RedWine")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 3, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Moonshine")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Vodka")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Whiskey")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Tequila")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 7, 50, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Rum")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 7, 50, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Fireball")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Everclear")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("FabsolsVodka")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 15, 0, 0); nextSlot++; if (Main.bloodMoon) { - shop.item[nextSlot].SetDefaults(mod.ItemType("BloodyMary")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 15, 0, 0); nextSlot++; } if (CalamityWorld.downedAstrageldon && !Main.dayTime) { - shop.item[nextSlot].SetDefaults(mod.ItemType("StarBeamRye")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); nextSlot++; } - shop.item[nextSlot].SetDefaults(mod.ItemType("Screwdriver")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("MoscowMule")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("WhiteWine")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("EvergreenGin")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("CinnamonRoll")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("TequilaSunrise")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 30, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("CaribbeanRum")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 30, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Margarita")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 35, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("BlueCandle")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("PinkCandle")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("PurpleCandle")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("YellowCandle")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("OddMushroom")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(3, 0, 0, 0); nextSlot++; } @@ -360,7 +360,7 @@ namespace CalamityMod.NPCs.TownNPCs public override void TownNPCAttackProj(ref int projType, ref int attackDelay) { - projType = mod.ProjectileType("FabRay"); + projType = ModContent.ProjectileType(); attackDelay = 1; } diff --git a/NPCs/TownNPCs/SEAHOE.cs b/NPCs/TownNPCs/SEAHOE.cs index 580549498a..c2ba6cfb05 100644 --- a/NPCs/TownNPCs/SEAHOE.cs +++ b/NPCs/TownNPCs/SEAHOE.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.TownNPCs +namespace CalamityMod.NPCs { [AutoloadHead] public class SEAHOE : ModNPC @@ -93,7 +93,7 @@ namespace CalamityMod.NPCs.TownNPCs dialogue.Add("Not sure how " + Main.npc[lilBitch].GivenName + " has not been roasted and digested by now, hanging around the sulphuric seas for so long. Peharps it got to his head."); } - int cirrus = NPC.FindFirstNPC(mod.NPCType("FAP")); + int cirrus = NPC.FindFirstNPC(ModContent.NPCType()); if (cirrus != -1) dialogue.Add("Rumor has it " + Main.npc[cirrus].GivenName + " drinks to forget her troubled past."); @@ -237,27 +237,27 @@ namespace CalamityMod.NPCs.TownNPCs shop = false; Main.npcChatText = Lore(); Player player = Main.player[Main.myPlayer]; - player.AddBuff(mod.BuffType("AmidiasBlessing"), 36000); + player.AddBuff(ModContent.BuffType(), 36000); } } public override void SetupShop(Chest shop, ref int nextSlot) { - shop.item[nextSlot].SetDefaults(mod.ItemType("Shellshooter")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("SnapClam")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("SandDollar")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("Waywasher")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("CoralCannon")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("UrchinFlail")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("AmidiasTrident")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("MagicalConch")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; if (NPC.downedFishron) { @@ -291,7 +291,7 @@ namespace CalamityMod.NPCs.TownNPCs public override void TownNPCAttackProj(ref int projType, ref int attackDelay) { - projType = mod.ProjectileType("SnapClamProj"); + projType = ModContent.ProjectileType(); attackDelay = 1; } diff --git a/NPCs/Yharon/DetonatingFlare.cs b/NPCs/Yharon/DetonatingFlare.cs index 9a52bf2b86..1e60f89cf8 100644 --- a/NPCs/Yharon/DetonatingFlare.cs +++ b/NPCs/Yharon/DetonatingFlare.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Yharon +namespace CalamityMod.NPCs { public class DetonatingFlare : ModNPC { diff --git a/NPCs/Yharon/DetonatingFlare2.cs b/NPCs/Yharon/DetonatingFlare2.cs index 68b3136a45..ed7ca54547 100644 --- a/NPCs/Yharon/DetonatingFlare2.cs +++ b/NPCs/Yharon/DetonatingFlare2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Yharon +namespace CalamityMod.NPCs { public class DetonatingFlare2 : ModNPC { @@ -87,7 +87,7 @@ namespace CalamityMod.NPCs.Yharon { if (CalamityWorld.revenge) { - player.AddBuff(mod.BuffType("MarkedforDeath"), 300); + player.AddBuff(ModContent.BuffType(), 300); } } diff --git a/NPCs/Yharon/YScreenShader.cs b/NPCs/Yharon/YScreenShader.cs index e5c0d28c3f..fea7cabd6f 100644 --- a/NPCs/Yharon/YScreenShader.cs +++ b/NPCs/Yharon/YScreenShader.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.Graphics.Shaders; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Yharon +namespace CalamityMod.NPCs { public class YScreenShaderData : ScreenShaderData { diff --git a/NPCs/Yharon/YSky.cs b/NPCs/Yharon/YSky.cs index 4d38d51b26..f7fc84db06 100644 --- a/NPCs/Yharon/YSky.cs +++ b/NPCs/Yharon/YSky.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.NPCs.Yharon +namespace CalamityMod.NPCs { public class YSky : CustomSky { diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 8b30c8e0a6..5674019506 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -8,10 +8,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.Utilities; -namespace CalamityMod.NPCs.Yharon +namespace CalamityMod.NPCs { [AutoloadBossHead] public class Yharon : ModNPC @@ -63,8 +63,8 @@ namespace CalamityMod.NPCs.Yharon } npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; CalamityGlobalNPC global = npc.Calamity(); global.DR = Phase1_DR; @@ -89,7 +89,7 @@ namespace CalamityMod.NPCs.Yharon } npc.HitSound = SoundID.NPCHit56; npc.DeathSound = SoundID.NPCDeath60; - bossBag = mod.ItemType("YharonBag"); + bossBag = ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -326,8 +326,8 @@ namespace CalamityMod.NPCs.Yharon safeBox.Height = revenge ? 18000 : 21000; if (Main.netMode != NetmodeID.MultiplayerClient) { - Projectile.NewProjectile(player.Center.X + (revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, mod.ProjectileType("SkyFlareRevenge"), 0, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.Center.X - (revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, mod.ProjectileType("SkyFlareRevenge"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X + (revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X - (revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } } @@ -708,12 +708,12 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 vector = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - if (NPC.CountNPCS(mod.NPCType("DetonatingFlare")) < flareCount) + if (NPC.CountNPCS(ModContent.NPCType()) < flareCount) { - NPC.NewNPC((int)vector.X + xPos, (int)vector.Y - 15, mod.NPCType("DetonatingFlare"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)vector.X + xPos, (int)vector.Y - 15, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } int damage = expertMode ? 75 : 90; - Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, 0f, 0f, mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, 0f, 0f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } int num1476 = Math.Sign(player.Center.X - vectorCenter.X); @@ -745,8 +745,8 @@ namespace CalamityMod.NPCs.Yharon } if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == (float)(num1457 - 30)) { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, (float)(npc.direction * 2), 8f, mod.ProjectileType("Flare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); //changed - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, (float)(-(float)npc.direction * 2), 8f, mod.ProjectileType("Flare"), 0, 0f, Main.myPlayer, 0f, 0f); //changed + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, (float)(npc.direction * 2), 8f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); //changed + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, (float)(-(float)npc.direction * 2), 8f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); //changed } npc.ai[2] += 1f; if (npc.ai[2] >= (float)num1457) @@ -1012,11 +1012,11 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 vector = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - if (NPC.CountNPCS(mod.NPCType("DetonatingFlare2")) < flareCount) + if (NPC.CountNPCS(ModContent.NPCType()) < flareCount) { - NPC.NewNPC((int)vector.X + xPos, (int)vector.Y - 15, mod.NPCType("DetonatingFlare2"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)vector.X + xPos, (int)vector.Y - 15, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } - Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-400, 401) * 0.13f, (float)Main.rand.Next(-30, 31) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-400, 401) * 0.13f, (float)Main.rand.Next(-30, 31) * 0.13f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } } npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default); @@ -1040,7 +1040,7 @@ namespace CalamityMod.NPCs.Yharon } if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == (float)(num1457 - 30)) { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); } npc.ai[2] += 1f; if (npc.ai[2] >= (float)num1457) @@ -1116,7 +1116,7 @@ namespace CalamityMod.NPCs.Yharon playerXY = speed / playerXY; playerX *= playerXY; playerY *= playerXY; - Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, playerX, playerY, mod.ProjectileType("FlareDust2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, playerX, playerY, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default); @@ -1355,12 +1355,12 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 vector = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - if (NPC.CountNPCS(mod.NPCType("DetonatingFlare2")) < flareCount && NPC.CountNPCS(mod.NPCType("DetonatingFlare")) < flareCount) + if (NPC.CountNPCS(ModContent.NPCType()) < flareCount && NPC.CountNPCS(ModContent.NPCType()) < flareCount) { - NPC.NewNPC((int)vector.X + xPos, (int)vector.Y - 15, Main.rand.NextBool(2) ? mod.NPCType("DetonatingFlare") : mod.NPCType("DetonatingFlare2"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)vector.X + xPos, (int)vector.Y - 15, Main.rand.NextBool(2) ? ModContent.NPCType() : ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } - Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-401, 401) * 0.13f, (float)Main.rand.Next(-31, 31) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed - Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-31, 31) * 0.13f, (float)Main.rand.Next(-151, 151) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed + Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-401, 401) * 0.13f, (float)Main.rand.Next(-31, 31) * 0.13f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); //changed + Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-31, 31) * 0.13f, (float)Main.rand.Next(-151, 151) * 0.13f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); //changed } } npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default); @@ -1386,7 +1386,7 @@ namespace CalamityMod.NPCs.Yharon } if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == (float)(num1457 - 30)) { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); } npc.ai[2] += 1f; if (npc.ai[2] >= (float)num1457) @@ -1495,7 +1495,7 @@ namespace CalamityMod.NPCs.Yharon playerXY = speed / playerXY; playerX *= playerXY; playerY *= playerXY; - Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, playerX, playerY, mod.ProjectileType("FlareDust2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, playerX, playerY, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } } npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default); @@ -1524,14 +1524,14 @@ namespace CalamityMod.NPCs.Yharon { if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == (float)(num1457 - 30)) { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); } } else { if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == (float)(num1457 - 30)) { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("Flare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); } } npc.ai[2] += 1f; @@ -1734,7 +1734,7 @@ namespace CalamityMod.NPCs.Yharon npc.ai[3] += 1f; if (npc.ai[3] == 5f && Main.netMode != NetmodeID.MultiplayerClient) { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); } if (npc.ai[3] >= 20f) //14 { @@ -2287,7 +2287,7 @@ namespace CalamityMod.NPCs.Yharon playerXY = speed / playerXY; playerX *= playerXY; playerY *= playerXY; - Projectile.NewProjectile(position.X, position.Y, playerX, playerY, mod.ProjectileType("FlareDust2"), num4, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(position.X, position.Y, playerX, playerY, ModContent.ProjectileType(), num4, 0f, Main.myPlayer, 1f, 0f); } num2 = 1.5f; if (Math.Abs(targetData.Center.X - npc.Center.X) > 550f && Math.Abs(npc.velocity.X) < 20f) @@ -2346,7 +2346,7 @@ namespace CalamityMod.NPCs.Yharon int num34 = (int)(npc.ai[1] - num15 + 1f); if (num34 <= num17 && num34 % num16 == 0 && Main.netMode != NetmodeID.MultiplayerClient) { - Projectile.NewProjectile(position, npc.velocity, mod.ProjectileType("YharonFireball"), num4, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(position, npc.velocity, ModContent.ProjectileType(), num4, 0f, Main.myPlayer, 0f, 0f); } } if (npc.ai[1] > num19 - num18) @@ -2383,7 +2383,7 @@ namespace CalamityMod.NPCs.Yharon float num33 = 30f; Vector2 position = npc.Center + new Vector2((110f + num33) * (float)npc.direction, -20f).RotatedBy((double)npc.rotation, default); - Projectile.NewProjectile(position, npc.velocity, mod.ProjectileType("YharonFireball"), num4, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(position, npc.velocity, ModContent.ProjectileType(), num4, 0f, Main.myPlayer, 0f, 0f); if (phase4) { float speed = 0.01f; @@ -2394,13 +2394,13 @@ namespace CalamityMod.NPCs.Yharon playerXY = speed / playerXY; playerX *= playerXY; playerY *= playerXY; - Projectile.NewProjectile(position.X, position.Y, playerX, playerY, mod.ProjectileType("FlareDust2"), num4, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, playerX, playerY, ModContent.ProjectileType(), num4, 0f, Main.myPlayer, 0f, 0f); } } if (npc.ai[1] == 45f && phase4 && useTornado) { useTornado = false; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("BigFlare2"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); } } if (num26 >= num20) @@ -2451,7 +2451,7 @@ namespace CalamityMod.NPCs.Yharon } num2 *= 0.85f; bool flag3 = npc.ai[1] == 20f || npc.ai[1] == 45f || npc.ai[1] == 70f; - int flareCount = NPC.CountNPCS(mod.NPCType("DetonatingFlare")) + NPC.CountNPCS(mod.NPCType("DetonatingFlare2")); + int flareCount = NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()); if (flareCount > 5) { flag3 = false; @@ -2462,11 +2462,11 @@ namespace CalamityMod.NPCs.Yharon if (Vector2.Distance(vector7, targetData.Center) > 100f) { Point point2 = vector7.ToPoint(); - NPC.NewNPC(point2.X, point2.Y, mod.NPCType("DetonatingFlare"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC(point2.X, point2.Y, mod.NPCType("DetonatingFlare2"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(point2.X, point2.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC(point2.X, point2.Y, ModContent.NPCType(), npc.whoAmI, 0f, 0f, 0f, 0f, 255); } - NPC.NewNPC((int)npc.Center.X + (Main.rand.NextBool(2) ? 100 : -100), (int)npc.Center.Y - 100, mod.NPCType("DetonatingFlare"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X + (Main.rand.NextBool(2) ? 100 : -100), (int)npc.Center.Y - 100, mod.NPCType("DetonatingFlare2"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X + (Main.rand.NextBool(2) ? 100 : -100), (int)npc.Center.Y - 100, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X + (Main.rand.NextBool(2) ? 100 : -100), (int)npc.Center.Y - 100, ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); } npc.ai[1] += 1f; } @@ -2474,7 +2474,7 @@ namespace CalamityMod.NPCs.Yharon { if (Main.netMode != NetmodeID.MultiplayerClient) { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("BigFlare2"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); Boom(600, num4); } npc.ai[0] = 1f; @@ -2568,14 +2568,14 @@ namespace CalamityMod.NPCs.Yharon Projectile projectile = Main.projectile[x]; if (projectile.active) { - if (projectile.type == mod.ProjectileType("Infernado2")) + if (projectile.type == ModContent.ProjectileType()) { if (projectile.timeLeft >= 300) projectile.active = false; else if (projectile.timeLeft > 5) projectile.timeLeft = (int)(5f * projectile.ai[1]); } - else if (projectile.type == mod.ProjectileType("BigFlare2")) + else if (projectile.type == ModContent.ProjectileType()) projectile.active = false; } proj = x; @@ -2768,17 +2768,17 @@ namespace CalamityMod.NPCs.Yharon if (!Main.expertMode) { // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("DragonRage"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("TheBurningSky"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("DragonsBreath"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("ChickenCannon"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("PhoenixFlameBarrage"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("AngryChickenStaff"), 4); - DropHelper.DropItemChance(npc, mod.ItemType("ProfanedTrident"), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("YharonMask"), 7); - DropHelper.DropItemChance(npc, mod.ItemType("ForgottenDragonEgg"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); } // These drops only occur in Phase 2 (where you actually kill Yharon) @@ -2787,27 +2787,27 @@ namespace CalamityMod.NPCs.Yharon // Materials int soulFragMin = Main.expertMode ? 22 : 15; int soulFragMax = Main.expertMode ? 28 : 22; - DropHelper.DropItem(npc, mod.ItemType("HellcasterFragment"), true, soulFragMin, soulFragMax); + DropHelper.DropItem(npc, ModContent.ItemType(), true, soulFragMin, soulFragMax); // Equipment - DropHelper.DropItem(npc, mod.ItemType("DrewsWings")); + DropHelper.DropItem(npc, ModContent.ItemType()); // Weapons - DropHelper.DropItemChance(npc, mod.ItemType("VoidVortex"), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(npc, mod.ItemType("YharimsCrystal"), DropHelper.LegendaryDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.LegendaryDropRateInt); // Vanity - DropHelper.DropItemChance(npc, mod.ItemType("YharonTrophy"), 10); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); // Other - DropHelper.DropItem(npc, mod.ItemType("BossRush")); - DropHelper.DropItemCondition(npc, mod.ItemType("KnowledgeYharon"), true, !CalamityWorld.downedYharon); + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedYharon); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedYharon, 6, 3, 2); // If Yharon has not been killed yet, notify players of Auric Ore if (!CalamityWorld.downedYharon) { - WorldGenerationMethods.SpawnOre(mod.TileType("AuricOre"), 2E-05, .6f, .8f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 2E-05, .6f, .8f); string key = "Mods.CalamityMod.AuricOreText"; Color messageColor = Color.Gold; @@ -2825,7 +2825,7 @@ namespace CalamityMod.NPCs.Yharon public override void BossLoot(ref string name, ref int potionType) { - potionType = mod.ItemType("OmegaHealingPotion"); + potionType = ModContent.ItemType(); } #endregion @@ -2965,8 +2965,8 @@ namespace CalamityMod.NPCs.Yharon for (iBoom = 0; iBoom < 25; iBoom++) { offsetAngleBoom = startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f + 32f * iBoom; - int boom1 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 5f), (float)(Math.Cos(offsetAngleBoom) * 5f), mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); - int boom2 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 5f), (float)(-Math.Cos(offsetAngleBoom) * 5f), mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); + int boom1 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 5f), (float)(Math.Cos(offsetAngleBoom) * 5f), ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + int boom2 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 5f), (float)(-Math.Cos(offsetAngleBoom) * 5f), ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[boom1].timeLeft = timeLeft; Main.projectile[boom2].timeLeft = timeLeft; } diff --git a/Projectiles/Amidias/AmidiasTridentProj.cs b/Projectiles/Amidias/AmidiasTridentProj.cs index fd1b07584c..9dc68180bf 100644 --- a/Projectiles/Amidias/AmidiasTridentProj.cs +++ b/Projectiles/Amidias/AmidiasTridentProj.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class AmidiasTridentProj : ModProjectile { @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Amidias if (projectile.localAI[0] == 0f && Main.myPlayer == projectile.owner) { projectile.localAI[0] = 1f; - Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, projectile.velocity.X * 0.8f, projectile.velocity.Y * 0.8f, mod.ProjectileType("AmidiasWhirlpool"), projectile.damage, projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, projectile.velocity.X * 0.8f, projectile.velocity.Y * 0.8f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); } } else diff --git a/Projectiles/Amidias/AmidiasWhirlpool.cs b/Projectiles/Amidias/AmidiasWhirlpool.cs index 0737e762b9..6d8448000b 100644 --- a/Projectiles/Amidias/AmidiasWhirlpool.cs +++ b/Projectiles/Amidias/AmidiasWhirlpool.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class AmidiasWhirlpool : ModProjectile { diff --git a/Projectiles/Amidias/BigCoral.cs b/Projectiles/Amidias/BigCoral.cs index 9ba2ef04f1..3e31ab84e3 100644 --- a/Projectiles/Amidias/BigCoral.cs +++ b/Projectiles/Amidias/BigCoral.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class BigCoral : ModProjectile { @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Amidias { if (target.rarity != 2 && !target.boss) { - target.AddBuff(mod.BuffType("SilvaStun"), 15); + target.AddBuff(ModContent.BuffType(), 15); } } } diff --git a/Projectiles/Amidias/HermitCrab.cs b/Projectiles/Amidias/HermitCrab.cs index d22d4d1d8f..cd5d68ea83 100644 --- a/Projectiles/Amidias/HermitCrab.cs +++ b/Projectiles/Amidias/HermitCrab.cs @@ -2,11 +2,11 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { - public class HermitCrab : ModProjectile + public class HermitCrabMinion : ModProjectile { private int playerStill = 0; private bool fly = false; @@ -63,10 +63,10 @@ namespace CalamityMod.Projectiles.Amidias Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("HermitCrab"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("HermitCrab"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) diff --git a/Projectiles/Amidias/SandDollarProj.cs b/Projectiles/Amidias/SandDollarProj.cs index e7a3231e1d..6e154ee8ed 100644 --- a/Projectiles/Amidias/SandDollarProj.cs +++ b/Projectiles/Amidias/SandDollarProj.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class SandDollarProj : ModProjectile { diff --git a/Projectiles/Amidias/Shell.cs b/Projectiles/Amidias/Shell.cs index 830c6a71f8..1a9e4f5944 100644 --- a/Projectiles/Amidias/Shell.cs +++ b/Projectiles/Amidias/Shell.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class Shell : ModProjectile { diff --git a/Projectiles/Amidias/SmallCoral.cs b/Projectiles/Amidias/SmallCoral.cs index 78474d6ad0..93ff70d070 100644 --- a/Projectiles/Amidias/SmallCoral.cs +++ b/Projectiles/Amidias/SmallCoral.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class SmallCoral : ModProjectile { diff --git a/Projectiles/Amidias/SnapClamProj.cs b/Projectiles/Amidias/SnapClamProj.cs index a38c8c9ed5..5961098229 100644 --- a/Projectiles/Amidias/SnapClamProj.cs +++ b/Projectiles/Amidias/SnapClamProj.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class SnapClamProj : ModProjectile { @@ -206,7 +206,7 @@ namespace CalamityMod.Projectiles.Amidias public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("SnapClamDebuff"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Amidias/UrchinBall.cs b/Projectiles/Amidias/UrchinBall.cs index 5b00d887c0..ba40ae20f7 100644 --- a/Projectiles/Amidias/UrchinBall.cs +++ b/Projectiles/Amidias/UrchinBall.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class UrchinBall : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Amidias if (spike) { spike = false; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("UrchinBallSpike"), (int)((double)projectile.damage * 0.5), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, Main.myPlayer, 0f, 0f); } projectile.usesLocalNPCImmunity = false; float num693 = vector62.Length(); diff --git a/Projectiles/Amidias/UrchinBallSpike.cs b/Projectiles/Amidias/UrchinBallSpike.cs index 0dee84dd03..1aad99b96f 100644 --- a/Projectiles/Amidias/UrchinBallSpike.cs +++ b/Projectiles/Amidias/UrchinBallSpike.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class UrchinBallSpike : ModProjectile { diff --git a/Projectiles/Amidias/WaywasherProj.cs b/Projectiles/Amidias/WaywasherProj.cs index 8c02fd3c49..8b84eeb545 100644 --- a/Projectiles/Amidias/WaywasherProj.cs +++ b/Projectiles/Amidias/WaywasherProj.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Amidias +namespace CalamityMod.Projectiles { public class WaywasherProj : ModProjectile { diff --git a/Projectiles/Astral/AstralCannonProjectile.cs b/Projectiles/Astral/AstralCannonProjectile.cs index 05e02aeccd..2f0fb56701 100644 --- a/Projectiles/Astral/AstralCannonProjectile.cs +++ b/Projectiles/Astral/AstralCannonProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class AstralCannonProjectile : ModProjectile { @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void Kill(int timeLeft) @@ -90,14 +90,14 @@ namespace CalamityMod.Projectiles.Astral Main.PlaySound(29, (int)projectile.Center.X, (int)projectile.Center.Y, 103, 1f, 0f); for (int num193 = 0; num193 < 2; num193++) { - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 50, default, 1f); + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 50, default, 1f); } for (int num194 = 0; num194 < 20; num194++) { - int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 0, default, 1.5f); + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 0, default, 1.5f); Main.dust[num195].noGravity = true; Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 50, default, 1f); + num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 50, default, 1f); Main.dust[num195].velocity *= 2f; Main.dust[num195].noGravity = true; } diff --git a/Projectiles/Astral/AstralScytheProjectile.cs b/Projectiles/Astral/AstralScytheProjectile.cs index 71c241d2a6..d631034e6c 100644 --- a/Projectiles/Astral/AstralScytheProjectile.cs +++ b/Projectiles/Astral/AstralScytheProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class AstralScytheProjectile : ModProjectile { @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void Kill(int timeLeft) @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Astral Vector2 off = angleVec * distance; off.Y *= (float)projectile.height / projectile.width; Vector2 pos = projectile.Center + off; - Dust d = Dust.NewDustPerfect(pos, mod.DustType("AstralBlue"), angleVec * Main.rand.NextFloat(2f, 4f)); + Dust d = Dust.NewDustPerfect(pos, ModContent.DustType(), angleVec * Main.rand.NextFloat(2f, 4f)); d.customData = true; } } diff --git a/Projectiles/Astral/AstralachneaFang.cs b/Projectiles/Astral/AstralachneaFang.cs index ea91d87488..6a6735911f 100644 --- a/Projectiles/Astral/AstralachneaFang.cs +++ b/Projectiles/Astral/AstralachneaFang.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class AstralachneaFang : ModProjectile { @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Astral public override void AI() { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; if (projectile.velocity.X < 0f) @@ -80,17 +80,17 @@ namespace CalamityMod.Projectiles.Astral Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 3; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), 0f, 0f); } for (int k = 0; k < 3; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), 0f, 0f); } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Astral/HeavenfallenEnergy.cs b/Projectiles/Astral/HeavenfallenEnergy.cs index 96e5ec3f43..49a9645990 100644 --- a/Projectiles/Astral/HeavenfallenEnergy.cs +++ b/Projectiles/Astral/HeavenfallenEnergy.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class HeavenfallenEnergy : ModProjectile { @@ -31,11 +31,11 @@ namespace CalamityMod.Projectiles.Astral { if (projectile.ai[0] % 4 == 0) { - coolDust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, mod.DustType("AstralBlue"), 0f, 0f, 100, default, 1.5f); + coolDust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, ModContent.DustType(), 0f, 0f, 100, default, 1.5f); } else { - coolDust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.5f); + coolDust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, ModContent.DustType(), 0f, 0f, 100, default, 1.5f); } Main.dust[coolDust].noGravity = true; Main.dust[coolDust].velocity *= 0.1f; @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Astral/HeavenfallenStardisk.cs b/Projectiles/Astral/HeavenfallenStardisk.cs index 46f09fa348..d3ef3f49f8 100644 --- a/Projectiles/Astral/HeavenfallenStardisk.cs +++ b/Projectiles/Astral/HeavenfallenStardisk.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class HeavenfallenStardisk : ModProjectile { @@ -44,13 +44,13 @@ namespace CalamityMod.Projectiles.Astral for (int i = 0; i < 2; i++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 100, default, 1f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } for (int i = 0; i < 2; i++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } @@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override void Kill(int timeLeft) @@ -146,13 +146,13 @@ namespace CalamityMod.Projectiles.Astral Main.PlaySound(SoundID.Item10, projectile.position); for (int i = 0; i < 10; i++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 100, default, 1.5f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.5f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } for (int i = 0; i < 10; i++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.5f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.5f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } @@ -169,8 +169,8 @@ namespace CalamityMod.Projectiles.Astral for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), mod.ProjectileType("HeavenfallenEnergy"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), mod.ProjectileType("HeavenfallenEnergy"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Astral/Hive.cs b/Projectiles/Astral/Hive.cs index 143b1d769b..fb80995fd7 100644 --- a/Projectiles/Astral/Hive.cs +++ b/Projectiles/Astral/Hive.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class Hive : ModProjectile { @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Astral { float velocityX = Main.rand.NextFloat(-0.4f, 0.4f); float velocityY = Main.rand.NextFloat(-0.3f, -0.5f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, velocityX, velocityY, mod.ProjectileType("Hiveling"), projectile.damage, projectile.knockBack, projectile.owner, (float)target, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, velocityX, velocityY, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, (float)target, 0f); } } } diff --git a/Projectiles/Astral/Hiveling.cs b/Projectiles/Astral/Hiveling.cs index 056e2dc52f..987b888060 100644 --- a/Projectiles/Astral/Hiveling.cs +++ b/Projectiles/Astral/Hiveling.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class Hiveling : ModProjectile { @@ -77,18 +77,18 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 60); + target.AddBuff(ModContent.BuffType(), 60); } public override void Kill(int timeLeft) { for (int k = 0; k < 3; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } for (int k = 0; k < 3; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } diff --git a/Projectiles/Astral/Quasar.cs b/Projectiles/Astral/Quasar.cs index e04bac669d..84b0d0e2dd 100644 --- a/Projectiles/Astral/Quasar.cs +++ b/Projectiles/Astral/Quasar.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class Quasar : ModProjectile { @@ -81,10 +81,10 @@ namespace CalamityMod.Projectiles.Astral } speed.Normalize(); speed *= (float)Main.rand.Next(30, 61) * 0.1f * 2.5f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("Quasar2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("RadiantExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); projectile.active = false; } } @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Astral Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); for (int k = 0; k < 5; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } } diff --git a/Projectiles/Astral/Quasar2.cs b/Projectiles/Astral/Quasar2.cs index 60a537e428..07fc6aae3b 100644 --- a/Projectiles/Astral/Quasar2.cs +++ b/Projectiles/Astral/Quasar2.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class Quasar2 : ModProjectile { @@ -69,7 +69,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Astral { for (int k = 0; k < 5; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } } diff --git a/Projectiles/Astral/RadiantExplosion.cs b/Projectiles/Astral/RadiantExplosion.cs index bd1a90e194..8277998c81 100644 --- a/Projectiles/Astral/RadiantExplosion.cs +++ b/Projectiles/Astral/RadiantExplosion.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class RadiantExplosion : ModProjectile { @@ -32,13 +32,13 @@ namespace CalamityMod.Projectiles.Astral { for (int i = 0; i < 5; i++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 100, default, 1.5f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.5f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } for (int i = 0; i < 5; i++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.5f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.5f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); for (int n = 0; n < 3; n++) { float x = target.position.X + (float)Main.rand.Next(-400, 400); @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Astral int projectileType = Main.rand.Next(3); if (projectileType == 0) { - projectileType = mod.ProjectileType("AstralStar"); + projectileType = ModContent.ProjectileType(); } else if (projectileType == 1) { diff --git a/Projectiles/Astral/RadiantStar.cs b/Projectiles/Astral/RadiantStar.cs index 9a16f2fd3d..164b3f0f29 100644 --- a/Projectiles/Astral/RadiantStar.cs +++ b/Projectiles/Astral/RadiantStar.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class RadiantStar : ModProjectile { @@ -83,11 +83,11 @@ namespace CalamityMod.Projectiles.Astral } speed.Normalize(); speed *= (float)Main.rand.Next(30, 61) * 0.1f * 2.5f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("RadiantStar2"), projectile.damage, projectile.knockBack, projectile.owner, + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, projectile.ai[0] == 1f ? 1f : 0f, 0f); } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("RadiantExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); projectile.active = false; } } @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) @@ -109,7 +109,7 @@ namespace CalamityMod.Projectiles.Astral Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); for (int k = 0; k < 5; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } } diff --git a/Projectiles/Astral/RadiantStar2.cs b/Projectiles/Astral/RadiantStar2.cs index a6810f444a..5b93efa575 100644 --- a/Projectiles/Astral/RadiantStar2.cs +++ b/Projectiles/Astral/RadiantStar2.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class RadiantStar2 : ModProjectile { @@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) @@ -121,7 +121,7 @@ namespace CalamityMod.Projectiles.Astral { for (int k = 0; k < 5; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } } diff --git a/Projectiles/Astral/StellarKnife.cs b/Projectiles/Astral/StellarKnife.cs index 65b0d0be61..f6298f67bc 100644 --- a/Projectiles/Astral/StellarKnife.cs +++ b/Projectiles/Astral/StellarKnife.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Astral +namespace CalamityMod.Projectiles { public class StellarKnife : ModProjectile { @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Astral public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Astral { for (int k = 0; k < 5; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } } diff --git a/Projectiles/Boss/AbyssBallVolley.cs b/Projectiles/Boss/AbyssBallVolley.cs index f7d74023b4..68c0d04b82 100644 --- a/Projectiles/Boss/AbyssBallVolley.cs +++ b/Projectiles/Boss/AbyssBallVolley.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class AbyssBallVolley : ModProjectile { diff --git a/Projectiles/Boss/AbyssBallVolley2.cs b/Projectiles/Boss/AbyssBallVolley2.cs index a38a67caac..db6b952aa5 100644 --- a/Projectiles/Boss/AbyssBallVolley2.cs +++ b/Projectiles/Boss/AbyssBallVolley2.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class AbyssBallVolley2 : ModProjectile { diff --git a/Projectiles/Boss/AbyssMine.cs b/Projectiles/Boss/AbyssMine.cs index 3c24088d81..f1fa214194 100644 --- a/Projectiles/Boss/AbyssMine.cs +++ b/Projectiles/Boss/AbyssMine.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class AbyssMine : ModProjectile { diff --git a/Projectiles/Boss/AbyssMine2.cs b/Projectiles/Boss/AbyssMine2.cs index 7694d55417..ccf815bf6f 100644 --- a/Projectiles/Boss/AbyssMine2.cs +++ b/Projectiles/Boss/AbyssMine2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class AbyssMine2 : ModProjectile { diff --git a/Projectiles/Boss/AstralFlame.cs b/Projectiles/Boss/AstralFlame.cs index 1c45984ed3..60f136a50a 100644 --- a/Projectiles/Boss/AstralFlame.cs +++ b/Projectiles/Boss/AstralFlame.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class AstralFlame : ModProjectile { @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Boss projectile.ai[0] += 1f; if (projectile.ai[0] > 15f) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 0.8f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 0.8f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override void Kill(int timeLeft) @@ -111,11 +111,11 @@ namespace CalamityMod.Projectiles.Boss projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); for (int num193 = 0; num193 < 2; num193++) { - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 50, default, 1f); + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 50, default, 1f); } for (int num194 = 0; num194 < 20; num194++) { - int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 0, default, 1.5f); + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 0, default, 1.5f); Main.dust[num195].noGravity = true; Main.dust[num195].velocity *= 3f; num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 50, default, 1f); diff --git a/Projectiles/Boss/AstralLaser.cs b/Projectiles/Boss/AstralLaser.cs index 6098d63e67..18352b0b24 100644 --- a/Projectiles/Boss/AstralLaser.cs +++ b/Projectiles/Boss/AstralLaser.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class AstralLaser : ModProjectile { @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/AstralShot2.cs b/Projectiles/Boss/AstralShot2.cs index 905629ae7e..e96261b3e2 100644 --- a/Projectiles/Boss/AstralShot2.cs +++ b/Projectiles/Boss/AstralShot2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class AstralShot2 : ModProjectile { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Boss/BigFlare.cs b/Projectiles/Boss/BigFlare.cs index fa676b7e10..9d213825d3 100644 --- a/Projectiles/Boss/BigFlare.cs +++ b/Projectiles/Boss/BigFlare.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BigFlare : ModProjectile { @@ -171,7 +171,7 @@ namespace CalamityMod.Projectiles.Boss } } int damage = Main.expertMode ? 130 : 150; - int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, mod.ProjectileType("Infernado"), damage, 4f, Main.myPlayer, 11f, 20f + (revenge ? 2f : 0f)); + int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, ModContent.ProjectileType(), damage, 4f, Main.myPlayer, 11f, 20f + (revenge ? 2f : 0f)); Main.projectile[num236].netUpdate = true; } } diff --git a/Projectiles/Boss/BigFlare2.cs b/Projectiles/Boss/BigFlare2.cs index a22a0e7f65..36b1eca07e 100644 --- a/Projectiles/Boss/BigFlare2.cs +++ b/Projectiles/Boss/BigFlare2.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BigFlare2 : ModProjectile { @@ -169,7 +169,7 @@ namespace CalamityMod.Projectiles.Boss } } int damage = Main.expertMode ? 130 : 150; - int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, mod.ProjectileType("Infernado2"), damage, 4f, Main.myPlayer, 11f, 30f); + int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, ModContent.ProjectileType(), damage, 4f, Main.myPlayer, 11f, 30f); Main.projectile[num236].netUpdate = true; } } diff --git a/Projectiles/Boss/BloodClot.cs b/Projectiles/Boss/BloodClot.cs index 10cff3a172..f35f764c98 100644 --- a/Projectiles/Boss/BloodClot.cs +++ b/Projectiles/Boss/BloodClot.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BloodClot : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BurningBlood"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/BloodGeyser.cs b/Projectiles/Boss/BloodGeyser.cs index 721af26403..36e43275be 100644 --- a/Projectiles/Boss/BloodGeyser.cs +++ b/Projectiles/Boss/BloodGeyser.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BloodGeyser : ModProjectile { @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BurningBlood"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/BrimstoneBall.cs b/Projectiles/Boss/BrimstoneBall.cs index dfbd38f7f9..44925fdc28 100644 --- a/Projectiles/Boss/BrimstoneBall.cs +++ b/Projectiles/Boss/BrimstoneBall.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneBall : ModProjectile { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Boss/BrimstoneBarrage.cs b/Projectiles/Boss/BrimstoneBarrage.cs index b124280237..7e87eb38b3 100644 --- a/Projectiles/Boss/BrimstoneBarrage.cs +++ b/Projectiles/Boss/BrimstoneBarrage.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneBarrage : ModProjectile { @@ -56,10 +56,10 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); if (projectile.ai[0] == 0f) - target.AddBuff(mod.BuffType("VulnerabilityHex"), 120, true); + target.AddBuff(ModContent.BuffType(), 120, true); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Boss/BrimstoneFire.cs b/Projectiles/Boss/BrimstoneFire.cs index 1d605508af..b5caf49ee7 100644 --- a/Projectiles/Boss/BrimstoneFire.cs +++ b/Projectiles/Boss/BrimstoneFire.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneFire : ModProjectile { @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Boss/BrimstoneFireblast.cs b/Projectiles/Boss/BrimstoneFireblast.cs index 3672b19a67..ea97ebbb27 100644 --- a/Projectiles/Boss/BrimstoneFireblast.cs +++ b/Projectiles/Boss/BrimstoneFireblast.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneFireblast : ModProjectile { @@ -84,8 +84,8 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240); - target.AddBuff(mod.BuffType("VulnerabilityHex"), 180, true); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 180, true); } public override void Kill(int timeLeft) @@ -101,8 +101,8 @@ namespace CalamityMod.Projectiles.Boss for (i = 0; i < 30; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("BrimstoneBarrage"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("BrimstoneBarrage"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); } } for (int num193 = 0; num193 < 2; num193++) diff --git a/Projectiles/Boss/BrimstoneGigaBlast.cs b/Projectiles/Boss/BrimstoneGigaBlast.cs index da22a843d3..ae24c2c0c0 100644 --- a/Projectiles/Boss/BrimstoneGigaBlast.cs +++ b/Projectiles/Boss/BrimstoneGigaBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneGigaBlast : ModProjectile { @@ -89,8 +89,8 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240); - target.AddBuff(mod.BuffType("VulnerabilityHex"), 180, true); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 180, true); } public override void Kill(int timeLeft) @@ -106,8 +106,8 @@ namespace CalamityMod.Projectiles.Boss for (i = 0; i < 8; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 7f), (float)(Math.Cos(offsetAngle) * 7f), mod.ProjectileType("BrimstoneBarrage"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 7f), (float)(-Math.Cos(offsetAngle) * 7f), mod.ProjectileType("BrimstoneBarrage"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 7f), (float)(Math.Cos(offsetAngle) * 7f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 7f), (float)(-Math.Cos(offsetAngle) * 7f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); } } Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 50, default, 1f); diff --git a/Projectiles/Boss/BrimstoneHellblast.cs b/Projectiles/Boss/BrimstoneHellblast.cs index e5a0b47072..f201fa2772 100644 --- a/Projectiles/Boss/BrimstoneHellblast.cs +++ b/Projectiles/Boss/BrimstoneHellblast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneHellblast : ModProjectile { @@ -76,10 +76,10 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); if (projectile.ai[0] == 0f) - target.AddBuff(mod.BuffType("VulnerabilityHex"), 120, true); + target.AddBuff(ModContent.BuffType(), 120, true); } public override void Kill(int timeLeft) diff --git a/Projectiles/Boss/BrimstoneHellblast2.cs b/Projectiles/Boss/BrimstoneHellblast2.cs index d8c3ea1a28..34fd6a669b 100644 --- a/Projectiles/Boss/BrimstoneHellblast2.cs +++ b/Projectiles/Boss/BrimstoneHellblast2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneHellblast2 : ModProjectile { @@ -71,8 +71,8 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 180); - target.AddBuff(mod.BuffType("VulnerabilityHex"), 120, true); + target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/Projectiles/Boss/BrimstoneHellfireball.cs b/Projectiles/Boss/BrimstoneHellfireball.cs index 034c229a7a..6a7cdc78e2 100644 --- a/Projectiles/Boss/BrimstoneHellfireball.cs +++ b/Projectiles/Boss/BrimstoneHellfireball.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneHellfireball : ModProjectile { @@ -44,13 +44,13 @@ namespace CalamityMod.Projectiles.Boss { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("HellfireExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Boss/BrimstoneLaser.cs b/Projectiles/Boss/BrimstoneLaser.cs index 0edf98fc65..4c33277957 100644 --- a/Projectiles/Boss/BrimstoneLaser.cs +++ b/Projectiles/Boss/BrimstoneLaser.cs @@ -2,9 +2,9 @@ using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneLaser : ModProjectile { @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Boss for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("BrimstoneLaserSplit"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } projectile.Kill(); @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Boss/BrimstoneLaserSplit.cs b/Projectiles/Boss/BrimstoneLaserSplit.cs index d7e746d82c..a19fa65a6b 100644 --- a/Projectiles/Boss/BrimstoneLaserSplit.cs +++ b/Projectiles/Boss/BrimstoneLaserSplit.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneLaserSplit : ModProjectile { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Boss/BrimstoneMonster.cs b/Projectiles/Boss/BrimstoneMonster.cs index 628a37a140..f4111a73f3 100644 --- a/Projectiles/Boss/BrimstoneMonster.cs +++ b/Projectiles/Boss/BrimstoneMonster.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneMonster : ModProjectile { @@ -150,8 +150,8 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 900); - target.AddBuff(mod.BuffType("VulnerabilityHex"), 300, true); + target.AddBuff(ModContent.BuffType(), 900); + target.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/Projectiles/Boss/BrimstoneWave.cs b/Projectiles/Boss/BrimstoneWave.cs index 933342065e..e63b77d3c4 100644 --- a/Projectiles/Boss/BrimstoneWave.cs +++ b/Projectiles/Boss/BrimstoneWave.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class BrimstoneWave : ModProjectile { @@ -81,8 +81,8 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AbyssalFlames"), 180); - target.AddBuff(mod.BuffType("VulnerabilityHex"), 120, true); + target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/Projectiles/Boss/CosmicFlameBurst.cs b/Projectiles/Boss/CosmicFlameBurst.cs index 17d609c4b1..5bb94f7d42 100644 --- a/Projectiles/Boss/CosmicFlameBurst.cs +++ b/Projectiles/Boss/CosmicFlameBurst.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class CosmicFlameBurst : ModProjectile { diff --git a/Projectiles/Boss/DarkEnergyBall.cs b/Projectiles/Boss/DarkEnergyBall.cs index aa3d52ab85..280329c7c8 100644 --- a/Projectiles/Boss/DarkEnergyBall.cs +++ b/Projectiles/Boss/DarkEnergyBall.cs @@ -1,9 +1,9 @@ using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DarkEnergyBall : ModProjectile { diff --git a/Projectiles/Boss/DestroyerHomingLaser.cs b/Projectiles/Boss/DestroyerHomingLaser.cs index 6bb2e9b77f..c52f7afc28 100644 --- a/Projectiles/Boss/DestroyerHomingLaser.cs +++ b/Projectiles/Boss/DestroyerHomingLaser.cs @@ -2,9 +2,9 @@ using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DestroyerHomingLaser : ModProjectile { diff --git a/Projectiles/Boss/DeusMine.cs b/Projectiles/Boss/DeusMine.cs index da8acded07..ace06cba8e 100644 --- a/Projectiles/Boss/DeusMine.cs +++ b/Projectiles/Boss/DeusMine.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DeusMine : ModProjectile { @@ -92,17 +92,17 @@ namespace CalamityMod.Projectiles.Boss } for (int num623 = 0; num623 < 60; num623++) { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.7f); + int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.7f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 1.5f; - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1f); + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); } projectile.Damage(); } public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Boss/DoGBeam.cs b/Projectiles/Boss/DoGBeam.cs index 73fe8b8fca..a246148fc4 100644 --- a/Projectiles/Boss/DoGBeam.cs +++ b/Projectiles/Boss/DoGBeam.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DoGBeam : ModProjectile { diff --git a/Projectiles/Boss/DoGBeamPortal.cs b/Projectiles/Boss/DoGBeamPortal.cs index e47352f090..6ba8a4ae47 100644 --- a/Projectiles/Boss/DoGBeamPortal.cs +++ b/Projectiles/Boss/DoGBeamPortal.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DoGBeamPortal : ModProjectile { @@ -80,8 +80,8 @@ namespace CalamityMod.Projectiles.Boss speed = 5f; } offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * speed), (float)(Math.Cos(offsetAngle) * speed), mod.ProjectileType("DoGBeam"), projectileDamage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * speed), (float)(-Math.Cos(offsetAngle) * speed), mod.ProjectileType("DoGBeam"), projectileDamage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * speed), (float)(Math.Cos(offsetAngle) * speed), ModContent.ProjectileType(), projectileDamage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * speed), (float)(-Math.Cos(offsetAngle) * speed), ModContent.ProjectileType(), projectileDamage, projectile.knockBack, projectile.owner, 0f, 0f); } } beamTimer = 180; diff --git a/Projectiles/Boss/DoGDeath.cs b/Projectiles/Boss/DoGDeath.cs index 2d9e8e492f..e557436fa0 100644 --- a/Projectiles/Boss/DoGDeath.cs +++ b/Projectiles/Boss/DoGDeath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DoGDeath : ModProjectile { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Boss/DoGFire.cs b/Projectiles/Boss/DoGFire.cs index e86b71e90b..f8c1173c44 100644 --- a/Projectiles/Boss/DoGFire.cs +++ b/Projectiles/Boss/DoGFire.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DoGFire : ModProjectile { @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); target.AddBuff(BuffID.Frostburn, 300, true); target.AddBuff(BuffID.Darkness, 300, true); } diff --git a/Projectiles/Boss/DoGNebulaShot.cs b/Projectiles/Boss/DoGNebulaShot.cs index 38f9d1d5fb..743758ae7b 100644 --- a/Projectiles/Boss/DoGNebulaShot.cs +++ b/Projectiles/Boss/DoGNebulaShot.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class DoGNebulaShot : ModProjectile { diff --git a/Projectiles/Boss/EssenceDust.cs b/Projectiles/Boss/EssenceDust.cs index eacab04ad6..092174ab29 100644 --- a/Projectiles/Boss/EssenceDust.cs +++ b/Projectiles/Boss/EssenceDust.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class EssenceDust : ModProjectile { diff --git a/Projectiles/Boss/Flare.cs b/Projectiles/Boss/Flare.cs index dbf7baaca7..1a66a60489 100644 --- a/Projectiles/Boss/Flare.cs +++ b/Projectiles/Boss/Flare.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class Flare : ModProjectile { @@ -170,7 +170,7 @@ namespace CalamityMod.Projectiles.Boss } } int num235 = Main.expertMode ? 85 : 100; - int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, mod.ProjectileType("Flarenado"), num235, 4f, Main.myPlayer, 11f, 8f + (revenge ? 2f : 0f)); + int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, ModContent.ProjectileType(), num235, 4f, Main.myPlayer, 11f, 8f + (revenge ? 2f : 0f)); Main.projectile[num236].netUpdate = true; } } diff --git a/Projectiles/Boss/FlareBomb.cs b/Projectiles/Boss/FlareBomb.cs index 535db7fdf7..c6f4a8234e 100644 --- a/Projectiles/Boss/FlareBomb.cs +++ b/Projectiles/Boss/FlareBomb.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class FlareBomb : ModProjectile { diff --git a/Projectiles/Boss/FlareDust.cs b/Projectiles/Boss/FlareDust.cs index b82f24b420..a32e78782b 100644 --- a/Projectiles/Boss/FlareDust.cs +++ b/Projectiles/Boss/FlareDust.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class FlareDust : ModProjectile { diff --git a/Projectiles/Boss/FlareDust2.cs b/Projectiles/Boss/FlareDust2.cs index fb9052733d..bf7468827b 100644 --- a/Projectiles/Boss/FlareDust2.cs +++ b/Projectiles/Boss/FlareDust2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class FlareDust2 : ModProjectile { diff --git a/Projectiles/Boss/Flarenado.cs b/Projectiles/Boss/Flarenado.cs index 591434d4c0..24c7173bde 100644 --- a/Projectiles/Boss/Flarenado.cs +++ b/Projectiles/Boss/Flarenado.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class Flarenado : ModProjectile { diff --git a/Projectiles/Boss/FrostMist.cs b/Projectiles/Boss/FrostMist.cs index bc0ff1515b..f8bcd798dd 100644 --- a/Projectiles/Boss/FrostMist.cs +++ b/Projectiles/Boss/FrostMist.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class FrostMist : ModProjectile { diff --git a/Projectiles/Boss/GreatSandBlast.cs b/Projectiles/Boss/GreatSandBlast.cs index 2332ebe6f7..b70e9c3967 100644 --- a/Projectiles/Boss/GreatSandBlast.cs +++ b/Projectiles/Boss/GreatSandBlast.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class GreatSandBlast : ModProjectile { diff --git a/Projectiles/Boss/HealOrbProv.cs b/Projectiles/Boss/HealOrbProv.cs index aa39cad908..7157b27746 100644 --- a/Projectiles/Boss/HealOrbProv.cs +++ b/Projectiles/Boss/HealOrbProv.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HealOrbProv : ModProjectile { diff --git a/Projectiles/Boss/HellfireExplosion.cs b/Projectiles/Boss/HellfireExplosion.cs index 2c5e3971cf..7ac5fbf8aa 100644 --- a/Projectiles/Boss/HellfireExplosion.cs +++ b/Projectiles/Boss/HellfireExplosion.cs @@ -2,9 +2,9 @@ using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HellfireExplosion : ModProjectile { @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 360); + target.AddBuff(ModContent.BuffType(), 360); } } } diff --git a/Projectiles/Boss/HiveBombGoliath.cs b/Projectiles/Boss/HiveBombGoliath.cs index 7dc26ed653..9915899a77 100644 --- a/Projectiles/Boss/HiveBombGoliath.cs +++ b/Projectiles/Boss/HiveBombGoliath.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HiveBombGoliath : ModProjectile { @@ -154,7 +154,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Boss/HolyBlast.cs b/Projectiles/Boss/HolyBlast.cs index 2478ffcf91..587134b1df 100644 --- a/Projectiles/Boss/HolyBlast.cs +++ b/Projectiles/Boss/HolyBlast.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyBlast : ModProjectile { @@ -96,8 +96,8 @@ namespace CalamityMod.Projectiles.Boss for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyFire2"), projectile.damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyFire2"), projectile.damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, 0f, Main.myPlayer, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); @@ -118,7 +118,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Boss/HolyBomb.cs b/Projectiles/Boss/HolyBomb.cs index c975459cd4..18cd467b40 100644 --- a/Projectiles/Boss/HolyBomb.cs +++ b/Projectiles/Boss/HolyBomb.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyBomb : ModProjectile { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Boss projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, -2f, mod.ProjectileType("HolyFlare"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, -2f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } flareShootTimer = 60; } @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Boss/HolyBurnOrb.cs b/Projectiles/Boss/HolyBurnOrb.cs index 821ff60f34..0d3414d094 100644 --- a/Projectiles/Boss/HolyBurnOrb.cs +++ b/Projectiles/Boss/HolyBurnOrb.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyBurnOrb : ModProjectile { @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 60); + target.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/Projectiles/Boss/HolyFire.cs b/Projectiles/Boss/HolyFire.cs index 8643260b74..cc0b5971ce 100644 --- a/Projectiles/Boss/HolyFire.cs +++ b/Projectiles/Boss/HolyFire.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyFire : ModProjectile { @@ -71,16 +71,16 @@ namespace CalamityMod.Projectiles.Boss { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0.01f, 0f, mod.ProjectileType("HolyFire2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -0.01f, 0f, mod.ProjectileType("HolyFire2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0.01f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -0.01f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } else { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0.05f, 0f, mod.ProjectileType("HolyFire2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -0.05f, 0f, mod.ProjectileType("HolyFire2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0.05f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -0.05f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); @@ -109,7 +109,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/HolyFire2.cs b/Projectiles/Boss/HolyFire2.cs index 9245c5a1b7..1edc166683 100644 --- a/Projectiles/Boss/HolyFire2.cs +++ b/Projectiles/Boss/HolyFire2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyFire2 : ModProjectile { @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/HolyFlare.cs b/Projectiles/Boss/HolyFlare.cs index ca1021c722..623335af3c 100644 --- a/Projectiles/Boss/HolyFlare.cs +++ b/Projectiles/Boss/HolyFlare.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyFlare : ModProjectile { @@ -109,7 +109,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/HolyLight.cs b/Projectiles/Boss/HolyLight.cs index fac8b9c419..505512e14f 100644 --- a/Projectiles/Boss/HolyLight.cs +++ b/Projectiles/Boss/HolyLight.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyLight : ModProjectile { diff --git a/Projectiles/Boss/HolyShot.cs b/Projectiles/Boss/HolyShot.cs index 92d3d77982..67f5b21c44 100644 --- a/Projectiles/Boss/HolyShot.cs +++ b/Projectiles/Boss/HolyShot.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolyShot : ModProjectile { @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/HolySpear.cs b/Projectiles/Boss/HolySpear.cs index 02c97d96b2..cadbe58e17 100644 --- a/Projectiles/Boss/HolySpear.cs +++ b/Projectiles/Boss/HolySpear.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class HolySpear : ModProjectile { @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/IceBlast.cs b/Projectiles/Boss/IceBlast.cs index dda106525e..231929a4a8 100644 --- a/Projectiles/Boss/IceBlast.cs +++ b/Projectiles/Boss/IceBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class IceBlast : ModProjectile { diff --git a/Projectiles/Boss/IceBomb.cs b/Projectiles/Boss/IceBomb.cs index e128c1c901..13534c78e6 100644 --- a/Projectiles/Boss/IceBomb.cs +++ b/Projectiles/Boss/IceBomb.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class IceBomb : ModProjectile { @@ -41,8 +41,8 @@ namespace CalamityMod.Projectiles.Boss for (i = 0; i < 3; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("IceRain"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("IceRain"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } for (int k = 0; k < 3; k++) @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Boss { target.AddBuff(BuffID.Frostburn, 120, true); target.AddBuff(BuffID.Chilled, 90, true); - target.AddBuff(mod.BuffType("GlacialState"), 60); + target.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/Projectiles/Boss/IceRain.cs b/Projectiles/Boss/IceRain.cs index cdcdec5d50..7470b38629 100644 --- a/Projectiles/Boss/IceRain.cs +++ b/Projectiles/Boss/IceRain.cs @@ -2,9 +2,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class IceRain : ModProjectile { diff --git a/Projectiles/Boss/IchorShot.cs b/Projectiles/Boss/IchorShot.cs index b4824fe8b0..ea9f2975f7 100644 --- a/Projectiles/Boss/IchorShot.cs +++ b/Projectiles/Boss/IchorShot.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class IchorShot : ModProjectile { diff --git a/Projectiles/Boss/Infernado.cs b/Projectiles/Boss/Infernado.cs index cb522f330a..2d6dd72ca7 100644 --- a/Projectiles/Boss/Infernado.cs +++ b/Projectiles/Boss/Infernado.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class Infernado : ModProjectile { diff --git a/Projectiles/Boss/Infernado2.cs b/Projectiles/Boss/Infernado2.cs index b2666e50df..4d5cbf74f1 100644 --- a/Projectiles/Boss/Infernado2.cs +++ b/Projectiles/Boss/Infernado2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class Infernado2 : ModProjectile { diff --git a/Projectiles/Boss/InfernadoRevenge.cs b/Projectiles/Boss/InfernadoRevenge.cs index 8822e289d3..75bae9bd14 100644 --- a/Projectiles/Boss/InfernadoRevenge.cs +++ b/Projectiles/Boss/InfernadoRevenge.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.DataStructures; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class InfernadoRevenge : ModProjectile { diff --git a/Projectiles/Boss/LeviathanBomb.cs b/Projectiles/Boss/LeviathanBomb.cs index 21f2b8f476..afbdc56e68 100644 --- a/Projectiles/Boss/LeviathanBomb.cs +++ b/Projectiles/Boss/LeviathanBomb.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class LeviathanBomb : ModProjectile { diff --git a/Projectiles/Boss/MoltenBlast.cs b/Projectiles/Boss/MoltenBlast.cs index 83d71c9bf4..4ab1d7b1b5 100644 --- a/Projectiles/Boss/MoltenBlast.cs +++ b/Projectiles/Boss/MoltenBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class MoltenBlast : ModProjectile { @@ -114,7 +114,7 @@ namespace CalamityMod.Projectiles.Boss } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 121) * 0.1f; //70 101 - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("MoltenBlob"), projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); @@ -135,7 +135,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Boss/MoltenBlob.cs b/Projectiles/Boss/MoltenBlob.cs index e0a5d6285b..7302bab613 100644 --- a/Projectiles/Boss/MoltenBlob.cs +++ b/Projectiles/Boss/MoltenBlob.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class MoltenBlob : ModProjectile { @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 90); + target.AddBuff(ModContent.BuffType(), 90); } } } diff --git a/Projectiles/Boss/MushBomb.cs b/Projectiles/Boss/MushBomb.cs index 8879b4d57d..ecc7458a1e 100644 --- a/Projectiles/Boss/MushBomb.cs +++ b/Projectiles/Boss/MushBomb.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class MushBomb : ModProjectile { diff --git a/Projectiles/Boss/MushBombFall.cs b/Projectiles/Boss/MushBombFall.cs index 9539642815..ce6c047028 100644 --- a/Projectiles/Boss/MushBombFall.cs +++ b/Projectiles/Boss/MushBombFall.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class MushBombFall : ModProjectile { diff --git a/Projectiles/Boss/Mushmash.cs b/Projectiles/Boss/Mushmash.cs index 63ba36f51a..fe1d73412b 100644 --- a/Projectiles/Boss/Mushmash.cs +++ b/Projectiles/Boss/Mushmash.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class Mushmash : ModProjectile { diff --git a/Projectiles/Boss/PhantomBlast.cs b/Projectiles/Boss/PhantomBlast.cs index b86ded35a1..62635a2922 100644 --- a/Projectiles/Boss/PhantomBlast.cs +++ b/Projectiles/Boss/PhantomBlast.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PhantomBlast : ModProjectile { diff --git a/Projectiles/Boss/PhantomBlast2.cs b/Projectiles/Boss/PhantomBlast2.cs index 109ab6eb61..afb9100949 100644 --- a/Projectiles/Boss/PhantomBlast2.cs +++ b/Projectiles/Boss/PhantomBlast2.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PhantomBlast2 : ModProjectile { diff --git a/Projectiles/Boss/PhantomGhostShot.cs b/Projectiles/Boss/PhantomGhostShot.cs index 4a6f6c4c49..275cf6e474 100644 --- a/Projectiles/Boss/PhantomGhostShot.cs +++ b/Projectiles/Boss/PhantomGhostShot.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PhantomGhostShot : ModProjectile { diff --git a/Projectiles/Boss/PhantomHookShot.cs b/Projectiles/Boss/PhantomHookShot.cs index d3eed80dc7..e344c711f0 100644 --- a/Projectiles/Boss/PhantomHookShot.cs +++ b/Projectiles/Boss/PhantomHookShot.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PhantomHookShot : ModProjectile { diff --git a/Projectiles/Boss/PhantomMine.cs b/Projectiles/Boss/PhantomMine.cs index 8d5c8bc260..c137ab78f1 100644 --- a/Projectiles/Boss/PhantomMine.cs +++ b/Projectiles/Boss/PhantomMine.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PhantomMine : ModProjectile { diff --git a/Projectiles/Boss/PhantomShot.cs b/Projectiles/Boss/PhantomShot.cs index 7efa9d2283..a21d01b9c9 100644 --- a/Projectiles/Boss/PhantomShot.cs +++ b/Projectiles/Boss/PhantomShot.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PhantomShot : ModProjectile { diff --git a/Projectiles/Boss/PhantomShot2.cs b/Projectiles/Boss/PhantomShot2.cs index e7804f9906..53468b73aa 100644 --- a/Projectiles/Boss/PhantomShot2.cs +++ b/Projectiles/Boss/PhantomShot2.cs @@ -3,9 +3,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PhantomShot2 : ModProjectile { diff --git a/Projectiles/Boss/PlagueExplosion.cs b/Projectiles/Boss/PlagueExplosion.cs index 8a650888ea..35554f50d8 100644 --- a/Projectiles/Boss/PlagueExplosion.cs +++ b/Projectiles/Boss/PlagueExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PlagueExplosion : ModProjectile { @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Boss/PlagueStingerGoliath.cs b/Projectiles/Boss/PlagueStingerGoliath.cs index c3bfe9d6cf..9a87bc9b3e 100644 --- a/Projectiles/Boss/PlagueStingerGoliath.cs +++ b/Projectiles/Boss/PlagueStingerGoliath.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PlagueStingerGoliath : ModProjectile { @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Boss/PlagueStingerGoliathV2.cs b/Projectiles/Boss/PlagueStingerGoliathV2.cs index c900c29f8b..b615134f06 100644 --- a/Projectiles/Boss/PlagueStingerGoliathV2.cs +++ b/Projectiles/Boss/PlagueStingerGoliathV2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class PlagueStingerGoliathV2 : ModProjectile { @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Boss Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("PlagueExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Boss/ProfanedSpear.cs b/Projectiles/Boss/ProfanedSpear.cs index 1f9ed70023..97e401e66e 100644 --- a/Projectiles/Boss/ProfanedSpear.cs +++ b/Projectiles/Boss/ProfanedSpear.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ProfanedSpear : ModProjectile { @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/ProvidenceCrystal.cs b/Projectiles/Boss/ProvidenceCrystal.cs index 23ab920719..3007fc97b4 100644 --- a/Projectiles/Boss/ProvidenceCrystal.cs +++ b/Projectiles/Boss/ProvidenceCrystal.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ProvidenceCrystal : ModProjectile { @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Boss public override void AI() { Player player = Main.player[projectile.owner]; - if (player.dead || NPC.CountNPCS(mod.NPCType("Providence")) < 1) + if (player.dead || NPC.CountNPCS(ModContent.NPCType()) < 1) { projectile.active = false; projectile.netUpdate = true; @@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Boss for (int num1083 = 0; num1083 < 14; num1083++) { float x4 = Main.rgbToHsl(new Color(255, 200, Main.DiscoB)).X; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speedX, speedY, mod.ProjectileType("ProvidenceCrystalShard"), projectile.damage, projectile.knockBack, projectile.owner, x4, (float)projectile.whoAmI); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speedX, speedY, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, x4, (float)projectile.whoAmI); speedX += 3f; // -21, -18, -15, -12, -9, -6, -3, 0, 3, 6, 9, 12, 15, 18, 21 } } diff --git a/Projectiles/Boss/ProvidenceCrystalShard.cs b/Projectiles/Boss/ProvidenceCrystalShard.cs index b125f9e304..448a616838 100644 --- a/Projectiles/Boss/ProvidenceCrystalShard.cs +++ b/Projectiles/Boss/ProvidenceCrystalShard.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ProvidenceCrystalShard : ModProjectile { diff --git a/Projectiles/Boss/ProvidenceHolyRay.cs b/Projectiles/Boss/ProvidenceHolyRay.cs index 663be92433..124784b235 100644 --- a/Projectiles/Boss/ProvidenceHolyRay.cs +++ b/Projectiles/Boss/ProvidenceHolyRay.cs @@ -5,9 +5,9 @@ using System; using System.IO; using Terraria; using Terraria.Enums; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ProvidenceHolyRay : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Boss projectile.velocity = -Vector2.UnitY; } - if (Main.npc[(int)projectile.ai[1]].active && Main.npc[(int)projectile.ai[1]].type == mod.NPCType("Providence")) + if (Main.npc[(int)projectile.ai[1]].active && Main.npc[(int)projectile.ai[1]].type == ModContent.NPCType()) { Vector2 value21 = new Vector2(27f, 59f); Vector2 fireFrom = new Vector2(Main.npc[(int)projectile.ai[1]].Center.X, Main.npc[(int)projectile.ai[1]].Center.Y - 32f); @@ -204,7 +204,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Boss/RavagerFlame.cs b/Projectiles/Boss/RavagerFlame.cs index 3642da1765..b2d50f7c1f 100644 --- a/Projectiles/Boss/RavagerFlame.cs +++ b/Projectiles/Boss/RavagerFlame.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class RavagerFlame : ModProjectile { diff --git a/Projectiles/Boss/RedLightningFeather.cs b/Projectiles/Boss/RedLightningFeather.cs index a0a2ec5010..70a507cc5b 100644 --- a/Projectiles/Boss/RedLightningFeather.cs +++ b/Projectiles/Boss/RedLightningFeather.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class RedLightningFeather : ModProjectile { diff --git a/Projectiles/Boss/SandBlast.cs b/Projectiles/Boss/SandBlast.cs index f38d82234b..591756b2a1 100644 --- a/Projectiles/Boss/SandBlast.cs +++ b/Projectiles/Boss/SandBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SandBlast : ModProjectile { diff --git a/Projectiles/Boss/SandPoisonCloud.cs b/Projectiles/Boss/SandPoisonCloud.cs index 11f3a41330..b6b1d20795 100644 --- a/Projectiles/Boss/SandPoisonCloud.cs +++ b/Projectiles/Boss/SandPoisonCloud.cs @@ -1,9 +1,9 @@ using CalamityMod.World; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SandPoisonCloud : ModProjectile { diff --git a/Projectiles/Boss/SandTooth.cs b/Projectiles/Boss/SandTooth.cs index 3ba66f24db..b32145b742 100644 --- a/Projectiles/Boss/SandTooth.cs +++ b/Projectiles/Boss/SandTooth.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SandTooth : ModProjectile { diff --git a/Projectiles/Boss/ScavengerLaser.cs b/Projectiles/Boss/ScavengerLaser.cs index 382c825016..c690a951c3 100644 --- a/Projectiles/Boss/ScavengerLaser.cs +++ b/Projectiles/Boss/ScavengerLaser.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ScavengerLaser : ModProjectile { diff --git a/Projectiles/Boss/ScavengerNuke.cs b/Projectiles/Boss/ScavengerNuke.cs index b6c3098389..bb5a641114 100644 --- a/Projectiles/Boss/ScavengerNuke.cs +++ b/Projectiles/Boss/ScavengerNuke.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ScavengerNuke : ModProjectile { diff --git a/Projectiles/Boss/ShadeNimbusHostile.cs b/Projectiles/Boss/ShadeNimbusHostile.cs index 295c47572a..0d9dc10cd8 100644 --- a/Projectiles/Boss/ShadeNimbusHostile.cs +++ b/Projectiles/Boss/ShadeNimbusHostile.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ShadeNimbusHostile : ModProjectile { @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Boss projectile.ai[0] = 0f; int num414 = (int)(projectile.position.X + 14f + (float)Main.rand.Next(projectile.width - 28)); int num415 = (int)(projectile.position.Y + (float)projectile.height + 4f); - Projectile.NewProjectile((float)num414, (float)num415, 0f, 5f, mod.ProjectileType("ShaderainHostile"), projectile.damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)num414, (float)num415, 0f, 5f, ModContent.ProjectileType(), projectile.damage, 0f, Main.myPlayer, 0f, 0f); } } } diff --git a/Projectiles/Boss/ShaderainHostile.cs b/Projectiles/Boss/ShaderainHostile.cs index e1a61fc4ca..fb6836a08b 100644 --- a/Projectiles/Boss/ShaderainHostile.cs +++ b/Projectiles/Boss/ShaderainHostile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class ShaderainHostile : ModProjectile { diff --git a/Projectiles/Boss/Shadowflame.cs b/Projectiles/Boss/Shadowflame.cs index 7df339a809..764e34dc0f 100644 --- a/Projectiles/Boss/Shadowflame.cs +++ b/Projectiles/Boss/Shadowflame.cs @@ -1,11 +1,11 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { - public class Shadowflame : ModProjectile + public class ShadowflameFireball : ModProjectile { public override void SetStaticDefaults() { @@ -66,11 +66,11 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { if (Main.rand.NextBool(6)) - target.AddBuff(mod.BuffType("Shadowflame"), 180, true); + target.AddBuff(ModContent.BuffType(), 180, true); else if (Main.rand.NextBool(4)) - target.AddBuff(mod.BuffType("Shadowflame"), 120, true); + target.AddBuff(ModContent.BuffType(), 120, true); else if (Main.rand.NextBool(2)) - target.AddBuff(mod.BuffType("Shadowflame"), 60, true); + target.AddBuff(ModContent.BuffType(), 60, true); } public override void Kill(int timeLeft) diff --git a/Projectiles/Boss/Shadowflamethrower.cs b/Projectiles/Boss/Shadowflamethrower.cs index 1dc9237ac3..35a9662aa6 100644 --- a/Projectiles/Boss/Shadowflamethrower.cs +++ b/Projectiles/Boss/Shadowflamethrower.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class Shadowflamethrower : ModProjectile { @@ -69,11 +69,11 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { if (Main.rand.NextBool(6)) - target.AddBuff(mod.BuffType("Shadowflame"), 240, true); + target.AddBuff(ModContent.BuffType(), 240, true); else if (Main.rand.NextBool(4)) - target.AddBuff(mod.BuffType("Shadowflame"), 150, true); + target.AddBuff(ModContent.BuffType(), 150, true); else if (Main.rand.NextBool(2)) - target.AddBuff(mod.BuffType("Shadowflame"), 90, true); + target.AddBuff(ModContent.BuffType(), 90, true); } } } diff --git a/Projectiles/Boss/SignusScythe.cs b/Projectiles/Boss/SignusScythe.cs index 33f0fde7cb..7e06b22b66 100644 --- a/Projectiles/Boss/SignusScythe.cs +++ b/Projectiles/Boss/SignusScythe.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SignusScythe : ModProjectile { @@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("WhisperingDeath"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void Kill(int timeLeft) diff --git a/Projectiles/Boss/SirenSong.cs b/Projectiles/Boss/SirenSong.cs index e01d2de80e..eb9d8366e8 100644 --- a/Projectiles/Boss/SirenSong.cs +++ b/Projectiles/Boss/SirenSong.cs @@ -2,9 +2,9 @@ using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SirenSong : ModProjectile { diff --git a/Projectiles/Boss/SkyFlare.cs b/Projectiles/Boss/SkyFlare.cs index 0bbbb18cac..2286e9285b 100644 --- a/Projectiles/Boss/SkyFlare.cs +++ b/Projectiles/Boss/SkyFlare.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SkyFlare : ModProjectile { @@ -110,13 +110,13 @@ namespace CalamityMod.Projectiles.Boss if (tornadoType < 5) { int num235 = Main.expertMode ? 180 : 300; //720 - int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, mod.ProjectileType("Flarenado"), num235, 4f, Main.myPlayer, 16f, 15f + (revenge ? 4f : 0f)); + int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, ModContent.ProjectileType(), num235, 4f, Main.myPlayer, 16f, 15f + (revenge ? 4f : 0f)); Main.projectile[num236].netUpdate = true; } else { int num235 = Main.expertMode ? 230 : 400; //920 - int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, mod.ProjectileType("Infernado"), num235, 4f, Main.myPlayer, 16f, 16f + (revenge ? 4f : 0f)); + int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, ModContent.ProjectileType(), num235, 4f, Main.myPlayer, 16f, 16f + (revenge ? 4f : 0f)); Main.projectile[num236].netUpdate = true; } } diff --git a/Projectiles/Boss/SkyFlareRevenge.cs b/Projectiles/Boss/SkyFlareRevenge.cs index 41fa2f11ed..7a020055cc 100644 --- a/Projectiles/Boss/SkyFlareRevenge.cs +++ b/Projectiles/Boss/SkyFlareRevenge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SkyFlareRevenge : ModProjectile { @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.owner == Main.myPlayer) { int num235 = 100; - int num236 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("InfernadoRevenge"), num235, 4f, Main.myPlayer, 16f, 50f); + int num236 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), num235, 4f, Main.myPlayer, 16f, 50f); Main.projectile[num236].netUpdate = true; } } diff --git a/Projectiles/Boss/SporeGasPlantera.cs b/Projectiles/Boss/SporeGasPlantera.cs index a04f24ce06..3a553be31c 100644 --- a/Projectiles/Boss/SporeGasPlantera.cs +++ b/Projectiles/Boss/SporeGasPlantera.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class SporeGasPlantera : ModProjectile { diff --git a/Projectiles/Boss/VileClot.cs b/Projectiles/Boss/VileClot.cs index c6a95e702f..8e60424ee3 100644 --- a/Projectiles/Boss/VileClot.cs +++ b/Projectiles/Boss/VileClot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class VileClot : ModProjectile { diff --git a/Projectiles/Boss/WaterSpear.cs b/Projectiles/Boss/WaterSpear.cs index e50dea16fe..3717d2f35a 100644 --- a/Projectiles/Boss/WaterSpear.cs +++ b/Projectiles/Boss/WaterSpear.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class WaterSpear : ModProjectile { diff --git a/Projectiles/Boss/YharonFireball.cs b/Projectiles/Boss/YharonFireball.cs index 4cf1b5884c..4da8cc8a3d 100644 --- a/Projectiles/Boss/YharonFireball.cs +++ b/Projectiles/Boss/YharonFireball.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class YharonFireball : ModProjectile { @@ -84,12 +84,12 @@ namespace CalamityMod.Projectiles.Boss { for (int x = 0; x < 3; x++) { - Projectile.NewProjectile((int)projectile.Center.X, (int)projectile.Center.Y, speedX, -50f, mod.ProjectileType("YharonFireball2"), projectile.damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)projectile.Center.X, (int)projectile.Center.Y, speedX, -50f, ModContent.ProjectileType(), projectile.damage, 0f, Main.myPlayer, 0f, 0f); speedX += 3f; } for (int x = 0; x < 2; x++) { - Projectile.NewProjectile((int)projectile.Center.X, (int)projectile.Center.Y, speedX2, -75f, mod.ProjectileType("YharonFireball2"), projectile.damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)projectile.Center.X, (int)projectile.Center.Y, speedX2, -75f, ModContent.ProjectileType(), projectile.damage, 0f, Main.myPlayer, 0f, 0f); speedX2 += 10f; } } diff --git a/Projectiles/Boss/YharonFireball2.cs b/Projectiles/Boss/YharonFireball2.cs index 2ac638ec59..538636e39e 100644 --- a/Projectiles/Boss/YharonFireball2.cs +++ b/Projectiles/Boss/YharonFireball2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Boss +namespace CalamityMod.Projectiles { public class YharonFireball2 : ModProjectile { diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 9347ce470c..d32d3f3445 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Projectiles { @@ -497,12 +497,12 @@ namespace CalamityMod.Projectiles if (projectile.type == ProjectileID.NettleBurstRight || projectile.type == ProjectileID.NettleBurstLeft || projectile.type == ProjectileID.NettleBurstEnd) { - if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("ThornBlossom")) + if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == ModContent.ItemType()) projectile.penetrate = 1; } else if (projectile.type == ProjectileID.VilethornBase || projectile.type == ProjectileID.VilethornTip) { - if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("FeralthornClaymore")) + if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == ModContent.ItemType()) { projectile.melee = true; projectile.magic = false; @@ -553,8 +553,8 @@ namespace CalamityMod.Projectiles { if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ProjectileID.Mushroom] < 30) { - if (projectile.type == mod.ProjectileType("Nebulash") || projectile.type == mod.ProjectileType("CosmicDischarge") || - projectile.type == mod.ProjectileType("Mourningstar") || projectile.type == ProjectileID.SolarWhipSword) + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || + projectile.type == ModContent.ProjectileType() || projectile.type == ProjectileID.SolarWhipSword) { Vector2 vector24 = Main.OffsetsPlayerOnhand[Main.player[projectile.owner].bodyFrame.Y / 56] * 2f; if (Main.player[projectile.owner].direction != 1) @@ -579,26 +579,26 @@ namespace CalamityMod.Projectiles } } - if (Main.player[projectile.owner].Calamity().nanotech && rogue && projectile.friendly && projectile.type != mod.ProjectileType("MoonSigil") && projectile.type != mod.ProjectileType("DragonShit")) + if (Main.player[projectile.owner].Calamity().nanotech && rogue && projectile.friendly && projectile.type != ModContent.ProjectileType() && projectile.type != ModContent.ProjectileType()) { if (counter % 30 == 0) { - if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("Nanotech")] < 30) + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 30) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Nanotech"), + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.15), 0f, projectile.owner, 0f, 0f); } } } - if (Main.player[projectile.owner].Calamity().dragonScales && rogue && projectile.friendly && projectile.type != mod.ProjectileType("Nanotech")) + if (Main.player[projectile.owner].Calamity().dragonScales && rogue && projectile.friendly && projectile.type != ModContent.ProjectileType()) { if (counter % 50 == 0) { - if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("DragonShit")] < 15) + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 15) { //spawn a dust that does 1/5th of the original damage - int projectileID = Projectile.NewProjectile(projectile.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi), mod.ProjectileType("DragonShit"), + int projectileID = Projectile.NewProjectile(projectile.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f); } } @@ -654,7 +654,7 @@ namespace CalamityMod.Projectiles //Summon moon sigils infrequently if (Main.rand.NextBool(300)) { - Projectile.NewProjectile(projectile.position, Vector2.Zero, mod.ProjectileType("MoonSigil"), (int)((double)projectile.damage * 0.05), 0); + Projectile.NewProjectile(projectile.position, Vector2.Zero, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.05), 0); } } } @@ -696,7 +696,7 @@ namespace CalamityMod.Projectiles { if (projectile.owner == Main.myPlayer) { - if (projectile.Calamity().rogue && projectile.Calamity().stealthStrike && Main.player[projectile.owner].Calamity().dragonScales && CalamityUtils.CountProjectiles(mod.ProjectileType("InfernadoFriendly")) < 2) + if (projectile.Calamity().rogue && projectile.Calamity().stealthStrike && Main.player[projectile.owner].Calamity().dragonScales && CalamityUtils.CountProjectiles(ModContent.ProjectileType()) < 2) { int projTileX = (int)(projectile.Center.X / 16f); int projTileY = (int)(projectile.Center.Y / 16f); @@ -726,7 +726,7 @@ namespace CalamityMod.Projectiles break; } } - int projectileIndex = Projectile.NewProjectile((float)(projTileX * 16 + 8), (float)(projTileY * 16 - 24), 0f, 0f, mod.ProjectileType("InfernadoFriendly"), 420, 15f, Main.myPlayer, 16f, 16f); + int projectileIndex = Projectile.NewProjectile((float)(projTileX * 16 + 8), (float)(projTileY * 16 - 24), 0f, 0f, ModContent.ProjectileType(), 420, 15f, Main.myPlayer, 16f, 16f); Main.projectile[projectileIndex].Calamity().forceRogue = true; Main.projectile[projectileIndex].netUpdate = true; } @@ -754,14 +754,14 @@ namespace CalamityMod.Projectiles if (Main.player[projectile.owner].Calamity().alchFlask && (projectile.magic || rogue || projectile.melee || projectile.minion || projectile.ranged || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type)) && - Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("PlagueSeeker")] < 6) + Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 6) { int newDamage = (int)((double)projectile.damage * 0.25); if (newDamage > 30) { newDamage = 30; } - int plague = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("PlagueSeeker"), newDamage, 0f, projectile.owner, 0f, 0f); + int plague = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); Main.projectile[plague].melee = false; } @@ -772,7 +772,7 @@ namespace CalamityMod.Projectiles { newDamage = 30; } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ReaverBlast"), newDamage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); } if (Main.player[projectile.owner].Calamity().auricSet && target.canGhostHeal) @@ -807,7 +807,7 @@ namespace CalamityMod.Projectiles } } } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("AuricOrb"), 0, 0f, projectile.owner, (float)num14, num12); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num14, num12); } else if (Main.player[projectile.owner].Calamity().silvaSet && target.canGhostHeal) { @@ -841,7 +841,7 @@ namespace CalamityMod.Projectiles } } } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("SilvaOrb"), 0, 0f, projectile.owner, (float)num14, num12); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num14, num12); } if (projectile.magic) @@ -971,7 +971,7 @@ namespace CalamityMod.Projectiles num10 = num7 / num10; num8 *= num10; num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("AtaxiaOrb"), (int)((double)num * 1.25), 0f, projectile.owner, (float)num6, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType(), (int)((double)num * 1.25), 0f, projectile.owner, (float)num6, 0f); if (target.canGhostHeal) { float num11 = 0.1f; //0.2 @@ -1004,7 +1004,7 @@ namespace CalamityMod.Projectiles } } } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("AtaxiaHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num14, num12); } } else if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].Calamity().xerocDmg <= 0) @@ -1054,7 +1054,7 @@ namespace CalamityMod.Projectiles num10 = num7 / num10; num8 *= num10; num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("XerocOrb"), (int)((double)num * 1.25), 0f, projectile.owner, (float)num6, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType(), (int)((double)num * 1.25), 0f, projectile.owner, (float)num6, 0f); if (target.canGhostHeal) { float num11 = 0.1f; @@ -1087,7 +1087,7 @@ namespace CalamityMod.Projectiles } } } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num14, num12); } } else if (Main.player[projectile.owner].Calamity().godSlayerMage && Main.player[projectile.owner].Calamity().godSlayerDmg <= 0) @@ -1137,7 +1137,7 @@ namespace CalamityMod.Projectiles num10 = num7 / num10; num8 *= num10; num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("GodSlayerOrb"), + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType(), (int)((double)num * (Main.player[projectile.owner].Calamity().auricSet ? 2.0 : 1.5)), 0f, projectile.owner, (float)num6, 0f); if (target.canGhostHeal) { @@ -1171,41 +1171,41 @@ namespace CalamityMod.Projectiles } } } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("GodSlayerHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num14, num12); } } } else if (projectile.melee) { - if (Main.player[projectile.owner].Calamity().ataxiaGeyser && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("ChaosGeyser")] < 3) + if (Main.player[projectile.owner].Calamity().ataxiaGeyser && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 3) { int newDamage = (int)((double)projectile.damage * 0.15); if (newDamage > 35) { newDamage = 35; } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ChaosGeyser"), newDamage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); } - else if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("XerocBlast")] < 3) + else if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 3) { int newDamage = (int)((double)projectile.damage * 0.2); if (newDamage > 40) { newDamage = 40; } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocBlast"), newDamage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); } } else if (projectile.ranged) { - if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("XerocFire")] < 3) + if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 3) { int newDamage = (int)((double)projectile.damage * 0.15); if (newDamage > 40) { newDamage = 40; } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocFire"), newDamage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); } } else if (rogue) @@ -1257,7 +1257,7 @@ namespace CalamityMod.Projectiles num10 = num7 / num10; num8 *= num10; num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("XerocStar"), (int)((double)num * 1.6), 0f, projectile.owner, (float)num6, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType(), (int)((double)num * 1.6), 0f, projectile.owner, (float)num6, 0f); } if (Main.player[projectile.owner].Calamity().featherCrown && stealthStrike) @@ -1267,7 +1267,7 @@ namespace CalamityMod.Projectiles Vector2 pos = new Vector2(target.position.X + (float)target.width * 0.5f + (float)Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50)); float speedX = (target.position.X - pos.X) / 30f; float speedY = (target.position.Y - pos.Y) * 8; - int feather = Projectile.NewProjectile(pos.X, pos.Y, speedX, speedY, mod.ProjectileType("StickyFeather"), 15, 3, projectile.owner, 0f, (float)Main.rand.Next(15)); + int feather = Projectile.NewProjectile(pos.X, pos.Y, speedX, speedY, ModContent.ProjectileType(), 15, 3, projectile.owner, 0f, (float)Main.rand.Next(15)); Main.projectile[feather].magic = false; Main.projectile[feather].Calamity().rogue = true; } @@ -1289,12 +1289,12 @@ namespace CalamityMod.Projectiles { if (Main.player[projectile.owner].Calamity().pArtifact) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } if (Main.player[projectile.owner].Calamity().tearMinions) { - target.AddBuff(mod.BuffType("TemporalSadness"), 60); + target.AddBuff(ModContent.BuffType(), 60); } if (Main.player[projectile.owner].Calamity().shadowMinions) @@ -1350,7 +1350,7 @@ namespace CalamityMod.Projectiles num10 = num7 / num10; num8 *= num10; num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("GodSlayerPhantom"), (int)((double)num * 2.0), 0f, projectile.owner, 0f, ai1); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType(), (int)((double)num * 2.0), 0f, projectile.owner, 0f, ai1); } else if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].Calamity().xerocDmg <= 0) { @@ -1399,7 +1399,7 @@ namespace CalamityMod.Projectiles num10 = num7 / num10; num8 *= num10; num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("XerocBubble"), (int)((double)num * 1.2), 0f, projectile.owner, (float)num6, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType(), (int)((double)num * 1.2), 0f, projectile.owner, (float)num6, 0f); } } } @@ -1586,7 +1586,7 @@ namespace CalamityMod.Projectiles { newDamage = 65; } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("TarraEnergy"), newDamage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Enemy/AstralShot.cs b/Projectiles/Enemy/AstralShot.cs index edfbadfbd9..9172a8efb9 100644 --- a/Projectiles/Enemy/AstralShot.cs +++ b/Projectiles/Enemy/AstralShot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class AstralShot : ModProjectile { diff --git a/Projectiles/Enemy/CrimsonSpike.cs b/Projectiles/Enemy/CrimsonSpike.cs index 8f6730b379..882c1e2a5e 100644 --- a/Projectiles/Enemy/CrimsonSpike.cs +++ b/Projectiles/Enemy/CrimsonSpike.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class CrimsonSpike : ModProjectile { diff --git a/Projectiles/Enemy/EarthRockBig.cs b/Projectiles/Enemy/EarthRockBig.cs index aae6a646ad..207bd533f3 100644 --- a/Projectiles/Enemy/EarthRockBig.cs +++ b/Projectiles/Enemy/EarthRockBig.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class EarthRockBig : ModProjectile { diff --git a/Projectiles/Enemy/EarthRockSmall.cs b/Projectiles/Enemy/EarthRockSmall.cs index 1c30e464b0..c2b85c97c0 100644 --- a/Projectiles/Enemy/EarthRockSmall.cs +++ b/Projectiles/Enemy/EarthRockSmall.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class EarthRockSmall : ModProjectile { diff --git a/Projectiles/Enemy/FlameBurstHostile.cs b/Projectiles/Enemy/FlameBurstHostile.cs index 88a6d9faf3..5c1f7df233 100644 --- a/Projectiles/Enemy/FlameBurstHostile.cs +++ b/Projectiles/Enemy/FlameBurstHostile.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class FlameBurstHostile : ModProjectile { diff --git a/Projectiles/Enemy/HorsWaterBlast.cs b/Projectiles/Enemy/HorsWaterBlast.cs index 062afd791d..a6e442fb6d 100644 --- a/Projectiles/Enemy/HorsWaterBlast.cs +++ b/Projectiles/Enemy/HorsWaterBlast.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class HorsWaterBlast : ModProjectile { diff --git a/Projectiles/Enemy/InkBomb.cs b/Projectiles/Enemy/InkBomb.cs index 2a2da126c9..fadaf70564 100644 --- a/Projectiles/Enemy/InkBomb.cs +++ b/Projectiles/Enemy/InkBomb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class InkBomb : ModProjectile { @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Enemy Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); vector15.Normalize(); vector15 *= (float)Main.rand.Next(50, 401) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, mod.ProjectileType("InkPoisonCloud") + Main.rand.Next(3), (int)((double)projectile.damage * 0.66), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType() + Main.rand.Next(3), (int)((double)projectile.damage * 0.66), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); num3 = num321; } } diff --git a/Projectiles/Enemy/InkPoisonCloud.cs b/Projectiles/Enemy/InkPoisonCloud.cs index d9bc656bd4..b8eee01e57 100644 --- a/Projectiles/Enemy/InkPoisonCloud.cs +++ b/Projectiles/Enemy/InkPoisonCloud.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class InkPoisonCloud : ModProjectile { diff --git a/Projectiles/Enemy/InkPoisonCloud2.cs b/Projectiles/Enemy/InkPoisonCloud2.cs index 467b45b6ec..0f93df5bfe 100644 --- a/Projectiles/Enemy/InkPoisonCloud2.cs +++ b/Projectiles/Enemy/InkPoisonCloud2.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class InkPoisonCloud2 : ModProjectile { diff --git a/Projectiles/Enemy/InkPoisonCloud3.cs b/Projectiles/Enemy/InkPoisonCloud3.cs index 40b43c2d32..a48495ebfe 100644 --- a/Projectiles/Enemy/InkPoisonCloud3.cs +++ b/Projectiles/Enemy/InkPoisonCloud3.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class InkPoisonCloud3 : ModProjectile { diff --git a/Projectiles/Enemy/LavaChunk.cs b/Projectiles/Enemy/LavaChunk.cs index 104930847b..2adbf66aa4 100644 --- a/Projectiles/Enemy/LavaChunk.cs +++ b/Projectiles/Enemy/LavaChunk.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class LavaChunk : ModProjectile { diff --git a/Projectiles/Enemy/MantisRing.cs b/Projectiles/Enemy/MantisRing.cs index a70308dc0a..b97c4ff904 100644 --- a/Projectiles/Enemy/MantisRing.cs +++ b/Projectiles/Enemy/MantisRing.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class MantisRing : ModProjectile { @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Enemy Vector2 off = angleVec * distance; off.Y *= (float)projectile.height / projectile.width; Vector2 pos = projectile.Center + off; - Dust d = Dust.NewDustPerfect(pos, mod.DustType("AstralBlue"), angleVec * Main.rand.NextFloat(2f, 4f)); + Dust d = Dust.NewDustPerfect(pos, ModContent.DustType(), angleVec * Main.rand.NextFloat(2f, 4f)); d.customData = true; } } @@ -65,13 +65,13 @@ namespace CalamityMod.Projectiles.Enemy Vector2 off = angle.ToRotationVector2() * distance; off.Y *= (float)projectile.height / projectile.width; Vector2 pos = projectile.Center + off; - Dust.NewDustPerfect(pos, mod.DustType("AstralBlue"), Vector2.Zero); + Dust.NewDustPerfect(pos, ModContent.DustType(), Vector2.Zero); } } public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Enemy/PufferExplosion.cs b/Projectiles/Enemy/PufferExplosion.cs index 78475feca1..4e05ce69fb 100644 --- a/Projectiles/Enemy/PufferExplosion.cs +++ b/Projectiles/Enemy/PufferExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class PufferExplosion : ModProjectile { diff --git a/Projectiles/Enemy/StormMarkHostile.cs b/Projectiles/Enemy/StormMarkHostile.cs index f32c2e59eb..ea7cbe75e6 100644 --- a/Projectiles/Enemy/StormMarkHostile.cs +++ b/Projectiles/Enemy/StormMarkHostile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class StormMarkHostile : ModProjectile { @@ -129,7 +129,7 @@ namespace CalamityMod.Projectiles.Enemy { num1137 = 25; } - Projectile.NewProjectile(projectile.Center, Vector2.Zero, mod.ProjectileType("TornadoHostile"), num1137, 3f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), num1137, 3f, projectile.owner, 0f, 0f); } if (projectile.localAI[1] >= 120f) { diff --git a/Projectiles/Enemy/SulphuricAcidCannon.cs b/Projectiles/Enemy/SulphuricAcidCannon.cs index c5e87b71d4..c78b7c4ed5 100644 --- a/Projectiles/Enemy/SulphuricAcidCannon.cs +++ b/Projectiles/Enemy/SulphuricAcidCannon.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class SulphuricAcidCannon : ModProjectile { diff --git a/Projectiles/Enemy/SulphuricAcidMist.cs b/Projectiles/Enemy/SulphuricAcidMist.cs index e3bef3ad7e..2212976680 100644 --- a/Projectiles/Enemy/SulphuricAcidMist.cs +++ b/Projectiles/Enemy/SulphuricAcidMist.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class SulphuricAcidMist : ModProjectile { diff --git a/Projectiles/Enemy/TornadoHostile.cs b/Projectiles/Enemy/TornadoHostile.cs index c947db2f19..cc081878f5 100644 --- a/Projectiles/Enemy/TornadoHostile.cs +++ b/Projectiles/Enemy/TornadoHostile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class TornadoHostile : ModProjectile { diff --git a/Projectiles/Enemy/ToxicMinnowCloud.cs b/Projectiles/Enemy/ToxicMinnowCloud.cs index e30c3c59d5..df14ae054a 100644 --- a/Projectiles/Enemy/ToxicMinnowCloud.cs +++ b/Projectiles/Enemy/ToxicMinnowCloud.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Enemy +namespace CalamityMod.Projectiles { public class ToxicMinnowCloud : ModProjectile { diff --git a/Projectiles/Healing/AtaxiaHealOrb.cs b/Projectiles/Healing/AtaxiaHealOrb.cs index 9c582a37fc..7aea8a9874 100644 --- a/Projectiles/Healing/AtaxiaHealOrb.cs +++ b/Projectiles/Healing/AtaxiaHealOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class AtaxiaHealOrb : ModProjectile { diff --git a/Projectiles/Healing/AuricOrb.cs b/Projectiles/Healing/AuricOrb.cs index cb0daa3e39..91d097dcb8 100644 --- a/Projectiles/Healing/AuricOrb.cs +++ b/Projectiles/Healing/AuricOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class AuricOrb : ModProjectile { diff --git a/Projectiles/Healing/BurntSienna.cs b/Projectiles/Healing/BurntSienna.cs index ff37b6ddcd..672ffff5a4 100644 --- a/Projectiles/Healing/BurntSienna.cs +++ b/Projectiles/Healing/BurntSienna.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class BurntSienna : ModProjectile { diff --git a/Projectiles/Healing/CactusHealOrb.cs b/Projectiles/Healing/CactusHealOrb.cs index 396d3c69a3..0c7b8f203a 100644 --- a/Projectiles/Healing/CactusHealOrb.cs +++ b/Projectiles/Healing/CactusHealOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class CactusHealOrb : ModProjectile { diff --git a/Projectiles/Healing/EarthHealOrb.cs b/Projectiles/Healing/EarthHealOrb.cs index 2c3e14ab23..d7760938aa 100644 --- a/Projectiles/Healing/EarthHealOrb.cs +++ b/Projectiles/Healing/EarthHealOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class EarthHealOrb : ModProjectile { diff --git a/Projectiles/Healing/EssenceFlame.cs b/Projectiles/Healing/EssenceFlame.cs index f2a2f7910b..6cb7f334f6 100644 --- a/Projectiles/Healing/EssenceFlame.cs +++ b/Projectiles/Healing/EssenceFlame.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class EssenceFlame : ModProjectile { diff --git a/Projectiles/Healing/Exoheal.cs b/Projectiles/Healing/Exoheal.cs index a00b05815e..f397e03467 100644 --- a/Projectiles/Healing/Exoheal.cs +++ b/Projectiles/Healing/Exoheal.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class Exoheal : ModProjectile { diff --git a/Projectiles/Healing/FungalHeal.cs b/Projectiles/Healing/FungalHeal.cs index e51142de11..5e4b851ea7 100644 --- a/Projectiles/Healing/FungalHeal.cs +++ b/Projectiles/Healing/FungalHeal.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class FungalHeal : ModProjectile { diff --git a/Projectiles/Healing/GodSlayerHealOrb.cs b/Projectiles/Healing/GodSlayerHealOrb.cs index 0d51278ed9..14a57c24ff 100644 --- a/Projectiles/Healing/GodSlayerHealOrb.cs +++ b/Projectiles/Healing/GodSlayerHealOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class GodSlayerHealOrb : ModProjectile { diff --git a/Projectiles/Healing/PhoenixHeal.cs b/Projectiles/Healing/PhoenixHeal.cs index 93116092c6..b83bf8174b 100644 --- a/Projectiles/Healing/PhoenixHeal.cs +++ b/Projectiles/Healing/PhoenixHeal.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class PhoenixHeal : ModProjectile { diff --git a/Projectiles/Healing/RainHeal.cs b/Projectiles/Healing/RainHeal.cs index 376d42a674..a37f8afe94 100644 --- a/Projectiles/Healing/RainHeal.cs +++ b/Projectiles/Healing/RainHeal.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class RainHeal : ModProjectile { diff --git a/Projectiles/Healing/RoyalHeal.cs b/Projectiles/Healing/RoyalHeal.cs index 3687d51cd2..e848383f83 100644 --- a/Projectiles/Healing/RoyalHeal.cs +++ b/Projectiles/Healing/RoyalHeal.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class RoyalHeal : ModProjectile { diff --git a/Projectiles/Healing/SilvaOrb.cs b/Projectiles/Healing/SilvaOrb.cs index fd257bd03e..a126014846 100644 --- a/Projectiles/Healing/SilvaOrb.cs +++ b/Projectiles/Healing/SilvaOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class SilvaOrb : ModProjectile { diff --git a/Projectiles/Healing/Terracotta.cs b/Projectiles/Healing/Terracotta.cs index 3f80bd0f92..254661bacb 100644 --- a/Projectiles/Healing/Terracotta.cs +++ b/Projectiles/Healing/Terracotta.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class Terracotta : ModProjectile { diff --git a/Projectiles/Healing/TransfusionTrail.cs b/Projectiles/Healing/TransfusionTrail.cs index 54563cc332..07aa9c9e0c 100644 --- a/Projectiles/Healing/TransfusionTrail.cs +++ b/Projectiles/Healing/TransfusionTrail.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class TransfusionTrail : ModProjectile { diff --git a/Projectiles/Healing/XerocHealOrb.cs b/Projectiles/Healing/XerocHealOrb.cs index 98ce7f2e10..c7f6505151 100644 --- a/Projectiles/Healing/XerocHealOrb.cs +++ b/Projectiles/Healing/XerocHealOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Healing +namespace CalamityMod.Projectiles { public class XerocHealOrb : ModProjectile { diff --git a/Projectiles/Magic/AbyssBall.cs b/Projectiles/Magic/AbyssBall.cs index b00de9e6ce..776e0e5702 100644 --- a/Projectiles/Magic/AbyssBall.cs +++ b/Projectiles/Magic/AbyssBall.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AbyssBall : ModProjectile { diff --git a/Projectiles/Magic/AetherBeam.cs b/Projectiles/Magic/AetherBeam.cs index 4066357a0e..84ef65313b 100644 --- a/Projectiles/Magic/AetherBeam.cs +++ b/Projectiles/Magic/AetherBeam.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AetherBeam : ModProjectile { @@ -124,8 +124,8 @@ namespace CalamityMod.Projectiles.Magic for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int proj1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("AetherBeam"), projectile.damage, projectile.knockBack, projectile.owner, projectile.ai[0], 1f); - int proj2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("AetherBeam"), projectile.damage, projectile.knockBack, projectile.owner, projectile.ai[0], 1f); + int proj1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, projectile.ai[0], 1f); + int proj2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, projectile.ai[0], 1f); } } } diff --git a/Projectiles/Magic/Ancient.cs b/Projectiles/Magic/Ancient.cs index 36bf2b963c..2c73ce87f9 100644 --- a/Projectiles/Magic/Ancient.cs +++ b/Projectiles/Magic/Ancient.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Ancient : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("Ancient2"), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } addDustTimer = 0; diff --git a/Projectiles/Magic/Ancient2.cs b/Projectiles/Magic/Ancient2.cs index 63d34348e6..0de56d480e 100644 --- a/Projectiles/Magic/Ancient2.cs +++ b/Projectiles/Magic/Ancient2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Ancient2 : ModProjectile { diff --git a/Projectiles/Magic/ApothChloro.cs b/Projectiles/Magic/ApothChloro.cs index 541bf38e9a..83f7ac088d 100644 --- a/Projectiles/Magic/ApothChloro.cs +++ b/Projectiles/Magic/ApothChloro.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ApothChloro : ModProjectile { @@ -115,8 +115,8 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 600, true); - target.AddBuff(mod.BuffType("DemonFlames"), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); } } } diff --git a/Projectiles/Magic/ApothJaws.cs b/Projectiles/Magic/ApothJaws.cs index e5d1b2f35c..49a3df83eb 100644 --- a/Projectiles/Magic/ApothJaws.cs +++ b/Projectiles/Magic/ApothJaws.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ApothJaws : ModProjectile { @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Magic double angle = (double)Main.rand.Next(360) * Math.PI / 180; float offsetX = projectile.position.X + (float)Main.rand.Next((int)projectile.width); float offsetY = projectile.position.Y + (float)Main.rand.Next((int)projectile.height); - Projectile.NewProjectile(offsetX, offsetY, 14 * (float)Math.Cos(angle), 14 * (float)Math.Sin(angle), mod.ProjectileType("ApothChloro"), projectile.damage, projectile.knockBack / 2, Main.myPlayer); + Projectile.NewProjectile(offsetX, offsetY, 14 * (float)Math.Cos(angle), 14 * (float)Math.Sin(angle), ModContent.ProjectileType(), projectile.damage, projectile.knockBack / 2, Main.myPlayer); } if (projectile.timeLeft < 30) projectile.alpha = projectile.alpha + 6; @@ -66,12 +66,12 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 600, true); - target.AddBuff(mod.BuffType("DemonFlames"), 600, true); - target.AddBuff(mod.BuffType("ArmorCrunch"), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); if (Main.rand.NextBool(30)) { - target.AddBuff(mod.BuffType("ExoFreeze"), 120, true); + target.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/Projectiles/Magic/ApothMark.cs b/Projectiles/Magic/ApothMark.cs index f9812b156e..3fa93595b6 100644 --- a/Projectiles/Magic/ApothMark.cs +++ b/Projectiles/Magic/ApothMark.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ApothMark : ModProjectile { @@ -43,22 +43,22 @@ namespace CalamityMod.Projectiles.Magic double offsetRotation = Math.Atan2(-38, 48) + (double)projectile.rotation; double offsetX = offsetHyp * Math.Cos(offsetRotation); double offsetY = offsetHyp * Math.Sin(offsetRotation); - Projectile.NewProjectile(projectile.Center.X + (float)offsetX, projectile.Center.Y + (float)offsetY, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("ApothJaws"), projectile.damage, projectile.knockBack, Main.myPlayer, projectile.rotation, 0f); + Projectile.NewProjectile(projectile.Center.X + (float)offsetX, projectile.Center.Y + (float)offsetY, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, Main.myPlayer, projectile.rotation, 0f); offsetRotation = Math.Atan2(38, 48) + (double)projectile.rotation; offsetX = offsetHyp * Math.Cos(offsetRotation); offsetY = offsetHyp * Math.Sin(offsetRotation); - Projectile.NewProjectile(projectile.position.X + projectile.width / 2 + (float)offsetX, projectile.position.Y + projectile.height / 2 + (float)offsetY, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("ApothJaws"), projectile.damage, projectile.knockBack, Main.myPlayer, projectile.rotation, 1f); + Projectile.NewProjectile(projectile.position.X + projectile.width / 2 + (float)offsetX, projectile.position.Y + projectile.height / 2 + (float)offsetY, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, Main.myPlayer, projectile.rotation, 1f); } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 600, true); - target.AddBuff(mod.BuffType("DemonFlames"), 600, true); - target.AddBuff(mod.BuffType("ArmorCrunch"), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); + target.AddBuff(ModContent.BuffType(), 600, true); if (Main.rand.NextBool(30)) { - target.AddBuff(mod.BuffType("ExoFreeze"), 120, true); + target.AddBuff(ModContent.BuffType(), 120, true); } } } diff --git a/Projectiles/Magic/Asteroid.cs b/Projectiles/Magic/Asteroid.cs index 3a47dc48f1..f724fcb930 100644 --- a/Projectiles/Magic/Asteroid.cs +++ b/Projectiles/Magic/Asteroid.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Asteroid : ModProjectile { diff --git a/Projectiles/Magic/AsteroidMolten.cs b/Projectiles/Magic/AsteroidMolten.cs index 6f033d0e79..00a91078b4 100644 --- a/Projectiles/Magic/AsteroidMolten.cs +++ b/Projectiles/Magic/AsteroidMolten.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AsteroidMolten : ModProjectile { @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { Player player = Main.player[projectile.owner]; - player.AddBuff(mod.BuffType("Molten"), 360); + player.AddBuff(ModContent.BuffType(), 360); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Magic/AstralCrystal.cs b/Projectiles/Magic/AstralCrystal.cs index e7f3b65344..42bbd03e79 100644 --- a/Projectiles/Magic/AstralCrystal.cs +++ b/Projectiles/Magic/AstralCrystal.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AstralCrystal : ModProjectile { @@ -37,21 +37,21 @@ namespace CalamityMod.Projectiles.Magic { blue = !blue; Vector2 velocity = angle.ToRotationVector2() * (2f + (float)(Math.Sin(angleStart + angle * 3f) + 1) * 2.5f) * Main.rand.NextFloat(0.95f, 1.05f); - Dust d = Dust.NewDustPerfect(projectile.Center, blue ? mod.DustType("AstralBlue") : mod.DustType("AstralOrange"), velocity); + Dust d = Dust.NewDustPerfect(projectile.Center, blue ? ModContent.DustType() : ModContent.DustType(), velocity); d.customData = 0.025f; } //chunks for (int i = 0; i < Main.rand.Next(5, 9); i++) { - Dust d = Dust.NewDustPerfect(projectile.Center, mod.DustType("AstralChunk")); + Dust d = Dust.NewDustPerfect(projectile.Center, ModContent.DustType()); } Main.PlaySound(SoundID.Item27, projectile.Center); for (float i = 0; i < MathHelper.TwoPi; i += MathHelper.PiOver4 / 2f) { - Projectile.NewProjectile(projectile.Center, i.ToRotationVector2() * 9f, mod.ProjectileType("AstralCrystalInvisibleExplosion"), 50, 4f, projectile.owner); + Projectile.NewProjectile(projectile.Center, i.ToRotationVector2() * 9f, ModContent.ProjectileType(), 50, 4f, projectile.owner); } } @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void AI() @@ -111,8 +111,8 @@ namespace CalamityMod.Projectiles.Magic Vector2 perp = new Vector2(projectile.velocity.Y, -projectile.velocity.X); perp.Normalize(); bool flag = Main.time % 2 == 0; - int blue = mod.DustType("AstralBlue"); - int orange = mod.DustType("AstralOrange"); + int blue = ModContent.DustType(); + int orange = ModContent.DustType(); projectile.ai[1] += 0.3141f; //2pi / 20 (total frames for one loop of animation) Vector2 posOff = perp * (float)Math.Sin(projectile.ai[1]) * 6f; Dust d1 = Dust.NewDustPerfect(pos + posOff, flag ? blue : orange, perp * Main.rand.NextFloat(2.3f, 3.5f)); @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Magic //Astral chunk dust if (Main.rand.NextBool(30)) { - Dust dust = Dust.NewDustPerfect(projectile.Center, mod.DustType("AstralChunk")); + Dust dust = Dust.NewDustPerfect(projectile.Center, ModContent.DustType()); dust.velocity *= 0.3f; } } diff --git a/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs b/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs index 87f58937e5..3d1a34cc2d 100644 --- a/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs +++ b/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AstralCrystalInvisibleExplosion : ModProjectile { @@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void AI() diff --git a/Projectiles/Magic/AstralStarMagic.cs b/Projectiles/Magic/AstralStarMagic.cs index 64a763ad60..41def5048b 100644 --- a/Projectiles/Magic/AstralStarMagic.cs +++ b/Projectiles/Magic/AstralStarMagic.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AstralStarMagic : ModProjectile { @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic if (Main.rand.NextBool(16)) { Vector2 value3 = Vector2.UnitX.RotatedByRandom(1.5707963705062866).RotatedBy((double)projectile.velocity.ToRotation(), default); - int num59 = Dust.NewDust(projectile.position, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); + int num59 = Dust.NewDust(projectile.position, projectile.width, projectile.height, ModContent.DustType(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); Main.dust[num59].velocity = value3 * 0.66f; Main.dust[num59].position = projectile.Center + value3 * 12f; } @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Magic projectile.light = 0.9f; if (Main.rand.NextBool(10)) { - Dust.NewDust(projectile.position, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); + Dust.NewDust(projectile.position, projectile.width, projectile.height, ModContent.DustType(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); } if (Main.rand.NextBool(20)) { @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override Color? GetAlpha(Color lightColor) @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Magic projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); for (int num621 = 0; num621 < 5; num621++) { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.2f); + int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -120,10 +120,10 @@ namespace CalamityMod.Projectiles.Magic } for (int num623 = 0; num623 < 5; num623++) { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.7f); + int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.7f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1f); + num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); Main.dust[num624].velocity *= 2f; } for (int num480 = 0; num480 < 3; num480++) diff --git a/Projectiles/Magic/AtlantisSpear.cs b/Projectiles/Magic/AtlantisSpear.cs index 1e15d9c899..5c049025ee 100644 --- a/Projectiles/Magic/AtlantisSpear.cs +++ b/Projectiles/Magic/AtlantisSpear.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AtlantisSpear : ModProjectile { @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Magic int num48 = projectile.type; if (projectile.ai[1] >= (float)(12 + Main.rand.Next(2))) { - num48 = mod.ProjectileType("AtlantisSpear2"); + num48 = ModContent.ProjectileType(); } int num49 = projectile.damage; float num50 = projectile.knockBack; @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("AtlantisSpear2"), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[projectile2].penetrate = 1; } for (int k = 0; k < 3; k++) diff --git a/Projectiles/Magic/AtlantisSpear2.cs b/Projectiles/Magic/AtlantisSpear2.cs index ab80ac35d3..b4f2ffc5ff 100644 --- a/Projectiles/Magic/AtlantisSpear2.cs +++ b/Projectiles/Magic/AtlantisSpear2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AtlantisSpear2 : ModProjectile { diff --git a/Projectiles/Magic/AuraRain.cs b/Projectiles/Magic/AuraRain.cs index 69b7d41233..b022dd0d08 100644 --- a/Projectiles/Magic/AuraRain.cs +++ b/Projectiles/Magic/AuraRain.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class AuraRain : ModProjectile { diff --git a/Projectiles/Magic/BeamingBolt.cs b/Projectiles/Magic/BeamingBolt.cs index 0dc12e1fef..e0032940f7 100644 --- a/Projectiles/Magic/BeamingBolt.cs +++ b/Projectiles/Magic/BeamingBolt.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BeamingBolt : ModProjectile { @@ -74,8 +74,8 @@ namespace CalamityMod.Projectiles.Magic for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("BeamingBolt2"), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("BeamingBolt2"), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 105); diff --git a/Projectiles/Magic/BeamingBolt2.cs b/Projectiles/Magic/BeamingBolt2.cs index 14c0bae20f..dc92db676e 100644 --- a/Projectiles/Magic/BeamingBolt2.cs +++ b/Projectiles/Magic/BeamingBolt2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BeamingBolt2 : ModProjectile { diff --git a/Projectiles/Magic/BigBeamofDeath.cs b/Projectiles/Magic/BigBeamofDeath.cs index 9439abe2f4..f29c5ea5de 100644 --- a/Projectiles/Magic/BigBeamofDeath.cs +++ b/Projectiles/Magic/BigBeamofDeath.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BigBeamofDeath : ModProjectile { @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("BigBeamofDeath2"), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/BigBeamofDeath2.cs b/Projectiles/Magic/BigBeamofDeath2.cs index c7623b2cb9..6ad358d702 100644 --- a/Projectiles/Magic/BigBeamofDeath2.cs +++ b/Projectiles/Magic/BigBeamofDeath2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BigBeamofDeath2 : ModProjectile { diff --git a/Projectiles/Magic/BlackAnurian.cs b/Projectiles/Magic/BlackAnurian.cs index 868cdcc357..31b4b7d10e 100644 --- a/Projectiles/Magic/BlackAnurian.cs +++ b/Projectiles/Magic/BlackAnurian.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BlackAnurian : ModProjectile { diff --git a/Projectiles/Magic/BlackAnurianPlankton.cs b/Projectiles/Magic/BlackAnurianPlankton.cs index 3215f4f4be..1a1b0182b0 100644 --- a/Projectiles/Magic/BlackAnurianPlankton.cs +++ b/Projectiles/Magic/BlackAnurianPlankton.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BlackAnurianPlankton : ModProjectile { diff --git a/Projectiles/Magic/BloodBeam.cs b/Projectiles/Magic/BloodBeam.cs index 1f71666aab..5e57dd5845 100644 --- a/Projectiles/Magic/BloodBeam.cs +++ b/Projectiles/Magic/BloodBeam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BloodBeam : ModProjectile { diff --git a/Projectiles/Magic/BloodBlast.cs b/Projectiles/Magic/BloodBlast.cs index 9da576e4c2..889969c440 100644 --- a/Projectiles/Magic/BloodBlast.cs +++ b/Projectiles/Magic/BloodBlast.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BloodBlast : ModProjectile { diff --git a/Projectiles/Magic/BloodBolt.cs b/Projectiles/Magic/BloodBolt.cs index 5458891f48..2560250ba3 100644 --- a/Projectiles/Magic/BloodBolt.cs +++ b/Projectiles/Magic/BloodBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BloodBolt : ModProjectile { diff --git a/Projectiles/Magic/BloodOrb.cs b/Projectiles/Magic/BloodOrb.cs index 7581495d67..4fb5f9c383 100644 --- a/Projectiles/Magic/BloodOrb.cs +++ b/Projectiles/Magic/BloodOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BloodOrb : ModProjectile { @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic num440 = num437 / num440; num438 *= num440; num439 *= num440; - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("BloodBolt"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/BloodRay.cs b/Projectiles/Magic/BloodRay.cs index 49799d0ae9..478be87ee2 100644 --- a/Projectiles/Magic/BloodRay.cs +++ b/Projectiles/Magic/BloodRay.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BloodRay : ModProjectile { @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 29f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("BloodOrb"), (int)((double)projectile.damage * 0.6), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.6), projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 9f) diff --git a/Projectiles/Magic/BlueBubble.cs b/Projectiles/Magic/BlueBubble.cs index 8f8ce144e5..78397dcfa3 100644 --- a/Projectiles/Magic/BlueBubble.cs +++ b/Projectiles/Magic/BlueBubble.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BlueBubble : ModProjectile { diff --git a/Projectiles/Magic/BlushieStaffProj.cs b/Projectiles/Magic/BlushieStaffProj.cs index 591c25dcec..c4ede07b14 100644 --- a/Projectiles/Magic/BlushieStaffProj.cs +++ b/Projectiles/Magic/BlushieStaffProj.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BlushieStaffProj : ModProjectile { diff --git a/Projectiles/Magic/BrimstoneBeam.cs b/Projectiles/Magic/BrimstoneBeam.cs index 0e4f4989bb..9a2104ee33 100644 --- a/Projectiles/Magic/BrimstoneBeam.cs +++ b/Projectiles/Magic/BrimstoneBeam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneBeam : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("BrimstoneBeam2"), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/BrimstoneBeam2.cs b/Projectiles/Magic/BrimstoneBeam2.cs index ea400fcbe5..18ffa78305 100644 --- a/Projectiles/Magic/BrimstoneBeam2.cs +++ b/Projectiles/Magic/BrimstoneBeam2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneBeam2 : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("BrimstoneBeam3"), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/BrimstoneBeam3.cs b/Projectiles/Magic/BrimstoneBeam3.cs index d62a15480c..174b40583a 100644 --- a/Projectiles/Magic/BrimstoneBeam3.cs +++ b/Projectiles/Magic/BrimstoneBeam3.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneBeam3 : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("BrimstoneBeam4"), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/BrimstoneBeam4.cs b/Projectiles/Magic/BrimstoneBeam4.cs index 83bf4926a8..4d9a203912 100644 --- a/Projectiles/Magic/BrimstoneBeam4.cs +++ b/Projectiles/Magic/BrimstoneBeam4.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneBeam4 : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("BrimstoneBeam5"), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)(double)projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/BrimstoneBeam5.cs b/Projectiles/Magic/BrimstoneBeam5.cs index ff0c85c422..0fe51c71a7 100644 --- a/Projectiles/Magic/BrimstoneBeam5.cs +++ b/Projectiles/Magic/BrimstoneBeam5.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneBeam5 : ModProjectile { @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/BrimstoneFireball.cs b/Projectiles/Magic/BrimstoneFireball.cs index dec8afd8bd..0af61f70c4 100644 --- a/Projectiles/Magic/BrimstoneFireball.cs +++ b/Projectiles/Magic/BrimstoneFireball.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneFireball : ModProjectile { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Magic } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("BrimstoneHomer"), (int)((double)projectile.damage * 1.35), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 1.35), 0f, projectile.owner, 0f, 0f); } } } @@ -89,7 +89,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 8; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/BrimstoneHellfireballFriendly.cs b/Projectiles/Magic/BrimstoneHellfireballFriendly.cs index a170fd20d4..884ecec5fd 100644 --- a/Projectiles/Magic/BrimstoneHellfireballFriendly.cs +++ b/Projectiles/Magic/BrimstoneHellfireballFriendly.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneHellfireballFriendly : ModProjectile { @@ -46,13 +46,13 @@ namespace CalamityMod.Projectiles.Magic { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("HellfireExplosionFriendly"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Magic/BrimstoneHellfireballFriendly2.cs b/Projectiles/Magic/BrimstoneHellfireballFriendly2.cs index 6329330bcb..81edbab8a7 100644 --- a/Projectiles/Magic/BrimstoneHellfireballFriendly2.cs +++ b/Projectiles/Magic/BrimstoneHellfireballFriendly2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneHellfireballFriendly2 : ModProjectile { @@ -44,13 +44,13 @@ namespace CalamityMod.Projectiles.Magic { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("HellfireExplosionFriendly2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Magic/BrimstoneHomer.cs b/Projectiles/Magic/BrimstoneHomer.cs index 88cd659ee7..6a2eee85d0 100644 --- a/Projectiles/Magic/BrimstoneHomer.cs +++ b/Projectiles/Magic/BrimstoneHomer.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneHomer : ModProjectile { @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/BrimstoneTentacle.cs b/Projectiles/Magic/BrimstoneTentacle.cs index 0a3dcc4380..33a9b2a92f 100644 --- a/Projectiles/Magic/BrimstoneTentacle.cs +++ b/Projectiles/Magic/BrimstoneTentacle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class BrimstoneTentacle : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 5; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Magic/Climax.cs b/Projectiles/Magic/Climax.cs index dc2214daf9..a60e90d07c 100644 --- a/Projectiles/Magic/Climax.cs +++ b/Projectiles/Magic/Climax.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Climax : ModProjectile { @@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Magic num446 = num443 / num446; num444 *= num446; num445 *= num446; - Projectile.NewProjectile(vector33.X, vector33.Y, num444, num445, mod.ProjectileType("ClimaxBeam"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(vector33.X, vector33.Y, num444, num445, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); return; } } diff --git a/Projectiles/Magic/Climax2.cs b/Projectiles/Magic/Climax2.cs index f2b656ef7e..6fd6fd9f34 100644 --- a/Projectiles/Magic/Climax2.cs +++ b/Projectiles/Magic/Climax2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Climax2 : ModProjectile { @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Magic num446 = num443 / num446; num444 *= num446; num445 *= num446; - Projectile.NewProjectile(vector33.X, vector33.Y, num444, num445, mod.ProjectileType("ClimaxBeam"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(vector33.X, vector33.Y, num444, num445, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); return; } } diff --git a/Projectiles/Magic/ClimaxBeam.cs b/Projectiles/Magic/ClimaxBeam.cs index ee1760e11d..37f2a6eedf 100644 --- a/Projectiles/Magic/ClimaxBeam.cs +++ b/Projectiles/Magic/ClimaxBeam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ClimaxBeam : ModProjectile { diff --git a/Projectiles/Magic/CoralSpike.cs b/Projectiles/Magic/CoralSpike.cs index 6d0c6081d9..15c768a44a 100644 --- a/Projectiles/Magic/CoralSpike.cs +++ b/Projectiles/Magic/CoralSpike.cs @@ -1,7 +1,7 @@ using System; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class CoralSpike : ModProjectile { diff --git a/Projectiles/Magic/CosmicTentacle.cs b/Projectiles/Magic/CosmicTentacle.cs index 2169e6c53f..e6edcd2647 100644 --- a/Projectiles/Magic/CosmicTentacle.cs +++ b/Projectiles/Magic/CosmicTentacle.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class CosmicTentacle : ModProjectile { diff --git a/Projectiles/Magic/CryoBlast.cs b/Projectiles/Magic/CryoBlast.cs index 374dcccaa2..50ce67712e 100644 --- a/Projectiles/Magic/CryoBlast.cs +++ b/Projectiles/Magic/CryoBlast.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class CryoBlast : ModProjectile { @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GlacialState"), 360); + target.AddBuff(ModContent.BuffType(), 360); target.AddBuff(BuffID.Frostburn, 360); } } diff --git a/Projectiles/Magic/DemonicPitchfork.cs b/Projectiles/Magic/DemonicPitchfork.cs index 343b662214..61b2dff0b2 100644 --- a/Projectiles/Magic/DemonicPitchfork.cs +++ b/Projectiles/Magic/DemonicPitchfork.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class DemonicPitchfork : ModProjectile { diff --git a/Projectiles/Magic/DustProjectile.cs b/Projectiles/Magic/DustProjectile.cs index 7b58b9cea8..76d77b5714 100644 --- a/Projectiles/Magic/DustProjectile.cs +++ b/Projectiles/Magic/DustProjectile.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class DustProjectile : ModProjectile { diff --git a/Projectiles/Magic/EidolicWail.cs b/Projectiles/Magic/EidolicWail.cs index 925aba4367..8675256cf4 100644 --- a/Projectiles/Magic/EidolicWail.cs +++ b/Projectiles/Magic/EidolicWail.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class EidolicWail : ModProjectile { @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); projectile.velocity *= 0.975f; } diff --git a/Projectiles/Magic/EldritchTentacle.cs b/Projectiles/Magic/EldritchTentacle.cs index cdb1bb6c83..899a8aa60c 100644 --- a/Projectiles/Magic/EldritchTentacle.cs +++ b/Projectiles/Magic/EldritchTentacle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class EldritchTentacle : ModProjectile { diff --git a/Projectiles/Magic/ElementBolt.cs b/Projectiles/Magic/ElementBolt.cs index 3048767b73..4ee767d7a6 100644 --- a/Projectiles/Magic/ElementBolt.cs +++ b/Projectiles/Magic/ElementBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ElementBolt : ModProjectile { @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 29f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("ElementOrb2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 9f) diff --git a/Projectiles/Magic/ElementBolt2.cs b/Projectiles/Magic/ElementBolt2.cs index ab800fc64d..fb2e3e6e45 100644 --- a/Projectiles/Magic/ElementBolt2.cs +++ b/Projectiles/Magic/ElementBolt2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ElementBolt2 : ModProjectile { diff --git a/Projectiles/Magic/ElementOrb.cs b/Projectiles/Magic/ElementOrb.cs index fa0f07aec7..f07e497d92 100644 --- a/Projectiles/Magic/ElementOrb.cs +++ b/Projectiles/Magic/ElementOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ElementOrb : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("ElementBolt"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/ElementOrb2.cs b/Projectiles/Magic/ElementOrb2.cs index 101a45e646..24d8168e80 100644 --- a/Projectiles/Magic/ElementOrb2.cs +++ b/Projectiles/Magic/ElementOrb2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ElementOrb2 : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("ElementBolt2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/ElementRay.cs b/Projectiles/Magic/ElementRay.cs index 1ab7e8c869..61367f1831 100644 --- a/Projectiles/Magic/ElementRay.cs +++ b/Projectiles/Magic/ElementRay.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ElementRay : ModProjectile { @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 22f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("ElementOrb"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 9f) @@ -49,10 +49,10 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/ElementTentacle.cs b/Projectiles/Magic/ElementTentacle.cs index 0e149bf0d1..b02cda18e3 100644 --- a/Projectiles/Magic/ElementTentacle.cs +++ b/Projectiles/Magic/ElementTentacle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ElementTentacle : ModProjectile { @@ -92,10 +92,10 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Magic/EvergladeSprayProjectile.cs b/Projectiles/Magic/EvergladeSprayProjectile.cs index ee9b29e81c..de9657c011 100644 --- a/Projectiles/Magic/EvergladeSprayProjectile.cs +++ b/Projectiles/Magic/EvergladeSprayProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class EvergladeSprayProjectile : ModProjectile { diff --git a/Projectiles/Magic/FabBolt.cs b/Projectiles/Magic/FabBolt.cs index 6d164e6ce8..d56063b5ba 100644 --- a/Projectiles/Magic/FabBolt.cs +++ b/Projectiles/Magic/FabBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FabBolt : ModProjectile { diff --git a/Projectiles/Magic/FabOrb.cs b/Projectiles/Magic/FabOrb.cs index ec817fa648..b0e8946028 100644 --- a/Projectiles/Magic/FabOrb.cs +++ b/Projectiles/Magic/FabOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FabOrb : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("FabBolt"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/FabRay.cs b/Projectiles/Magic/FabRay.cs index f8507d5162..24b3d10e16 100644 --- a/Projectiles/Magic/FabRay.cs +++ b/Projectiles/Magic/FabRay.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FabRay : ModProjectile { @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 9f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("FabOrb"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 16f) diff --git a/Projectiles/Magic/FatesReveal.cs b/Projectiles/Magic/FatesReveal.cs index 7c4f7b82f7..ef1d973dcc 100644 --- a/Projectiles/Magic/FatesReveal.cs +++ b/Projectiles/Magic/FatesReveal.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FatesReveal : ModProjectile { diff --git a/Projectiles/Magic/FlameBeamTip.cs b/Projectiles/Magic/FlameBeamTip.cs index 08ad79c796..69ce13ec9b 100644 --- a/Projectiles/Magic/FlameBeamTip.cs +++ b/Projectiles/Magic/FlameBeamTip.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FlameBeamTip : ModProjectile { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Magic int num48 = projectile.type; if (projectile.ai[1] >= (float)(15 + Main.rand.Next(3))) { - num48 = mod.ProjectileType("FlameBeamTip2"); + num48 = ModContent.ProjectileType(); } int number = Projectile.NewProjectile(projectile.position.X + projectile.velocity.X + (float)(projectile.width / 2), projectile.position.Y + projectile.velocity.Y + (float)(projectile.height / 2), diff --git a/Projectiles/Magic/FlameBeamTip2.cs b/Projectiles/Magic/FlameBeamTip2.cs index d1b0c79f75..a04b08e51b 100644 --- a/Projectiles/Magic/FlameBeamTip2.cs +++ b/Projectiles/Magic/FlameBeamTip2.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FlameBeamTip2 : ModProjectile { diff --git a/Projectiles/Magic/FlamePillar.cs b/Projectiles/Magic/FlamePillar.cs index a4790a90a5..33582bbd76 100644 --- a/Projectiles/Magic/FlamePillar.cs +++ b/Projectiles/Magic/FlamePillar.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FlamePillar : ModProjectile { diff --git a/Projectiles/Magic/FlamingPumpkin.cs b/Projectiles/Magic/FlamingPumpkin.cs index 596ec98dc3..dc8154ce10 100644 --- a/Projectiles/Magic/FlamingPumpkin.cs +++ b/Projectiles/Magic/FlamingPumpkin.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FlamingPumpkin : ModProjectile { diff --git a/Projectiles/Magic/FlareBoltProjectile.cs b/Projectiles/Magic/FlareBoltProjectile.cs index fd1e3d6191..80cc847cf3 100644 --- a/Projectiles/Magic/FlareBoltProjectile.cs +++ b/Projectiles/Magic/FlareBoltProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FlareBoltProjectile : ModProjectile { diff --git a/Projectiles/Magic/ForbiddenAxeBlade.cs b/Projectiles/Magic/ForbiddenAxeBlade.cs index 22c106566e..320b84b510 100644 --- a/Projectiles/Magic/ForbiddenAxeBlade.cs +++ b/Projectiles/Magic/ForbiddenAxeBlade.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ForbiddenAxeBlade : ModProjectile { diff --git a/Projectiles/Magic/ForbiddenSunProjectile.cs b/Projectiles/Magic/ForbiddenSunProjectile.cs index d0114c61d6..cb8c810766 100644 --- a/Projectiles/Magic/ForbiddenSunProjectile.cs +++ b/Projectiles/Magic/ForbiddenSunProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ForbiddenSunProjectile : ModProjectile { @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Magic { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ForbiddenSunburst"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } diff --git a/Projectiles/Magic/ForbiddenSunburst.cs b/Projectiles/Magic/ForbiddenSunburst.cs index f33abe16d7..9846b3a044 100644 --- a/Projectiles/Magic/ForbiddenSunburst.cs +++ b/Projectiles/Magic/ForbiddenSunburst.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ForbiddenSunburst : ModProjectile { diff --git a/Projectiles/Magic/FrigidflashBoltProjectile.cs b/Projectiles/Magic/FrigidflashBoltProjectile.cs index ef3a26f056..1daacfc8d5 100644 --- a/Projectiles/Magic/FrigidflashBoltProjectile.cs +++ b/Projectiles/Magic/FrigidflashBoltProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FrigidflashBoltProjectile : ModProjectile { diff --git a/Projectiles/Magic/FrostBoltProjectile.cs b/Projectiles/Magic/FrostBoltProjectile.cs index 84cebea801..48c6e06453 100644 --- a/Projectiles/Magic/FrostBoltProjectile.cs +++ b/Projectiles/Magic/FrostBoltProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class FrostBoltProjectile : ModProjectile { diff --git a/Projectiles/Magic/GammaLaser.cs b/Projectiles/Magic/GammaLaser.cs index 0560e0a11a..fe892f7105 100644 --- a/Projectiles/Magic/GammaLaser.cs +++ b/Projectiles/Magic/GammaLaser.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GammaLaser : ModProjectile { diff --git a/Projectiles/Magic/GhastlyBlast.cs b/Projectiles/Magic/GhastlyBlast.cs index 58b7e4fe6c..bea440a7e3 100644 --- a/Projectiles/Magic/GhastlyBlast.cs +++ b/Projectiles/Magic/GhastlyBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GhastlyBlast : ModProjectile { @@ -134,7 +134,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.ai[0] % 30f == 0f && projectile.ai[0] < 241f && Main.myPlayer == projectile.owner) { Vector2 vector144 = Vector2.UnitY.RotatedByRandom(6.2831854820251465) * 12f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector144.X, vector144.Y, mod.ProjectileType("GhastlySubBlast"), projectile.damage, 0f, projectile.owner, 0f, (float)projectile.whoAmI); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector144.X, vector144.Y, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, (float)projectile.whoAmI); } Vector2 vector145 = projectile.Center; float num1015 = 800f; @@ -274,7 +274,7 @@ namespace CalamityMod.Projectiles.Magic { for (int num105 = 0; num105 < 1000; num105 = num3 + 1) { - if (Main.projectile[num105].active && Main.projectile[num105].type == mod.ProjectileType("GhastlySubBlast") && Main.projectile[num105].ai[1] == (float)projectile.whoAmI) + if (Main.projectile[num105].active && Main.projectile[num105].type == ModContent.ProjectileType() && Main.projectile[num105].ai[1] == (float)projectile.whoAmI) { Main.projectile[num105].Kill(); } @@ -302,7 +302,7 @@ namespace CalamityMod.Projectiles.Magic vector5.Y *= -1f; } vector5 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(vector4.X, vector4.Y, vector5.X, vector5.Y, mod.ProjectileType("GhastlyExplosionShard"), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.8f, projectile.owner, (float)num108, 0f); + Projectile.NewProjectile(vector4.X, vector4.Y, vector5.X, vector5.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.8f, projectile.owner, (float)num108, 0f); num3 = num110; } for (int num111 = 0; num111 < num107; num111 = num3 + 1) @@ -319,7 +319,7 @@ namespace CalamityMod.Projectiles.Magic vector7.Y *= -1f; } vector7 *= (float)Main.rand.Next(40, 81) * 0.1f; - Projectile.NewProjectile(vector6.X, vector6.Y, vector7.X, vector7.Y, mod.ProjectileType("GhastlyExplosion"), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.8f, projectile.owner, (float)num109, 0f); + Projectile.NewProjectile(vector6.X, vector6.Y, vector7.X, vector7.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.8f, projectile.owner, (float)num109, 0f); num3 = num111; } } diff --git a/Projectiles/Magic/GhastlyExplosion.cs b/Projectiles/Magic/GhastlyExplosion.cs index 126df4d4f3..efb81d5780 100644 --- a/Projectiles/Magic/GhastlyExplosion.cs +++ b/Projectiles/Magic/GhastlyExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GhastlyExplosion : ModProjectile { @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Magic } vector8.Normalize(); vector8 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), vector8.X, vector8.Y, mod.ProjectileType("GhastlyExplosionShard"), (int)((double)projectile.damage * 0.9), projectile.knockBack * 0.8f, projectile.owner, projectile.ai[0], 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), vector8.X, vector8.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.9), projectile.knockBack * 0.8f, projectile.owner, projectile.ai[0], 0f); num3 = num119; } } diff --git a/Projectiles/Magic/GhastlyExplosionShard.cs b/Projectiles/Magic/GhastlyExplosionShard.cs index 87a99428ec..f91326cd72 100644 --- a/Projectiles/Magic/GhastlyExplosionShard.cs +++ b/Projectiles/Magic/GhastlyExplosionShard.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GhastlyExplosionShard : ModProjectile { diff --git a/Projectiles/Magic/GhastlySubBlast.cs b/Projectiles/Magic/GhastlySubBlast.cs index a03e9337ac..75113c16e5 100644 --- a/Projectiles/Magic/GhastlySubBlast.cs +++ b/Projectiles/Magic/GhastlySubBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GhastlySubBlast : ModProjectile { @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Magic bool flag60 = false; bool flag61 = false; int num3 = projectile.type; - int num1024 = mod.ProjectileType("GhastlyBlast"); + int num1024 = ModContent.ProjectileType(); float num1025 = 420f; float x3 = 0.15f; float y3 = 0.15f; diff --git a/Projectiles/Magic/GhastlyVisage.cs b/Projectiles/Magic/GhastlyVisage.cs index 2a68dcf462..2cff6a97a1 100644 --- a/Projectiles/Magic/GhastlyVisage.cs +++ b/Projectiles/Magic/GhastlyVisage.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GhastlyVisage : ModProjectile { @@ -143,7 +143,7 @@ namespace CalamityMod.Projectiles.Magic } if (flag15 && Main.myPlayer == projectile.owner) { - int num42 = mod.ProjectileType("GhastlyBlast"); + int num42 = ModContent.ProjectileType(); float scaleFactor11 = 6f; int weaponDamage2 = player.GetWeaponDamage(player.inventory[player.selectedItem]); float weaponKnockback2 = player.inventory[player.selectedItem].knockBack; diff --git a/Projectiles/Magic/GleamingBolt.cs b/Projectiles/Magic/GleamingBolt.cs index f588797dca..8d1f5b4abf 100644 --- a/Projectiles/Magic/GleamingBolt.cs +++ b/Projectiles/Magic/GleamingBolt.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GleamingBolt : ModProjectile { @@ -66,8 +66,8 @@ namespace CalamityMod.Projectiles.Magic for (i = 0; i < 3; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GleamingBolt2"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GleamingBolt2"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 105); diff --git a/Projectiles/Magic/GleamingBolt2.cs b/Projectiles/Magic/GleamingBolt2.cs index 99d088a9d4..87c3ea08c3 100644 --- a/Projectiles/Magic/GleamingBolt2.cs +++ b/Projectiles/Magic/GleamingBolt2.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GleamingBolt2 : ModProjectile { diff --git a/Projectiles/Magic/GraniteEnergy.cs b/Projectiles/Magic/GraniteEnergy.cs index 460e5891fa..045cf6dcc3 100644 --- a/Projectiles/Magic/GraniteEnergy.cs +++ b/Projectiles/Magic/GraniteEnergy.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GraniteEnergy : ModProjectile { diff --git a/Projectiles/Magic/GranitePulse.cs b/Projectiles/Magic/GranitePulse.cs index 827101e041..ddb0204128 100644 --- a/Projectiles/Magic/GranitePulse.cs +++ b/Projectiles/Magic/GranitePulse.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class GranitePulse : ModProjectile { @@ -134,8 +134,8 @@ namespace CalamityMod.Projectiles.Magic for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GraniteEnergy"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GraniteEnergy"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/HeliumFlashBlast.cs b/Projectiles/Magic/HeliumFlashBlast.cs index 7946e62696..45ae7af401 100644 --- a/Projectiles/Magic/HeliumFlashBlast.cs +++ b/Projectiles/Magic/HeliumFlashBlast.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class HeliumFlashBlast : ModProjectile { diff --git a/Projectiles/Magic/HellfireExplosionFriendly.cs b/Projectiles/Magic/HellfireExplosionFriendly.cs index 61686f2f66..f70d2ca2b9 100644 --- a/Projectiles/Magic/HellfireExplosionFriendly.cs +++ b/Projectiles/Magic/HellfireExplosionFriendly.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class HellfireExplosionFriendly : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Magic/HellfireExplosionFriendly2.cs b/Projectiles/Magic/HellfireExplosionFriendly2.cs index eecd58c47b..c175513466 100644 --- a/Projectiles/Magic/HellfireExplosionFriendly2.cs +++ b/Projectiles/Magic/HellfireExplosionFriendly2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class HellfireExplosionFriendly2 : ModProjectile { @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Magic/HolyFlame.cs b/Projectiles/Magic/HolyFlame.cs index 827f0a72d8..879287293b 100644 --- a/Projectiles/Magic/HolyFlame.cs +++ b/Projectiles/Magic/HolyFlame.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class HolyFlame : ModProjectile { @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Magic/HolyLaser.cs b/Projectiles/Magic/HolyLaser.cs index 07e8ffcb87..9ac4b55671 100644 --- a/Projectiles/Magic/HolyLaser.cs +++ b/Projectiles/Magic/HolyLaser.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class HolyLaser : ModProjectile { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Magic { if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[proj].Calamity().forceMagic = true; } } diff --git a/Projectiles/Magic/IceCluster.cs b/Projectiles/Magic/IceCluster.cs index 90e9487f63..8f65d2da79 100644 --- a/Projectiles/Magic/IceCluster.cs +++ b/Projectiles/Magic/IceCluster.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class IceCluster : ModProjectile { @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.ai[0] % 30f == 0f && Main.netMode != NetmodeID.MultiplayerClient) { Vector2 vector80 = projectile.rotation.ToRotationVector2(); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector80.X, vector80.Y, mod.ProjectileType("IceCluster"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector80.X, vector80.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } Lighting.AddLight(projectile.Center, 0.3f, 0.75f, 0.9f); } @@ -112,11 +112,11 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 5; - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); Vector2 vector80 = projectile.rotation.ToRotationVector2(); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector80.X, vector80.Y, mod.ProjectileType("IceCluster"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector80.X, vector80.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/IceSpike.cs b/Projectiles/Magic/IceSpike.cs index dce7b5508b..86b0f590eb 100644 --- a/Projectiles/Magic/IceSpike.cs +++ b/Projectiles/Magic/IceSpike.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class IceSpike : ModProjectile { diff --git a/Projectiles/Magic/InfernadoFriendly.cs b/Projectiles/Magic/InfernadoFriendly.cs index fe63630f85..9244449382 100644 --- a/Projectiles/Magic/InfernadoFriendly.cs +++ b/Projectiles/Magic/InfernadoFriendly.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class InfernadoFriendly : ModProjectile { diff --git a/Projectiles/Magic/InfernadoMarkFriendly.cs b/Projectiles/Magic/InfernadoMarkFriendly.cs index 8b9e8a908a..20c92e5008 100644 --- a/Projectiles/Magic/InfernadoMarkFriendly.cs +++ b/Projectiles/Magic/InfernadoMarkFriendly.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class InfernadoMarkFriendly : ModProjectile { @@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.Magic break; } } - int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, mod.ProjectileType("InfernadoFriendly"), 390, 15f, Main.myPlayer, 16f, 16f); + int num236 = Projectile.NewProjectile((float)(num232 * 16 + 8), (float)(num231 * 16 - 24), 0f, 0f, ModContent.ProjectileType(), 390, 15f, Main.myPlayer, 16f, 16f); Main.projectile[num236].netUpdate = true; } } diff --git a/Projectiles/Magic/InfernalBlade.cs b/Projectiles/Magic/InfernalBlade.cs index 8ff0e76e17..011dc31097 100644 --- a/Projectiles/Magic/InfernalBlade.cs +++ b/Projectiles/Magic/InfernalBlade.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class InfernalBlade : ModProjectile { @@ -147,9 +147,9 @@ namespace CalamityMod.Projectiles.Magic } if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("InfernalBlade2"), (int)((double)projectile.damage * 0.75), 1f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), 1f, projectile.owner); } - target.AddBuff(mod.BuffType("BrimstoneFlames"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Magic/InfernalBlade2.cs b/Projectiles/Magic/InfernalBlade2.cs index dda1cf337d..15bfc56b59 100644 --- a/Projectiles/Magic/InfernalBlade2.cs +++ b/Projectiles/Magic/InfernalBlade2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class InfernalBlade2 : ModProjectile { @@ -118,7 +118,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Magic/IonBlast.cs b/Projectiles/Magic/IonBlast.cs index d649c2b729..8624862c21 100644 --- a/Projectiles/Magic/IonBlast.cs +++ b/Projectiles/Magic/IonBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class IonBlast : ModProjectile { @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Magic/LiquidBlade.cs b/Projectiles/Magic/LiquidBlade.cs index 98e262429b..5ddaf5a2e0 100644 --- a/Projectiles/Magic/LiquidBlade.cs +++ b/Projectiles/Magic/LiquidBlade.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class LiquidBlade : ModProjectile { @@ -147,7 +147,7 @@ namespace CalamityMod.Projectiles.Magic } if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("LiquidBlade2"), (int)((double)projectile.damage * 0.75), 1f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), 1f, projectile.owner); } target.AddBuff(BuffID.Ichor, 600); target.AddBuff(BuffID.Frostburn, 600); diff --git a/Projectiles/Magic/LiquidBlade2.cs b/Projectiles/Magic/LiquidBlade2.cs index 9780110044..a7f2d0ded8 100644 --- a/Projectiles/Magic/LiquidBlade2.cs +++ b/Projectiles/Magic/LiquidBlade2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class LiquidBlade2 : ModProjectile { diff --git a/Projectiles/Magic/MagicNebulaShot.cs b/Projectiles/Magic/MagicNebulaShot.cs index 1f9affab8c..47db879b05 100644 --- a/Projectiles/Magic/MagicNebulaShot.cs +++ b/Projectiles/Magic/MagicNebulaShot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class MagicNebulaShot : ModProjectile { diff --git a/Projectiles/Magic/MagnaBlast.cs b/Projectiles/Magic/MagnaBlast.cs index fd58730f13..08a5238354 100644 --- a/Projectiles/Magic/MagnaBlast.cs +++ b/Projectiles/Magic/MagnaBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class MagnaBlast : ModProjectile { diff --git a/Projectiles/Magic/MagneticBeam.cs b/Projectiles/Magic/MagneticBeam.cs index 1047ef0846..c6e7676e56 100644 --- a/Projectiles/Magic/MagneticBeam.cs +++ b/Projectiles/Magic/MagneticBeam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class MagneticBeam : ModProjectile { diff --git a/Projectiles/Magic/MagneticOrb.cs b/Projectiles/Magic/MagneticOrb.cs index cf0528ca9c..6b8562e840 100644 --- a/Projectiles/Magic/MagneticOrb.cs +++ b/Projectiles/Magic/MagneticOrb.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class MagneticOrb : ModProjectile { @@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Magic num446 = num443 / num446; num444 *= num446; num445 *= num446; - Projectile.NewProjectile(vector33.X, vector33.Y, num444, num445, mod.ProjectileType("MagneticBeam"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(vector33.X, vector33.Y, num444, num445, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); return; } } diff --git a/Projectiles/Magic/MagnusBeam.cs b/Projectiles/Magic/MagnusBeam.cs index b7f364fcf6..61d8d16d2d 100644 --- a/Projectiles/Magic/MagnusBeam.cs +++ b/Projectiles/Magic/MagnusBeam.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class MagnusBeam : ModProjectile { diff --git a/Projectiles/Magic/ManaBolt.cs b/Projectiles/Magic/ManaBolt.cs index 7916e5a6bb..b5275c24a7 100644 --- a/Projectiles/Magic/ManaBolt.cs +++ b/Projectiles/Magic/ManaBolt.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ManaBolt : ModProjectile { @@ -47,8 +47,8 @@ namespace CalamityMod.Projectiles.Magic for (i = 0; i < 3; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ManaBoltSmall"), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ManaBoltSmall2"), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); diff --git a/Projectiles/Magic/ManaBoltSmall.cs b/Projectiles/Magic/ManaBoltSmall.cs index 07665a9edd..ab5299b331 100644 --- a/Projectiles/Magic/ManaBoltSmall.cs +++ b/Projectiles/Magic/ManaBoltSmall.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ManaBoltSmall : ModProjectile { diff --git a/Projectiles/Magic/ManaBoltSmall2.cs b/Projectiles/Magic/ManaBoltSmall2.cs index 54bbf401d4..4f37227cbf 100644 --- a/Projectiles/Magic/ManaBoltSmall2.cs +++ b/Projectiles/Magic/ManaBoltSmall2.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ManaBoltSmall2 : ModProjectile { diff --git a/Projectiles/Magic/NightBolt.cs b/Projectiles/Magic/NightBolt.cs index 7b2f4e8c25..b6e2d77083 100644 --- a/Projectiles/Magic/NightBolt.cs +++ b/Projectiles/Magic/NightBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class NightBolt : ModProjectile { diff --git a/Projectiles/Magic/NightOrb.cs b/Projectiles/Magic/NightOrb.cs index 45c7cfe459..b450a69641 100644 --- a/Projectiles/Magic/NightOrb.cs +++ b/Projectiles/Magic/NightOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class NightOrb : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("NightBolt"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/NightRay.cs b/Projectiles/Magic/NightRay.cs index 83b1ae2ae9..d9d05f1eeb 100644 --- a/Projectiles/Magic/NightRay.cs +++ b/Projectiles/Magic/NightRay.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class NightRay : ModProjectile { @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 29f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("NightOrb"), (int)((double)projectile.damage * 0.6), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.6), projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 9f) diff --git a/Projectiles/Magic/NuclearFuryProjectile.cs b/Projectiles/Magic/NuclearFuryProjectile.cs index 3ed67adc11..668f46fa9f 100644 --- a/Projectiles/Magic/NuclearFuryProjectile.cs +++ b/Projectiles/Magic/NuclearFuryProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class NuclearFuryProjectile : ModProjectile { diff --git a/Projectiles/Magic/ParticleBeamofDoom.cs b/Projectiles/Magic/ParticleBeamofDoom.cs index 931f84ba99..d074d71c9d 100644 --- a/Projectiles/Magic/ParticleBeamofDoom.cs +++ b/Projectiles/Magic/ParticleBeamofDoom.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ParticleBeamofDoom : ModProjectile { diff --git a/Projectiles/Magic/PhantasmalFury.cs b/Projectiles/Magic/PhantasmalFury.cs index 48fab097d5..16006e96b1 100644 --- a/Projectiles/Magic/PhantasmalFury.cs +++ b/Projectiles/Magic/PhantasmalFury.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class PhantasmalFury : ModProjectile { @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Magic { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Phantom"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } lightTimer = 10; } @@ -63,8 +63,8 @@ namespace CalamityMod.Projectiles.Magic for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Phantom"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Phantom"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/Phantom.cs b/Projectiles/Magic/Phantom.cs index 475cfe9d04..c5b383a71b 100644 --- a/Projectiles/Magic/Phantom.cs +++ b/Projectiles/Magic/Phantom.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Phantom : ModProjectile { diff --git a/Projectiles/Magic/PlagueFang.cs b/Projectiles/Magic/PlagueFang.cs index d45c6824e7..d4caa17a2f 100644 --- a/Projectiles/Magic/PlagueFang.cs +++ b/Projectiles/Magic/PlagueFang.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class PlagueFang : ModProjectile { @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); target.immune[projectile.owner] = 2; } } diff --git a/Projectiles/Magic/PlasmaBolt.cs b/Projectiles/Magic/PlasmaBolt.cs index 043d6c278c..766095642b 100644 --- a/Projectiles/Magic/PlasmaBolt.cs +++ b/Projectiles/Magic/PlasmaBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class PlasmaBolt : ModProjectile { diff --git a/Projectiles/Magic/PlasmaRay.cs b/Projectiles/Magic/PlasmaRay.cs index c0b386570c..5fcf749dc1 100644 --- a/Projectiles/Magic/PlasmaRay.cs +++ b/Projectiles/Magic/PlasmaRay.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class PlasmaRay : ModProjectile { @@ -66,8 +66,8 @@ namespace CalamityMod.Projectiles.Magic for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("PlasmaRay2"), (int)((double)projectile.damage * 1.75), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("PlasmaRay2"), (int)((double)projectile.damage * 1.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 1.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 1.75), projectile.knockBack, projectile.owner, 0f, 0f); } } projectile.penetrate--; diff --git a/Projectiles/Magic/PlasmaRay2.cs b/Projectiles/Magic/PlasmaRay2.cs index df6a7c2145..8d8b86849a 100644 --- a/Projectiles/Magic/PlasmaRay2.cs +++ b/Projectiles/Magic/PlasmaRay2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class PlasmaRay2 : ModProjectile { diff --git a/Projectiles/Magic/PlasmaShot.cs b/Projectiles/Magic/PlasmaShot.cs index d29c56b199..9435f46541 100644 --- a/Projectiles/Magic/PlasmaShot.cs +++ b/Projectiles/Magic/PlasmaShot.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class PlasmaShot : ModProjectile { diff --git a/Projectiles/Magic/Purge.cs b/Projectiles/Magic/Purge.cs index 6b689c0847..11187c62d2 100644 --- a/Projectiles/Magic/Purge.cs +++ b/Projectiles/Magic/Purge.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Purge : ModProjectile { @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic Player player = Main.player[projectile.owner]; float num = 1.57079637f; Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true); - if (projectile.type == mod.ProjectileType("Purge")) + if (projectile.type == ModContent.ProjectileType()) { projectile.ai[0] += 1f; int num2 = 0; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Magic projectile.netUpdate = true; } projectile.velocity = vector3; - int num6 = mod.ProjectileType("PurgeLaser"); + int num6 = ModContent.ProjectileType(); float scaleFactor2 = 14f; int num7 = 7; for (int j = 0; j < 3; j++) diff --git a/Projectiles/Magic/PurgeLaser.cs b/Projectiles/Magic/PurgeLaser.cs index e48c5ddff7..c2a083e293 100644 --- a/Projectiles/Magic/PurgeLaser.cs +++ b/Projectiles/Magic/PurgeLaser.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class PurgeLaser : ModProjectile { diff --git a/Projectiles/Magic/RougeSlashLarge.cs b/Projectiles/Magic/RougeSlashLarge.cs index 402509b7f9..40f0272c81 100644 --- a/Projectiles/Magic/RougeSlashLarge.cs +++ b/Projectiles/Magic/RougeSlashLarge.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class RougeSlashLarge : ModProjectile { diff --git a/Projectiles/Magic/RougeSlashMedium.cs b/Projectiles/Magic/RougeSlashMedium.cs index ce5dfc25af..5e630596c6 100644 --- a/Projectiles/Magic/RougeSlashMedium.cs +++ b/Projectiles/Magic/RougeSlashMedium.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class RougeSlashMedium : ModProjectile { diff --git a/Projectiles/Magic/RougeSlashSmall.cs b/Projectiles/Magic/RougeSlashSmall.cs index 588f131ffc..cc34619947 100644 --- a/Projectiles/Magic/RougeSlashSmall.cs +++ b/Projectiles/Magic/RougeSlashSmall.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class RougeSlashSmall : ModProjectile { diff --git a/Projectiles/Magic/SHPB.cs b/Projectiles/Magic/SHPB.cs index 3322de7fbb..f6763d7680 100644 --- a/Projectiles/Magic/SHPB.cs +++ b/Projectiles/Magic/SHPB.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SHPB : ModProjectile { @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Magic Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 105); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("SHPExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/SHPExplosion.cs b/Projectiles/Magic/SHPExplosion.cs index 3e46dfb4fd..ffb2f23176 100644 --- a/Projectiles/Magic/SHPExplosion.cs +++ b/Projectiles/Magic/SHPExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SHPExplosion : ModProjectile { diff --git a/Projectiles/Magic/SHPL.cs b/Projectiles/Magic/SHPL.cs index 63fefb9953..5b5cc85622 100644 --- a/Projectiles/Magic/SHPL.cs +++ b/Projectiles/Magic/SHPL.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SHPL : ModProjectile { diff --git a/Projectiles/Magic/SanguineFlare.cs b/Projectiles/Magic/SanguineFlare.cs index 35c13ef3fb..a29db844f4 100644 --- a/Projectiles/Magic/SanguineFlare.cs +++ b/Projectiles/Magic/SanguineFlare.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SanguineFlare : ModProjectile { @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Magic Player player = Main.player[projectile.owner]; player.statLife += 1; player.HealEffect(1); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs b/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs index 38f196ab17..1b73656d97 100644 --- a/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs +++ b/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SeethingDischargeBrimstoneBarrage : ModProjectile { diff --git a/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs b/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs index f5996d4e2d..385dedec9a 100644 --- a/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs +++ b/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SeethingDischargeBrimstoneHellblast : ModProjectile { diff --git a/Projectiles/Magic/ShadeNimbus.cs b/Projectiles/Magic/ShadeNimbus.cs index 94f9df8dfc..d3bd443f20 100644 --- a/Projectiles/Magic/ShadeNimbus.cs +++ b/Projectiles/Magic/ShadeNimbus.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ShadeNimbus : ModProjectile { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Magic { int num414 = (int)(projectile.position.X + 14f + (float)Main.rand.Next(projectile.width - 28)); int num415 = (int)(projectile.position.Y + (float)projectile.height + 4f); - Projectile.NewProjectile((float)num414, (float)num415, 0f, 5f, mod.ProjectileType("Shaderain"), projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile((float)num414, (float)num415, 0f, 5f, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/ShadeNimbusCloud.cs b/Projectiles/Magic/ShadeNimbusCloud.cs index 3253200943..c4882f8f13 100644 --- a/Projectiles/Magic/ShadeNimbusCloud.cs +++ b/Projectiles/Magic/ShadeNimbusCloud.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ShadeNimbusCloud : ModProjectile { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Magic { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShadeNimbus"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/ShadecrystalProjectile.cs b/Projectiles/Magic/ShadecrystalProjectile.cs index 36739b240b..db3cab0dee 100644 --- a/Projectiles/Magic/ShadecrystalProjectile.cs +++ b/Projectiles/Magic/ShadecrystalProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ShadecrystalProjectile : ModProjectile { diff --git a/Projectiles/Magic/Shaderain.cs b/Projectiles/Magic/Shaderain.cs index e080beb9d9..eb31283ba4 100644 --- a/Projectiles/Magic/Shaderain.cs +++ b/Projectiles/Magic/Shaderain.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Shaderain : ModProjectile { diff --git a/Projectiles/Magic/Shadowbolt.cs b/Projectiles/Magic/Shadowbolt.cs index 2c65ceacaa..dd22d7cad1 100644 --- a/Projectiles/Magic/Shadowbolt.cs +++ b/Projectiles/Magic/Shadowbolt.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Shadowbolt : ModProjectile { diff --git a/Projectiles/Magic/ShiftingSands.cs b/Projectiles/Magic/ShiftingSands.cs index 7c0d2d2011..3cf5a9162f 100644 --- a/Projectiles/Magic/ShiftingSands.cs +++ b/Projectiles/Magic/ShiftingSands.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ShiftingSands : ModProjectile { diff --git a/Projectiles/Magic/SirensSong.cs b/Projectiles/Magic/SirensSong.cs index f5fe8570df..66736c90f4 100644 --- a/Projectiles/Magic/SirensSong.cs +++ b/Projectiles/Magic/SirensSong.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SirensSong : ModProjectile { diff --git a/Projectiles/Magic/Snowflake.cs b/Projectiles/Magic/Snowflake.cs index 74bf89d2c1..4bd30e8a97 100644 --- a/Projectiles/Magic/Snowflake.cs +++ b/Projectiles/Magic/Snowflake.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Snowflake : ModProjectile { diff --git a/Projectiles/Magic/SolarBeam2.cs b/Projectiles/Magic/SolarBeam2.cs index dc92db084b..60ce10f2b8 100644 --- a/Projectiles/Magic/SolarBeam2.cs +++ b/Projectiles/Magic/SolarBeam2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SolarBeam2 : ModProjectile { @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Magic target.immune[projectile.owner] = 4; if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[proj].Calamity().forceMagic = true; } } diff --git a/Projectiles/Magic/SoulPiercer.cs b/Projectiles/Magic/SoulPiercerBeam.cs similarity index 85% rename from Projectiles/Magic/SoulPiercer.cs rename to Projectiles/Magic/SoulPiercerBeam.cs index aaa3eaafed..e047bd161b 100644 --- a/Projectiles/Magic/SoulPiercer.cs +++ b/Projectiles/Magic/SoulPiercerBeam.cs @@ -1,11 +1,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { - public class SoulPiercer : ModProjectile + public class SoulPiercerBeam : ModProjectile { public override void SetStaticDefaults() { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Magic speedY *= dir * 150; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("SoulPiercerBolt"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner); } } } diff --git a/Projectiles/Magic/SoulPiercer.png b/Projectiles/Magic/SoulPiercerBeam.png similarity index 100% rename from Projectiles/Magic/SoulPiercer.png rename to Projectiles/Magic/SoulPiercerBeam.png diff --git a/Projectiles/Magic/SoulPiercerBolt.cs b/Projectiles/Magic/SoulPiercerBolt.cs index 3c0ae11ff9..49fd645853 100644 --- a/Projectiles/Magic/SoulPiercerBolt.cs +++ b/Projectiles/Magic/SoulPiercerBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SoulPiercerBolt : ModProjectile { diff --git a/Projectiles/Magic/SpiritFlameCurse.cs b/Projectiles/Magic/SpiritFlameCurse.cs index 18be054807..ba4897a630 100644 --- a/Projectiles/Magic/SpiritFlameCurse.cs +++ b/Projectiles/Magic/SpiritFlameCurse.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SpiritFlameCurse : ModProjectile { diff --git a/Projectiles/Magic/Starblast.cs b/Projectiles/Magic/Starblast.cs index 4d34d770e5..d9cc05f519 100644 --- a/Projectiles/Magic/Starblast.cs +++ b/Projectiles/Magic/Starblast.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Starblast : ModProjectile { diff --git a/Projectiles/Magic/StickyFeather.cs b/Projectiles/Magic/StickyFeather.cs index a21287bdad..6606d9a002 100644 --- a/Projectiles/Magic/StickyFeather.cs +++ b/Projectiles/Magic/StickyFeather.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class StickyFeather : ModProjectile { diff --git a/Projectiles/Magic/SupremeDustFlakProjectile.cs b/Projectiles/Magic/SupremeDustFlakProjectile.cs index 9b346857a8..e5e909710f 100644 --- a/Projectiles/Magic/SupremeDustFlakProjectile.cs +++ b/Projectiles/Magic/SupremeDustFlakProjectile.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SupremeDustFlakProjectile : ModProjectile { diff --git a/Projectiles/Magic/SupremeDustProjectile.cs b/Projectiles/Magic/SupremeDustProjectile.cs index 5e1c7a9ae6..cdbf24470b 100644 --- a/Projectiles/Magic/SupremeDustProjectile.cs +++ b/Projectiles/Magic/SupremeDustProjectile.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class SupremeDustProjectile : ModProjectile { @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Magic target.immune[projectile.owner] = 6; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("SupremeDustFlakProjectile"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/T1000.cs b/Projectiles/Magic/T1000.cs index 14fea069c3..2b8f0666d5 100644 --- a/Projectiles/Magic/T1000.cs +++ b/Projectiles/Magic/T1000.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class T1000 : ModProjectile { @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic Player player = Main.player[projectile.owner]; float num = 1.57079637f; Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true); - if (projectile.type == mod.ProjectileType("T1000")) + if (projectile.type == ModContent.ProjectileType()) { projectile.ai[0] += 1f; int num2 = 0; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Magic projectile.netUpdate = true; } projectile.velocity = vector3; - int num6 = mod.ProjectileType("T1000Laser"); + int num6 = ModContent.ProjectileType(); float scaleFactor2 = 14f; int num7 = 7; for (int j = 0; j < 4; j++) diff --git a/Projectiles/Magic/T1000Laser.cs b/Projectiles/Magic/T1000Laser.cs index 944a9f4df9..d698ba3461 100644 --- a/Projectiles/Magic/T1000Laser.cs +++ b/Projectiles/Magic/T1000Laser.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class T1000Laser : ModProjectile { diff --git a/Projectiles/Magic/TearsofHeavenProjectile.cs b/Projectiles/Magic/TearsofHeavenProjectile.cs index e3c3e907b3..4cefd1dcd2 100644 --- a/Projectiles/Magic/TearsofHeavenProjectile.cs +++ b/Projectiles/Magic/TearsofHeavenProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class TearsofHeavenProjectile : ModProjectile { @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 6; - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Magic/TerraBolt.cs b/Projectiles/Magic/TerraBolt.cs index b2ef6bde59..2ca18c604a 100644 --- a/Projectiles/Magic/TerraBolt.cs +++ b/Projectiles/Magic/TerraBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class TerraBolt : ModProjectile { @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 29f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("TerraOrb2"), (int)((double)projectile.damage * 0.7), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 9f) diff --git a/Projectiles/Magic/TerraBolt2.cs b/Projectiles/Magic/TerraBolt2.cs index 0fccd0faba..dc40806f48 100644 --- a/Projectiles/Magic/TerraBolt2.cs +++ b/Projectiles/Magic/TerraBolt2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class TerraBolt2 : ModProjectile { diff --git a/Projectiles/Magic/TerraOrb.cs b/Projectiles/Magic/TerraOrb.cs index 39aa5f0127..f2e883c95a 100644 --- a/Projectiles/Magic/TerraOrb.cs +++ b/Projectiles/Magic/TerraOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class TerraOrb : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("TerraBolt"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/TerraOrb2.cs b/Projectiles/Magic/TerraOrb2.cs index 2805d1329f..6a83c32f86 100644 --- a/Projectiles/Magic/TerraOrb2.cs +++ b/Projectiles/Magic/TerraOrb2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class TerraOrb2 : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("TerraBolt2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/TerraRay.cs b/Projectiles/Magic/TerraRay.cs index b09fd5ca56..fdba01647b 100644 --- a/Projectiles/Magic/TerraRay.cs +++ b/Projectiles/Magic/TerraRay.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class TerraRay : ModProjectile { @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 21f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("TerraOrb"), (int)((double)projectile.damage * 0.7), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 9f) diff --git a/Projectiles/Magic/ThunderstormShot.cs b/Projectiles/Magic/ThunderstormShot.cs index b89ad28471..f8897d0042 100644 --- a/Projectiles/Magic/ThunderstormShot.cs +++ b/Projectiles/Magic/ThunderstormShot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ThunderstormShot : ModProjectile { @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Magic num16 = (float)num15 / num16; num13 *= num16; num14 *= num16; - Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("ThunderstormShotSplit"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(x, y, num13, num14, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projectile.position = projectile.Center; projectile.width = projectile.height = 36; diff --git a/Projectiles/Magic/ThunderstormShotSplit.cs b/Projectiles/Magic/ThunderstormShotSplit.cs index f3b067fcf1..d57b196864 100644 --- a/Projectiles/Magic/ThunderstormShotSplit.cs +++ b/Projectiles/Magic/ThunderstormShotSplit.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class ThunderstormShotSplit : ModProjectile { diff --git a/Projectiles/Magic/TradewindsProjectile.cs b/Projectiles/Magic/TradewindsProjectile.cs index 21dc99ae42..0d0f44a3c6 100644 --- a/Projectiles/Magic/TradewindsProjectile.cs +++ b/Projectiles/Magic/TradewindsProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class TradewindsProjectile : ModProjectile { diff --git a/Projectiles/Magic/UberBubble.cs b/Projectiles/Magic/UberBubble.cs index 5ebec6ae68..541a66d067 100644 --- a/Projectiles/Magic/UberBubble.cs +++ b/Projectiles/Magic/UberBubble.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class UberBubble : ModProjectile { @@ -66,7 +66,7 @@ namespace CalamityMod.Projectiles.Magic { for (int numBubbles = 0; numBubbles <= Main.rand.Next(3, 7); numBubbles++) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * (Main.rand.NextFloat() * 2f), projectile.velocity.Y * (Main.rand.NextFloat() * 2f), mod.ProjectileType("BlueBubble"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * (Main.rand.NextFloat() * 2f), projectile.velocity.Y * (Main.rand.NextFloat() * 2f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/UndinesRetribution.cs b/Projectiles/Magic/UndinesRetribution.cs index d827b90e38..3973e39b9a 100644 --- a/Projectiles/Magic/UndinesRetribution.cs +++ b/Projectiles/Magic/UndinesRetribution.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class UndinesRetribution : ModProjectile { @@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override void Kill(int timeLeft) diff --git a/Projectiles/Magic/Vehemence.cs b/Projectiles/Magic/Vehemence.cs index 4d9737696d..4e4cc42467 100644 --- a/Projectiles/Magic/Vehemence.cs +++ b/Projectiles/Magic/Vehemence.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Vehemence : ModProjectile { diff --git a/Projectiles/Magic/VenusianBolt.cs b/Projectiles/Magic/VenusianBolt.cs index 3505556fed..9c7ce35b1c 100644 --- a/Projectiles/Magic/VenusianBolt.cs +++ b/Projectiles/Magic/VenusianBolt.cs @@ -1,10 +1,10 @@ -using CalamityMod.Items.Weapons; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class VenusianBolt : ModProjectile { @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Magic { int explosionDamage = VenusianTrident.BaseDamage; float explosionKB = 6f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("VenusianExplosion"), explosionDamage, explosionKB, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), explosionDamage, explosionKB, projectile.owner, 0f, 0f); int cinderDamage = (int)(VenusianTrident.BaseDamage * 0.75f); float cinderKB = 0f; @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Magic } cinderVel.Normalize(); cinderVel *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(cinderPos, cinderVel, mod.ProjectileType("VenusianFlame"), cinderDamage, cinderKB, projectile.owner, 0f, 0f); + Projectile.NewProjectile(cinderPos, cinderVel, ModContent.ProjectileType(), cinderDamage, cinderKB, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/VenusianExplosion.cs b/Projectiles/Magic/VenusianExplosion.cs index 2cd4168fd6..8a281ef479 100644 --- a/Projectiles/Magic/VenusianExplosion.cs +++ b/Projectiles/Magic/VenusianExplosion.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class VenusianExplosion : ModProjectile { diff --git a/Projectiles/Magic/VenusianFlame.cs b/Projectiles/Magic/VenusianFlame.cs index b55f8f4533..592738d146 100644 --- a/Projectiles/Magic/VenusianFlame.cs +++ b/Projectiles/Magic/VenusianFlame.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class VenusianFlame : ModProjectile { diff --git a/Projectiles/Magic/Viscera.cs b/Projectiles/Magic/Viscera.cs index 82925c3b47..fb6a65a93c 100644 --- a/Projectiles/Magic/Viscera.cs +++ b/Projectiles/Magic/Viscera.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Viscera : ModProjectile { diff --git a/Projectiles/Magic/VividBolt.cs b/Projectiles/Magic/VividBolt.cs index 482aebed49..801c232ca0 100644 --- a/Projectiles/Magic/VividBolt.cs +++ b/Projectiles/Magic/VividBolt.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class VividBolt : ModProjectile { @@ -65,11 +65,11 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Magic/VividClarity.cs b/Projectiles/Magic/VividClarity.cs index 7974f157ea..dbf1ffaeb7 100644 --- a/Projectiles/Magic/VividClarity.cs +++ b/Projectiles/Magic/VividClarity.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class VividClarity : ModProjectile { @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] >= 29f && projectile.owner == Main.myPlayer) { projectile.localAI[1] = 0f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("VividOrb"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) @@ -99,11 +99,11 @@ namespace CalamityMod.Projectiles.Magic return; } projectile.damage = (int)((double)projectile.damage * 1.05); - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Magic/VividOrb.cs b/Projectiles/Magic/VividOrb.cs index 83f8859d81..45f360cee0 100644 --- a/Projectiles/Magic/VividOrb.cs +++ b/Projectiles/Magic/VividOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class VividOrb : ModProjectile { @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Magic num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("VividBolt"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Magic/VolatileStarcore.cs b/Projectiles/Magic/VolatileStarcore.cs index b563ad9cf5..255182846c 100644 --- a/Projectiles/Magic/VolatileStarcore.cs +++ b/Projectiles/Magic/VolatileStarcore.cs @@ -1,10 +1,10 @@ -using CalamityMod.Items.Weapons; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class VolatileStarcore : ModProjectile { @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Daybreak, 900); - target.AddBuff(mod.BuffType("Irradiated"), 900); + target.AddBuff(ModContent.BuffType(), 900); } public override void Kill(int timeLeft) @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Magic return; // Spawn a Helium Flash on impact - int type = mod.ProjectileType("HeliumFlashBlast"); + int type = ModContent.ProjectileType(); int damage = HeliumFlash.BaseDamage; float kb = 9.5f; Projectile.NewProjectile(projectile.Center, Vector2.Zero, type, damage, kb, projectile.owner, 0f, 0f); diff --git a/Projectiles/Magic/Vortex.cs b/Projectiles/Magic/Vortex.cs index e97024d92a..2604d6a499 100644 --- a/Projectiles/Magic/Vortex.cs +++ b/Projectiles/Magic/Vortex.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class Vortex : ModProjectile { @@ -158,11 +158,11 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Magic/WaterStream.cs b/Projectiles/Magic/WaterStream.cs index aecb1a51f5..ca15cda18a 100644 --- a/Projectiles/Magic/WaterStream.cs +++ b/Projectiles/Magic/WaterStream.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class WaterStream : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Magic { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("WaterStream2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } addSprayTimer = 20; } diff --git a/Projectiles/Magic/WaterStream2.cs b/Projectiles/Magic/WaterStream2.cs index 84726914bc..b5ccf91ccd 100644 --- a/Projectiles/Magic/WaterStream2.cs +++ b/Projectiles/Magic/WaterStream2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class WaterStream2 : ModProjectile { diff --git a/Projectiles/Magic/WhiteFlame.cs b/Projectiles/Magic/WhiteFlame.cs index 791eaba911..497b4297d6 100644 --- a/Projectiles/Magic/WhiteFlame.cs +++ b/Projectiles/Magic/WhiteFlame.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class WhiteFlame : ModProjectile { @@ -49,14 +49,14 @@ namespace CalamityMod.Projectiles.Magic } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("WhiteFlame2"), (int)(double)projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, ModContent.ProjectileType(), (int)(double)projectile.damage, 0f, projectile.owner, 0f, 0f); } } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 360); + target.AddBuff(ModContent.BuffType(), 360); } } } diff --git a/Projectiles/Magic/WhiteFlame2.cs b/Projectiles/Magic/WhiteFlame2.cs index cbfe3edd6b..dd5737efb6 100644 --- a/Projectiles/Magic/WhiteFlame2.cs +++ b/Projectiles/Magic/WhiteFlame2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class WhiteFlame2 : ModProjectile { @@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 360); + target.AddBuff(ModContent.BuffType(), 360); } } } diff --git a/Projectiles/Magic/WintersFury.cs b/Projectiles/Magic/WintersFury.cs index 76b99fd567..56fd6672c8 100644 --- a/Projectiles/Magic/WintersFury.cs +++ b/Projectiles/Magic/WintersFury.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class WintersFury : ModProjectile { diff --git a/Projectiles/Magic/WulfrumBolt.cs b/Projectiles/Magic/WulfrumBolt.cs index 68f0a44908..9cdde8bace 100644 --- a/Projectiles/Magic/WulfrumBolt.cs +++ b/Projectiles/Magic/WulfrumBolt.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class WulfrumBolt : ModProjectile { diff --git a/Projectiles/Magic/YharimsCrystal.cs b/Projectiles/Magic/YharimsCrystal.cs index 77adb516bb..29bbb30350 100644 --- a/Projectiles/Magic/YharimsCrystal.cs +++ b/Projectiles/Magic/YharimsCrystal.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class YharimsCrystal : ModProjectile { @@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Magic int num29 = projectile.damage; for (int l = 0; l < 7; l++) { - Projectile.NewProjectile(center3.X, center3.Y, vector12.X, vector12.Y, mod.ProjectileType("YharimsCrystalBeam"), num29, projectile.knockBack, projectile.owner, (float)l, (float)projectile.whoAmI); + Projectile.NewProjectile(center3.X, center3.Y, vector12.X, vector12.Y, ModContent.ProjectileType(), num29, projectile.knockBack, projectile.owner, (float)l, (float)projectile.whoAmI); } projectile.netUpdate = true; } diff --git a/Projectiles/Magic/YharimsCrystalBeam.cs b/Projectiles/Magic/YharimsCrystalBeam.cs index 5f45d5cb3c..7d681f8a60 100644 --- a/Projectiles/Magic/YharimsCrystalBeam.cs +++ b/Projectiles/Magic/YharimsCrystalBeam.cs @@ -8,9 +8,9 @@ using Terraria.Enums; using Terraria.GameContent.Shaders; using Terraria.Graphics.Effects; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Magic +namespace CalamityMod.Projectiles { public class YharimsCrystalBeam : ModProjectile { @@ -116,7 +116,7 @@ namespace CalamityMod.Projectiles.Magic { projectile.velocity = -Vector2.UnitY; } - if (projectile.type != mod.ProjectileType("YharimsCrystalBeam") || !Main.projectile[(int)projectile.ai[1]].active || Main.projectile[(int)projectile.ai[1]].type != mod.ProjectileType("YharimsCrystal")) + if (projectile.type != ModContent.ProjectileType() || !Main.projectile[(int)projectile.ai[1]].active || Main.projectile[(int)projectile.ai[1]].type != ModContent.ProjectileType()) { projectile.Kill(); return; diff --git a/Projectiles/Melee/AccretionDisk2Melee.cs b/Projectiles/Melee/AccretionDisk2Melee.cs index 727a35ac89..9a527b3e60 100644 --- a/Projectiles/Melee/AccretionDisk2Melee.cs +++ b/Projectiles/Melee/AccretionDisk2Melee.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class AccretionDisk2Melee : ModProjectile { @@ -42,10 +42,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/AccretionDiskMelee.cs b/Projectiles/Melee/AccretionDiskMelee.cs index 1975d5e989..ecddbfe99f 100644 --- a/Projectiles/Melee/AccretionDiskMelee.cs +++ b/Projectiles/Melee/AccretionDiskMelee.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class AccretionDiskMelee : ModProjectile { @@ -94,8 +94,8 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("AccretionDisk2Melee"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("AccretionDisk2Melee"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -105,10 +105,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/AegisBeam.cs b/Projectiles/Melee/AegisBeam.cs index 4588ffe96b..7ba65c3218 100644 --- a/Projectiles/Melee/AegisBeam.cs +++ b/Projectiles/Melee/AegisBeam.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class AegisBeam : ModProjectile { @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Melee } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("AegisFlame"), (int)((double)projectile.damage * 0.75), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/AegisBlast.cs b/Projectiles/Melee/AegisBlast.cs index dabd0ef34a..42fbc13969 100644 --- a/Projectiles/Melee/AegisBlast.cs +++ b/Projectiles/Melee/AegisBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class AegisBlast : ModProjectile { diff --git a/Projectiles/Melee/AegisBlast2.cs b/Projectiles/Melee/AegisBlast2.cs index 6ba9594b18..2cea7f4463 100644 --- a/Projectiles/Melee/AegisBlast2.cs +++ b/Projectiles/Melee/AegisBlast2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class AegisBlast2 : ModProjectile { diff --git a/Projectiles/Melee/AegisFlame.cs b/Projectiles/Melee/AegisFlame.cs index e8faa1282b..99d5cd4281 100644 --- a/Projectiles/Melee/AegisFlame.cs +++ b/Projectiles/Melee/AegisFlame.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class AegisFlame : ModProjectile { @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("AegisBlast2"), (int)((double)damage * 0.75), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)damage * 0.75), knockback, Main.myPlayer); } } diff --git a/Projectiles/Melee/Aftershock.cs b/Projectiles/Melee/Aftershock.cs index 71241d7d4f..369d866c2f 100644 --- a/Projectiles/Melee/Aftershock.cs +++ b/Projectiles/Melee/Aftershock.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Aftershock : ModProjectile { diff --git a/Projectiles/Melee/BalefulHarvesterProjectile.cs b/Projectiles/Melee/BalefulHarvesterProjectile.cs index d46dc047ad..e431733200 100644 --- a/Projectiles/Melee/BalefulHarvesterProjectile.cs +++ b/Projectiles/Melee/BalefulHarvesterProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BalefulHarvesterProjectile : ModProjectile { @@ -144,7 +144,7 @@ namespace CalamityMod.Projectiles.Melee for (int k = 0; k < 2; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, mod.ProjectileType("TinyFlare"), + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.35), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 0f); } } diff --git a/Projectiles/Melee/BallOFugu.cs b/Projectiles/Melee/BallOFugu.cs index e58758939e..0561b87550 100644 --- a/Projectiles/Melee/BallOFugu.cs +++ b/Projectiles/Melee/BallOFugu.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BallOFugu : ModProjectile { @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Melee vector63.Normalize(); vector63 *= (float)Main.rand.Next(45, 65) * 0.1f; vector63 = vector63.RotatedBy((Main.rand.NextDouble() - 0.5) * 1.5707963705062866, default); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector63.X, vector63.Y, mod.ProjectileType("UrchinSpikeFugu"), (int)((double)projectile.damage * 0.6), projectile.knockBack * 0.2f, projectile.owner, -10f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector63.X, vector63.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.6), projectile.knockBack * 0.2f, projectile.owner, -10f, 0f); } } diff --git a/Projectiles/Melee/BansheeHookBoom.cs b/Projectiles/Melee/BansheeHookBoom.cs index 5180cf7a99..2b0e6abbb5 100644 --- a/Projectiles/Melee/BansheeHookBoom.cs +++ b/Projectiles/Melee/BansheeHookBoom.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BansheeHookBoom : ModProjectile { diff --git a/Projectiles/Melee/BansheeHookScythe.cs b/Projectiles/Melee/BansheeHookScythe.cs index b80de4a1fd..9fb725020a 100644 --- a/Projectiles/Melee/BansheeHookScythe.cs +++ b/Projectiles/Melee/BansheeHookScythe.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BansheeHookScythe : ModProjectile { diff --git a/Projectiles/Melee/BiomeOrb.cs b/Projectiles/Melee/BiomeOrb.cs index 92739d1520..6134cc2340 100644 --- a/Projectiles/Melee/BiomeOrb.cs +++ b/Projectiles/Melee/BiomeOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BiomeOrb : ModProjectile { @@ -102,15 +102,15 @@ namespace CalamityMod.Projectiles.Melee bool hell = player.ZoneUnderworldHeight; if (jungle) { - target.AddBuff(mod.BuffType("Plague"), 180); + target.AddBuff(ModContent.BuffType(), 180); } else if (snow) { - target.AddBuff(mod.BuffType("GlacialState"), 180); + target.AddBuff(ModContent.BuffType(), 180); } else if (beach) { - target.AddBuff(mod.BuffType("CrushDepth"), 180); + target.AddBuff(ModContent.BuffType(), 180); } else if (dungeon) { @@ -118,19 +118,19 @@ namespace CalamityMod.Projectiles.Melee } else if (desert) { - target.AddBuff(mod.BuffType("HolyLight"), 180); + target.AddBuff(ModContent.BuffType(), 180); } else if (glow) { - target.AddBuff(mod.BuffType("TemporalSadness"), 180); + target.AddBuff(ModContent.BuffType(), 180); } else if (hell) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/BlazingPhantomBlade.cs b/Projectiles/Melee/BlazingPhantomBlade.cs index da46216b29..54f82a9b21 100644 --- a/Projectiles/Melee/BlazingPhantomBlade.cs +++ b/Projectiles/Melee/BlazingPhantomBlade.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BlazingPhantomBlade : ModProjectile { diff --git a/Projectiles/Melee/Blood.cs b/Projectiles/Melee/Blood.cs index eb96ee1670..1c37c0dea2 100644 --- a/Projectiles/Melee/Blood.cs +++ b/Projectiles/Melee/Blood.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Blood : ModProjectile { diff --git a/Projectiles/Melee/Blood2.cs b/Projectiles/Melee/Blood2.cs index dcfee74cc2..5a85d95d88 100644 --- a/Projectiles/Melee/Blood2.cs +++ b/Projectiles/Melee/Blood2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Blood2 : ModProjectile { diff --git a/Projectiles/Melee/BloodBall.cs b/Projectiles/Melee/BloodBall.cs index 0adce3e848..44f9ed4de2 100644 --- a/Projectiles/Melee/BloodBall.cs +++ b/Projectiles/Melee/BloodBall.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BloodBall : ModProjectile { diff --git a/Projectiles/Melee/BloodScythe.cs b/Projectiles/Melee/BloodScythe.cs index 850b1bdbf0..e569b723fa 100644 --- a/Projectiles/Melee/BloodScythe.cs +++ b/Projectiles/Melee/BloodScythe.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BloodScythe : ModProjectile { diff --git a/Projectiles/Melee/BloodyBlade.cs b/Projectiles/Melee/BloodyBlade.cs index 372d74ca02..f56c88a042 100644 --- a/Projectiles/Melee/BloodyBlade.cs +++ b/Projectiles/Melee/BloodyBlade.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BloodyBlade : ModProjectile { diff --git a/Projectiles/Melee/BlueAura.cs b/Projectiles/Melee/BlueAura.cs index dfe60fa503..024145fe42 100644 --- a/Projectiles/Melee/BlueAura.cs +++ b/Projectiles/Melee/BlueAura.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BlueAura : ModProjectile { diff --git a/Projectiles/Melee/Brimblast.cs b/Projectiles/Melee/Brimblast.cs index 63a5909dcf..b52c2b0213 100644 --- a/Projectiles/Melee/Brimblast.cs +++ b/Projectiles/Melee/Brimblast.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Brimblast : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 7; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/BrimlanceHellfireExplosion.cs b/Projectiles/Melee/BrimlanceHellfireExplosion.cs index 12dee1908f..02e53f7f8d 100644 --- a/Projectiles/Melee/BrimlanceHellfireExplosion.cs +++ b/Projectiles/Melee/BrimlanceHellfireExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BrimlanceHellfireExplosion : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Melee/BrimlanceStandingFire.cs b/Projectiles/Melee/BrimlanceStandingFire.cs index 9af44b38ad..f356df0ee3 100644 --- a/Projectiles/Melee/BrimlanceStandingFire.cs +++ b/Projectiles/Melee/BrimlanceStandingFire.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BrimlanceStandingFire : ModProjectile { @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 7; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/Brimlash.cs b/Projectiles/Melee/Brimlash.cs index 33ebf2f05e..fb8e825292 100644 --- a/Projectiles/Melee/Brimlash.cs +++ b/Projectiles/Melee/Brimlash.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Brimlash : ModProjectile { @@ -57,15 +57,15 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 2; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Brimlash2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Brimlash2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/Brimlash2.cs b/Projectiles/Melee/Brimlash2.cs index 1823ff192c..d821fa66ec 100644 --- a/Projectiles/Melee/Brimlash2.cs +++ b/Projectiles/Melee/Brimlash2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Brimlash2 : ModProjectile { @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/BrimstoneBoom.cs b/Projectiles/Melee/BrimstoneBoom.cs index b0f0cb831b..645cd37045 100644 --- a/Projectiles/Melee/BrimstoneBoom.cs +++ b/Projectiles/Melee/BrimstoneBoom.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BrimstoneBoom : ModProjectile { diff --git a/Projectiles/Melee/BrimstoneLaserFriendly.cs b/Projectiles/Melee/BrimstoneLaserFriendly.cs index 33ae4710b2..91d097dc3b 100644 --- a/Projectiles/Melee/BrimstoneLaserFriendly.cs +++ b/Projectiles/Melee/BrimstoneLaserFriendly.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BrimstoneLaserFriendly : ModProjectile { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 60); + target.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/Projectiles/Melee/BrinySpout.cs b/Projectiles/Melee/BrinySpout.cs index a74839d382..fb51d6ea23 100644 --- a/Projectiles/Melee/BrinySpout.cs +++ b/Projectiles/Melee/BrinySpout.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BrinySpout : ModProjectile { diff --git a/Projectiles/Melee/BrinyTyphoonBubble.cs b/Projectiles/Melee/BrinyTyphoonBubble.cs index 9690331e0a..43c89771d4 100644 --- a/Projectiles/Melee/BrinyTyphoonBubble.cs +++ b/Projectiles/Melee/BrinyTyphoonBubble.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BrinyTyphoonBubble : ModProjectile { @@ -137,7 +137,7 @@ namespace CalamityMod.Projectiles.Melee break; } } - int num335 = Projectile.NewProjectile((float)(num331 * 16 + 8), (float)(num330 * 16 - 24), 0f, 0f, mod.ProjectileType("BrinySpout"), projectile.damage, 6f, Main.myPlayer, 16f, 25f); + int num335 = Projectile.NewProjectile((float)(num331 * 16 + 8), (float)(num330 * 16 - 24), 0f, 0f, ModContent.ProjectileType(), projectile.damage, 6f, Main.myPlayer, 16f, 25f); Main.projectile[num335].netUpdate = true; } } diff --git a/Projectiles/Melee/BurningMeteor.cs b/Projectiles/Melee/BurningMeteor.cs index 160a017c7f..ef24a42748 100644 --- a/Projectiles/Melee/BurningMeteor.cs +++ b/Projectiles/Melee/BurningMeteor.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class BurningMeteor : ModProjectile { diff --git a/Projectiles/Melee/CalamityAura.cs b/Projectiles/Melee/CalamityAura.cs index b1b2fc70e1..829b0490bb 100644 --- a/Projectiles/Melee/CalamityAura.cs +++ b/Projectiles/Melee/CalamityAura.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CalamityAura : ModProjectile { diff --git a/Projectiles/Melee/CalamityAuraType2.cs b/Projectiles/Melee/CalamityAuraType2.cs index e3d41cd63e..ad6ef94205 100644 --- a/Projectiles/Melee/CalamityAuraType2.cs +++ b/Projectiles/Melee/CalamityAuraType2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CalamityAuraType2 : ModProjectile { diff --git a/Projectiles/Melee/CalamityAuraType3.cs b/Projectiles/Melee/CalamityAuraType3.cs index 4cd84af9c9..fe70db25ca 100644 --- a/Projectiles/Melee/CalamityAuraType3.cs +++ b/Projectiles/Melee/CalamityAuraType3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CalamityAuraType3 : ModProjectile { diff --git a/Projectiles/Melee/ChaosFlameLarge.cs b/Projectiles/Melee/ChaosFlameLarge.cs index e6381796d1..28496ca8be 100644 --- a/Projectiles/Melee/ChaosFlameLarge.cs +++ b/Projectiles/Melee/ChaosFlameLarge.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ChaosFlameLarge : ModProjectile { diff --git a/Projectiles/Melee/ChaosFlameMedium.cs b/Projectiles/Melee/ChaosFlameMedium.cs index 0053732ea2..bf6b441677 100644 --- a/Projectiles/Melee/ChaosFlameMedium.cs +++ b/Projectiles/Melee/ChaosFlameMedium.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ChaosFlameMedium : ModProjectile { diff --git a/Projectiles/Melee/ChaosFlameSmall.cs b/Projectiles/Melee/ChaosFlameSmall.cs index 30fc88bd45..16028fcad0 100644 --- a/Projectiles/Melee/ChaosFlameSmall.cs +++ b/Projectiles/Melee/ChaosFlameSmall.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ChaosFlameSmall : ModProjectile { diff --git a/Projectiles/Melee/CosmicBolt.cs b/Projectiles/Melee/CosmicBolt.cs index 9472a958b0..cf1c98da54 100644 --- a/Projectiles/Melee/CosmicBolt.cs +++ b/Projectiles/Melee/CosmicBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CosmicBolt : ModProjectile { diff --git a/Projectiles/Melee/CosmicDischarge.cs b/Projectiles/Melee/CosmicDischarge.cs index 42dd6c406a..f00a48fbae 100644 --- a/Projectiles/Melee/CosmicDischarge.cs +++ b/Projectiles/Melee/CosmicDischarge.cs @@ -4,9 +4,9 @@ using System; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CosmicDischarge : ModProjectile { @@ -224,14 +224,14 @@ namespace CalamityMod.Projectiles.Melee target.AddBuff(BuffID.Frostburn, 300); if (Main.rand.NextBool(3)) { - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); } if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("CosmicIceBurst"), damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; - player.AddBuff(mod.BuffType("CosmicFreeze"), 300); + player.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/CosmicIceBurst.cs b/Projectiles/Melee/CosmicIceBurst.cs index dfb3be72ac..71c1758d9c 100644 --- a/Projectiles/Melee/CosmicIceBurst.cs +++ b/Projectiles/Melee/CosmicIceBurst.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CosmicIceBurst : ModProjectile { diff --git a/Projectiles/Melee/CosmicOrb.cs b/Projectiles/Melee/CosmicOrb.cs index c48e79403e..d7051f1a20 100644 --- a/Projectiles/Melee/CosmicOrb.cs +++ b/Projectiles/Melee/CosmicOrb.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CosmicOrb : ModProjectile { @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Melee num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("CosmicBolt"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/CosmicSpiritBomb1.cs b/Projectiles/Melee/CosmicSpiritBomb1.cs index c24bcfe2c8..7590cc4815 100644 --- a/Projectiles/Melee/CosmicSpiritBomb1.cs +++ b/Projectiles/Melee/CosmicSpiritBomb1.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CosmicSpiritBomb1 : ModProjectile { diff --git a/Projectiles/Melee/CosmicSpiritBomb2.cs b/Projectiles/Melee/CosmicSpiritBomb2.cs index 1029634e6c..2b6aaf4be8 100644 --- a/Projectiles/Melee/CosmicSpiritBomb2.cs +++ b/Projectiles/Melee/CosmicSpiritBomb2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CosmicSpiritBomb2 : ModProjectile { diff --git a/Projectiles/Melee/CosmicSpiritBomb3.cs b/Projectiles/Melee/CosmicSpiritBomb3.cs index 8ec3a07126..48a01221c9 100644 --- a/Projectiles/Melee/CosmicSpiritBomb3.cs +++ b/Projectiles/Melee/CosmicSpiritBomb3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CosmicSpiritBomb3 : ModProjectile { diff --git a/Projectiles/Melee/CrystalDust.cs b/Projectiles/Melee/CrystalDust.cs index cd7927cad9..0cdbf3ffaf 100644 --- a/Projectiles/Melee/CrystalDust.cs +++ b/Projectiles/Melee/CrystalDust.cs @@ -3,9 +3,9 @@ using System; using Terraria; using Terraria.GameContent.Achievements; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class CrystalDust : ModProjectile { diff --git a/Projectiles/Melee/Cyclone.cs b/Projectiles/Melee/Cyclone.cs index e9d204b863..dde5c09f6c 100644 --- a/Projectiles/Melee/Cyclone.cs +++ b/Projectiles/Melee/Cyclone.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Cyclone : ModProjectile { diff --git a/Projectiles/Melee/DNA.cs b/Projectiles/Melee/DNA.cs index 0bfe15886d..03b2d7a8b8 100644 --- a/Projectiles/Melee/DNA.cs +++ b/Projectiles/Melee/DNA.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DNA : ModProjectile { @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Melee int num48 = projectile.type; if (projectile.ai[1] >= (float)(12 + Main.rand.Next(2))) { - num48 = mod.ProjectileType("DNA2"); + num48 = ModContent.ProjectileType(); } int num49 = projectile.damage; float num50 = projectile.knockBack; diff --git a/Projectiles/Melee/DNA2.cs b/Projectiles/Melee/DNA2.cs index 536d61a9a6..0f5e53bd15 100644 --- a/Projectiles/Melee/DNA2.cs +++ b/Projectiles/Melee/DNA2.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DNA2 : ModProjectile { diff --git a/Projectiles/Melee/Dark.cs b/Projectiles/Melee/Dark.cs index fa4e7f3b82..a1a93599d8 100644 --- a/Projectiles/Melee/Dark.cs +++ b/Projectiles/Melee/Dark.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Dark : ModProjectile { diff --git a/Projectiles/Melee/DarkBall.cs b/Projectiles/Melee/DarkBall.cs index 1abda1e8bf..1d50475261 100644 --- a/Projectiles/Melee/DarkBall.cs +++ b/Projectiles/Melee/DarkBall.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DarkBall : ModProjectile { diff --git a/Projectiles/Melee/DemonBlast.cs b/Projectiles/Melee/DemonBlast.cs index 9b25213bf0..af2b56cf6f 100644 --- a/Projectiles/Melee/DemonBlast.cs +++ b/Projectiles/Melee/DemonBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DemonBlast : ModProjectile { diff --git a/Projectiles/Melee/DemonBlastType2.cs b/Projectiles/Melee/DemonBlastType2.cs index f557de473e..5507e69629 100644 --- a/Projectiles/Melee/DemonBlastType2.cs +++ b/Projectiles/Melee/DemonBlastType2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DemonBlastType2 : ModProjectile { @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); projectile.Kill(); } } diff --git a/Projectiles/Melee/DemonBlastType3.cs b/Projectiles/Melee/DemonBlastType3.cs index e27c45186b..a0b2142b64 100644 --- a/Projectiles/Melee/DemonBlastType3.cs +++ b/Projectiles/Melee/DemonBlastType3.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DemonBlastType3 : ModProjectile { @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); projectile.Kill(); } } diff --git a/Projectiles/Melee/DepthOrb.cs b/Projectiles/Melee/DepthOrb.cs index e635ac1571..d1016e7dc3 100644 --- a/Projectiles/Melee/DepthOrb.cs +++ b/Projectiles/Melee/DepthOrb.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DepthOrb : ModProjectile { @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/DepthOrb2.cs b/Projectiles/Melee/DepthOrb2.cs index fc3dcfbbe1..35efabb5d3 100644 --- a/Projectiles/Melee/DepthOrb2.cs +++ b/Projectiles/Melee/DepthOrb2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DepthOrb2 : ModProjectile { @@ -120,7 +120,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/DracoBeam.cs b/Projectiles/Melee/DracoBeam.cs index 060574dae4..f39e37f58f 100644 --- a/Projectiles/Melee/DracoBeam.cs +++ b/Projectiles/Melee/DracoBeam.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DracoBeam : ModProjectile { @@ -54,8 +54,8 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("DracoBeam2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("DracoBeam2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } for (int k = 0; k < 10; k++) diff --git a/Projectiles/Melee/DracoBeam2.cs b/Projectiles/Melee/DracoBeam2.cs index 0af4cf3e8c..9438b3bb85 100644 --- a/Projectiles/Melee/DracoBeam2.cs +++ b/Projectiles/Melee/DracoBeam2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DracoBeam2 : ModProjectile { diff --git a/Projectiles/Melee/DragonRage.cs b/Projectiles/Melee/DragonRage.cs index a0462db905..81c0c34d28 100644 --- a/Projectiles/Melee/DragonRage.cs +++ b/Projectiles/Melee/DragonRage.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class DragonRage : ModProjectile { diff --git a/Projectiles/Melee/Earth.cs b/Projectiles/Melee/Earth.cs index 976fa74893..55dd060679 100644 --- a/Projectiles/Melee/Earth.cs +++ b/Projectiles/Melee/Earth.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Earth : ModProjectile { @@ -109,15 +109,15 @@ namespace CalamityMod.Projectiles.Melee int projChoice = Main.rand.Next(3); if (projChoice == 0) { - projChoice = mod.ProjectileType("Earth2"); + projChoice = ModContent.ProjectileType(); } else if (projChoice == 1) { - projChoice = mod.ProjectileType("Earth3"); + projChoice = ModContent.ProjectileType(); } else { - projChoice = mod.ProjectileType("Earth4"); + projChoice = ModContent.ProjectileType(); } offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), projChoice, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); diff --git a/Projectiles/Melee/Earth2.cs b/Projectiles/Melee/Earth2.cs index b5d9da00b6..adaf5bdd6a 100644 --- a/Projectiles/Melee/Earth2.cs +++ b/Projectiles/Melee/Earth2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Earth2 : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GlacialState"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Melee/Earth3.cs b/Projectiles/Melee/Earth3.cs index 59aca37546..9202b0b12e 100644 --- a/Projectiles/Melee/Earth3.cs +++ b/Projectiles/Melee/Earth3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Earth3 : ModProjectile { @@ -150,7 +150,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Melee/Earth4.cs b/Projectiles/Melee/Earth4.cs index e76d034dfc..641de6bc03 100644 --- a/Projectiles/Melee/Earth4.cs +++ b/Projectiles/Melee/Earth4.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Earth4 : ModProjectile { @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Melee } Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; - Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("EarthHealOrb"), 0, 0f, projectile.owner, (float)num2, num); + Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num2, num); } } } diff --git a/Projectiles/Melee/ElementBall.cs b/Projectiles/Melee/ElementBall.cs index 86b0068767..e24269c475 100644 --- a/Projectiles/Melee/ElementBall.cs +++ b/Projectiles/Melee/ElementBall.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ElementBall : ModProjectile { @@ -66,10 +66,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/ElementBallShiv.cs b/Projectiles/Melee/ElementBallShiv.cs index 3fb7efd465..bb80d2fd07 100644 --- a/Projectiles/Melee/ElementBallShiv.cs +++ b/Projectiles/Melee/ElementBallShiv.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ElementBallShiv : ModProjectile { @@ -90,13 +90,13 @@ namespace CalamityMod.Projectiles.Melee { speedX *= dir * random; speedY *= dir * random; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("SHIV"), projectile.damage, 1f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), projectile.damage, 1f, projectile.owner); } } - target.AddBuff(mod.BuffType("HolyLight"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/ElementalExcaliburBeam.cs b/Projectiles/Melee/ElementalExcaliburBeam.cs index 62a7803e70..c55cb6c225 100644 --- a/Projectiles/Melee/ElementalExcaliburBeam.cs +++ b/Projectiles/Melee/ElementalExcaliburBeam.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ElementalExcaliburBeam : ModProjectile { @@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Melee for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, mod.ProjectileType("ElementalExcaliburBeam"), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } projectile.Kill(); @@ -258,7 +258,7 @@ namespace CalamityMod.Projectiles.Melee { projectile.localAI[1] = 1f; if (Main.myPlayer == projectile.owner) - Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("ElementalExcaliburBeam"), projectile.damage / 2, projectile.knockBack * 0.5f, projectile.owner, 10f, 0f); + Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), projectile.damage / 2, projectile.knockBack * 0.5f, projectile.owner, 10f, 0f); } break; @@ -276,11 +276,11 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 60); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 240); - target.AddBuff(mod.BuffType("GlacialState"), 240); - target.AddBuff(mod.BuffType("Plague"), 240); - target.AddBuff(mod.BuffType("HolyLight"), 240); + target.AddBuff(ModContent.BuffType(), 60); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); target.AddBuff(BuffID.CursedInferno, 240); target.AddBuff(BuffID.Frostburn, 240); target.AddBuff(BuffID.OnFire, 240); @@ -418,7 +418,7 @@ namespace CalamityMod.Projectiles.Melee speedY *= dir * 150; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("ElementalExcaliburBeam"), (int)((double)projectile.damage * 0.2), 2f, projectile.owner, 5f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.2), 2f, projectile.owner, 5f, 0f); } } diff --git a/Projectiles/Melee/EonBeam.cs b/Projectiles/Melee/EonBeam.cs index 6880d0bafb..6ad97a5bc1 100644 --- a/Projectiles/Melee/EonBeam.cs +++ b/Projectiles/Melee/EonBeam.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EonBeam : ModProjectile { @@ -60,10 +60,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/EonBeamV2.cs b/Projectiles/Melee/EonBeamV2.cs index 1ae2305805..9050b06c4f 100644 --- a/Projectiles/Melee/EonBeamV2.cs +++ b/Projectiles/Melee/EonBeamV2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EonBeamV2 : ModProjectile { @@ -60,10 +60,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/EonBeamV3.cs b/Projectiles/Melee/EonBeamV3.cs index d0cf8b4f95..d51c91438c 100644 --- a/Projectiles/Melee/EonBeamV3.cs +++ b/Projectiles/Melee/EonBeamV3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EonBeamV3 : ModProjectile { @@ -61,10 +61,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/EonBeamV4.cs b/Projectiles/Melee/EonBeamV4.cs index d705d4509e..9d261061c0 100644 --- a/Projectiles/Melee/EonBeamV4.cs +++ b/Projectiles/Melee/EonBeamV4.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EonBeamV4 : ModProjectile { @@ -61,10 +61,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/EradicatorMeleeProjectile.cs b/Projectiles/Melee/EradicatorMeleeProjectile.cs index e3489b45cc..31b9739e14 100644 --- a/Projectiles/Melee/EradicatorMeleeProjectile.cs +++ b/Projectiles/Melee/EradicatorMeleeProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EradicatorMeleeProjectile : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("NebulaShot"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int proj = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/EssenceBeam.cs b/Projectiles/Melee/EssenceBeam.cs index 9f4c82d115..5f4da76c34 100644 --- a/Projectiles/Melee/EssenceBeam.cs +++ b/Projectiles/Melee/EssenceBeam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EssenceBeam : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); target.immune[projectile.owner] = 2; } } diff --git a/Projectiles/Melee/EssenceFireball.cs b/Projectiles/Melee/EssenceFireball.cs index 79ab0d35bc..f0d3e1f8ac 100644 --- a/Projectiles/Melee/EssenceFireball.cs +++ b/Projectiles/Melee/EssenceFireball.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EssenceFireball : ModProjectile { @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/EssenceFlame2.cs b/Projectiles/Melee/EssenceFlame2.cs index 416fe307a9..5a680477ac 100644 --- a/Projectiles/Melee/EssenceFlame2.cs +++ b/Projectiles/Melee/EssenceFlame2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EssenceFlame2 : ModProjectile { diff --git a/Projectiles/Melee/EssenceScythe.cs b/Projectiles/Melee/EssenceScythe.cs index f9b1e26252..0ae1a20018 100644 --- a/Projectiles/Melee/EssenceScythe.cs +++ b/Projectiles/Melee/EssenceScythe.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class EssenceScythe : ModProjectile { @@ -104,12 +104,12 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 2; - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); if (target.life <= 0) { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.1f, projectile.velocity.Y * 0.1f, mod.ProjectileType("EssenceFlame"), 0, 0, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.1f, projectile.velocity.Y * 0.1f, ModContent.ProjectileType(), 0, 0, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/Excelsus.cs b/Projectiles/Melee/Excelsus.cs index 960e41d55a..ec7d28e5e7 100644 --- a/Projectiles/Melee/Excelsus.cs +++ b/Projectiles/Melee/Excelsus.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Excelsus : ModProjectile { diff --git a/Projectiles/Melee/ExcelsusBlue.cs b/Projectiles/Melee/ExcelsusBlue.cs index 69e51e3264..bfa0ff9030 100644 --- a/Projectiles/Melee/ExcelsusBlue.cs +++ b/Projectiles/Melee/ExcelsusBlue.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ExcelsusBlue : ModProjectile { diff --git a/Projectiles/Melee/ExcelsusPink.cs b/Projectiles/Melee/ExcelsusPink.cs index 703fd1de5b..c09e65848a 100644 --- a/Projectiles/Melee/ExcelsusPink.cs +++ b/Projectiles/Melee/ExcelsusPink.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ExcelsusPink : ModProjectile { diff --git a/Projectiles/Melee/Exobeam.cs b/Projectiles/Melee/Exobeam.cs index b022dfd988..cad2db6b3f 100644 --- a/Projectiles/Melee/Exobeam.cs +++ b/Projectiles/Melee/Exobeam.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Exobeam : ModProjectile { @@ -136,11 +136,11 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Melee/Exoboom.cs b/Projectiles/Melee/Exoboom.cs index dbc32656ac..edc3fabb6a 100644 --- a/Projectiles/Melee/Exoboom.cs +++ b/Projectiles/Melee/Exoboom.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Exoboom : ModProjectile { @@ -95,11 +95,11 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Melee/Exocomet.cs b/Projectiles/Melee/Exocomet.cs index 32773b6558..a776a561c5 100644 --- a/Projectiles/Melee/Exocomet.cs +++ b/Projectiles/Melee/Exocomet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Exocomet : ModProjectile { @@ -88,11 +88,11 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); @@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Melee } Main.player[Main.myPlayer].lifeSteal -= num; int num2 = projectile.owner; - Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("Exoheal"), 0, 0f, projectile.owner, (float)num2, num); + Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num2, num); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/Feather.cs b/Projectiles/Melee/Feather.cs index 408950af82..470b5f4635 100644 --- a/Projectiles/Melee/Feather.cs +++ b/Projectiles/Melee/Feather.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Feather : ModProjectile { diff --git a/Projectiles/Melee/FlameScytheProjectileMelee.cs b/Projectiles/Melee/FlameScytheProjectileMelee.cs index f7806bdc30..cd41eebb45 100644 --- a/Projectiles/Melee/FlameScytheProjectileMelee.cs +++ b/Projectiles/Melee/FlameScytheProjectileMelee.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class FlameScytheProjectileMelee : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Melee target.AddBuff(BuffID.OnFire, 300); if (projectile.owner == Main.myPlayer) { - int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Flarefrost.cs b/Projectiles/Melee/Flarefrost.cs index a42ec9756b..06b7d89581 100644 --- a/Projectiles/Melee/Flarefrost.cs +++ b/Projectiles/Melee/Flarefrost.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Flarefrost : ModProjectile { diff --git a/Projectiles/Melee/FossilSpike.cs b/Projectiles/Melee/FossilSpike.cs index c3aa195899..4b20276246 100644 --- a/Projectiles/Melee/FossilSpike.cs +++ b/Projectiles/Melee/FossilSpike.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class FossilSpike : ModProjectile { diff --git a/Projectiles/Melee/GalacticaComet.cs b/Projectiles/Melee/GalacticaComet.cs index c2f5435e40..2755faa52a 100644 --- a/Projectiles/Melee/GalacticaComet.cs +++ b/Projectiles/Melee/GalacticaComet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GalacticaComet : ModProjectile { diff --git a/Projectiles/Melee/Galaxia.cs b/Projectiles/Melee/Galaxia.cs index ed17c831fd..257a5d3e6a 100644 --- a/Projectiles/Melee/Galaxia.cs +++ b/Projectiles/Melee/Galaxia.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Galaxia : ModProjectile { @@ -160,20 +160,20 @@ namespace CalamityMod.Projectiles.Melee } if (jungle) { - target.AddBuff(mod.BuffType("Plague"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Thorns, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 206, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (snow) { - target.AddBuff(mod.BuffType("GlacialState"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Warmth, 600); Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 118, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } else if (beach) { - target.AddBuff(mod.BuffType("CrushDepth"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Wet, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f, 405, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; @@ -202,28 +202,28 @@ namespace CalamityMod.Projectiles.Melee } else if (desert) { - target.AddBuff(mod.BuffType("HolyLight"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Endurance, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 661, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (glow) { - target.AddBuff(mod.BuffType("TemporalSadness"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Spelunker, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 131, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (hell) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Inferno, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 15, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (holy) { - target.AddBuff(mod.BuffType("HolyLight"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Heartreach, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 644, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; @@ -254,7 +254,7 @@ namespace CalamityMod.Projectiles.Melee } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.DryadsWard, 600); int ball = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 604, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[ball].penetrate = 1; diff --git a/Projectiles/Melee/Galaxia2.cs b/Projectiles/Melee/Galaxia2.cs index 24b115772a..eede1e1ab0 100644 --- a/Projectiles/Melee/Galaxia2.cs +++ b/Projectiles/Melee/Galaxia2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Galaxia2 : ModProjectile { @@ -159,20 +159,20 @@ namespace CalamityMod.Projectiles.Melee } if (jungle) { - target.AddBuff(mod.BuffType("Plague"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Thorns, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 206, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (snow) { - target.AddBuff(mod.BuffType("GlacialState"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Warmth, 600); Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 118, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } else if (beach) { - target.AddBuff(mod.BuffType("CrushDepth"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Wet, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f, 405, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; @@ -201,28 +201,28 @@ namespace CalamityMod.Projectiles.Melee } else if (desert) { - target.AddBuff(mod.BuffType("HolyLight"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Endurance, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 661, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (glow) { - target.AddBuff(mod.BuffType("TemporalSadness"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Spelunker, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 131, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (hell) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Inferno, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 15, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } else if (holy) { - target.AddBuff(mod.BuffType("HolyLight"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.Heartreach, 600); int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 644, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; @@ -253,7 +253,7 @@ namespace CalamityMod.Projectiles.Melee } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 1200); + target.AddBuff(ModContent.BuffType(), 1200); player.AddBuff(BuffID.DryadsWard, 600); int ball = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, 604, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[ball].penetrate = 1; diff --git a/Projectiles/Melee/GalaxyBlast.cs b/Projectiles/Melee/GalaxyBlast.cs index 74d2505d5a..e53f3e9dbc 100644 --- a/Projectiles/Melee/GalaxyBlast.cs +++ b/Projectiles/Melee/GalaxyBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GalaxyBlast : ModProjectile { diff --git a/Projectiles/Melee/GalaxyBlastType2.cs b/Projectiles/Melee/GalaxyBlastType2.cs index 759517a022..374f2e1dcb 100644 --- a/Projectiles/Melee/GalaxyBlastType2.cs +++ b/Projectiles/Melee/GalaxyBlastType2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GalaxyBlastType2 : ModProjectile { diff --git a/Projectiles/Melee/GalaxyBlastType3.cs b/Projectiles/Melee/GalaxyBlastType3.cs index f5ea603b1a..ae93620007 100644 --- a/Projectiles/Melee/GalaxyBlastType3.cs +++ b/Projectiles/Melee/GalaxyBlastType3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GalaxyBlastType3 : ModProjectile { diff --git a/Projectiles/Melee/GelWave.cs b/Projectiles/Melee/GelWave.cs index a2da052a6c..d943b5027f 100644 --- a/Projectiles/Melee/GelWave.cs +++ b/Projectiles/Melee/GelWave.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GelWave : ModProjectile { diff --git a/Projectiles/Melee/GhastlySoulLarge.cs b/Projectiles/Melee/GhastlySoulLarge.cs index 2f323fe579..c0fa3c7e7e 100644 --- a/Projectiles/Melee/GhastlySoulLarge.cs +++ b/Projectiles/Melee/GhastlySoulLarge.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GhastlySoulLarge : ModProjectile { @@ -127,7 +127,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/GhastlySoulMedium.cs b/Projectiles/Melee/GhastlySoulMedium.cs index 6ee059e703..f32ee2eb05 100644 --- a/Projectiles/Melee/GhastlySoulMedium.cs +++ b/Projectiles/Melee/GhastlySoulMedium.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GhastlySoulMedium : ModProjectile { @@ -127,7 +127,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/GhastlySoulSmall.cs b/Projectiles/Melee/GhastlySoulSmall.cs index 9c920fb0a8..9d5b16783c 100644 --- a/Projectiles/Melee/GhastlySoulSmall.cs +++ b/Projectiles/Melee/GhastlySoulSmall.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GhastlySoulSmall : ModProjectile { @@ -126,7 +126,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/GreenBall.cs b/Projectiles/Melee/GreenBall.cs index eda97bb30d..ec8e24c404 100644 --- a/Projectiles/Melee/GreenBall.cs +++ b/Projectiles/Melee/GreenBall.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GreenBall : ModProjectile { @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("GreenDust"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); } projTime = 15; } diff --git a/Projectiles/Melee/GreenDust.cs b/Projectiles/Melee/GreenDust.cs index adf9025b08..dbe5bcc40b 100644 --- a/Projectiles/Melee/GreenDust.cs +++ b/Projectiles/Melee/GreenDust.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GreenDust : ModProjectile { diff --git a/Projectiles/Melee/GreenWater.cs b/Projectiles/Melee/GreenWater.cs index f25e32cfad..c2e4f2f559 100644 --- a/Projectiles/Melee/GreenWater.cs +++ b/Projectiles/Melee/GreenWater.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class GreenWater : ModProjectile { diff --git a/Projectiles/Melee/HellionSpike.cs b/Projectiles/Melee/HellionSpike.cs index a8e132bce1..895a6a8a87 100644 --- a/Projectiles/Melee/HellionSpike.cs +++ b/Projectiles/Melee/HellionSpike.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class HellionSpike : ModProjectile { diff --git a/Projectiles/Melee/HolyColliderHolyFire.cs b/Projectiles/Melee/HolyColliderHolyFire.cs index ecafd3038d..7d13e01bc3 100644 --- a/Projectiles/Melee/HolyColliderHolyFire.cs +++ b/Projectiles/Melee/HolyColliderHolyFire.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class HolyColliderHolyFire : ModProjectile { diff --git a/Projectiles/Melee/HyperBlade.cs b/Projectiles/Melee/HyperBlade.cs index 53dfc473fb..e1753b7836 100644 --- a/Projectiles/Melee/HyperBlade.cs +++ b/Projectiles/Melee/HyperBlade.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class HyperBlade : ModProjectile { diff --git a/Projectiles/Melee/IceBombFriendly.cs b/Projectiles/Melee/IceBombFriendly.cs index 52615e0649..b220d63bfe 100644 --- a/Projectiles/Melee/IceBombFriendly.cs +++ b/Projectiles/Melee/IceBombFriendly.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class IceBombFriendly : ModProjectile { @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GlacialState"), 60); + target.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/Projectiles/Melee/Iceberg.cs b/Projectiles/Melee/Iceberg.cs index 0d46c0e1ef..d156263abe 100644 --- a/Projectiles/Melee/Iceberg.cs +++ b/Projectiles/Melee/Iceberg.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Iceberg : ModProjectile { @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Melee double newDamageMult = 1.0 - ((double)projectile.timeLeft / 300.0); damage = (int)((double)damage * newDamageMult); knockback = 0f; - if (crit || target.buffImmune[mod.BuffType("GlacialState")]) + if (crit || target.buffImmune[ModContent.BuffType()]) damage *= 2; } @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Melee { int debuffDuration = 300 - projectile.timeLeft; if (projectile.timeLeft < 270) - target.AddBuff(mod.BuffType("GlacialState"), debuffDuration); + target.AddBuff(ModContent.BuffType(), debuffDuration); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/Icebreaker.cs b/Projectiles/Melee/Icebreaker.cs index efea0b63ca..86a396f89f 100644 --- a/Projectiles/Melee/Icebreaker.cs +++ b/Projectiles/Melee/Icebreaker.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Icebreaker : ModProjectile { diff --git a/Projectiles/Melee/Judgement.cs b/Projectiles/Melee/Judgement.cs index 2d09042fcf..bdc75665ca 100644 --- a/Projectiles/Melee/Judgement.cs +++ b/Projectiles/Melee/Judgement.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Judgement : ModProjectile { @@ -40,8 +40,8 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 1; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("WhiteOrb"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("WhiteOrb"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[projectile1].velocity.X *= 0.1f; Main.projectile[projectile1].velocity.Y *= 0.1f; Main.projectile[projectile2].velocity.X *= 0.1f; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Melee Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 100, 0f, 0f, mod.ProjectileType("WhiteBoltAura"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 100, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/JudgementBlah.cs b/Projectiles/Melee/JudgementBlah.cs index 57c7ca9b1f..1cdb05cf98 100644 --- a/Projectiles/Melee/JudgementBlah.cs +++ b/Projectiles/Melee/JudgementBlah.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class JudgementBlah : ModProjectile { @@ -42,8 +42,8 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 1; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 6f), (float)(Math.Cos(offsetAngle) * 6f), mod.ProjectileType("WhiteOrbBlah"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 6f), (float)(-Math.Cos(offsetAngle) * 6f), mod.ProjectileType("WhiteOrbBlah"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 6f), (float)(Math.Cos(offsetAngle) * 6f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 6f), (float)(-Math.Cos(offsetAngle) * 6f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[projectile1].velocity.X *= 0.1f; Main.projectile[projectile1].velocity.Y *= 0.1f; Main.projectile[projectile2].velocity.X *= 0.1f; @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Melee Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 100, 0f, 0f, mod.ProjectileType("WhiteBoltAuraBlah"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 100, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/LaserFountain.cs b/Projectiles/Melee/LaserFountain.cs index 738ff41b5d..1b43579143 100644 --- a/Projectiles/Melee/LaserFountain.cs +++ b/Projectiles/Melee/LaserFountain.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class LaserFountain : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, SpeedX, SpeedY, mod.ProjectileType("NebulaShot"), (int)(350f * Main.player[projectile.owner].meleeDamage), projectile.knockBack, projectile.owner, 0f, 0f); + int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, SpeedX, SpeedY, ModContent.ProjectileType(), (int)(350f * Main.player[projectile.owner].meleeDamage), projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[projectile1].Calamity().forceMelee = true; Main.projectile[projectile1].aiStyle = 1; } diff --git a/Projectiles/Melee/Leech.cs b/Projectiles/Melee/Leech.cs index 73eb448fc2..3440d4c24c 100644 --- a/Projectiles/Melee/Leech.cs +++ b/Projectiles/Melee/Leech.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Leech : ModProjectile { diff --git a/Projectiles/Melee/LifeScythe.cs b/Projectiles/Melee/LifeScythe.cs index 4cf752a6ec..a8531e28f8 100644 --- a/Projectiles/Melee/LifeScythe.cs +++ b/Projectiles/Melee/LifeScythe.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class LifeScythe : ModProjectile { diff --git a/Projectiles/Melee/Light.cs b/Projectiles/Melee/Light.cs index cfd9396c72..66cedf06f7 100644 --- a/Projectiles/Melee/Light.cs +++ b/Projectiles/Melee/Light.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Light : ModProjectile { diff --git a/Projectiles/Melee/MangroveChakramProjectileMelee.cs b/Projectiles/Melee/MangroveChakramProjectileMelee.cs index 86a9bf073b..a0a3aef88b 100644 --- a/Projectiles/Melee/MangroveChakramProjectileMelee.cs +++ b/Projectiles/Melee/MangroveChakramProjectileMelee.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class MangroveChakramProjectileMelee : ModProjectile { diff --git a/Projectiles/Melee/MarianaProjectile.cs b/Projectiles/Melee/MarianaProjectile.cs index c82ad8c5eb..b48d3b0f65 100644 --- a/Projectiles/Melee/MarianaProjectile.cs +++ b/Projectiles/Melee/MarianaProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class MarianaProjectile : ModProjectile { diff --git a/Projectiles/Melee/MarniteObliterator.cs b/Projectiles/Melee/MarniteObliterator.cs index a28b52c23d..d86dbf8837 100644 --- a/Projectiles/Melee/MarniteObliterator.cs +++ b/Projectiles/Melee/MarniteObliterator.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class MarniteObliterator : ModProjectile { diff --git a/Projectiles/Melee/MirrorBlast.cs b/Projectiles/Melee/MirrorBlast.cs index 1f3d2c4368..59e3fae060 100644 --- a/Projectiles/Melee/MirrorBlast.cs +++ b/Projectiles/Melee/MirrorBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class MirrorBlast : ModProjectile { diff --git a/Projectiles/Melee/Mourningstar.cs b/Projectiles/Melee/Mourningstar.cs index f887e75781..ab3a7c7c44 100644 --- a/Projectiles/Melee/Mourningstar.cs +++ b/Projectiles/Melee/Mourningstar.cs @@ -4,9 +4,9 @@ using System; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Mourningstar : ModProjectile { diff --git a/Projectiles/Melee/Murasama.cs b/Projectiles/Melee/Murasama.cs index 90c2af035b..855e772ae5 100644 --- a/Projectiles/Melee/Murasama.cs +++ b/Projectiles/Melee/Murasama.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Murasama : ModProjectile { diff --git a/Projectiles/Melee/Nebudust.cs b/Projectiles/Melee/Nebudust.cs index 8b8d5e9fcb..43701db1e0 100644 --- a/Projectiles/Melee/Nebudust.cs +++ b/Projectiles/Melee/Nebudust.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Nebudust : ModProjectile { diff --git a/Projectiles/Melee/Nebulash.cs b/Projectiles/Melee/Nebulash.cs index 3a4a3b98ca..75542393a5 100644 --- a/Projectiles/Melee/Nebulash.cs +++ b/Projectiles/Melee/Nebulash.cs @@ -4,9 +4,9 @@ using System; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Nebulash : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee { for (int num51 = 0; num51 < 2; num51++) { - Dust dust = Main.dust[Dust.NewDust(projectile.position + projectile.velocity * 2f, projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, new Color(255, 200, 0), 2f)]; + Dust dust = Main.dust[Dust.NewDust(projectile.position + projectile.velocity * 2f, projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, new Color(255, 200, 0), 2f)]; dust.noGravity = true; dust.velocity *= 2f; dust.velocity += projectile.localAI[0].ToRotationVector2(); @@ -215,10 +215,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("Nebudust"), damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; } diff --git a/Projectiles/Melee/NeptuneOrb.cs b/Projectiles/Melee/NeptuneOrb.cs index bfd17cf5ff..fea5534021 100644 --- a/Projectiles/Melee/NeptuneOrb.cs +++ b/Projectiles/Melee/NeptuneOrb.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class NeptuneOrb : ModProjectile { @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 15f, mod.ProjectileType("DepthOrb2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 15f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } addSprayTimer = 20; } @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/NightStabber.cs b/Projectiles/Melee/NightStabber.cs index ba4e7b0db5..cdb85b9e42 100644 --- a/Projectiles/Melee/NightStabber.cs +++ b/Projectiles/Melee/NightStabber.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class NightStabber : ModProjectile { diff --git a/Projectiles/Melee/OPHammerMelee.cs b/Projectiles/Melee/OPHammerMelee.cs index be7723cb99..d7d6d5029c 100644 --- a/Projectiles/Melee/OPHammerMelee.cs +++ b/Projectiles/Melee/OPHammerMelee.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class OPHammerMelee : ModProjectile { @@ -113,10 +113,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); if (projectile.owner == Main.myPlayer) { - int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Oathblade.cs b/Projectiles/Melee/Oathblade.cs index 754ad9fcc1..9a18221972 100644 --- a/Projectiles/Melee/Oathblade.cs +++ b/Projectiles/Melee/Oathblade.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Oathblade : ModProjectile { diff --git a/Projectiles/Melee/OceanBeam.cs b/Projectiles/Melee/OceanBeam.cs index 763a6820a4..600d50a272 100644 --- a/Projectiles/Melee/OceanBeam.cs +++ b/Projectiles/Melee/OceanBeam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class OceanBeam : ModProjectile { diff --git a/Projectiles/Melee/OmegaBiomeOrb.cs b/Projectiles/Melee/OmegaBiomeOrb.cs index c2a1b1cc7f..2122027cc3 100644 --- a/Projectiles/Melee/OmegaBiomeOrb.cs +++ b/Projectiles/Melee/OmegaBiomeOrb.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class OmegaBiomeOrb : ModProjectile { @@ -177,15 +177,15 @@ namespace CalamityMod.Projectiles.Melee } if (jungle) { - target.AddBuff(mod.BuffType("Plague"), 600); + target.AddBuff(ModContent.BuffType(), 600); } else if (snow) { - target.AddBuff(mod.BuffType("GlacialState"), 600); + target.AddBuff(ModContent.BuffType(), 600); } else if (beach) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } else if (dungeon) { @@ -193,23 +193,23 @@ namespace CalamityMod.Projectiles.Melee } else if (desert) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); } else if (glow) { - target.AddBuff(mod.BuffType("TemporalSadness"), 600); + target.AddBuff(ModContent.BuffType(), 600); } else if (hell) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 600); + target.AddBuff(ModContent.BuffType(), 600); } else if (holy) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Melee/PlagueBeeDust.cs b/Projectiles/Melee/PlagueBeeDust.cs index 083ebdb92d..fbb5a405c6 100644 --- a/Projectiles/Melee/PlagueBeeDust.cs +++ b/Projectiles/Melee/PlagueBeeDust.cs @@ -2,7 +2,7 @@ using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class PlagueBeeDust : ModProjectile { @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 5; - target.AddBuff(mod.BuffType("Plague"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/PlagueDust.cs b/Projectiles/Melee/PlagueDust.cs index 793efbffac..acf05eedd7 100644 --- a/Projectiles/Melee/PlagueDust.cs +++ b/Projectiles/Melee/PlagueDust.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class PlagueDust : ModProjectile { @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 5; - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/PlagueSeeker.cs b/Projectiles/Melee/PlagueSeeker.cs index 015360860c..c43108e992 100644 --- a/Projectiles/Melee/PlagueSeeker.cs +++ b/Projectiles/Melee/PlagueSeeker.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class PlagueSeeker : ModProjectile { @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/PlasmaBall.cs b/Projectiles/Melee/PlasmaBall.cs index fc34d9b3a9..d454c31e6a 100644 --- a/Projectiles/Melee/PlasmaBall.cs +++ b/Projectiles/Melee/PlasmaBall.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class PlasmaBall : ModProjectile { diff --git a/Projectiles/Melee/ProfanedSword.cs b/Projectiles/Melee/ProfanedSword.cs index 45700d6d47..7f78de6aaa 100644 --- a/Projectiles/Melee/ProfanedSword.cs +++ b/Projectiles/Melee/ProfanedSword.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ProfanedSword : ModProjectile { @@ -56,8 +56,8 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 6; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BrimlanceHellfireExplosion"), (int)((double)projectile.damage * 0.5), knockback, Main.myPlayer); + target.AddBuff(ModContent.BuffType(), 180); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), knockback, Main.myPlayer); } } } diff --git a/Projectiles/Melee/PwnagehammerMelee.cs b/Projectiles/Melee/PwnagehammerMelee.cs index fb18cf7f83..63ccbf936b 100644 --- a/Projectiles/Melee/PwnagehammerMelee.cs +++ b/Projectiles/Melee/PwnagehammerMelee.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class PwnagehammerMelee : ModProjectile { diff --git a/Projectiles/Melee/RainBolt.cs b/Projectiles/Melee/RainBolt.cs index f9c4067b04..88f1403cd8 100644 --- a/Projectiles/Melee/RainBolt.cs +++ b/Projectiles/Melee/RainBolt.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class RainBolt : ModProjectile { diff --git a/Projectiles/Melee/RainbowBoom.cs b/Projectiles/Melee/RainbowBoom.cs index 6c4870158b..1aa6c1f899 100644 --- a/Projectiles/Melee/RainbowBoom.cs +++ b/Projectiles/Melee/RainbowBoom.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class RainbowBoom : ModProjectile { diff --git a/Projectiles/Melee/Razorwind.cs b/Projectiles/Melee/Razorwind.cs index a48d3a27f7..7d3c6e27e9 100644 --- a/Projectiles/Melee/Razorwind.cs +++ b/Projectiles/Melee/Razorwind.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Razorwind : ModProjectile { diff --git a/Projectiles/Melee/RedBall.cs b/Projectiles/Melee/RedBall.cs index 597d2a0d62..458a6f0743 100644 --- a/Projectiles/Melee/RedBall.cs +++ b/Projectiles/Melee/RedBall.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class RedBall : ModProjectile { @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("RedDust"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); } projTime = 15; } diff --git a/Projectiles/Melee/RedDust.cs b/Projectiles/Melee/RedDust.cs index c716852840..f073875969 100644 --- a/Projectiles/Melee/RedDust.cs +++ b/Projectiles/Melee/RedDust.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class RedDust : ModProjectile { diff --git a/Projectiles/Melee/RoyalKnifeMelee.cs b/Projectiles/Melee/RoyalKnifeMelee.cs index 5b66146fea..3610c43412 100644 --- a/Projectiles/Melee/RoyalKnifeMelee.cs +++ b/Projectiles/Melee/RoyalKnifeMelee.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class RoyalKnifeMelee : ModProjectile { @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); if (target.type == NPCID.TargetDummy) { return; @@ -111,7 +111,7 @@ namespace CalamityMod.Projectiles.Melee } Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; - Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("RoyalHeal"), 0, 0f, projectile.owner, (float)num2, num); + Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num2, num); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/SHIV.cs index 0e4a4b752b..6b65649134 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SHIV : ModProjectile { @@ -44,10 +44,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/SandBlade.cs b/Projectiles/Melee/SandBlade.cs index 5c699c795a..b51f1ac0fb 100644 --- a/Projectiles/Melee/SandBlade.cs +++ b/Projectiles/Melee/SandBlade.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SandBlade : ModProjectile { diff --git a/Projectiles/Melee/SandFire.cs b/Projectiles/Melee/SandFire.cs index 0b682f4985..1c131da987 100644 --- a/Projectiles/Melee/SandFire.cs +++ b/Projectiles/Melee/SandFire.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SandFire : ModProjectile { @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/ScourgeoftheCosmos.cs b/Projectiles/Melee/ScourgeoftheCosmos.cs index d7c9ed5407..3fdfd6da84 100644 --- a/Projectiles/Melee/ScourgeoftheCosmos.cs +++ b/Projectiles/Melee/ScourgeoftheCosmos.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ScourgeoftheCosmos : ModProjectile { @@ -112,11 +112,11 @@ namespace CalamityMod.Projectiles.Melee num629 *= 10f; if (!projectile.melee) { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("ScourgeoftheCosmosMini"), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 1f); } else { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("ScourgeoftheCosmosMini"), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 0f); } num3 = num627; } @@ -164,11 +164,11 @@ namespace CalamityMod.Projectiles.Melee num629 *= 10f; if (!projectile.melee) { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("ScourgeoftheCosmosMini"), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 1f); } else { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("ScourgeoftheCosmosMini"), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 0f); } num3 = num627; } diff --git a/Projectiles/Melee/ScourgeoftheCosmosMini.cs b/Projectiles/Melee/ScourgeoftheCosmosMini.cs index d06526d266..1236be62ed 100644 --- a/Projectiles/Melee/ScourgeoftheCosmosMini.cs +++ b/Projectiles/Melee/ScourgeoftheCosmosMini.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ScourgeoftheCosmosMini : ModProjectile { diff --git a/Projectiles/Melee/SeashellBoomerangProjectileMelee.cs b/Projectiles/Melee/SeashellBoomerangProjectileMelee.cs index c2cf2c2d8e..25334b3f7b 100644 --- a/Projectiles/Melee/SeashellBoomerangProjectileMelee.cs +++ b/Projectiles/Melee/SeashellBoomerangProjectileMelee.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SeashellBoomerangProjectileMelee : ModProjectile { diff --git a/Projectiles/Melee/ShortBeam.cs b/Projectiles/Melee/ShortBeam.cs index 3cc271f6a7..a6e51115ed 100644 --- a/Projectiles/Melee/ShortBeam.cs +++ b/Projectiles/Melee/ShortBeam.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ShortBeam : ModProjectile { diff --git a/Projectiles/Melee/ShortNightBeam.cs b/Projectiles/Melee/ShortNightBeam.cs index 58521db7f9..f3bf27f94b 100644 --- a/Projectiles/Melee/ShortNightBeam.cs +++ b/Projectiles/Melee/ShortNightBeam.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ShortNightBeam : ModProjectile { diff --git a/Projectiles/Melee/ShortTerraBeam.cs b/Projectiles/Melee/ShortTerraBeam.cs index 86ae8c0a15..f9e35fbd4b 100644 --- a/Projectiles/Melee/ShortTerraBeam.cs +++ b/Projectiles/Melee/ShortTerraBeam.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class ShortTerraBeam : ModProjectile { diff --git a/Projectiles/Melee/SolarFlare.cs b/Projectiles/Melee/SolarFlare.cs index fd4828055d..7f58b557fb 100644 --- a/Projectiles/Melee/SolarFlare.cs +++ b/Projectiles/Melee/SolarFlare.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SolarFlare : ModProjectile { @@ -88,8 +88,8 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 1; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("SandFire"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("SandFire"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); @@ -121,7 +121,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Melee/SolsticeBeam.cs b/Projectiles/Melee/SolsticeBeam.cs index fc2a4c24b5..ae1e0131a0 100644 --- a/Projectiles/Melee/SolsticeBeam.cs +++ b/Projectiles/Melee/SolsticeBeam.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SolsticeBeam : ModProjectile { @@ -193,7 +193,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - int buff = Main.dayTime ? BuffID.Daybreak : mod.BuffType("Nightwither"); + int buff = Main.dayTime ? BuffID.Daybreak : ModContent.BuffType(); target.AddBuff(buff, 300); } } diff --git a/Projectiles/Melee/SoulScythe.cs b/Projectiles/Melee/SoulScythe.cs index 05003f509f..3d60a98752 100644 --- a/Projectiles/Melee/SoulScythe.cs +++ b/Projectiles/Melee/SoulScythe.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SoulScythe : ModProjectile { @@ -39,13 +39,13 @@ namespace CalamityMod.Projectiles.Melee { target.immune[projectile.owner] = 6; target.AddBuff(BuffID.OnFire, 300); - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); if (target.life <= (target.lifeMax * 0.15f)) { Main.PlaySound(2, (int)target.position.X, (int)target.position.Y, 14); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, mod.ProjectileType("HiveBombExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); diff --git a/Projectiles/Melee/Spark.cs b/Projectiles/Melee/Spark.cs index f26dd8b504..d014ed5d78 100644 --- a/Projectiles/Melee/Spark.cs +++ b/Projectiles/Melee/Spark.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Spark : ModProjectile { diff --git a/Projectiles/Melee/SpatialSpear.cs b/Projectiles/Melee/SpatialSpear.cs index eaa4aebcfa..abb2551c1d 100644 --- a/Projectiles/Melee/SpatialSpear.cs +++ b/Projectiles/Melee/SpatialSpear.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SpatialSpear : ModProjectile { @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Melee for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, mod.ProjectileType("SpatialSpear2"), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } } @@ -92,10 +92,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/SpatialSpear2.cs b/Projectiles/Melee/SpatialSpear2.cs index 8150c6ea63..c2cb53c8cd 100644 --- a/Projectiles/Melee/SpatialSpear2.cs +++ b/Projectiles/Melee/SpatialSpear2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SpatialSpear2 : ModProjectile { @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Melee for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, mod.ProjectileType("SpatialSpear3"), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } } @@ -80,10 +80,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/SpatialSpear3.cs b/Projectiles/Melee/SpatialSpear3.cs index de18caf6ba..145dcfd000 100644 --- a/Projectiles/Melee/SpatialSpear3.cs +++ b/Projectiles/Melee/SpatialSpear3.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SpatialSpear3 : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Melee for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, mod.ProjectileType("SpatialSpear4"), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.5f, perturbedSpeed.Y * 0.5f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } } @@ -78,10 +78,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/SpatialSpear4.cs b/Projectiles/Melee/SpatialSpear4.cs index 6dd459b848..48de5511bc 100644 --- a/Projectiles/Melee/SpatialSpear4.cs +++ b/Projectiles/Melee/SpatialSpear4.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SpatialSpear4 : ModProjectile { @@ -63,10 +63,10 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/Spears/AstralPike.cs b/Projectiles/Melee/Spears/AstralPike.cs index 581b89c706..e6e7e9a2ef 100644 --- a/Projectiles/Melee/Spears/AstralPike.cs +++ b/Projectiles/Melee/Spears/AstralPike.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class AstralPike : ModProjectile { @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Melee.Spears projectile.position += projectile.velocity * projectile.ai[0]; if (Main.rand.NextBool(5)) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); } if (projectile.ai[0] == 0f) { @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); target.immune[projectile.owner] = 6; if (crit) { @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Melee.Spears } if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("AstralStar"), (int)((double)projectile.damage * 0.2), 1f, projectile.owner); + int proj = Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.2), 1f, projectile.owner); Main.projectile[proj].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Spears/BansheeHook.cs b/Projectiles/Melee/Spears/BansheeHook.cs index 55a2986647..ee52949594 100644 --- a/Projectiles/Melee/Spears/BansheeHook.cs +++ b/Projectiles/Melee/Spears/BansheeHook.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class BansheeHook : ModProjectile { @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { projectile.localAI[0] = 1f; Projectile.NewProjectile(projectile.Center.X + (projectile.velocity.X * 0.5f), projectile.Center.Y + (projectile.velocity.Y * 0.5f), - projectile.velocity.X * 0.8f, projectile.velocity.Y * 0.8f, mod.ProjectileType("BansheeHookScythe"), (int)((double)projectile.damage * 1.75), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); + projectile.velocity.X * 0.8f, projectile.velocity.Y * 0.8f, ModContent.ProjectileType(), (int)((double)projectile.damage * 1.75), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); } } projectile.spriteDirection = projectile.direction = player.direction; @@ -144,7 +144,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BansheeHookBoom"), (int)((double)damage * 0.25), 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)damage * 0.25), 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } } } diff --git a/Projectiles/Melee/Spears/Brimlance.cs b/Projectiles/Melee/Spears/Brimlance.cs index 06072a6ccc..43d8bcaa3a 100644 --- a/Projectiles/Melee/Spears/Brimlance.cs +++ b/Projectiles/Melee/Spears/Brimlance.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class Brimlance : ModProjectile { @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Melee.Spears int num251 = Main.rand.Next(2, 5); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BrimlanceHellfireExplosion"), (int)((double)projectile.damage * 0.75), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), knockback, Main.myPlayer); for (int num252 = 0; num252 < num251; num252++) { Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Melee.Spears } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, mod.ProjectileType("BrimlanceStandingFire"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/Spears/DiseasedPike.cs b/Projectiles/Melee/Spears/DiseasedPike.cs index 4d474a82fc..04a619368a 100644 --- a/Projectiles/Melee/Spears/DiseasedPike.cs +++ b/Projectiles/Melee/Spears/DiseasedPike.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class DiseasedPike : ModProjectile { @@ -73,12 +73,12 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 6; - target.AddBuff(mod.BuffType("Plague"), 360); + target.AddBuff(ModContent.BuffType(), 360); if (projectile.owner == Main.myPlayer) { for (int i = 0; i <= 3; i++) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 1.5f, projectile.velocity.Y * 1.5f, mod.ProjectileType("PlagueSeeker"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 1.5f, projectile.velocity.Y * 1.5f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/Spears/EarthenPike.cs b/Projectiles/Melee/Spears/EarthenPike.cs index 3cce7224e6..5b57cc83ff 100644 --- a/Projectiles/Melee/Spears/EarthenPike.cs +++ b/Projectiles/Melee/Spears/EarthenPike.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class EarthenPike : ModProjectile { @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Melee.Spears velocityY = 0.1f; } int proj = Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, - projectile.velocity.X * 1.25f, velocityY, mod.ProjectileType("FossilShard"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + projectile.velocity.X * 1.25f, velocityY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } } @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 8; - target.AddBuff(mod.BuffType("ArmorCrunch"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs index a5cee573dc..f803b3916f 100644 --- a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs +++ b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class ExsanguinationLanceProjectile : ModProjectile { @@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Melee.Spears target.AddBuff(BuffID.OnFire, 300); if (projectile.owner == Main.myPlayer) { - int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; } if (crit) @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Melee.Spears } if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("TinyFlare"), (int)((double)projectile.damage * 0.5), 2f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 2f, projectile.owner); } } } diff --git a/Projectiles/Melee/Spears/FulgurationHalberd.cs b/Projectiles/Melee/Spears/FulgurationHalberd.cs index 464b3bdbe0..d0a755b01b 100644 --- a/Projectiles/Melee/Spears/FulgurationHalberd.cs +++ b/Projectiles/Melee/Spears/FulgurationHalberd.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class FulgurationHalberd : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 8; - target.AddBuff(mod.BuffType("BurningBlood"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/Spears/GildedProboscis.cs b/Projectiles/Melee/Spears/GildedProboscis.cs index b91f9b5e6c..9ca88ef248 100644 --- a/Projectiles/Melee/Spears/GildedProboscis.cs +++ b/Projectiles/Melee/Spears/GildedProboscis.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class GildedProboscis : ModProjectile { diff --git a/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs b/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs index 16b98d728f..47b1a331ac 100644 --- a/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs +++ b/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class GoldplumeSpearProjectile : ModProjectile { @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Melee.Spears if (Main.myPlayer == projectile.owner) { Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, - projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("Feather"), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f); + projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f); } } if (Main.player[projectile.owner].itemAnimation < Main.player[projectile.owner].itemAnimationMax / 3) diff --git a/Projectiles/Melee/Spears/HeartRapierProjectile.cs b/Projectiles/Melee/Spears/HeartRapierProjectile.cs index b2450f1fd9..4ffbbd8981 100644 --- a/Projectiles/Melee/Spears/HeartRapierProjectile.cs +++ b/Projectiles/Melee/Spears/HeartRapierProjectile.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class HeartRapierProjectile : ModProjectile { diff --git a/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs b/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs index 46a75ca7c0..72c24f08cf 100644 --- a/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs +++ b/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class HellionFlowerSpearProjectile : ModProjectile { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Melee.Spears if (projectile.localAI[0] == 0f && Main.myPlayer == projectile.owner) { projectile.localAI[0] = 1f; - Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, projectile.velocity.X * 2.4f, projectile.velocity.Y * 2.4f, mod.ProjectileType("HellionSpike"), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, projectile.velocity.X * 2.4f, projectile.velocity.Y * 2.4f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); } } else diff --git a/Projectiles/Melee/Spears/MarniteSpearProjectile.cs b/Projectiles/Melee/Spears/MarniteSpearProjectile.cs index 489b1808f5..ac8ca6f751 100644 --- a/Projectiles/Melee/Spears/MarniteSpearProjectile.cs +++ b/Projectiles/Melee/Spears/MarniteSpearProjectile.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class MarniteSpearProjectile : ModProjectile { diff --git a/Projectiles/Melee/Spears/SausageMaker.cs b/Projectiles/Melee/Spears/SausageMaker.cs index 6784e70d56..d7a3449682 100644 --- a/Projectiles/Melee/Spears/SausageMaker.cs +++ b/Projectiles/Melee/Spears/SausageMaker.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class SausageMaker : ModProjectile { @@ -72,7 +72,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { for (int i = 0; i < 2; i++) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 1.2f, projectile.velocity.Y * 1.2f, mod.ProjectileType("Blood2"), projectile.damage / 2, projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 1.2f, projectile.velocity.Y * 1.2f, ModContent.ProjectileType(), projectile.damage / 2, projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/Spears/SpatialLanceProjectile.cs b/Projectiles/Melee/Spears/SpatialLanceProjectile.cs index 218c2691a8..bbdeb203a0 100644 --- a/Projectiles/Melee/Spears/SpatialLanceProjectile.cs +++ b/Projectiles/Melee/Spears/SpatialLanceProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class SpatialLanceProjectile : ModProjectile { @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { projectile.localAI[0] = 1f; Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, - projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("SpatialSpear"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } else @@ -77,10 +77,10 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Melee/Spears/StarnightLanceProjectile.cs b/Projectiles/Melee/Spears/StarnightLanceProjectile.cs index e3c5650a17..e2657306b1 100644 --- a/Projectiles/Melee/Spears/StarnightLanceProjectile.cs +++ b/Projectiles/Melee/Spears/StarnightLanceProjectile.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class StarnightLanceProjectile : ModProjectile { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { projectile.localAI[0] = 1f; Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, - projectile.velocity.X * 2.4f, projectile.velocity.Y * 2.4f, mod.ProjectileType("StarnightBeam"), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); + projectile.velocity.X * 2.4f, projectile.velocity.Y * 2.4f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.8), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); } } else diff --git a/Projectiles/Melee/Spears/StreamGouge.cs b/Projectiles/Melee/Spears/StreamGouge.cs index bec79129ac..068c8c56e7 100644 --- a/Projectiles/Melee/Spears/StreamGouge.cs +++ b/Projectiles/Melee/Spears/StreamGouge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class StreamGouge : ModProjectile { @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { projectile.localAI[0] = 1f; Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, - mod.ProjectileType("EssenceBeam"), projectile.damage * 4, projectile.knockBack, projectile.owner, 0f, 0f); + ModContent.ProjectileType(), projectile.damage * 4, projectile.knockBack, projectile.owner, 0f, 0f); } } else @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/Spears/TerraLanceProjectile.cs b/Projectiles/Melee/Spears/TerraLanceProjectile.cs index 1dc7c72909..58ec825fc0 100644 --- a/Projectiles/Melee/Spears/TerraLanceProjectile.cs +++ b/Projectiles/Melee/Spears/TerraLanceProjectile.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class TerraLanceProjectile : ModProjectile { @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { projectile.localAI[0] = 1f; Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, - projectile.velocity.X * 1.4f, projectile.velocity.Y * 1.4f, mod.ProjectileType("TerraSpear"), (int)((double)projectile.damage * 0.85), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); + projectile.velocity.X * 1.4f, projectile.velocity.Y * 1.4f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.85), projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); } } else diff --git a/Projectiles/Melee/Spears/UrchinSpearProjectile.cs b/Projectiles/Melee/Spears/UrchinSpearProjectile.cs index c660f80f75..90fecd90a6 100644 --- a/Projectiles/Melee/Spears/UrchinSpearProjectile.cs +++ b/Projectiles/Melee/Spears/UrchinSpearProjectile.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Spears +namespace CalamityMod.Projectiles { public class UrchinSpearProjectile : ModProjectile { @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Melee.Spears { projectile.localAI[0] = 1f; Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, - projectile.velocity.X * 1.6f, projectile.velocity.Y * 1.6f, mod.ProjectileType("UrchinSpikeFugu"), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + projectile.velocity.X * 1.6f, projectile.velocity.Y * 1.6f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } else diff --git a/Projectiles/Melee/StarCrystal.cs b/Projectiles/Melee/StarCrystal.cs index b7951f944e..ec00261d96 100644 --- a/Projectiles/Melee/StarCrystal.cs +++ b/Projectiles/Melee/StarCrystal.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class StarCrystal : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Melee for (int k = 0; k < 3; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 227, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, mod.ProjectileType("TinyCrystal"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack * 0.15f, Main.myPlayer, 0f, 0f); } } diff --git a/Projectiles/Melee/StarnightBeam.cs b/Projectiles/Melee/StarnightBeam.cs index 82fec979f9..34c6182b9a 100644 --- a/Projectiles/Melee/StarnightBeam.cs +++ b/Projectiles/Melee/StarnightBeam.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class StarnightBeam : ModProjectile { diff --git a/Projectiles/Melee/StormBeam.cs b/Projectiles/Melee/StormBeam.cs index b9985d96c5..ce35f68b1f 100644 --- a/Projectiles/Melee/StormBeam.cs +++ b/Projectiles/Melee/StormBeam.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class StormBeam : ModProjectile { diff --git a/Projectiles/Melee/StormMark.cs b/Projectiles/Melee/StormMark.cs index 884b1b1655..d86725a4fc 100644 --- a/Projectiles/Melee/StormMark.cs +++ b/Projectiles/Melee/StormMark.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class StormMark : ModProjectile { @@ -128,7 +128,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.localAI[1] == 60f && projectile.owner == Main.myPlayer) { int num1137 = 100; - Projectile.NewProjectile(projectile.Center, Vector2.Zero, mod.ProjectileType("Tornado"), num1137, 3f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), num1137, 3f, projectile.owner, 0f, 0f); } if (projectile.localAI[1] >= 120f) { diff --git a/Projectiles/Melee/StormRuler.cs b/Projectiles/Melee/StormRuler.cs index fafb6075d8..2fe617e045 100644 --- a/Projectiles/Melee/StormRuler.cs +++ b/Projectiles/Melee/StormRuler.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class StormRuler : ModProjectile { @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("StormMark"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } diff --git a/Projectiles/Melee/SunlightBlade.cs b/Projectiles/Melee/SunlightBlade.cs index 9f6d55c208..90a5855f7e 100644 --- a/Projectiles/Melee/SunlightBlade.cs +++ b/Projectiles/Melee/SunlightBlade.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class SunlightBlade : ModProjectile { @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Melee/TemporalFloeSwordProjectile.cs b/Projectiles/Melee/TemporalFloeSwordProjectile.cs index 3e2f6004ef..cc9150877d 100644 --- a/Projectiles/Melee/TemporalFloeSwordProjectile.cs +++ b/Projectiles/Melee/TemporalFloeSwordProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TemporalFloeSwordProjectile : ModProjectile { @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Melee { if (Main.rand.NextBool(3)) { - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); } target.AddBuff(BuffID.Frostburn, 240); } diff --git a/Projectiles/Melee/TerraBall.cs b/Projectiles/Melee/TerraBall.cs index 00f45f9fa7..682c249802 100644 --- a/Projectiles/Melee/TerraBall.cs +++ b/Projectiles/Melee/TerraBall.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TerraBall : ModProjectile { diff --git a/Projectiles/Melee/TerraEdgeBeam.cs b/Projectiles/Melee/TerraEdgeBeam.cs index a9ec3e0eaa..6638c0dbf3 100644 --- a/Projectiles/Melee/TerraEdgeBeam.cs +++ b/Projectiles/Melee/TerraEdgeBeam.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TerraEdgeBeam : ModProjectile { diff --git a/Projectiles/Melee/TerraSpear.cs b/Projectiles/Melee/TerraSpear.cs index 81512ac0e6..038460ac87 100644 --- a/Projectiles/Melee/TerraSpear.cs +++ b/Projectiles/Melee/TerraSpear.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TerraSpear : ModProjectile { diff --git a/Projectiles/Melee/TerracottaExplosion.cs b/Projectiles/Melee/TerracottaExplosion.cs index 9b89bb3ad4..7c958dbad6 100644 --- a/Projectiles/Melee/TerracottaExplosion.cs +++ b/Projectiles/Melee/TerracottaExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TerracottaExplosion : ModProjectile { diff --git a/Projectiles/Melee/TerratomereProjectile.cs b/Projectiles/Melee/TerratomereProjectile.cs index a20b6e7cff..79902996a3 100644 --- a/Projectiles/Melee/TerratomereProjectile.cs +++ b/Projectiles/Melee/TerratomereProjectile.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TerratomereProjectile : ModProjectile { @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GlacialState"), 60); + target.AddBuff(ModContent.BuffType(), 60); target.AddBuff(BuffID.CursedInferno, 600); target.AddBuff(BuffID.Frostburn, 300); target.AddBuff(BuffID.OnFire, 900); diff --git a/Projectiles/Melee/TerrorBeam.cs b/Projectiles/Melee/TerrorBeam.cs index ebd89861a3..40619c667d 100644 --- a/Projectiles/Melee/TerrorBeam.cs +++ b/Projectiles/Melee/TerrorBeam.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TerrorBeam : ModProjectile { @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("TerrorBoom"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } if (projectile.velocity.X != oldVelocity.X) { @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.owner == Main.myPlayer && !hasHitEnemy) { hasHitEnemy = true; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("TerrorBoom"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } diff --git a/Projectiles/Melee/TerrorBoom.cs b/Projectiles/Melee/TerrorBoom.cs index e211b01f33..6d19995d97 100644 --- a/Projectiles/Melee/TerrorBoom.cs +++ b/Projectiles/Melee/TerrorBoom.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TerrorBoom : ModProjectile { diff --git a/Projectiles/Melee/TinyCrystal.cs b/Projectiles/Melee/TinyCrystal.cs index 3b0af5f81b..9319161958 100644 --- a/Projectiles/Melee/TinyCrystal.cs +++ b/Projectiles/Melee/TinyCrystal.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TinyCrystal : ModProjectile { diff --git a/Projectiles/Melee/TinyFlare.cs b/Projectiles/Melee/TinyFlare.cs index ec0eec2830..5168966490 100644 --- a/Projectiles/Melee/TinyFlare.cs +++ b/Projectiles/Melee/TinyFlare.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TinyFlare : ModProjectile { diff --git a/Projectiles/Melee/Tornado.cs b/Projectiles/Melee/Tornado.cs index 08b21f75c7..fb43f359e3 100644 --- a/Projectiles/Melee/Tornado.cs +++ b/Projectiles/Melee/Tornado.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Tornado : ModProjectile { diff --git a/Projectiles/Melee/TriactisOPHammerMelee.cs b/Projectiles/Melee/TriactisOPHammerMelee.cs index b530673f00..a7af3fbf8a 100644 --- a/Projectiles/Melee/TriactisOPHammerMelee.cs +++ b/Projectiles/Melee/TriactisOPHammerMelee.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TriactisOPHammerMelee : ModProjectile { @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("MageHammerBoom"), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); for (int num621 = 0; num621 < 40; num621++) diff --git a/Projectiles/Melee/TrueBiomeOrb.cs b/Projectiles/Melee/TrueBiomeOrb.cs index 0709ddd3f4..23376dfc91 100644 --- a/Projectiles/Melee/TrueBiomeOrb.cs +++ b/Projectiles/Melee/TrueBiomeOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TrueBiomeOrb : ModProjectile { @@ -109,15 +109,15 @@ namespace CalamityMod.Projectiles.Melee bool holy = player.ZoneHoly; if (jungle) { - target.AddBuff(mod.BuffType("Plague"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (snow) { - target.AddBuff(mod.BuffType("GlacialState"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (beach) { - target.AddBuff(mod.BuffType("CrushDepth"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (dungeon) { @@ -125,23 +125,23 @@ namespace CalamityMod.Projectiles.Melee } else if (desert) { - target.AddBuff(mod.BuffType("HolyLight"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (glow) { - target.AddBuff(mod.BuffType("TemporalSadness"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (hell) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else if (holy) { - target.AddBuff(mod.BuffType("HolyLight"), 360); + target.AddBuff(ModContent.BuffType(), 360); } else { - target.AddBuff(mod.BuffType("ArmorCrunch"), 360); + target.AddBuff(ModContent.BuffType(), 360); } } } diff --git a/Projectiles/Melee/TrueCausticEdgeProjectile.cs b/Projectiles/Melee/TrueCausticEdgeProjectile.cs index 108d8b1e2c..97c3f8cd64 100644 --- a/Projectiles/Melee/TrueCausticEdgeProjectile.cs +++ b/Projectiles/Melee/TrueCausticEdgeProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TrueCausticEdgeProjectile : ModProjectile { diff --git a/Projectiles/Melee/Tumbleweed.cs b/Projectiles/Melee/Tumbleweed.cs index 9e91d6209f..bf02323737 100644 --- a/Projectiles/Melee/Tumbleweed.cs +++ b/Projectiles/Melee/Tumbleweed.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Tumbleweed : ModProjectile { @@ -159,7 +159,7 @@ namespace CalamityMod.Projectiles.Melee } if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("TumbleweedRolling"), projectile.damage, projectile.knockBack, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, Main.myPlayer, 0f, 0f); } projectile.Kill(); } diff --git a/Projectiles/Melee/TumbleweedRolling.cs b/Projectiles/Melee/TumbleweedRolling.cs index 818ed24d8f..db79e387fe 100644 --- a/Projectiles/Melee/TumbleweedRolling.cs +++ b/Projectiles/Melee/TumbleweedRolling.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TumbleweedRolling : ModProjectile { diff --git a/Projectiles/Melee/TyphonsGreed.cs b/Projectiles/Melee/TyphonsGreed.cs index d9e2b53fae..152dae65bf 100644 --- a/Projectiles/Melee/TyphonsGreed.cs +++ b/Projectiles/Melee/TyphonsGreed.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TyphonsGreed : ModProjectile { @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override void Kill(int timeLeft) diff --git a/Projectiles/Melee/TyphonsGreedStaff.cs b/Projectiles/Melee/TyphonsGreedStaff.cs index 6a2a336a06..dfe4c66191 100644 --- a/Projectiles/Melee/TyphonsGreedStaff.cs +++ b/Projectiles/Melee/TyphonsGreedStaff.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.Enums; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class TyphonsGreedStaff : ModProjectile { @@ -169,7 +169,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.owner == Main.myPlayer) { float ai1 = Main.rand.NextFloat() + 0.5f; - Projectile.NewProjectile(vector20.X, vector20.Y, speedX, speedY, mod.ProjectileType("TyphonsGreed"), projectile.damage, 2f, projectile.owner, 0.0f, ai1); + Projectile.NewProjectile(vector20.X, vector20.Y, speedX, speedY, ModContent.ProjectileType(), projectile.damage, 2f, projectile.owner, 0.0f, ai1); } } } @@ -243,7 +243,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 240); + target.AddBuff(ModContent.BuffType(), 240); target.immune[projectile.owner] = 6; } } diff --git a/Projectiles/Melee/UltimusCleaverDust.cs b/Projectiles/Melee/UltimusCleaverDust.cs index f4bec1ceaa..1fc8ef4680 100644 --- a/Projectiles/Melee/UltimusCleaverDust.cs +++ b/Projectiles/Melee/UltimusCleaverDust.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class UltimusCleaverDust : ModProjectile { diff --git a/Projectiles/Melee/UrchinSpikeFugu.cs b/Projectiles/Melee/UrchinSpikeFugu.cs index a54146a47a..af91b72f80 100644 --- a/Projectiles/Melee/UrchinSpikeFugu.cs +++ b/Projectiles/Melee/UrchinSpikeFugu.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class UrchinSpikeFugu : ModProjectile { diff --git a/Projectiles/Melee/Whirlpool.cs b/Projectiles/Melee/Whirlpool.cs index 4525ee6d01..97dc9864f0 100644 --- a/Projectiles/Melee/Whirlpool.cs +++ b/Projectiles/Melee/Whirlpool.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Whirlpool : ModProjectile { diff --git a/Projectiles/Melee/WhiteBoltAura.cs b/Projectiles/Melee/WhiteBoltAura.cs index 9fb716f99c..03f368ba1e 100644 --- a/Projectiles/Melee/WhiteBoltAura.cs +++ b/Projectiles/Melee/WhiteBoltAura.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class WhiteBoltAura : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee { int num414 = (int)(projectile.position.X + 14f + (float)Main.rand.Next(projectile.width - 28)); int num415 = (int)(projectile.position.Y + (float)projectile.height + 4f); - Projectile.NewProjectile((float)num414, (float)num415, 0f, 5f, mod.ProjectileType("Whiterain"), projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile((float)num414, (float)num415, 0f, 5f, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/WhiteBoltAuraBlah.cs b/Projectiles/Melee/WhiteBoltAuraBlah.cs index 13d04cd05f..9d4921ac6b 100644 --- a/Projectiles/Melee/WhiteBoltAuraBlah.cs +++ b/Projectiles/Melee/WhiteBoltAuraBlah.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class WhiteBoltAuraBlah : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee { int num414 = (int)(projectile.position.X + 14f + (float)Main.rand.Next(projectile.width - 28)); int num415 = (int)(projectile.position.Y + (float)projectile.height + 4f); - Projectile.NewProjectile((float)num414, (float)num415, 0f, 10f, mod.ProjectileType("WhiterainBlah"), projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile((float)num414, (float)num415, 0f, 10f, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/WhiteOrb.cs b/Projectiles/Melee/WhiteOrb.cs index c23f98abc6..4034ebbfb7 100644 --- a/Projectiles/Melee/WhiteOrb.cs +++ b/Projectiles/Melee/WhiteOrb.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class WhiteOrb : ModProjectile { diff --git a/Projectiles/Melee/WhiteOrbBlah.cs b/Projectiles/Melee/WhiteOrbBlah.cs index 9fdd9151d3..6239535e6c 100644 --- a/Projectiles/Melee/WhiteOrbBlah.cs +++ b/Projectiles/Melee/WhiteOrbBlah.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class WhiteOrbBlah : ModProjectile { diff --git a/Projectiles/Melee/Whiterain.cs b/Projectiles/Melee/Whiterain.cs index 87db081d5b..f49d86e696 100644 --- a/Projectiles/Melee/Whiterain.cs +++ b/Projectiles/Melee/Whiterain.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class Whiterain : ModProjectile { diff --git a/Projectiles/Melee/WhiterainBlah.cs b/Projectiles/Melee/WhiterainBlah.cs index 69b765a184..ba334e9592 100644 --- a/Projectiles/Melee/WhiterainBlah.cs +++ b/Projectiles/Melee/WhiterainBlah.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee +namespace CalamityMod.Projectiles { public class WhiterainBlah : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/AirSpinnerProjectile.cs b/Projectiles/Melee/Yoyos/AirSpinnerProjectile.cs index b69048f7de..199c04897f 100644 --- a/Projectiles/Melee/Yoyos/AirSpinnerProjectile.cs +++ b/Projectiles/Melee/Yoyos/AirSpinnerProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class AirSpinnerProjectile : ModProjectile { @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("Feather"), projectile.damage / 4, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage / 4, 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/Yoyos/AortaProjectile.cs b/Projectiles/Melee/Yoyos/AortaProjectile.cs index 153dd4415e..18d9fbd251 100644 --- a/Projectiles/Melee/Yoyos/AortaProjectile.cs +++ b/Projectiles/Melee/Yoyos/AortaProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class AortaProjectile : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/AzathothProjectile.cs b/Projectiles/Melee/Yoyos/AzathothProjectile.cs index d1fc7fe75a..1905655d1f 100644 --- a/Projectiles/Melee/Yoyos/AzathothProjectile.cs +++ b/Projectiles/Melee/Yoyos/AzathothProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class AzathothProjectile : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, mod.ProjectileType("CosmicOrb"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.35f, projectile.velocity.Y * 0.35f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Melee/Yoyos/ChaotrixProjectile.cs b/Projectiles/Melee/Yoyos/ChaotrixProjectile.cs index de243a6d4d..a4d83445ff 100644 --- a/Projectiles/Melee/Yoyos/ChaotrixProjectile.cs +++ b/Projectiles/Melee/Yoyos/ChaotrixProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class ChaotrixProjectile : ModProjectile { @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos target.AddBuff(BuffID.OnFire, 300); if (projectile.owner == Main.myPlayer) { - int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Yoyos/CnidarianProjectile.cs b/Projectiles/Melee/Yoyos/CnidarianProjectile.cs index a0f2f439de..782acb9e53 100644 --- a/Projectiles/Melee/Yoyos/CnidarianProjectile.cs +++ b/Projectiles/Melee/Yoyos/CnidarianProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class CnidarianProjectile : ModProjectile { @@ -70,7 +70,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos num439 *= num440; if (projectile.owner == Main.myPlayer) { - int projectile2 = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("Seashell"), projectile.damage / 3, 0f, projectile.owner, 0f, 0f); + int projectile2 = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage / 3, 0f, projectile.owner, 0f, 0f); Main.projectile[projectile2].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Yoyos/LaceratorProjectile.cs b/Projectiles/Melee/Yoyos/LaceratorProjectile.cs index aad17ebc2e..c5a46432b9 100644 --- a/Projectiles/Melee/Yoyos/LaceratorProjectile.cs +++ b/Projectiles/Melee/Yoyos/LaceratorProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class LaceratorProjectile : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/QuagmireProjectile.cs b/Projectiles/Melee/Yoyos/QuagmireProjectile.cs index 06b123e90c..3fdf871420 100644 --- a/Projectiles/Melee/Yoyos/QuagmireProjectile.cs +++ b/Projectiles/Melee/Yoyos/QuagmireProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class QuagmireProjectile : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs b/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs index 1c181441bf..3c575c482f 100644 --- a/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs +++ b/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class ShimmersparkProjectile : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs index 6bd5eae77f..eb9817f921 100644 --- a/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs +++ b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class SolarFlareYoyo : ModProjectile { @@ -37,10 +37,10 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("HolyExplosionSupreme"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs b/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs index 86476ae75c..fcf1eb7821 100644 --- a/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs +++ b/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class TheEyeofCalamitasProjectile : ModProjectile { @@ -70,7 +70,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("BrimstoneLaserFriendly"), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs b/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs index 0d08ba6ee9..cda6339380 100644 --- a/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs +++ b/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class TheGodsGambitProjectile : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/TheObliterator.cs b/Projectiles/Melee/Yoyos/TheObliterator.cs index 8be7aff4d4..fe3768f3c7 100644 --- a/Projectiles/Melee/Yoyos/TheObliterator.cs +++ b/Projectiles/Melee/Yoyos/TheObliterator.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class TheObliterator : ModProjectile { @@ -72,7 +72,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos num439 *= num440; if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("NebulaShot"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int proj = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Yoyos/ThePlaguebringer.cs b/Projectiles/Melee/Yoyos/ThePlaguebringer.cs index 2ccf7af026..cc40710b53 100644 --- a/Projectiles/Melee/Yoyos/ThePlaguebringer.cs +++ b/Projectiles/Melee/Yoyos/ThePlaguebringer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class ThePlaguebringer : ModProjectile { @@ -70,7 +70,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos num439 *= num440; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("PlagueSeeker"), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/Yoyos/VerdantProjectile.cs b/Projectiles/Melee/Yoyos/VerdantProjectile.cs index 884ca03389..f03c21dbc2 100644 --- a/Projectiles/Melee/Yoyos/VerdantProjectile.cs +++ b/Projectiles/Melee/Yoyos/VerdantProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class VerdantProjectile : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/YinYo.cs b/Projectiles/Melee/Yoyos/YinYo.cs index 9c1376b98c..0b7e5338a9 100644 --- a/Projectiles/Melee/Yoyos/YinYo.cs +++ b/Projectiles/Melee/Yoyos/YinYo.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles { public class YinYo : ModProjectile { @@ -75,11 +75,11 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { if (choice == 0) { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("Dark"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } else { - Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("Light"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Patreon/Akato.cs b/Projectiles/Patreon/Akato.cs index 7d65712505..924acd6c86 100644 --- a/Projectiles/Patreon/Akato.cs +++ b/Projectiles/Patreon/Akato.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class Akato : ModProjectile { diff --git a/Projectiles/Patreon/AngelicBeam.cs b/Projectiles/Patreon/AngelicBeam.cs index 1d0e708156..eb3b33f9a0 100644 --- a/Projectiles/Patreon/AngelicBeam.cs +++ b/Projectiles/Patreon/AngelicBeam.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class AngelicBeam : ModProjectile { @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Patreon/AtaraxiaHoming.cs b/Projectiles/Patreon/AtaraxiaHoming.cs index 5c919299b0..59a2661e38 100644 --- a/Projectiles/Patreon/AtaraxiaHoming.cs +++ b/Projectiles/Patreon/AtaraxiaHoming.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class AtaraxiaHoming : ModProjectile { diff --git a/Projectiles/Patreon/AtaraxiaMain.cs b/Projectiles/Patreon/AtaraxiaMain.cs index 6c708231e9..dd48d29b7f 100644 --- a/Projectiles/Patreon/AtaraxiaMain.cs +++ b/Projectiles/Patreon/AtaraxiaMain.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class AtaraxiaMain : ModProjectile { diff --git a/Projectiles/Patreon/AtaraxiaSide.cs b/Projectiles/Patreon/AtaraxiaSide.cs index be8be6afff..5554b7f3ca 100644 --- a/Projectiles/Patreon/AtaraxiaSide.cs +++ b/Projectiles/Patreon/AtaraxiaSide.cs @@ -1,10 +1,10 @@ -using CalamityMod.Items.Patreon; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class AtaraxiaSide : ModProjectile { @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Patreon // Individual split projectiles deal 7.5% of the weapon's base damage per hit. int numSplits = 6; - int splitID = mod.ProjectileType("AtaraxiaSplit"); + int splitID = ModContent.ProjectileType(); int damage = (int)(0.075f * Ataraxia.BaseDamage); float angleVariance = MathHelper.TwoPi / (float)numSplits; Vector2 projVec = new Vector2(4.5f, 0f).RotatedByRandom(MathHelper.TwoPi); diff --git a/Projectiles/Patreon/AtaraxiaSplit.cs b/Projectiles/Patreon/AtaraxiaSplit.cs index 7a900d2800..2a0cd46309 100644 --- a/Projectiles/Patreon/AtaraxiaSplit.cs +++ b/Projectiles/Patreon/AtaraxiaSplit.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class AtaraxiaSplit : ModProjectile { diff --git a/Projectiles/Patreon/CorpusAvertor.cs b/Projectiles/Patreon/CorpusAvertor.cs index dcea25c2ce..cbc0d658fd 100644 --- a/Projectiles/Patreon/CorpusAvertor.cs +++ b/Projectiles/Patreon/CorpusAvertor.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class CorpusAvertor : ModProjectile { @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Patreon float mult = projectile.ai[0] / 80f; // Ranges from 0.25 to 0.5 to 0.75 velocity *= mult; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, velocity.X, velocity.Y, mod.ProjectileType("CorpusAvertorClone"), + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), (int)((float)projectile.damage * mult), projectile.knockBack * mult, projectile.owner, projectile.ai[0], projectile.melee ? 0f : 1f); } } diff --git a/Projectiles/Patreon/CorpusAvertorClone.cs b/Projectiles/Patreon/CorpusAvertorClone.cs index 544a472a36..6b73808877 100644 --- a/Projectiles/Patreon/CorpusAvertorClone.cs +++ b/Projectiles/Patreon/CorpusAvertorClone.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class CorpusAvertorClone : ModProjectile { diff --git a/Projectiles/Patreon/DarkSpark.cs b/Projectiles/Patreon/DarkSpark.cs index 848bac0b75..bd873fb808 100644 --- a/Projectiles/Patreon/DarkSpark.cs +++ b/Projectiles/Patreon/DarkSpark.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DarkSpark : ModProjectile { @@ -143,7 +143,7 @@ namespace CalamityMod.Projectiles.Patreon int num29 = projectile.damage; for (int l = 0; l < 7; l++) { - Projectile.NewProjectile(center3.X, center3.Y, vector12.X, vector12.Y, mod.ProjectileType("DarkSparkBeam"), num29, projectile.knockBack, projectile.owner, (float)l, (float)projectile.whoAmI); + Projectile.NewProjectile(center3.X, center3.Y, vector12.X, vector12.Y, ModContent.ProjectileType(), num29, projectile.knockBack, projectile.owner, (float)l, (float)projectile.whoAmI); } projectile.netUpdate = true; } diff --git a/Projectiles/Patreon/DarkSparkBeam.cs b/Projectiles/Patreon/DarkSparkBeam.cs index 6cbad95162..da0a7375fa 100644 --- a/Projectiles/Patreon/DarkSparkBeam.cs +++ b/Projectiles/Patreon/DarkSparkBeam.cs @@ -7,9 +7,9 @@ using Terraria.Enums; using Terraria.GameContent.Shaders; using Terraria.Graphics.Effects; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DarkSparkBeam : ModProjectile { @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Patreon { projectile.velocity = -Vector2.UnitY; } - if (projectile.type != mod.ProjectileType("DarkSparkBeam") || !Main.projectile[(int)projectile.ai[1]].active || Main.projectile[(int)projectile.ai[1]].type != mod.ProjectileType("DarkSpark")) + if (projectile.type != ModContent.ProjectileType() || !Main.projectile[(int)projectile.ai[1]].active || Main.projectile[(int)projectile.ai[1]].type != ModContent.ProjectileType()) { projectile.Kill(); return; diff --git a/Projectiles/Patreon/DeepSeaDumbbell1.cs b/Projectiles/Patreon/DeepSeaDumbbell1.cs index 9a3f5f15f2..eca6dfb42b 100644 --- a/Projectiles/Patreon/DeepSeaDumbbell1.cs +++ b/Projectiles/Patreon/DeepSeaDumbbell1.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DeepSeaDumbbell1 : ModProjectile { @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Patreon if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("DeepSeaDumbbell2"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack * 0.75f, Main.myPlayer, 0f, 0f); float num628 = (float)Main.rand.Next(-35, 36) * 0.01f; @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Patreon num629 *= -10f; } - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("DeepSeaDumbbellWeight"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack * 0.25f, Main.myPlayer, 0f, 0f); num3 = num627; @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Patreon if (target.defense > 0) target.defense -= 15; - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 1f, 0f); @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Patreon if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("DeepSeaDumbbell2"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack * 0.75f, Main.myPlayer, 0f, 0f); float num628 = (float)Main.rand.Next(-35, 36) * 0.01f; @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Patreon num629 *= -10f; } - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("DeepSeaDumbbellWeight"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack * 0.25f, Main.myPlayer, 0f, 0f); num3 = num627; diff --git a/Projectiles/Patreon/DeepSeaDumbbell2.cs b/Projectiles/Patreon/DeepSeaDumbbell2.cs index 6a9925b743..3cef9453fb 100644 --- a/Projectiles/Patreon/DeepSeaDumbbell2.cs +++ b/Projectiles/Patreon/DeepSeaDumbbell2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DeepSeaDumbbell2 : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Patreon if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("DeepSeaDumbbell3"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack * 0.75f, Main.myPlayer, 0f, 0f); float num628 = (float)Main.rand.Next(-35, 36) * 0.01f; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Patreon num629 *= -10f; } - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("DeepSeaDumbbellWeight"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack * 0.25f, Main.myPlayer, 0f, 0f); num3 = num627; @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Patreon if (target.defense > 0) target.defense -= 15; - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 1f, 0f); @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Patreon if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("DeepSeaDumbbell3"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack * 0.75f, Main.myPlayer, 0f, 0f); float num628 = (float)Main.rand.Next(-35, 36) * 0.01f; @@ -143,7 +143,7 @@ namespace CalamityMod.Projectiles.Patreon num629 *= -10f; } - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("DeepSeaDumbbellWeight"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack * 0.25f, Main.myPlayer, 0f, 0f); num3 = num627; diff --git a/Projectiles/Patreon/DeepSeaDumbbell3.cs b/Projectiles/Patreon/DeepSeaDumbbell3.cs index 8ee5d37574..cc4ebe4bde 100644 --- a/Projectiles/Patreon/DeepSeaDumbbell3.cs +++ b/Projectiles/Patreon/DeepSeaDumbbell3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DeepSeaDumbbell3 : ModProjectile { @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Patreon num629 *= -10f; } - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("DeepSeaDumbbellWeight"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack * 0.25f, Main.myPlayer, 0f, 0f); num3 = num627; @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Patreon if (target.defense > 0) target.defense -= 15; - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 1f, 0f); @@ -129,7 +129,7 @@ namespace CalamityMod.Projectiles.Patreon num629 *= -10f; } - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, mod.ProjectileType("DeepSeaDumbbellWeight"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack * 0.25f, Main.myPlayer, 0f, 0f); num3 = num627; diff --git a/Projectiles/Patreon/DeepSeaDumbbellWeight.cs b/Projectiles/Patreon/DeepSeaDumbbellWeight.cs index 9b500f8259..c2b3b54801 100644 --- a/Projectiles/Patreon/DeepSeaDumbbellWeight.cs +++ b/Projectiles/Patreon/DeepSeaDumbbellWeight.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DeepSeaDumbbellWeight : ModProjectile { @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Patreon if (target.defense > 0) target.defense -= 15; - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Patreon/DevilsSunrise.cs b/Projectiles/Patreon/DevilsSunrise.cs index aa693e17a9..7abc7556d2 100644 --- a/Projectiles/Patreon/DevilsSunrise.cs +++ b/Projectiles/Patreon/DevilsSunrise.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DevilsSunrise : ModProjectile { @@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Patreon/DevilsSunriseCyclone.cs b/Projectiles/Patreon/DevilsSunriseCyclone.cs index d427e03222..476ff4481d 100644 --- a/Projectiles/Patreon/DevilsSunriseCyclone.cs +++ b/Projectiles/Patreon/DevilsSunriseCyclone.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DevilsSunriseCyclone : ModProjectile { @@ -225,7 +225,7 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Patreon/DivineRetribution.cs b/Projectiles/Patreon/DivineRetribution.cs index 38b27b68c0..c9cb4c71aa 100644 --- a/Projectiles/Patreon/DivineRetribution.cs +++ b/Projectiles/Patreon/DivineRetribution.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DivineRetribution : ModProjectile { @@ -108,8 +108,8 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override void Kill(int timeLeft) diff --git a/Projectiles/Patreon/DraconicSpark.cs b/Projectiles/Patreon/DraconicSpark.cs index 204315c198..3852571bd6 100644 --- a/Projectiles/Patreon/DraconicSpark.cs +++ b/Projectiles/Patreon/DraconicSpark.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DraconicSpark : ModProjectile { @@ -86,9 +86,9 @@ namespace CalamityMod.Projectiles.Patreon if (projectile.ai[0] == 0f) target.AddBuff(BuffID.Daybreak, 180); else if (projectile.ai[0] == 1f) - target.AddBuff(mod.BuffType("AbyssalFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); else if (projectile.ai[0] == 2f) - target.AddBuff(mod.BuffType("HolyLight"), 180); + target.AddBuff(ModContent.BuffType(), 180); } // Pure dust projectile, but dust used depends on AI variables diff --git a/Projectiles/Patreon/DragonPowFlail.cs b/Projectiles/Patreon/DragonPowFlail.cs index 01d8acb911..e74e044c3d 100644 --- a/Projectiles/Patreon/DragonPowFlail.cs +++ b/Projectiles/Patreon/DragonPowFlail.cs @@ -1,12 +1,12 @@ -using CalamityMod.Items.Patreon; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class DragonPowFlail : ModProjectile { @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Patreon if (projectile.ai[1] % 4 == 0) { - int type = mod.ProjectileType("DraconicSpark"); + int type = ModContent.ProjectileType(); int damage = DragonPow.BaseDamage / 8; float kb = 3f; float speed = DragonPow.SparkSpeed; @@ -140,8 +140,8 @@ namespace CalamityMod.Projectiles.Patreon { // Inflicts Daybroken, Abyssal Flames and Holy Flames for 8 seconds on-hit target.AddBuff(BuffID.Daybreak, 480); - target.AddBuff(mod.BuffType("AbyssalFlames"), 480); - target.AddBuff(mod.BuffType("HolyLight"), 480); + target.AddBuff(ModContent.BuffType(), 480); + target.AddBuff(ModContent.BuffType(), 480); projectile.ai[0] = 1f; projectile.netUpdate = true; @@ -195,7 +195,7 @@ namespace CalamityMod.Projectiles.Patreon private void Waterfalls(NPC target, int damage, float knockback, bool crit) { - int type = mod.ProjectileType("OceanBeam"); + int type = ModContent.ProjectileType(); int numWaterfalls = 12; int waterfallDamage = DragonPow.BaseDamage / 6; float waterfallKB = 0f; diff --git a/Projectiles/Patreon/HandheldTankShell.cs b/Projectiles/Patreon/HandheldTankShell.cs index 64048b04fd..33d9655231 100644 --- a/Projectiles/Patreon/HandheldTankShell.cs +++ b/Projectiles/Patreon/HandheldTankShell.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class HandheldTankShell : ModProjectile { diff --git a/Projectiles/Patreon/IlluminatedBullet.cs b/Projectiles/Patreon/IlluminatedBullet.cs index 1687ade05e..5f60be6047 100644 --- a/Projectiles/Patreon/IlluminatedBullet.cs +++ b/Projectiles/Patreon/IlluminatedBullet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class IlluminatedBullet : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 360); + target.AddBuff(ModContent.BuffType(), 360); } // On impact, make impact dust and play a sound. diff --git a/Projectiles/Patreon/KarasawaShot.cs b/Projectiles/Patreon/KarasawaShot.cs index b6bce62254..8cbc3df0f8 100644 --- a/Projectiles/Patreon/KarasawaShot.cs +++ b/Projectiles/Patreon/KarasawaShot.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class KarasawaShot : ModProjectile { @@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.Patreon { target.AddBuff(BuffID.OnFire, 600); target.AddBuff(BuffID.Confused, 300); - target.AddBuff(mod.BuffType("Irradiated"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void Kill(int timeLeft) diff --git a/Projectiles/Patreon/KeelhaulBubble.cs b/Projectiles/Patreon/KeelhaulBubble.cs index 1e9851c8c1..46ed2d31a2 100644 --- a/Projectiles/Patreon/KeelhaulBubble.cs +++ b/Projectiles/Patreon/KeelhaulBubble.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class KeelhaulBubble : ModProjectile { @@ -21,8 +21,8 @@ namespace CalamityMod.Projectiles.Patreon public override void Kill(int timeLeft) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 80f, 0f, 0f, mod.ProjectileType("KeelhaulGeyserBottom"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 80f, 0f, 0f, mod.ProjectileType("KeelhaulGeyserTop"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 80f, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 80f, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Patreon/KeelhaulGeyserBottom.cs b/Projectiles/Patreon/KeelhaulGeyserBottom.cs index b29d92c68d..81cbd14371 100644 --- a/Projectiles/Patreon/KeelhaulGeyserBottom.cs +++ b/Projectiles/Patreon/KeelhaulGeyserBottom.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class KeelhaulGeyserBottom : ModProjectile { diff --git a/Projectiles/Patreon/KeelhaulGeyserTop.cs b/Projectiles/Patreon/KeelhaulGeyserTop.cs index 889c2e1756..bc55988c4f 100644 --- a/Projectiles/Patreon/KeelhaulGeyserTop.cs +++ b/Projectiles/Patreon/KeelhaulGeyserTop.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class KeelhaulGeyserTop : ModProjectile { diff --git a/Projectiles/Patreon/KelvinCatalyst.cs b/Projectiles/Patreon/KelvinCatalyst.cs index ef0bf2876b..1ff49956b4 100644 --- a/Projectiles/Patreon/KelvinCatalyst.cs +++ b/Projectiles/Patreon/KelvinCatalyst.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class KelvinCatalyst : ModProjectile { @@ -154,10 +154,10 @@ namespace CalamityMod.Projectiles.Patreon offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 4f), (float)(Math.Cos(offsetAngle) * 4f), - mod.ProjectileType("KelvinCatalystStar"), projectile.damage / 6, projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + ModContent.ProjectileType(), projectile.damage / 6, projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 4f), (float)(-Math.Cos(offsetAngle) * 4f), - mod.ProjectileType("KelvinCatalystStar"), projectile.damage / 6, projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + ModContent.ProjectileType(), projectile.damage / 6, projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 30); diff --git a/Projectiles/Patreon/KelvinCatalystStar.cs b/Projectiles/Patreon/KelvinCatalystStar.cs index 4a4b2f0e3b..b53aa5f37f 100644 --- a/Projectiles/Patreon/KelvinCatalystStar.cs +++ b/Projectiles/Patreon/KelvinCatalystStar.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class KelvinCatalystStar : ModProjectile { diff --git a/Projectiles/Patreon/LightBall.cs b/Projectiles/Patreon/LightBall.cs index 5aa81e013d..6125719eae 100644 --- a/Projectiles/Patreon/LightBall.cs +++ b/Projectiles/Patreon/LightBall.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class LightBall : ModProjectile { @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Patreon projectile.height = 300; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("LightBallExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); for (int num621 = 0; num621 < 10; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Patreon/LightBallExplosion.cs b/Projectiles/Patreon/LightBallExplosion.cs index 9bd7e2b273..4a00c0f8f9 100644 --- a/Projectiles/Patreon/LightBallExplosion.cs +++ b/Projectiles/Patreon/LightBallExplosion.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class LightBallExplosion : ModProjectile { diff --git a/Projectiles/Patreon/LightBead.cs b/Projectiles/Patreon/LightBead.cs index 3df143f5a9..576aa72eb4 100644 --- a/Projectiles/Patreon/LightBead.cs +++ b/Projectiles/Patreon/LightBead.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class LightBead : ModProjectile { @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Patreon } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("LightBeadSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Patreon/LightBeadSplit.cs b/Projectiles/Patreon/LightBeadSplit.cs index 217f0caea5..7f138dc523 100644 --- a/Projectiles/Patreon/LightBeadSplit.cs +++ b/Projectiles/Patreon/LightBeadSplit.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class LightBeadSplit : ModProjectile { diff --git a/Projectiles/Patreon/MadAlchemistsCocktailAlt.cs b/Projectiles/Patreon/MadAlchemistsCocktailAlt.cs index 9ce6dd1252..dc29a10bed 100644 --- a/Projectiles/Patreon/MadAlchemistsCocktailAlt.cs +++ b/Projectiles/Patreon/MadAlchemistsCocktailAlt.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MadAlchemistsCocktailAlt : ModProjectile { @@ -40,9 +40,9 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); - target.AddBuff(mod.BuffType("GodSlayerInferno"), 600); - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); + target.AddBuff(ModContent.BuffType(), 600); + target.AddBuff(ModContent.BuffType(), 600); target.AddBuff(BuffID.Poisoned, 600); target.AddBuff(BuffID.OnFire, 600); target.AddBuff(BuffID.CursedInferno, 600); diff --git a/Projectiles/Patreon/MadAlchemistsCocktailBlue.cs b/Projectiles/Patreon/MadAlchemistsCocktailBlue.cs index 7d689bfd92..84a74ea6f8 100644 --- a/Projectiles/Patreon/MadAlchemistsCocktailBlue.cs +++ b/Projectiles/Patreon/MadAlchemistsCocktailBlue.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MadAlchemistsCocktailBlue : ModProjectile { @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Patreon Vector2 value17 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); value17.Normalize(); value17 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, mod.ProjectileType("MadAlchemistsCocktailGasCloud"), projectile.damage / 4, 0f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, ModContent.ProjectileType(), projectile.damage / 4, 0f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); } } } diff --git a/Projectiles/Patreon/MadAlchemistsCocktailGasCloud.cs b/Projectiles/Patreon/MadAlchemistsCocktailGasCloud.cs index cd4f4ed98f..ddb4774d19 100644 --- a/Projectiles/Patreon/MadAlchemistsCocktailGasCloud.cs +++ b/Projectiles/Patreon/MadAlchemistsCocktailGasCloud.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MadAlchemistsCocktailGasCloud : ModProjectile { diff --git a/Projectiles/Patreon/MadAlchemistsCocktailGreen.cs b/Projectiles/Patreon/MadAlchemistsCocktailGreen.cs index 300c5ff7fe..c3440494f2 100644 --- a/Projectiles/Patreon/MadAlchemistsCocktailGreen.cs +++ b/Projectiles/Patreon/MadAlchemistsCocktailGreen.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MadAlchemistsCocktailGreen : ModProjectile { diff --git a/Projectiles/Patreon/MadAlchemistsCocktailPurple.cs b/Projectiles/Patreon/MadAlchemistsCocktailPurple.cs index 70c887d195..5a3b2f68e3 100644 --- a/Projectiles/Patreon/MadAlchemistsCocktailPurple.cs +++ b/Projectiles/Patreon/MadAlchemistsCocktailPurple.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MadAlchemistsCocktailPurple : ModProjectile { @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Patreon Vector2 value17 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); value17.Normalize(); value17 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, mod.ProjectileType("MadAlchemistsCocktailShrapnel"), projectile.damage / 3, 0f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, ModContent.ProjectileType(), projectile.damage / 3, 0f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); } } } diff --git a/Projectiles/Patreon/MadAlchemistsCocktailRed.cs b/Projectiles/Patreon/MadAlchemistsCocktailRed.cs index e079ae313a..f591b956e3 100644 --- a/Projectiles/Patreon/MadAlchemistsCocktailRed.cs +++ b/Projectiles/Patreon/MadAlchemistsCocktailRed.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MadAlchemistsCocktailRed : ModProjectile { diff --git a/Projectiles/Patreon/MadAlchemistsCocktailShrapnel.cs b/Projectiles/Patreon/MadAlchemistsCocktailShrapnel.cs index 78cc28bb01..4fbc72390e 100644 --- a/Projectiles/Patreon/MadAlchemistsCocktailShrapnel.cs +++ b/Projectiles/Patreon/MadAlchemistsCocktailShrapnel.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MadAlchemistsCocktailShrapnel : ModProjectile { diff --git a/Projectiles/Patreon/MelterAmp.cs b/Projectiles/Patreon/MelterAmp.cs index ecce9a95e4..79cae3b862 100644 --- a/Projectiles/Patreon/MelterAmp.cs +++ b/Projectiles/Patreon/MelterAmp.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MelterAmp : ModProjectile { @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Patreon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("MelterAmp"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; if (flag64) { @@ -39,12 +39,12 @@ namespace CalamityMod.Projectiles.Patreon projectile.active = false; return; } - if (player.ownedProjectileCounts[mod.ProjectileType("MelterAmp")] > 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 1) { projectile.active = false; return; } - if (!player.inventory[player.selectedItem].magic || player.inventory[player.selectedItem].shoot != mod.ProjectileType("MelterNote1")) + if (!player.inventory[player.selectedItem].magic || player.inventory[player.selectedItem].shoot != ModContent.ProjectileType()) { projectile.active = false; return; @@ -90,13 +90,13 @@ namespace CalamityMod.Projectiles.Patreon if (note == 0) { Damage = (int)(projectile.damage * 1.5f); - type = mod.ProjectileType("MelterNote1"); + type = ModContent.ProjectileType(); } else { VelocityX *= 1.5f; VelocityY *= 1.5f; - type = mod.ProjectileType("MelterNote2"); + type = ModContent.ProjectileType(); } Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, VelocityX, VelocityY, type, Damage, projectile.knockBack, projectile.owner, 0.0f, 0.0f); } diff --git a/Projectiles/Patreon/MelterNote1.cs b/Projectiles/Patreon/MelterNote1.cs index 92d4bd0bce..edbcf932e7 100644 --- a/Projectiles/Patreon/MelterNote1.cs +++ b/Projectiles/Patreon/MelterNote1.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MelterNote1 : ModProjectile { diff --git a/Projectiles/Patreon/MelterNote2.cs b/Projectiles/Patreon/MelterNote2.cs index c0111ba8d8..6b4254a99c 100644 --- a/Projectiles/Patreon/MelterNote2.cs +++ b/Projectiles/Patreon/MelterNote2.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MelterNote2 : ModProjectile { diff --git a/Projectiles/Patreon/MiniGuardianAttack.cs b/Projectiles/Patreon/MiniGuardianAttack.cs index cb3d82e9c6..00cd168c29 100644 --- a/Projectiles/Patreon/MiniGuardianAttack.cs +++ b/Projectiles/Patreon/MiniGuardianAttack.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MiniGuardianAttack : ModProjectile { diff --git a/Projectiles/Patreon/MiniGuardianDefense.cs b/Projectiles/Patreon/MiniGuardianDefense.cs index 939f971f4e..e89ba368da 100644 --- a/Projectiles/Patreon/MiniGuardianDefense.cs +++ b/Projectiles/Patreon/MiniGuardianDefense.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MiniGuardianDefense : ModProjectile { diff --git a/Projectiles/Patreon/MiniGuardianHealer.cs b/Projectiles/Patreon/MiniGuardianHealer.cs index da4db5aa3e..64e1961ed2 100644 --- a/Projectiles/Patreon/MiniGuardianHealer.cs +++ b/Projectiles/Patreon/MiniGuardianHealer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MiniGuardianHealer : ModProjectile { diff --git a/Projectiles/Patreon/MourningSkull.cs b/Projectiles/Patreon/MourningSkull.cs index 579a34a14a..caf99ca4ce 100644 --- a/Projectiles/Patreon/MourningSkull.cs +++ b/Projectiles/Patreon/MourningSkull.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class MourningSkull : ModProjectile { @@ -161,7 +161,7 @@ namespace CalamityMod.Projectiles.Patreon for (int k = 0; k < 2; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, mod.ProjectileType("TinyFlare"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.35), projectile.knockBack * 0.35f, Main.myPlayer, 0f, 0f); } } diff --git a/Projectiles/Patreon/NadirSpear.cs b/Projectiles/Patreon/NadirSpear.cs index dc75d2944e..d3d6e08906 100644 --- a/Projectiles/Patreon/NadirSpear.cs +++ b/Projectiles/Patreon/NadirSpear.cs @@ -1,10 +1,10 @@ -using CalamityMod.Items.Patreon; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class NadirSpear : ModProjectile { @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Patreon Vector2 projPos = projectile.Center + projectile.velocity; Vector2 projVel = projectile.velocity * 0.75f; if (projectile.owner == Main.myPlayer) - Projectile.NewProjectile(projPos, projVel, mod.ProjectileType("VoidEssence"), damage, kb, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projPos, projVel, ModContent.ProjectileType(), damage, kb, projectile.owner, 0f, 0f); // Play a screaming soul sound effect (unused Shadowflame Hex Doll noise) Main.PlaySound(SoundID.Item104, projectile.Center); diff --git a/Projectiles/Patreon/OracleYoyo.cs b/Projectiles/Patreon/OracleYoyo.cs index c63b792e4e..84f0fcbf5e 100644 --- a/Projectiles/Patreon/OracleYoyo.cs +++ b/Projectiles/Patreon/OracleYoyo.cs @@ -1,10 +1,10 @@ -using CalamityMod.Items.Patreon; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class OracleYoyo : ModProjectile { @@ -206,7 +206,7 @@ namespace CalamityMod.Projectiles.Patreon Main.PlaySound(SoundID.Item92, (int)projectile.Center.X, (int)projectile.Center.Y); int numOrbs = 3; - int orbID = mod.ProjectileType("Orbacle"); + int orbID = ModContent.ProjectileType(); int orbDamage = Oracle.BaseDamage * 3; float orbKB = 8f; float angleVariance = MathHelper.TwoPi / (float)numOrbs; diff --git a/Projectiles/Patreon/Orbacle.cs b/Projectiles/Patreon/Orbacle.cs index 5a0796761d..1f372c631d 100644 --- a/Projectiles/Patreon/Orbacle.cs +++ b/Projectiles/Patreon/Orbacle.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class Orbacle : ModProjectile { diff --git a/Projectiles/Patreon/PerforaMini.cs b/Projectiles/Patreon/PerforaMini.cs index 6e6b956522..6e187df821 100644 --- a/Projectiles/Patreon/PerforaMini.cs +++ b/Projectiles/Patreon/PerforaMini.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class PerforaMini : ModProjectile { @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Patreon } //Delete the projectile if the player doesnt have the buff or is very far away (dunno if this needs to be deleted) - if (!player.HasBuff(mod.BuffType("BloodBound")) || playerdistance >= 4000f) + if (!player.HasBuff(ModContent.BuffType()) || playerdistance >= 4000f) { projectile.Kill(); } diff --git a/Projectiles/Patreon/PinkButterfly.cs b/Projectiles/Patreon/PinkButterfly.cs index 96b659520c..3d5712b07e 100644 --- a/Projectiles/Patreon/PinkButterfly.cs +++ b/Projectiles/Patreon/PinkButterfly.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class PinkButterfly : ModProjectile { @@ -77,10 +77,10 @@ namespace CalamityMod.Projectiles.Patreon float num634 = 1100f; float num635 = 2400f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("PinkButterfly"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("ResurrectionButterflyBuff"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Patreon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("PinkButterfly"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -243,7 +243,7 @@ namespace CalamityMod.Projectiles.Patreon if (projectile.ai[0] == 0f) { float velocity = 8f; - int projectileType = mod.ProjectileType("SakuraBullet"); + int projectileType = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f && projectile.localAI[0] >= 120f) { projectile.ai[1] += 1f; diff --git a/Projectiles/Patreon/Plaguenade.cs b/Projectiles/Patreon/Plaguenade.cs index b7a7d0e0e5..5cdbc361b4 100644 --- a/Projectiles/Patreon/Plaguenade.cs +++ b/Projectiles/Patreon/Plaguenade.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class Plaguenade : ModProjectile { @@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Patreon { float speedX = (float)Main.rand.Next(-35, 36) * 0.02f; float speedY = (float)Main.rand.Next(-35, 36) * 0.02f; - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, speedX, speedY, mod.ProjectileType("PlagueBee"), Main.player[projectile.owner].beeDamage(projectile.damage), Main.player[projectile.owner].beeKB(0f), Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, speedX, speedY, ModContent.ProjectileType(), Main.player[projectile.owner].beeDamage(projectile.damage), Main.player[projectile.owner].beeKB(0f), Main.myPlayer, 0f, 0f); num3 = num639; } } @@ -146,7 +146,7 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 600); + target.AddBuff(ModContent.BuffType(), 600); } } } diff --git a/Projectiles/Patreon/PlagueBee.cs b/Projectiles/Patreon/PlaguenadeBee.cs similarity index 97% rename from Projectiles/Patreon/PlagueBee.cs rename to Projectiles/Patreon/PlaguenadeBee.cs index e456508ca8..2fc8db09b0 100644 --- a/Projectiles/Patreon/PlagueBee.cs +++ b/Projectiles/Patreon/PlaguenadeBee.cs @@ -4,9 +4,9 @@ using System; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { - public class PlagueBee : ModProjectile + public class PlaguenadeBee : ModProjectile { public override void SetStaticDefaults() { @@ -157,7 +157,7 @@ namespace CalamityMod.Projectiles.Patreon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Patreon/PlagueBee.png b/Projectiles/Patreon/PlaguenadeBee.png similarity index 100% rename from Projectiles/Patreon/PlagueBee.png rename to Projectiles/Patreon/PlaguenadeBee.png diff --git a/Projectiles/Patreon/PurpleButterfly.cs b/Projectiles/Patreon/PurpleButterfly.cs index 2927423715..192c5cc2f1 100644 --- a/Projectiles/Patreon/PurpleButterfly.cs +++ b/Projectiles/Patreon/PurpleButterfly.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class PurpleButterfly : ModProjectile { @@ -79,10 +79,10 @@ namespace CalamityMod.Projectiles.Patreon float num634 = 1000f; float num635 = 1600f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("PurpleButterfly"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("ResurrectionButterflyBuff"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -97,7 +97,7 @@ namespace CalamityMod.Projectiles.Patreon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("PurpleButterfly"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { diff --git a/Projectiles/Patreon/Rox1.cs b/Projectiles/Patreon/Rox1.cs index edc6f4eb74..5224421dcb 100644 --- a/Projectiles/Patreon/Rox1.cs +++ b/Projectiles/Patreon/Rox1.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class Rox1 : ModProjectile { diff --git a/Projectiles/Patreon/RoxShockwave.cs b/Projectiles/Patreon/RoxShockwave.cs index 928eb3c607..05c03efe18 100644 --- a/Projectiles/Patreon/RoxShockwave.cs +++ b/Projectiles/Patreon/RoxShockwave.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class RoxShockwave : ModProjectile { diff --git a/Projectiles/Patreon/RoxSlam.cs b/Projectiles/Patreon/RoxSlam.cs index b9e0e24bb2..51e6bd9e58 100644 --- a/Projectiles/Patreon/RoxSlam.cs +++ b/Projectiles/Patreon/RoxSlam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class RoxSlam : ModProjectile { @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Patreon //Bounce player.velocity.Y = -18f; //Spawns the shockwave - Projectile.NewProjectile(projectile.position.X + 25, projectile.position.Y + 25, 0f, 0f, mod.ProjectileType("RoxShockwave"), 300, 12, projectile.owner); + Projectile.NewProjectile(projectile.position.X + 25, projectile.position.Y + 25, 0f, 0f, ModContent.ProjectileType(), 300, 12, projectile.owner); Main.PlaySound(2, projectile.position, 14); projectile.Kill(); //Pretty things diff --git a/Projectiles/Patreon/SakuraBullet.cs b/Projectiles/Patreon/SakuraBullet.cs index 321e992b0f..6f57abc7b2 100644 --- a/Projectiles/Patreon/SakuraBullet.cs +++ b/Projectiles/Patreon/SakuraBullet.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class SakuraBullet : ModProjectile { diff --git a/Projectiles/Patreon/ThePackMinissile.cs b/Projectiles/Patreon/ThePackMinissile.cs index c71c311388..eb65d6da2d 100644 --- a/Projectiles/Patreon/ThePackMinissile.cs +++ b/Projectiles/Patreon/ThePackMinissile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class ThePackMinissile : ModProjectile { diff --git a/Projectiles/Patreon/ThePackMissile.cs b/Projectiles/Patreon/ThePackMissile.cs index 19bc686ed3..c8a0d8f727 100644 --- a/Projectiles/Patreon/ThePackMissile.cs +++ b/Projectiles/Patreon/ThePackMissile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class ThePackMissile : ModProjectile { @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Patreon } speed.Normalize(); speed *= (float)Main.rand.Next(30, 61) * 0.1f * 2f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("ThePackMinissile"), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); diff --git a/Projectiles/Patreon/TimeBolt.cs b/Projectiles/Patreon/TimeBolt.cs index a9c92c9f72..07eef49827 100644 --- a/Projectiles/Patreon/TimeBolt.cs +++ b/Projectiles/Patreon/TimeBolt.cs @@ -4,9 +4,9 @@ using System; using System.IO; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class TimeBolt : ModProjectile { @@ -293,7 +293,7 @@ namespace CalamityMod.Projectiles.Patreon Main.dust[dust].scale = 0.3f; } - int buffType = mod.BuffType("TimeSlow"); + int buffType = ModContent.BuffType(); int damage = projectile.damage / 2; for (int i = 0; i < 200; i++) diff --git a/Projectiles/Patreon/VoidEssence.cs b/Projectiles/Patreon/VoidEssence.cs index 4943dcc980..a00d4c1f45 100644 --- a/Projectiles/Patreon/VoidEssence.cs +++ b/Projectiles/Patreon/VoidEssence.cs @@ -1,11 +1,11 @@ -using CalamityMod.Items.Patreon; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class VoidEssence : ModProjectile { @@ -200,7 +200,7 @@ namespace CalamityMod.Projectiles.Patreon ai1 *= Main.rand.NextBool() ? -1f : 1f; if (projectile.owner == Main.myPlayer) - Projectile.NewProjectile(projectile.Center, tentacleVelocity, mod.ProjectileType("VoidTentacle"), damage, kb, projectile.owner, ai0, ai1); + Projectile.NewProjectile(projectile.Center, tentacleVelocity, ModContent.ProjectileType(), damage, kb, projectile.owner, ai0, ai1); } } } diff --git a/Projectiles/Patreon/VoidTentacle.cs b/Projectiles/Patreon/VoidTentacle.cs index 8284c38b2d..135474a7cb 100644 --- a/Projectiles/Patreon/VoidTentacle.cs +++ b/Projectiles/Patreon/VoidTentacle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class VoidTentacle : ModProjectile { diff --git a/Projectiles/Patreon/YateveoBloom.cs b/Projectiles/Patreon/YateveoBloom.cs index 97c2f658b9..5dc7f77955 100644 --- a/Projectiles/Patreon/YateveoBloom.cs +++ b/Projectiles/Patreon/YateveoBloom.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class YateveoBloom : ModProjectile { diff --git a/Projectiles/Patreon/YateveoBloomSpear.cs b/Projectiles/Patreon/YateveoBloomSpear.cs index 6aeda37340..3bfa3e0e28 100644 --- a/Projectiles/Patreon/YateveoBloomSpear.cs +++ b/Projectiles/Patreon/YateveoBloomSpear.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Patreon +namespace CalamityMod.Projectiles { public class YateveoBloomSpear : ModProjectile { diff --git a/Projectiles/Permafrost/ArcticBearPaw.cs b/Projectiles/Permafrost/ArcticBearPaw.cs index 908e810970..1a2a2f9851 100644 --- a/Projectiles/Permafrost/ArcticBearPaw.cs +++ b/Projectiles/Permafrost/ArcticBearPaw.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class ArcticBearPaw : ModProjectile { @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Permafrost public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 480); - target.AddBuff(mod.BuffType("GlacialState"), 60); + target.AddBuff(ModContent.BuffType(), 60); if (Main.rand.NextBool(3)) target.AddBuff(BuffID.Confused, Main.rand.Next(60, 240)); diff --git a/Projectiles/Permafrost/DarkIce.cs b/Projectiles/Permafrost/DarkIce.cs index 107ab272a8..f63a16ba63 100644 --- a/Projectiles/Permafrost/DarkIce.cs +++ b/Projectiles/Permafrost/DarkIce.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class DarkIce : ModProjectile { @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Permafrost public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 480); - target.AddBuff(mod.BuffType("GlacialState"), 480); + target.AddBuff(ModContent.BuffType(), 480); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Permafrost/DarkIceZero.cs b/Projectiles/Permafrost/DarkIceZero.cs index 00c62907ce..16d1e8afe0 100644 --- a/Projectiles/Permafrost/DarkIceZero.cs +++ b/Projectiles/Permafrost/DarkIceZero.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class DarkIceZero : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Permafrost public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 480); - target.AddBuff(mod.BuffType("GlacialState"), 90); + target.AddBuff(ModContent.BuffType(), 90); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Permafrost/FrostShardFriendly.cs b/Projectiles/Permafrost/FrostShardFriendly.cs index 7b6a5e1b8a..e84178ac72 100644 --- a/Projectiles/Permafrost/FrostShardFriendly.cs +++ b/Projectiles/Permafrost/FrostShardFriendly.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class FrostShardFriendly : ModProjectile { diff --git a/Projectiles/Permafrost/FrostyFlare.cs b/Projectiles/Permafrost/FrostyFlare.cs index 86d69a36d4..2e9d5be1c7 100644 --- a/Projectiles/Permafrost/FrostyFlare.cs +++ b/Projectiles/Permafrost/FrostyFlare.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class FrostyFlare : ModProjectile { @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Permafrost vel.X += Main.rand.Next(-50, 51); vel.Normalize(); vel *= 30f; - int p = Projectile.NewProjectile(pos, vel + projectile.velocity / 4f, mod.ProjectileType("FrostShardFriendly"), projectile.damage, projectile.knockBack, projectile.owner); + int p = Projectile.NewProjectile(pos, vel + projectile.velocity / 4f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); Main.projectile[p].minion = false; } @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Permafrost vel.X += Main.rand.Next(-50, 51); vel.Normalize(); vel *= 30f; - int p = Projectile.NewProjectile(pos, vel + Main.npc[id].velocity, mod.ProjectileType("FrostShardFriendly"), projectile.damage, projectile.knockBack, projectile.owner); + int p = Projectile.NewProjectile(pos, vel + Main.npc[id].velocity, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); Main.projectile[p].minion = false; } } @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Permafrost public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 300); - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); target.immune[projectile.owner] = 0; projectile.ai[0] = 1f; projectile.ai[1] = target.whoAmI; diff --git a/Projectiles/Permafrost/IceSentry.cs b/Projectiles/Permafrost/IceSentry.cs index bd96c84d5a..dc7c904e75 100644 --- a/Projectiles/Permafrost/IceSentry.cs +++ b/Projectiles/Permafrost/IceSentry.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class IceSentry : ModProjectile { @@ -72,7 +72,7 @@ namespace CalamityMod.Projectiles.Permafrost Vector2 speed = new Vector2(Main.rand.Next(-1000, 1001), Main.rand.Next(-1000, 1001)); speed.Normalize(); speed *= 15f; - Projectile.NewProjectile(projectile.Center + speed, speed, mod.ProjectileType("FrostShardFriendly"), projectile.damage / 2, projectile.knockBack / 2, Main.myPlayer); + Projectile.NewProjectile(projectile.Center + speed, speed, ModContent.ProjectileType(), projectile.damage / 2, projectile.knockBack / 2, Main.myPlayer); } } } @@ -114,7 +114,7 @@ namespace CalamityMod.Projectiles.Permafrost speed *= 8f; if (projectile.ai[1] >= 300f) speed = speed.RotatedBy(MathHelper.ToRadians(Main.rand.Next(-5, 6))) * 1.5f + npc.velocity / 2f; - int p = Projectile.NewProjectile(projectile.Center, speed + npc.velocity / 2f, mod.ProjectileType("FrostBoltProjectile"), projectile.damage, projectile.knockBack, projectile.owner); + int p = Projectile.NewProjectile(projectile.Center, speed + npc.velocity / 2f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); if (p != 1000) { Main.projectile[p].magic = false; diff --git a/Projectiles/Permafrost/Icicle.cs b/Projectiles/Permafrost/Icicle.cs index cdb73417d9..200b820105 100644 --- a/Projectiles/Permafrost/Icicle.cs +++ b/Projectiles/Permafrost/Icicle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class Icicle : ModProjectile { diff --git a/Projectiles/Permafrost/IcicleArrow.cs b/Projectiles/Permafrost/IcicleArrow.cs index e34276102e..590bb8dab0 100644 --- a/Projectiles/Permafrost/IcicleArrow.cs +++ b/Projectiles/Permafrost/IcicleArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class IcicleArrow : ModProjectile { diff --git a/Projectiles/Permafrost/IcyBullet.cs b/Projectiles/Permafrost/IcyBullet.cs index 24c0c17e3d..0ee8d5aff3 100644 --- a/Projectiles/Permafrost/IcyBullet.cs +++ b/Projectiles/Permafrost/IcyBullet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class IcyBullet : ModProjectile { @@ -40,7 +40,7 @@ namespace CalamityMod.Projectiles.Permafrost public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 300); - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Permafrost/Snowball.cs b/Projectiles/Permafrost/Snowball.cs index e41775adad..fd2140be33 100644 --- a/Projectiles/Permafrost/Snowball.cs +++ b/Projectiles/Permafrost/Snowball.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class Snowball : ModProjectile { @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Permafrost public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 300); - target.AddBuff(mod.BuffType("GlacialState"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Permafrost/TridentIcicle.cs b/Projectiles/Permafrost/TridentIcicle.cs index e006e0e9e2..d2b78872d4 100644 --- a/Projectiles/Permafrost/TridentIcicle.cs +++ b/Projectiles/Permafrost/TridentIcicle.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Permafrost +namespace CalamityMod.Projectiles { public class TridentIcicle : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Permafrost public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 480); - target.AddBuff(mod.BuffType("GlacialState"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Pets/Astrophage.cs b/Projectiles/Pets/Astrophage.cs index ae4fd23673..382a119770 100644 --- a/Projectiles/Pets/Astrophage.cs +++ b/Projectiles/Pets/Astrophage.cs @@ -1,10 +1,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; -using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { public class Astrophage : ModProjectile { diff --git a/Projectiles/Pets/Bear.cs b/Projectiles/Pets/Bear.cs index a57c3a9c98..efa3fd6828 100644 --- a/Projectiles/Pets/Bear.cs +++ b/Projectiles/Pets/Bear.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { public class Bear : ModProjectile { diff --git a/Projectiles/Pets/Brimling.cs b/Projectiles/Pets/BrimlingPet.cs similarity index 96% rename from Projectiles/Pets/Brimling.cs rename to Projectiles/Pets/BrimlingPet.cs index 68f1a0d3e4..9fbea62470 100644 --- a/Projectiles/Pets/Brimling.cs +++ b/Projectiles/Pets/BrimlingPet.cs @@ -2,11 +2,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { - public class Brimling : ModProjectile + public class BrimlingPet : ModProjectile { public override void SetStaticDefaults() { diff --git a/Projectiles/Pets/Brimling.png b/Projectiles/Pets/BrimlingPet.png similarity index 100% rename from Projectiles/Pets/Brimling.png rename to Projectiles/Pets/BrimlingPet.png diff --git a/Projectiles/Pets/ChibiiDoggo.cs b/Projectiles/Pets/ChibiiDoggo.cs index b490daeaa8..a73afd2d4c 100644 --- a/Projectiles/Pets/ChibiiDoggo.cs +++ b/Projectiles/Pets/ChibiiDoggo.cs @@ -5,9 +5,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { public class ChibiiDoggo : ModProjectile { @@ -190,8 +190,8 @@ namespace CalamityMod.Projectiles.Pets projectile.hide = true; //projectile.extraUpdates = 1; - if (player.ownedProjectileCounts[mod.ProjectileType("ChibiiDoggoFly")] <= 0) - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, 0f, 0f, mod.ProjectileType("ChibiiDoggoFly"), 0, 0f, projectile.owner, (float)projectile.identity); + if (player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0) + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)projectile.identity); } //companion cube lighting check and stab diff --git a/Projectiles/Pets/ChibiiDoggoFly.cs b/Projectiles/Pets/ChibiiDoggoFly.cs index 9936f18067..d2dd3d80e7 100644 --- a/Projectiles/Pets/ChibiiDoggoFly.cs +++ b/Projectiles/Pets/ChibiiDoggoFly.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { public class ChibiiDoggoFly : ModProjectile { @@ -74,11 +74,11 @@ namespace CalamityMod.Projectiles.Pets public override bool PreAI() { //parent projectile might spawn more than one ChibiiDoggoFly sometimes - if (Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("ChibiiDoggoFly")] > 1) + if (Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] > 1) { projectile.hide = true; projectile.Kill(); - Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("ChibiiDoggoFly")]--; + Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()]--; return false; } @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Pets //basically slaved to parent's position //this projectile only exists because i fucking hate that tile collision desync i got when using full-sized flying sprites in ChibiiDoggo - if (Main.projectile[byUuid].active && Main.projectile[byUuid].type == mod.ProjectileType("ChibiiDoggo")) + if (Main.projectile[byUuid].active && Main.projectile[byUuid].type == ModContent.ProjectileType()) { //projectile.position.X = Main.projectile[byUuid].position.X - 22; //projectile.position.Y = Main.projectile[byUuid].position.Y; diff --git a/Projectiles/Pets/DannyDevito.cs b/Projectiles/Pets/DannyDevitoPet.cs similarity index 98% rename from Projectiles/Pets/DannyDevito.cs rename to Projectiles/Pets/DannyDevitoPet.cs index 529d1151ef..424dc6a238 100644 --- a/Projectiles/Pets/DannyDevito.cs +++ b/Projectiles/Pets/DannyDevitoPet.cs @@ -2,11 +2,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { - public class DannyDevito : ModProjectile + public class DannyDevitoPet : ModProjectile { private int playerStill = 0; private bool fly = false; diff --git a/Projectiles/Pets/DannyDevito.png b/Projectiles/Pets/DannyDevitoPet.png similarity index 100% rename from Projectiles/Pets/DannyDevito.png rename to Projectiles/Pets/DannyDevitoPet.png diff --git a/Projectiles/Pets/Fox.cs b/Projectiles/Pets/FoxPet.cs similarity index 82% rename from Projectiles/Pets/Fox.cs rename to Projectiles/Pets/FoxPet.cs index a3b67a4c3b..74978fa6ef 100644 --- a/Projectiles/Pets/Fox.cs +++ b/Projectiles/Pets/FoxPet.cs @@ -1,10 +1,10 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { - public class Fox : ModProjectile + public class FoxPet : ModProjectile { public override void SetStaticDefaults() { diff --git a/Projectiles/Pets/Fox.png b/Projectiles/Pets/FoxPet.png similarity index 100% rename from Projectiles/Pets/Fox.png rename to Projectiles/Pets/FoxPet.png diff --git a/Projectiles/Pets/Kendra.cs b/Projectiles/Pets/KendraPet.cs similarity index 98% rename from Projectiles/Pets/Kendra.cs rename to Projectiles/Pets/KendraPet.cs index 8ad9cc417f..575b3e6248 100644 --- a/Projectiles/Pets/Kendra.cs +++ b/Projectiles/Pets/KendraPet.cs @@ -3,11 +3,11 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { - public class Kendra : ModProjectile + public class KendraPet : ModProjectile { private int chosenIdle = 0; private int idleTimer = 0; diff --git a/Projectiles/Pets/Kendra.png b/Projectiles/Pets/KendraPet.png similarity index 100% rename from Projectiles/Pets/Kendra.png rename to Projectiles/Pets/KendraPet.png diff --git a/Projectiles/Pets/Levi.cs b/Projectiles/Pets/LeviPet.cs similarity index 95% rename from Projectiles/Pets/Levi.cs rename to Projectiles/Pets/LeviPet.cs index 3285d0a3b6..cd1f3042b8 100644 --- a/Projectiles/Pets/Levi.cs +++ b/Projectiles/Pets/LeviPet.cs @@ -2,11 +2,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { - public class Levi : ModProjectile + public class LeviPet : ModProjectile { public override void SetStaticDefaults() { diff --git a/Projectiles/Pets/Levi.png b/Projectiles/Pets/LeviPet.png similarity index 100% rename from Projectiles/Pets/Levi.png rename to Projectiles/Pets/LeviPet.png diff --git a/Projectiles/Pets/SirenYoung.cs b/Projectiles/Pets/SirenYoung.cs index 406b61d7ef..378c00fb78 100644 --- a/Projectiles/Pets/SirenYoung.cs +++ b/Projectiles/Pets/SirenYoung.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { public class SirenYoung : ModProjectile { diff --git a/Projectiles/Pets/ThirdSage.cs b/Projectiles/Pets/ThirdSage.cs index 5bbfc161a1..8052fb5234 100644 --- a/Projectiles/Pets/ThirdSage.cs +++ b/Projectiles/Pets/ThirdSage.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Pets +namespace CalamityMod.Projectiles { public class ThirdSage : ModProjectile { diff --git a/Projectiles/Ranged/AMR.cs b/Projectiles/Ranged/AMR.cs index d8437c52d5..4fd1ccb966 100644 --- a/Projectiles/Ranged/AMR.cs +++ b/Projectiles/Ranged/AMR.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AMR : ModProjectile { @@ -53,11 +53,11 @@ namespace CalamityMod.Projectiles.Ranged speedY *= dir * 150; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("AMR2"), (int)((double)projectile.damage * 0.1), 1f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.1), 1f, projectile.owner); } } } - target.AddBuff(mod.BuffType("MarkedforDeath"), 600); + target.AddBuff(ModContent.BuffType(), 600); if (target.defense > 50) { target.defense -= 50; diff --git a/Projectiles/Ranged/AMR2.cs b/Projectiles/Ranged/AMR2.cs index 65b7fbd0e9..7c694ffc04 100644 --- a/Projectiles/Ranged/AMR2.cs +++ b/Projectiles/Ranged/AMR2.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AMR2 : ModProjectile { diff --git a/Projectiles/Ranged/AccelerationBullet.cs b/Projectiles/Ranged/AccelerationBullet.cs index c385f281a0..7a96b5c9ee 100644 --- a/Projectiles/Ranged/AccelerationBullet.cs +++ b/Projectiles/Ranged/AccelerationBullet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AccelerationBullet : ModProjectile { diff --git a/Projectiles/Ranged/AcidBullet.cs b/Projectiles/Ranged/AcidBullet.cs index a6716eea47..a8ff1b1668 100644 --- a/Projectiles/Ranged/AcidBullet.cs +++ b/Projectiles/Ranged/AcidBullet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AcidBullet : ModProjectile { @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 360); + target.AddBuff(ModContent.BuffType(), 360); } public override void Kill(int timeLeft) diff --git a/Projectiles/Ranged/AquaBlast.cs b/Projectiles/Ranged/AquaBlast.cs index a4238968ab..fe6fa2106a 100644 --- a/Projectiles/Ranged/AquaBlast.cs +++ b/Projectiles/Ranged/AquaBlast.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AquaBlast : ModProjectile { diff --git a/Projectiles/Ranged/AquaBlastToxic.cs b/Projectiles/Ranged/AquaBlastToxic.cs index e15b705654..87d0fc7b61 100644 --- a/Projectiles/Ranged/AquaBlastToxic.cs +++ b/Projectiles/Ranged/AquaBlastToxic.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AquaBlastToxic : ModProjectile { diff --git a/Projectiles/Ranged/Archerfish.cs b/Projectiles/Ranged/Archerfish.cs index 8fbbcaa16d..a400ec3a75 100644 --- a/Projectiles/Ranged/Archerfish.cs +++ b/Projectiles/Ranged/Archerfish.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Archerfish : ModProjectile { diff --git a/Projectiles/Ranged/ArcticArrow.cs b/Projectiles/Ranged/ArcticArrow.cs index 36a84a9071..e7674623e5 100644 --- a/Projectiles/Ranged/ArcticArrow.cs +++ b/Projectiles/Ranged/ArcticArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ArcticArrow : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GlacialState"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Ranged/AstralRound.cs b/Projectiles/Ranged/AstralRound.cs index 29737c407f..de9ace511a 100644 --- a/Projectiles/Ranged/AstralRound.cs +++ b/Projectiles/Ranged/AstralRound.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AstralRound : ModProjectile { @@ -58,11 +58,11 @@ namespace CalamityMod.Projectiles.Ranged int randomDust = Main.rand.Next(2); if (randomDust == 0) { - randomDust = mod.DustType("AstralOrange"); + randomDust = ModContent.DustType(); } else { - randomDust = mod.DustType("AstralBlue"); + randomDust = ModContent.DustType(); } int num137 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), 1, 1, randomDust, 0f, 0f, 0, default, 0.5f); Main.dust[num137].alpha = projectile.alpha; @@ -149,7 +149,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Ranged/AstrealArrow.cs b/Projectiles/Ranged/AstrealArrow.cs index 7860772603..1f123afd17 100644 --- a/Projectiles/Ranged/AstrealArrow.cs +++ b/Projectiles/Ranged/AstrealArrow.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AstrealArrow : ModProjectile { @@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Ranged } if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("AstrealFlame"), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); } flameTimer = 180; } diff --git a/Projectiles/Ranged/AstrealFlame.cs b/Projectiles/Ranged/AstrealFlame.cs index fe1993455e..36d94a110a 100644 --- a/Projectiles/Ranged/AstrealFlame.cs +++ b/Projectiles/Ranged/AstrealFlame.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class AstrealFlame : ModProjectile { diff --git a/Projectiles/Ranged/BallistaGreatArrow.cs b/Projectiles/Ranged/BallistaGreatArrow.cs index e643c02c59..d215179fcb 100644 --- a/Projectiles/Ranged/BallistaGreatArrow.cs +++ b/Projectiles/Ranged/BallistaGreatArrow.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BallistaGreatArrow : ModProjectile { @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 12; - target.AddBuff(mod.BuffType("ArmorCrunch"), 360); + target.AddBuff(ModContent.BuffType(), 360); } public override void Kill(int timeLeft) @@ -54,8 +54,8 @@ namespace CalamityMod.Projectiles.Ranged for (i = 0; i < 3; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("FossilShard"), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("FossilShard"), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/BeeRPG.cs b/Projectiles/Ranged/BeeRPG.cs index a5529130a8..46168c924a 100644 --- a/Projectiles/Ranged/BeeRPG.cs +++ b/Projectiles/Ranged/BeeRPG.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BeeRPG : ModProjectile { @@ -178,7 +178,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/BigNuke.cs b/Projectiles/Ranged/BigNuke.cs index bc686ccd46..e27411b7f0 100644 --- a/Projectiles/Ranged/BigNuke.cs +++ b/Projectiles/Ranged/BigNuke.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BigNuke : ModProjectile { diff --git a/Projectiles/Ranged/BloodClotFriendly.cs b/Projectiles/Ranged/BloodClotFriendly.cs index 4b0b4bc86f..252eacf7e7 100644 --- a/Projectiles/Ranged/BloodClotFriendly.cs +++ b/Projectiles/Ranged/BloodClotFriendly.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BloodClotFriendly : ModProjectile { diff --git a/Projectiles/Ranged/BloodfireArrow.cs b/Projectiles/Ranged/BloodfireArrow.cs index 294ea4b0ef..9adb799834 100644 --- a/Projectiles/Ranged/BloodfireArrow.cs +++ b/Projectiles/Ranged/BloodfireArrow.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BloodfireArrow : ModProjectile { @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Ranged player.statLife += 1; player.HealEffect(1); } - target.AddBuff(mod.BuffType("BrimstoneFlames"), 360); + target.AddBuff(ModContent.BuffType(), 360); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Ranged/BloodfireBullet.cs b/Projectiles/Ranged/BloodfireBullet.cs index f9a249025a..013fba95c5 100644 --- a/Projectiles/Ranged/BloodfireBullet.cs +++ b/Projectiles/Ranged/BloodfireBullet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BloodfireBullet : ModProjectile { @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Ranged player.statLife += 1; player.HealEffect(1); } - target.AddBuff(mod.BuffType("BrimstoneFlames"), 360); + target.AddBuff(ModContent.BuffType(), 360); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Ranged/BloodflareSoul.cs b/Projectiles/Ranged/BloodflareSoul.cs index 37fe4ce3c2..5cef9f8933 100644 --- a/Projectiles/Ranged/BloodflareSoul.cs +++ b/Projectiles/Ranged/BloodflareSoul.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BloodflareSoul : ModProjectile { diff --git a/Projectiles/Ranged/BlueExoArrow.cs b/Projectiles/Ranged/BlueExoArrow.cs index 82f075651a..4c107e54d2 100644 --- a/Projectiles/Ranged/BlueExoArrow.cs +++ b/Projectiles/Ranged/BlueExoArrow.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BlueExoArrow : ModProjectile { @@ -96,11 +96,11 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); @@ -118,7 +118,7 @@ namespace CalamityMod.Projectiles.Ranged speedY *= dir * 150; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("BlueExoArrow2"), (int)((double)projectile.damage * 0.7), 1f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), 1f, projectile.owner); } } } diff --git a/Projectiles/Ranged/BlueExoArrow2.cs b/Projectiles/Ranged/BlueExoArrow2.cs index d7f1a9b1eb..c4e82f8ab7 100644 --- a/Projectiles/Ranged/BlueExoArrow2.cs +++ b/Projectiles/Ranged/BlueExoArrow2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BlueExoArrow2 : ModProjectile { diff --git a/Projectiles/Ranged/Bolt.cs b/Projectiles/Ranged/Bolt.cs index 17c649db01..7634d8404e 100644 --- a/Projectiles/Ranged/Bolt.cs +++ b/Projectiles/Ranged/Bolt.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Bolt : ModProjectile { diff --git a/Projectiles/Ranged/BoltArrow.cs b/Projectiles/Ranged/BoltArrow.cs index 2319579303..f3fb28202a 100644 --- a/Projectiles/Ranged/BoltArrow.cs +++ b/Projectiles/Ranged/BoltArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BoltArrow : ModProjectile { diff --git a/Projectiles/Ranged/BrimstoneBallFriendly.cs b/Projectiles/Ranged/BrimstoneBallFriendly.cs index 439b61c40c..56ffcecb93 100644 --- a/Projectiles/Ranged/BrimstoneBallFriendly.cs +++ b/Projectiles/Ranged/BrimstoneBallFriendly.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BrimstoneBallFriendly : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 5; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/BrimstoneBolt.cs b/Projectiles/Ranged/BrimstoneBolt.cs index 7775b7c975..4f4886fe37 100644 --- a/Projectiles/Ranged/BrimstoneBolt.cs +++ b/Projectiles/Ranged/BrimstoneBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BrimstoneBolt : ModProjectile { @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Ranged/BrimstoneFireFriendly.cs b/Projectiles/Ranged/BrimstoneFireFriendly.cs index b646134415..5016a2e5df 100644 --- a/Projectiles/Ranged/BrimstoneFireFriendly.cs +++ b/Projectiles/Ranged/BrimstoneFireFriendly.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class BrimstoneFireFriendly : ModProjectile { @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 7; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/Butcher.cs b/Projectiles/Ranged/Butcher.cs index ebf4dbcdf7..7c39c0b95b 100644 --- a/Projectiles/Ranged/Butcher.cs +++ b/Projectiles/Ranged/Butcher.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Butcher : ModProjectile { diff --git a/Projectiles/Ranged/ChargedBlast.cs b/Projectiles/Ranged/ChargedBlast.cs index 08110020bd..747672a26a 100644 --- a/Projectiles/Ranged/ChargedBlast.cs +++ b/Projectiles/Ranged/ChargedBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ChargedBlast : ModProjectile { @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int k = 0; k < projectiles; k++) { - Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-10, 11) * 2f, (float)Main.rand.Next(-10, 11) * 2f, mod.ProjectileType("ChargedBlast2"), + Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-10, 11) * 2f, (float)Main.rand.Next(-10, 11) * 2f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.85), (float)(int)((double)projectile.knockBack * 0.5), Main.myPlayer, 0f, 0f); } } diff --git a/Projectiles/Ranged/ChargedBlast2.cs b/Projectiles/Ranged/ChargedBlast2.cs index 8829826a33..319ab399ed 100644 --- a/Projectiles/Ranged/ChargedBlast2.cs +++ b/Projectiles/Ranged/ChargedBlast2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ChargedBlast2 : ModProjectile { diff --git a/Projectiles/Ranged/ChargedBlast3.cs b/Projectiles/Ranged/ChargedBlast3.cs index 83d33e5e6b..6b52fc7d78 100644 --- a/Projectiles/Ranged/ChargedBlast3.cs +++ b/Projectiles/Ranged/ChargedBlast3.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ChargedBlast3 : ModProjectile { @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { - int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("HiveExplosion"), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f); + int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[explode].penetrate = 1; Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); @@ -144,7 +144,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("HiveExplosion"), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f); + int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[explode].penetrate = 1; Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); @@ -176,7 +176,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 2; - int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("HiveExplosion"), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f); + int explode = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[explode].penetrate = 1; projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); diff --git a/Projectiles/Ranged/Chicken.cs b/Projectiles/Ranged/Chicken.cs index c158aa126f..e49af5d079 100644 --- a/Projectiles/Ranged/Chicken.cs +++ b/Projectiles/Ranged/Chicken.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Chicken : ModProjectile { @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ChickenExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); for (int num621 = 0; num621 < 40; num621++) diff --git a/Projectiles/Ranged/ChickenExplosion.cs b/Projectiles/Ranged/ChickenExplosion.cs index 0d52898eca..e5a16d3b19 100644 --- a/Projectiles/Ranged/ChickenExplosion.cs +++ b/Projectiles/Ranged/ChickenExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ChickenExplosion : ModProjectile { diff --git a/Projectiles/Ranged/Contagion.cs b/Projectiles/Ranged/Contagion.cs index 84e6640c4c..5fd1d9b8ae 100644 --- a/Projectiles/Ranged/Contagion.cs +++ b/Projectiles/Ranged/Contagion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Contagion : ModProjectile { @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Ranged Player player = Main.player[projectile.owner]; float num = 1.57079637f; Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true); - if (projectile.type == mod.ProjectileType("Contagion")) + if (projectile.type == ModContent.ProjectileType()) { projectile.ai[0] += 1f; int num2 = 0; @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.netUpdate = true; } projectile.velocity = vector3; - int num6 = mod.ProjectileType("ContagionArrow"); + int num6 = ModContent.ProjectileType(); float scaleFactor2 = 14f; int num7 = 7; value2 = projectile.Center + new Vector2((float)Main.rand.Next(-num7, num7 + 1), (float)Main.rand.Next(-num7, num7 + 1)); diff --git a/Projectiles/Ranged/ContagionArrow.cs b/Projectiles/Ranged/ContagionArrow.cs index 28ff2f9ba6..e0dfef637f 100644 --- a/Projectiles/Ranged/ContagionArrow.cs +++ b/Projectiles/Ranged/ContagionArrow.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ContagionArrow : ModProjectile { @@ -36,9 +36,9 @@ namespace CalamityMod.Projectiles.Ranged addBallTimer--; if (addBallTimer <= 0) { - if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("ContagionBall")] < 100) + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 100) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ContagionBall"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } addBallTimer = 10; } @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Ranged/ContagionBall.cs b/Projectiles/Ranged/ContagionBall.cs index 0a33beb640..507826ecbf 100644 --- a/Projectiles/Ranged/ContagionBall.cs +++ b/Projectiles/Ranged/ContagionBall.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ContagionBall : ModProjectile { @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/CorossiveFlames.cs b/Projectiles/Ranged/CorossiveFlames.cs index 5167abef3b..d41c43c3af 100644 --- a/Projectiles/Ranged/CorossiveFlames.cs +++ b/Projectiles/Ranged/CorossiveFlames.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class CorossiveFlames : ModProjectile { @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 4; - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/CosmicFire.cs b/Projectiles/Ranged/CosmicFire.cs index 59143baaf5..2aaa0a13a6 100644 --- a/Projectiles/Ranged/CosmicFire.cs +++ b/Projectiles/Ranged/CosmicFire.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class CosmicFire : ModProjectile { diff --git a/Projectiles/Ranged/DaemonsFlame.cs b/Projectiles/Ranged/DaemonsFlame.cs index 4b8e34041b..1f58f55694 100644 --- a/Projectiles/Ranged/DaemonsFlame.cs +++ b/Projectiles/Ranged/DaemonsFlame.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class DaemonsFlame : ModProjectile { @@ -133,7 +133,7 @@ namespace CalamityMod.Projectiles.Ranged } float speedY = vector2.Y; Vector2 vector3 = vector19 + Utils.RandomVector2(Main.rand, -15f, 15f); - Projectile.NewProjectile(vector3.X, vector3.Y, vector2.X, vector2.Y, mod.ProjectileType("DaemonsFlameArrow"), weaponDamage2, weaponKnockback2, projectile.owner, 0.0f, speedY); + Projectile.NewProjectile(vector3.X, vector3.Y, vector2.X, vector2.Y, ModContent.ProjectileType(), weaponDamage2, weaponKnockback2, projectile.owner, 0.0f, speedY); } else { diff --git a/Projectiles/Ranged/DaemonsFlameArrow.cs b/Projectiles/Ranged/DaemonsFlameArrow.cs index cdad8a1cf1..4cb4808fc3 100644 --- a/Projectiles/Ranged/DaemonsFlameArrow.cs +++ b/Projectiles/Ranged/DaemonsFlameArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class DaemonsFlameArrow : ModProjectile { diff --git a/Projectiles/Ranged/DragonBurst.cs b/Projectiles/Ranged/DragonBurst.cs index 2c11366bdc..b2f8c95eca 100644 --- a/Projectiles/Ranged/DragonBurst.cs +++ b/Projectiles/Ranged/DragonBurst.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class DragonBurst : ModProjectile { @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[proj].Calamity().forceRanged = true; } } diff --git a/Projectiles/Ranged/Drataliornus.cs b/Projectiles/Ranged/Drataliornus.cs index a39e899d82..63ed41c1d0 100644 --- a/Projectiles/Ranged/Drataliornus.cs +++ b/Projectiles/Ranged/Drataliornus.cs @@ -1,10 +1,11 @@ +using CalamityMod.Projectiles; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Drataliornus : ModProjectile { @@ -98,7 +99,7 @@ namespace CalamityMod.Projectiles.Ranged player.PickAmmo(player.inventory[player.selectedItem], ref type, ref scaleFactor, ref canFire, ref damage, ref knockBack, false); - type = mod.ProjectileType("DrataliornusFlame"); + type = ModContent.ProjectileType knockBack = player.GetWeaponKnockback(player.inventory[player.selectedItem], knockBack); Vector2 playerPosition = player.RotatedRelativePoint(player.MountedCenter, true); diff --git a/Projectiles/Ranged/DrataliornusExoArrow.cs b/Projectiles/Ranged/DrataliornusExoArrow.cs index 1c7e1af1b9..e3fea00352 100644 --- a/Projectiles/Ranged/DrataliornusExoArrow.cs +++ b/Projectiles/Ranged/DrataliornusExoArrow.cs @@ -2,13 +2,13 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityModContent.Projectiles.Ranged { public class DrataliornusExoArrow : ModProjectile { - private int HolyLight { get { return mod.BuffType("HolyLight"); } } + private int HolyLight { get { return mod.BuffType(); } } public override void SetStaticDefaults() { @@ -72,11 +72,11 @@ namespace CalamityMod.Projectiles.Ranged target.AddBuff(BuffID.Daybreak, 540); target.AddBuff(HolyLight, 540); - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Ranged/DrataliornusFlame.cs b/Projectiles/Ranged/DrataliornusFlame.cs index 8a1e0dd8e1..2996516c88 100644 --- a/Projectiles/Ranged/DrataliornusFlame.cs +++ b/Projectiles/Ranged/DrataliornusFlame.cs @@ -3,15 +3,15 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityModContent.Projectiles.Ranged { public class DrataliornusFlame : ModProjectile { - private int HolyLight { get { return mod.BuffType("HolyLight"); } } - private int DragonDust { get { return mod.ProjectileType("DragonDust"); } } - private int SkyFlareFriendly { get { return mod.ProjectileType("SkyFlareFriendly"); } } + private int HolyLight { get { return ModContent.BuffType(); } } + private int DragonDust { get { return ModContent.ProjectileType(); } } + private int SkyFlareFriendly { get { return ModContent.ProjectileType(); } } public override void SetStaticDefaults() { @@ -247,7 +247,7 @@ namespace CalamityMod.Projectiles.Ranged Vector2 vector3 = target.Center + new Vector2(600, 0).RotatedBy(MathHelper.ToRadians(Main.rand.Next(360))); Vector2 speed = target.Center - vector3; speed /= 30f; - Projectile.NewProjectile(vector3.X, vector3.Y, speed.X, speed.Y, mod.ProjectileType("DrataliornusExoArrow"), projectile.damage / 2, projectile.knockBack, projectile.owner); + Projectile.NewProjectile(vector3.X, vector3.Y, speed.X, speed.Y, ModContent.ProjectileType(), projectile.damage / 2, projectile.knockBack, projectile.owner); Vector2 vel = new Vector2(Main.rand.Next(-400, 401), Main.rand.Next(500, 801)); Vector2 pos = target.Center - vel; diff --git a/Projectiles/Ranged/ElysianArrow.cs b/Projectiles/Ranged/ElysianArrow.cs index 6f3d7293e6..b1ccbe9cb3 100644 --- a/Projectiles/Ranged/ElysianArrow.cs +++ b/Projectiles/Ranged/ElysianArrow.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ElysianArrow : ModProjectile { @@ -120,14 +120,14 @@ namespace CalamityMod.Projectiles.Ranged num16 *= num18; if (projectile.owner == Main.myPlayer) { - int num19 = Projectile.NewProjectile(x, y, num15, num16, mod.ProjectileType("SkyFlareFriendly"), projectile.damage, 5f, projectile.owner, 0f, 0f); + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), projectile.damage, 5f, projectile.owner, 0f, 0f); Main.projectile[num19].ai[1] = projectile.position.Y; } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 360); + target.AddBuff(ModContent.BuffType(), 360); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Ranged/EnhancedNanoRound.cs b/Projectiles/Ranged/EnhancedNanoRound.cs index 053487b731..352e727f2a 100644 --- a/Projectiles/Ranged/EnhancedNanoRound.cs +++ b/Projectiles/Ranged/EnhancedNanoRound.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class EnhancedNanoRound : ModProjectile { @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Ranged } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("Nanomachine"), (int)((double)projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/EssenceFire.cs b/Projectiles/Ranged/EssenceFire.cs index 151a0278ba..74242889da 100644 --- a/Projectiles/Ranged/EssenceFire.cs +++ b/Projectiles/Ranged/EssenceFire.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class EssenceFire : ModProjectile { @@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); target.immune[projectile.owner] = 1; } } diff --git a/Projectiles/Ranged/ExoFire.cs b/Projectiles/Ranged/ExoFire.cs index 47ab7f6f27..5e79f6bf1e 100644 --- a/Projectiles/Ranged/ExoFire.cs +++ b/Projectiles/Ranged/ExoFire.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ExoFire : ModProjectile { @@ -102,11 +102,11 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Ranged/ExoMark.cs b/Projectiles/Ranged/ExoMark.cs index 4f29bbc266..7a2a67ef30 100644 --- a/Projectiles/Ranged/ExoMark.cs +++ b/Projectiles/Ranged/ExoMark.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ExoMark : ModProjectile { @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.localAI[1] += 1f; if (projectile.localAI[1] == 60f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center, Vector2.Zero, mod.ProjectileType("ExoTornado"), projectile.damage, 2f, projectile.owner, 1f, 0f); + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, 2f, projectile.owner, 1f, 0f); } if (projectile.localAI[1] >= 120f) { diff --git a/Projectiles/Ranged/ExoTornado.cs b/Projectiles/Ranged/ExoTornado.cs index c4c62012df..1528c7f09d 100644 --- a/Projectiles/Ranged/ExoTornado.cs +++ b/Projectiles/Ranged/ExoTornado.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ExoTornado : ModProjectile { diff --git a/Projectiles/Ranged/ExplodingStake.cs b/Projectiles/Ranged/ExplodingStake.cs index 05f54a4075..a1428be39e 100644 --- a/Projectiles/Ranged/ExplodingStake.cs +++ b/Projectiles/Ranged/ExplodingStake.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ExplodingStake : ModProjectile { @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Ranged target.immune[projectile.owner] = 5; if (projectile.owner == Main.myPlayer) { - int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int boom = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[boom].Calamity().forceRanged = true; } } diff --git a/Projectiles/Ranged/ExplosiveShellBullet.cs b/Projectiles/Ranged/ExplosiveShellBullet.cs index 09b8155ec8..62a94940d9 100644 --- a/Projectiles/Ranged/ExplosiveShellBullet.cs +++ b/Projectiles/Ranged/ExplosiveShellBullet.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ExplosiveShellBullet : ModProjectile { diff --git a/Projectiles/Ranged/FeatherLarge.cs b/Projectiles/Ranged/FeatherLarge.cs index 60a4592ebb..1c0a7977b8 100644 --- a/Projectiles/Ranged/FeatherLarge.cs +++ b/Projectiles/Ranged/FeatherLarge.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FeatherLarge : ModProjectile { diff --git a/Projectiles/Ranged/FishronRPG.cs b/Projectiles/Ranged/FishronRPG.cs index 17d9352c72..c9535973ac 100644 --- a/Projectiles/Ranged/FishronRPG.cs +++ b/Projectiles/Ranged/FishronRPG.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FishronRPG : ModProjectile { diff --git a/Projectiles/Ranged/FlakKraken.cs b/Projectiles/Ranged/FlakKraken.cs index d83530bbf5..19d5d73b0c 100644 --- a/Projectiles/Ranged/FlakKraken.cs +++ b/Projectiles/Ranged/FlakKraken.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FlakKraken : ModProjectile { @@ -33,9 +33,9 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - if (projectile.type != mod.ProjectileType("FlakKraken") || + if (projectile.type != ModContent.ProjectileType() || !Main.projectile[(int)projectile.ai[1]].active || - Main.projectile[(int)projectile.ai[1]].type != mod.ProjectileType("FlakKrakenGun")) + Main.projectile[(int)projectile.ai[1]].type != ModContent.ProjectileType()) { projectile.Kill(); return; diff --git a/Projectiles/Ranged/FlakKrakenGun.cs b/Projectiles/Ranged/FlakKrakenGun.cs index 0738d61580..7932a47620 100644 --- a/Projectiles/Ranged/FlakKrakenGun.cs +++ b/Projectiles/Ranged/FlakKrakenGun.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FlakKrakenGun : ModProjectile { @@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles.Ranged } vector2 += new Vector2(num78, num79); int num29 = projectile.damage; - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, mod.ProjectileType("FlakKraken"), num29, projectile.knockBack, projectile.owner, 0f, (float)projectile.whoAmI); + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ModContent.ProjectileType(), num29, projectile.knockBack, projectile.owner, 0f, (float)projectile.whoAmI); projectile.netUpdate = true; } } diff --git a/Projectiles/Ranged/FlamingStake.cs b/Projectiles/Ranged/FlamingStake.cs index a6bb53d7e1..58fbcd4840 100644 --- a/Projectiles/Ranged/FlamingStake.cs +++ b/Projectiles/Ranged/FlamingStake.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FlamingStake : ModProjectile { diff --git a/Projectiles/Ranged/FlareBat.cs b/Projectiles/Ranged/FlareBat.cs index 94586f954f..89ea120914 100644 --- a/Projectiles/Ranged/FlareBat.cs +++ b/Projectiles/Ranged/FlareBat.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FlareBat : ModProjectile { diff --git a/Projectiles/Ranged/Flash.cs b/Projectiles/Ranged/Flash.cs index 0ff4fce4da..6125621bd1 100644 --- a/Projectiles/Ranged/Flash.cs +++ b/Projectiles/Ranged/Flash.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Flash : ModProjectile { diff --git a/Projectiles/Ranged/FlashBullet.cs b/Projectiles/Ranged/FlashBullet.cs index a836d8a82f..ce223d8602 100644 --- a/Projectiles/Ranged/FlashBullet.cs +++ b/Projectiles/Ranged/FlashBullet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FlashBullet : ModProjectile { @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Ranged Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 93); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Flash"), (int)((double)projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); } for (int k = 0; k < 5; k++) { diff --git a/Projectiles/Ranged/FossilShard.cs b/Projectiles/Ranged/FossilShard.cs index 0bc0bf632e..ceeee66ff9 100644 --- a/Projectiles/Ranged/FossilShard.cs +++ b/Projectiles/Ranged/FossilShard.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FossilShard : ModProjectile { @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 60); + target.AddBuff(ModContent.BuffType(), 60); } public override void Kill(int timeLeft) diff --git a/Projectiles/Ranged/FrostsparkBullet.cs b/Projectiles/Ranged/FrostsparkBullet.cs index 54da4deff8..7918ff5a46 100644 --- a/Projectiles/Ranged/FrostsparkBullet.cs +++ b/Projectiles/Ranged/FrostsparkBullet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FrostsparkBullet : ModProjectile { @@ -65,13 +65,13 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(BuffID.OnFire, 240); target.AddBuff(BuffID.Frostburn, 240); - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void Kill(int timeLeft) { Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("BoltExplosion"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); int num212 = Main.rand.Next(10, 20); for (int num213 = 0; num213 < num212; num213++) { diff --git a/Projectiles/Ranged/FungiOrb.cs b/Projectiles/Ranged/FungiOrb.cs index 65e9ed7065..6f4a825682 100644 --- a/Projectiles/Ranged/FungiOrb.cs +++ b/Projectiles/Ranged/FungiOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FungiOrb : ModProjectile { @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Ranged } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("FungiOrb2"), (int)((double)projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); } } Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 1); diff --git a/Projectiles/Ranged/FungiOrb2.cs b/Projectiles/Ranged/FungiOrb2.cs index 7874b15e18..261e0086d5 100644 --- a/Projectiles/Ranged/FungiOrb2.cs +++ b/Projectiles/Ranged/FungiOrb2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class FungiOrb2 : ModProjectile { diff --git a/Projectiles/Ranged/GoliathRocket.cs b/Projectiles/Ranged/GoliathRocket.cs index e978ab6215..e86b1fc2a1 100644 --- a/Projectiles/Ranged/GoliathRocket.cs +++ b/Projectiles/Ranged/GoliathRocket.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class GoliathRocket : ModProjectile { @@ -195,7 +195,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/GreenExoArrow.cs b/Projectiles/Ranged/GreenExoArrow.cs index 9631faebfa..e047110f9b 100644 --- a/Projectiles/Ranged/GreenExoArrow.cs +++ b/Projectiles/Ranged/GreenExoArrow.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class GreenExoArrow : ModProjectile { @@ -57,11 +57,11 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ExoMark"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/HalleysComet.cs b/Projectiles/Ranged/HalleysComet.cs index 51e4b94ad9..c0b2d55850 100644 --- a/Projectiles/Ranged/HalleysComet.cs +++ b/Projectiles/Ranged/HalleysComet.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class HalleysComet : ModProjectile { @@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Nightwither"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/HiveBomb.cs b/Projectiles/Ranged/HiveBomb.cs index 594b7c07ad..dc7da904b3 100644 --- a/Projectiles/Ranged/HiveBomb.cs +++ b/Projectiles/Ranged/HiveBomb.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class HiveBomb : ModProjectile { @@ -195,7 +195,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 900); + target.AddBuff(ModContent.BuffType(), 900); } } } diff --git a/Projectiles/Ranged/HiveMissile.cs b/Projectiles/Ranged/HiveMissile.cs index 9f4e5db9d0..afabad91dc 100644 --- a/Projectiles/Ranged/HiveMissile.cs +++ b/Projectiles/Ranged/HiveMissile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class HiveMissile : ModProjectile { diff --git a/Projectiles/Ranged/HolyFireBullet.cs b/Projectiles/Ranged/HolyFireBullet.cs index 4e1d35c23f..d170704e95 100644 --- a/Projectiles/Ranged/HolyFireBullet.cs +++ b/Projectiles/Ranged/HolyFireBullet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class HolyFireBullet : ModProjectile { @@ -69,7 +69,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), (int)((double)projectile.damage * 0.85), projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.85), projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[proj].Calamity().forceRanged = true; } for (int k = 0; k < 10; k++) @@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/HyperiusBullet.cs b/Projectiles/Ranged/HyperiusBullet.cs index 968250c663..78e4db9d80 100644 --- a/Projectiles/Ranged/HyperiusBullet.cs +++ b/Projectiles/Ranged/HyperiusBullet.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class HyperiusBullet : ModProjectile { @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Ranged } if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("OMGWTH"), (int)((double)projectile.damage * 0.8), 1f, projectile.owner); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.8), 1f, projectile.owner); } } } diff --git a/Projectiles/Ranged/LeafArrow.cs b/Projectiles/Ranged/LeafArrow.cs index 3157b1ed82..e64a529f57 100644 --- a/Projectiles/Ranged/LeafArrow.cs +++ b/Projectiles/Ranged/LeafArrow.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class LeafArrow : ModProjectile { diff --git a/Projectiles/Ranged/LunarBolt.cs b/Projectiles/Ranged/LunarBolt.cs index fc7cad5332..e338a1bdc2 100644 --- a/Projectiles/Ranged/LunarBolt.cs +++ b/Projectiles/Ranged/LunarBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class LunarBolt : ModProjectile { diff --git a/Projectiles/Ranged/LunarBolt2.cs b/Projectiles/Ranged/LunarBolt2.cs index 604c42dc8d..7b03277a42 100644 --- a/Projectiles/Ranged/LunarBolt2.cs +++ b/Projectiles/Ranged/LunarBolt2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class LunarBolt2 : ModProjectile { diff --git a/Projectiles/Ranged/MagnaStrike.cs b/Projectiles/Ranged/MagnaStrike.cs index 6fa6b3f077..c324768827 100644 --- a/Projectiles/Ranged/MagnaStrike.cs +++ b/Projectiles/Ranged/MagnaStrike.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class MagnaStrike : ModProjectile { diff --git a/Projectiles/Ranged/MechanicalBarracuda.cs b/Projectiles/Ranged/MechanicalBarracuda.cs index 3bd473a9c1..e01b8ec08f 100644 --- a/Projectiles/Ranged/MechanicalBarracuda.cs +++ b/Projectiles/Ranged/MechanicalBarracuda.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class MechanicalBarracuda : ModProjectile { diff --git a/Projectiles/Ranged/MeowFire.cs b/Projectiles/Ranged/MeowFire.cs index 36c605c65e..49c6b4878e 100644 --- a/Projectiles/Ranged/MeowFire.cs +++ b/Projectiles/Ranged/MeowFire.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class MeowFire : ModProjectile { diff --git a/Projectiles/Ranged/MeowFire2.cs b/Projectiles/Ranged/MeowFire2.cs index 19ca13e98c..e822f4b1f8 100644 --- a/Projectiles/Ranged/MeowFire2.cs +++ b/Projectiles/Ranged/MeowFire2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class MeowFire2 : ModProjectile { diff --git a/Projectiles/Ranged/MiniRocket.cs b/Projectiles/Ranged/MiniRocket.cs index c4c1de8a6f..e9bf79895a 100644 --- a/Projectiles/Ranged/MiniRocket.cs +++ b/Projectiles/Ranged/MiniRocket.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class MiniRocket : ModProjectile { diff --git a/Projectiles/Ranged/MistArrow.cs b/Projectiles/Ranged/MistArrow.cs index b536a6b7ff..fa18bcd629 100644 --- a/Projectiles/Ranged/MistArrow.cs +++ b/Projectiles/Ranged/MistArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class MistArrow : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Frostburn, 240); - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Ranged/MortarRound.cs b/Projectiles/Ranged/MortarRound.cs index 9d2607da28..dd6d3d4057 100644 --- a/Projectiles/Ranged/MortarRound.cs +++ b/Projectiles/Ranged/MortarRound.cs @@ -4,9 +4,9 @@ using System; using Terraria; using Terraria.GameContent.Achievements; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class MortarRound : ModProjectile { @@ -187,7 +187,7 @@ namespace CalamityMod.Projectiles.Ranged double num828 = Math.Sqrt((double)(num826 * num826 + num827 * num827)); if (num828 < (double)num814) { - if (Main.tile[num824, num825] != null && Main.tile[num824, num825].active() && Main.tile[num824, num825].type != (ushort)mod.TileType("AbyssGravel")) + if (Main.tile[num824, num825] != null && Main.tile[num824, num825].active() && Main.tile[num824, num825].type != (ushort)ModContent.TileType()) { WorldGen.KillTile(num824, num825, false, false, false); if (!Main.tile[num824, num825].active() && Main.netMode != NetmodeID.SinglePlayer) @@ -199,7 +199,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int num830 = num825 - 1; num830 <= num825 + 1; num830++) { - if (Main.tile[num829, num830] != null && Main.tile[num829, num830].wall > 0 && Main.tile[num829, num830].wall != (byte)mod.WallType("AbyssGravelWall") && flag3) + if (Main.tile[num829, num830] != null && Main.tile[num829, num830].wall > 0 && Main.tile[num829, num830].wall != (byte)ModContent.WallType() && flag3) { WorldGen.KillWall(num829, num830, false); if (Main.tile[num829, num830].wall == 0 && Main.netMode != NetmodeID.SinglePlayer) diff --git a/Projectiles/Ranged/Nanomachine.cs b/Projectiles/Ranged/Nanomachine.cs index 976e560828..c74954690a 100644 --- a/Projectiles/Ranged/Nanomachine.cs +++ b/Projectiles/Ranged/Nanomachine.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Nanomachine : ModProjectile { diff --git a/Projectiles/Ranged/NapalmArrow.cs b/Projectiles/Ranged/NapalmArrow.cs index 744a2920f2..50fa620324 100644 --- a/Projectiles/Ranged/NapalmArrow.cs +++ b/Projectiles/Ranged/NapalmArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class NapalmArrow : ModProjectile { diff --git a/Projectiles/Ranged/NebulaShot.cs b/Projectiles/Ranged/NebulaShot.cs index 6da0c66cca..fca5a45351 100644 --- a/Projectiles/Ranged/NebulaShot.cs +++ b/Projectiles/Ranged/NebulaShot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class NebulaShot : ModProjectile { diff --git a/Projectiles/Ranged/Needler.cs b/Projectiles/Ranged/Needler.cs index 92d416738f..48353ea06f 100644 --- a/Projectiles/Ranged/Needler.cs +++ b/Projectiles/Ranged/Needler.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Needler : ModProjectile { diff --git a/Projectiles/Ranged/Norfleet.cs b/Projectiles/Ranged/Norfleet.cs index 4f9884db67..82a27d79e1 100644 --- a/Projectiles/Ranged/Norfleet.cs +++ b/Projectiles/Ranged/Norfleet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Norfleet : ModProjectile { @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Ranged float variation = (1f + projectile.localAI[0]) * 3f; Vector2 position = playerPosition + Utils.RandomVector2(Main.rand, -variation, variation); Vector2 speed = projectile.velocity * scaleFactor * (0.6f + Main.rand.NextFloat() * 0.6f); - type = mod.ProjectileType("NorfleetComet"); + type = ModContent.ProjectileType(); speed.X += (float)Main.rand.Next(-30, 31) * 0.05f; speed.Y += (float)Main.rand.Next(-30, 31) * 0.05f; Projectile.NewProjectile(position, speed, type, damage, knockBack, projectile.owner, 0f, 0f); diff --git a/Projectiles/Ranged/NorfleetComet.cs b/Projectiles/Ranged/NorfleetComet.cs index f54378c440..73056d90b0 100644 --- a/Projectiles/Ranged/NorfleetComet.cs +++ b/Projectiles/Ranged/NorfleetComet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class NorfleetComet : ModProjectile { @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("NorfleetExplosion"), (int)((double)projectile.damage * 0.3), projectile.knockBack * 0.1f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.3), projectile.knockBack * 0.1f, projectile.owner, 0f, 0f); } Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 10); projectile.position = projectile.Center; diff --git a/Projectiles/Ranged/NorfleetExplosion.cs b/Projectiles/Ranged/NorfleetExplosion.cs index f3bf10ad92..cd42add6b1 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class NorfleetExplosion : ModProjectile { diff --git a/Projectiles/Ranged/Nuke.cs b/Projectiles/Ranged/Nuke.cs index 32f9517f40..3b5a4578ed 100644 --- a/Projectiles/Ranged/Nuke.cs +++ b/Projectiles/Ranged/Nuke.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Nuke : ModProjectile { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("DragonDust"), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); } flarePowderTimer = 12; } diff --git a/Projectiles/Ranged/NullShot.cs b/Projectiles/Ranged/NullShot.cs index 60fc241eb2..4d80b8e479 100644 --- a/Projectiles/Ranged/NullShot.cs +++ b/Projectiles/Ranged/NullShot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class NullShot : ModProjectile { diff --git a/Projectiles/Ranged/NullShot2.cs b/Projectiles/Ranged/NullShot2.cs index 1953c0e1cf..8ed7b3d89b 100644 --- a/Projectiles/Ranged/NullShot2.cs +++ b/Projectiles/Ranged/NullShot2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class NullShot2 : ModProjectile { diff --git a/Projectiles/Ranged/OMGWTH.cs b/Projectiles/Ranged/OMGWTH.cs index f91c84aede..3932a70dad 100644 --- a/Projectiles/Ranged/OMGWTH.cs +++ b/Projectiles/Ranged/OMGWTH.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class OMGWTH : ModProjectile { diff --git a/Projectiles/Ranged/OnyxSharkBomb.cs b/Projectiles/Ranged/OnyxSharkBomb.cs index 97ed453dfb..d603f5380f 100644 --- a/Projectiles/Ranged/OnyxSharkBomb.cs +++ b/Projectiles/Ranged/OnyxSharkBomb.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class OnyxSharkBomb : ModProjectile { @@ -85,8 +85,8 @@ namespace CalamityMod.Projectiles.Ranged for (i = 0; i < 2; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("SandyWaifuShark"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("SandyWaifuShark"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/OpalStrike.cs b/Projectiles/Ranged/OpalStrike.cs index 5da3c15b4d..495b2cbc89 100644 --- a/Projectiles/Ranged/OpalStrike.cs +++ b/Projectiles/Ranged/OpalStrike.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class OpalStrike : ModProjectile { diff --git a/Projectiles/Ranged/OrangeExoArrow.cs b/Projectiles/Ranged/OrangeExoArrow.cs index 534d6687b3..48800749fd 100644 --- a/Projectiles/Ranged/OrangeExoArrow.cs +++ b/Projectiles/Ranged/OrangeExoArrow.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class OrangeExoArrow : ModProjectile { @@ -95,11 +95,11 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Ranged/Phangasm.cs b/Projectiles/Ranged/Phangasm.cs index 2ef3d55571..73d9a25094 100644 --- a/Projectiles/Ranged/Phangasm.cs +++ b/Projectiles/Ranged/Phangasm.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Phangasm : ModProjectile { diff --git a/Projectiles/Ranged/PlagueArrow.cs b/Projectiles/Ranged/PlagueArrow.cs index 7814df574b..e4da596660 100644 --- a/Projectiles/Ranged/PlagueArrow.cs +++ b/Projectiles/Ranged/PlagueArrow.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class PlagueArrow : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Ranged Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("PlagueExplosionFriendly"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); int num516 = 6; for (int num517 = 0; num517 < num516; num517++) { diff --git a/Projectiles/Ranged/PlagueExplosionFriendly.cs b/Projectiles/Ranged/PlagueExplosionFriendly.cs index 96140f7991..854b8109b6 100644 --- a/Projectiles/Ranged/PlagueExplosionFriendly.cs +++ b/Projectiles/Ranged/PlagueExplosionFriendly.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class PlagueExplosionFriendly : ModProjectile { @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Ranged/PlasmaBlast.cs b/Projectiles/Ranged/PlasmaBlast.cs index 0fb641d302..b59520c5cb 100644 --- a/Projectiles/Ranged/PlasmaBlast.cs +++ b/Projectiles/Ranged/PlasmaBlast.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class PlasmaBlast : ModProjectile { @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("PlasmaExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); for (int k = 0; k < 5; k++) diff --git a/Projectiles/Ranged/PlasmaExplosion.cs b/Projectiles/Ranged/PlasmaExplosion.cs index e83b7e87f8..1e53ce4abc 100644 --- a/Projectiles/Ranged/PlasmaExplosion.cs +++ b/Projectiles/Ranged/PlasmaExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class PlasmaExplosion : ModProjectile { diff --git a/Projectiles/Ranged/PolarStar.cs b/Projectiles/Ranged/PolarStar.cs index 8948c57f25..95a247bcfc 100644 --- a/Projectiles/Ranged/PolarStar.cs +++ b/Projectiles/Ranged/PolarStar.cs @@ -2,11 +2,9 @@ using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.CalPlayer; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class PolarStar : ModProjectile { @@ -199,7 +197,7 @@ namespace CalamityMod.Projectiles.Ranged Player player = Main.player[projectile.owner]; if ((target.damage > 5 || target.boss) && player.whoAmI == Main.myPlayer && !target.SpawnedFromStatue) { - player.AddBuff(mod.BuffType("PolarisBuff"), 180); + player.AddBuff(ModContent.BuffType(), 180); } else { @@ -217,7 +215,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int k = 0; k < projectiles; k++) { - int split = Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-10, 11) * 2f, (float)Main.rand.Next(-10, 11) * 2f, mod.ProjectileType("ChargedBlast2"), + int split = Projectile.NewProjectile(projectile.position.X, projectile.position.Y, (float)Main.rand.Next(-10, 11) * 2f, (float)Main.rand.Next(-10, 11) * 2f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.85), (float)(int)((double)projectile.knockBack * 0.5), Main.myPlayer, 0f, 0f); } } diff --git a/Projectiles/Ranged/ProBolt.cs b/Projectiles/Ranged/ProBolt.cs index f009d6e956..7498570499 100644 --- a/Projectiles/Ranged/ProBolt.cs +++ b/Projectiles/Ranged/ProBolt.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ProBolt : ModProjectile { diff --git a/Projectiles/Ranged/RainbowBlast.cs b/Projectiles/Ranged/RainbowBlast.cs index df4fde5c7f..207a0c9d41 100644 --- a/Projectiles/Ranged/RainbowBlast.cs +++ b/Projectiles/Ranged/RainbowBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class RainbowBlast : ModProjectile { @@ -72,10 +72,10 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Ranged/RealmRavagerBullet.cs b/Projectiles/Ranged/RealmRavagerBullet.cs index 7035f0413f..7eb61ef03f 100644 --- a/Projectiles/Ranged/RealmRavagerBullet.cs +++ b/Projectiles/Ranged/RealmRavagerBullet.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class RealmRavagerBullet : ModProjectile { diff --git a/Projectiles/Ranged/RubberMortarRound.cs b/Projectiles/Ranged/RubberMortarRound.cs index 751ca45036..423366e5dd 100644 --- a/Projectiles/Ranged/RubberMortarRound.cs +++ b/Projectiles/Ranged/RubberMortarRound.cs @@ -4,9 +4,9 @@ using System; using Terraria; using Terraria.GameContent.Achievements; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class RubberMortarRound : ModProjectile { @@ -187,7 +187,7 @@ namespace CalamityMod.Projectiles.Ranged double num828 = Math.Sqrt((double)(num826 * num826 + num827 * num827)); if (num828 < (double)num814) { - if (Main.tile[num824, num825] != null && Main.tile[num824, num825].active() && Main.tile[num824, num825].type != (ushort)mod.TileType("AbyssGravel")) + if (Main.tile[num824, num825] != null && Main.tile[num824, num825].active() && Main.tile[num824, num825].type != (ushort)ModContent.TileType()) { WorldGen.KillTile(num824, num825, false, false, false); if (!Main.tile[num824, num825].active() && Main.netMode != NetmodeID.SinglePlayer) @@ -199,7 +199,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int num830 = num825 - 1; num830 <= num825 + 1; num830++) { - if (Main.tile[num829, num830] != null && Main.tile[num829, num830].wall > 0 && Main.tile[num829, num830].wall != (byte)mod.WallType("AbyssGravelWall") && flag3) + if (Main.tile[num829, num830] != null && Main.tile[num829, num830].wall > 0 && Main.tile[num829, num830].wall != (byte)ModContent.WallType() && flag3) { WorldGen.KillWall(num829, num830, false); if (Main.tile[num829, num830].wall == 0 && Main.netMode != NetmodeID.SinglePlayer) diff --git a/Projectiles/Ranged/SandWater.cs b/Projectiles/Ranged/SandWater.cs index e60826e91a..03b6ce0cdc 100644 --- a/Projectiles/Ranged/SandWater.cs +++ b/Projectiles/Ranged/SandWater.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SandWater : ModProjectile { diff --git a/Projectiles/Ranged/SandstormBullet.cs b/Projectiles/Ranged/SandstormBullet.cs index 94039471f9..2231cb0e6b 100644 --- a/Projectiles/Ranged/SandstormBullet.cs +++ b/Projectiles/Ranged/SandstormBullet.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SandstormBullet : ModProjectile { diff --git a/Projectiles/Ranged/SandyWaifuShark.cs b/Projectiles/Ranged/SandyWaifuShark.cs index ccd96f2255..6dd50f783a 100644 --- a/Projectiles/Ranged/SandyWaifuShark.cs +++ b/Projectiles/Ranged/SandyWaifuShark.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SandyWaifuShark : ModProjectile { diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index d055308881..286c606a11 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SeaDragonRocket : ModProjectile { diff --git a/Projectiles/Ranged/ShadeFire.cs b/Projectiles/Ranged/ShadeFire.cs index 5f77be0746..217ff024af 100644 --- a/Projectiles/Ranged/ShadeFire.cs +++ b/Projectiles/Ranged/ShadeFire.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ShadeFire : ModProjectile { diff --git a/Projectiles/Ranged/Shockblast.cs b/Projectiles/Ranged/Shockblast.cs index 501d881209..047766b6ae 100644 --- a/Projectiles/Ranged/Shockblast.cs +++ b/Projectiles/Ranged/Shockblast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Shockblast : ModProjectile { diff --git a/Projectiles/Ranged/ShockblastRound.cs b/Projectiles/Ranged/ShockblastRound.cs index 2324bcd6e6..5c13ba4f0d 100644 --- a/Projectiles/Ranged/ShockblastRound.cs +++ b/Projectiles/Ranged/ShockblastRound.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class ShockblastRound : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Shockblast"), projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, 0f); return true; } @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Shockblast"), projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, 0f); } if (target.type == NPCID.TargetDummy) { @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Ranged } Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; - Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("TransfusionTrail"), 0, 0f, projectile.owner, (float)num2, num); + Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num2, num); } } } diff --git a/Projectiles/Ranged/Shroom.cs b/Projectiles/Ranged/Shroom.cs index 930aa25e80..1eb023e04e 100644 --- a/Projectiles/Ranged/Shroom.cs +++ b/Projectiles/Ranged/Shroom.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Shroom : ModProjectile { diff --git a/Projectiles/Ranged/Sickness.cs b/Projectiles/Ranged/Sickness.cs index b0aaaf557b..53f2abd153 100644 --- a/Projectiles/Ranged/Sickness.cs +++ b/Projectiles/Ranged/Sickness.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Sickness : ModProjectile { @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Ranged/SicknessRound.cs b/Projectiles/Ranged/SicknessRound.cs index 582f461039..91aa3dc305 100644 --- a/Projectiles/Ranged/SicknessRound.cs +++ b/Projectiles/Ranged/SicknessRound.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SicknessRound : ModProjectile { @@ -69,18 +69,18 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(BuffID.Poisoned, 360); target.AddBuff(BuffID.Venom, 360); - target.AddBuff(mod.BuffType("Plague"), 360); + target.AddBuff(ModContent.BuffType(), 360); } public override void Kill(int timeLeft) { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Sickness"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); for (int k = 0; k < 3; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 107, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, mod.ProjectileType("SicknessRound2"), + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)Main.rand.Next(-35, 36) * 0.2f, (float)Main.rand.Next(-35, 36) * 0.2f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), (float)(int)((double)projectile.knockBack * 0.5), Main.myPlayer, 0f, 0f); } } diff --git a/Projectiles/Ranged/SicknessRound2.cs b/Projectiles/Ranged/SicknessRound2.cs index 12752ae15e..55eda78b4c 100644 --- a/Projectiles/Ranged/SicknessRound2.cs +++ b/Projectiles/Ranged/SicknessRound2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SicknessRound2 : ModProjectile { @@ -69,14 +69,14 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(BuffID.Poisoned, 180); target.AddBuff(BuffID.Venom, 180); - target.AddBuff(mod.BuffType("Plague"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override void Kill(int timeLeft) { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Sickness"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/SlagRound.cs b/Projectiles/Ranged/SlagRound.cs index 1aff9c512f..b6e6cde177 100644 --- a/Projectiles/Ranged/SlagRound.cs +++ b/Projectiles/Ranged/SlagRound.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SlagRound : ModProjectile { @@ -40,7 +40,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void Kill(int timeLeft) @@ -59,8 +59,8 @@ namespace CalamityMod.Projectiles.Ranged for (i = 0; i <= 1; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("FossilShard"), (int)((double)projectile.damage * 0.35f), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("FossilShard"), (int)((double)projectile.damage * 0.35f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.35f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)projectile.damage * 0.35f), projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/SlashRound.cs b/Projectiles/Ranged/SlashRound.cs index 021926a61d..b5f1f2e967 100644 --- a/Projectiles/Ranged/SlashRound.cs +++ b/Projectiles/Ranged/SlashRound.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SlashRound : ModProjectile { @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Shred"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Ranged/SlimeBolt.cs b/Projectiles/Ranged/SlimeBolt.cs index ab416d2b26..4ce53e9c30 100644 --- a/Projectiles/Ranged/SlimeBolt.cs +++ b/Projectiles/Ranged/SlimeBolt.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SlimeBolt : ModProjectile { diff --git a/Projectiles/Ranged/SparkSpreaderFire.cs b/Projectiles/Ranged/SparkSpreaderFire.cs index 64438f3eba..8effabaddf 100644 --- a/Projectiles/Ranged/SparkSpreaderFire.cs +++ b/Projectiles/Ranged/SparkSpreaderFire.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SparkSpreaderFire : ModProjectile { diff --git a/Projectiles/Ranged/SporeBomb.cs b/Projectiles/Ranged/SporeBomb.cs index 39f60afd9c..d86447e53a 100644 --- a/Projectiles/Ranged/SporeBomb.cs +++ b/Projectiles/Ranged/SporeBomb.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SporeBomb : ModProjectile { diff --git a/Projectiles/Ranged/Spyker.cs b/Projectiles/Ranged/Spyker.cs index 2f17fba878..21271ae26d 100644 --- a/Projectiles/Ranged/Spyker.cs +++ b/Projectiles/Ranged/Spyker.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Spyker : ModProjectile { @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Ranged } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("Needler"), (int)((double)projectile.damage * 0.65), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.65), 0f, projectile.owner, 0f, 0f); } } for (int num621 = 0; num621 < 3; num621++) diff --git a/Projectiles/Ranged/StarfleetMK2.cs b/Projectiles/Ranged/StarfleetMK2.cs index c45fa89ae0..c11c061f54 100644 --- a/Projectiles/Ranged/StarfleetMK2.cs +++ b/Projectiles/Ranged/StarfleetMK2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class StarfleetMK2 : ModProjectile { @@ -99,13 +99,13 @@ namespace CalamityMod.Projectiles.Ranged switch (Main.rand.Next(5)) { case 0: - type = mod.ProjectileType("PlasmaBlast"); + type = ModContent.ProjectileType(); break; case 1: - type = mod.ProjectileType("AstralStar"); + type = ModContent.ProjectileType(); break; case 2: - type = mod.ProjectileType("GalacticaComet"); + type = ModContent.ProjectileType(); break; case 3: break; diff --git a/Projectiles/Ranged/StormSurge.cs b/Projectiles/Ranged/StormSurge.cs index 08455685f7..46ea713149 100644 --- a/Projectiles/Ranged/StormSurge.cs +++ b/Projectiles/Ranged/StormSurge.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class StormSurge : ModProjectile { diff --git a/Projectiles/Ranged/SulphuricAcidCannon2.cs b/Projectiles/Ranged/SulphuricAcidCannon2.cs index a26dc4f590..be744a9183 100644 --- a/Projectiles/Ranged/SulphuricAcidCannon2.cs +++ b/Projectiles/Ranged/SulphuricAcidCannon2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SulphuricAcidCannon2 : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Ranged Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); vector15.Normalize(); vector15 *= (float)Main.rand.Next(50, 401) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, mod.ProjectileType("SulphuricAcidMist2"), (int)(250f * Main.player[projectile.owner].rangedDamage), 1f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), (int)(250f * Main.player[projectile.owner].rangedDamage), 1f, projectile.owner, 0f, 0f); } else counter += 1f; diff --git a/Projectiles/Ranged/SulphuricAcidMist2.cs b/Projectiles/Ranged/SulphuricAcidMist2.cs index 37d050cc5b..39eb0df195 100644 --- a/Projectiles/Ranged/SulphuricAcidMist2.cs +++ b/Projectiles/Ranged/SulphuricAcidMist2.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SulphuricAcidMist2 : ModProjectile { diff --git a/Projectiles/Ranged/SuperballBullet.cs b/Projectiles/Ranged/SuperballBullet.cs index dc39d12714..bfe2b4b998 100644 --- a/Projectiles/Ranged/SuperballBullet.cs +++ b/Projectiles/Ranged/SuperballBullet.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class SuperballBullet : ModProjectile { diff --git a/Projectiles/Ranged/TealExoArrow.cs b/Projectiles/Ranged/TealExoArrow.cs index d8ad09a7c8..2a46b909a1 100644 --- a/Projectiles/Ranged/TealExoArrow.cs +++ b/Projectiles/Ranged/TealExoArrow.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TealExoArrow : ModProjectile { @@ -59,11 +59,11 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Ranged/TelluricGlare.cs b/Projectiles/Ranged/TelluricGlare.cs index f34aa95316..9a5ad72bca 100644 --- a/Projectiles/Ranged/TelluricGlare.cs +++ b/Projectiles/Ranged/TelluricGlare.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TelluricGlare : ModProjectile { @@ -69,7 +69,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Ranged/TerraArrow.cs b/Projectiles/Ranged/TerraArrow.cs index 60c73a2d94..69d21a8409 100644 --- a/Projectiles/Ranged/TerraArrow.cs +++ b/Projectiles/Ranged/TerraArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TerraArrow : ModProjectile { @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Ranged } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("TerraArrow2"), (int)((double)projectile.damage * 0.4), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.4), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/TerraArrow2.cs b/Projectiles/Ranged/TerraArrow2.cs index 9ff2e5664e..24c6cd4eff 100644 --- a/Projectiles/Ranged/TerraArrow2.cs +++ b/Projectiles/Ranged/TerraArrow2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TerraArrow2 : ModProjectile { diff --git a/Projectiles/Ranged/TerraBallBow.cs b/Projectiles/Ranged/TerraBallBow.cs index c9ec14072d..53644667b5 100644 --- a/Projectiles/Ranged/TerraBallBow.cs +++ b/Projectiles/Ranged/TerraBallBow.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TerraBallBow : ModProjectile { diff --git a/Projectiles/Ranged/TerraBullet.cs b/Projectiles/Ranged/TerraBullet.cs index 0ed9e23607..2f04e78851 100644 --- a/Projectiles/Ranged/TerraBullet.cs +++ b/Projectiles/Ranged/TerraBullet.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TerraBullet : ModProjectile { @@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Ranged } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("TerraBulletSplit"), (int)((double)projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 118); diff --git a/Projectiles/Ranged/TerraBulletSplit.cs b/Projectiles/Ranged/TerraBulletSplit.cs index 89edc4e1ba..1c5188f0ef 100644 --- a/Projectiles/Ranged/TerraBulletSplit.cs +++ b/Projectiles/Ranged/TerraBulletSplit.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TerraBulletSplit : ModProjectile { diff --git a/Projectiles/Ranged/TerraFireGreen.cs b/Projectiles/Ranged/TerraFireGreen.cs index 17fdf64285..e7f3ab2ef9 100644 --- a/Projectiles/Ranged/TerraFireGreen.cs +++ b/Projectiles/Ranged/TerraFireGreen.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TerraFireGreen : ModProjectile { diff --git a/Projectiles/Ranged/TerraFireGreen2.cs b/Projectiles/Ranged/TerraFireGreen2.cs index b32697b783..7593ed9bce 100644 --- a/Projectiles/Ranged/TerraFireGreen2.cs +++ b/Projectiles/Ranged/TerraFireGreen2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TerraFireGreen2 : ModProjectile { @@ -83,11 +83,11 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("Plague"), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 300); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.OnFire, 300); - target.AddBuff(mod.BuffType("GlacialState"), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.Frostburn, 300); } } diff --git a/Projectiles/Ranged/TitRail.cs b/Projectiles/Ranged/TitRail.cs index 069af40ea1..93a15bce53 100644 --- a/Projectiles/Ranged/TitRail.cs +++ b/Projectiles/Ranged/TitRail.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TitRail : ModProjectile { diff --git a/Projectiles/Ranged/TorrentialArrow.cs b/Projectiles/Ranged/TorrentialArrow.cs index e8865fc1ea..a107bdd9cc 100644 --- a/Projectiles/Ranged/TorrentialArrow.cs +++ b/Projectiles/Ranged/TorrentialArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TorrentialArrow : ModProjectile { diff --git a/Projectiles/Ranged/Triploon.cs b/Projectiles/Ranged/Triploon.cs index 80444213a7..006da7770f 100644 --- a/Projectiles/Ranged/Triploon.cs +++ b/Projectiles/Ranged/Triploon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Triploon : ModProjectile { diff --git a/Projectiles/Ranged/TyphoonArrow.cs b/Projectiles/Ranged/TyphoonArrow.cs index 63723a1252..fbac315314 100644 --- a/Projectiles/Ranged/TyphoonArrow.cs +++ b/Projectiles/Ranged/TyphoonArrow.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TyphoonArrow : ModProjectile { @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("TyphoonBubble"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Ranged/TyphoonBubble.cs b/Projectiles/Ranged/TyphoonBubble.cs index 91ceb23c84..317ee882ed 100644 --- a/Projectiles/Ranged/TyphoonBubble.cs +++ b/Projectiles/Ranged/TyphoonBubble.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class TyphoonBubble : ModProjectile { @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.ai[1] < 1f) { - int num230 = Projectile.NewProjectile(projectile.Center.X - (float)(projectile.direction * 30), projectile.Center.Y - 4f, (float)-(float)projectile.direction * 0.01f, 0f, mod.ProjectileType("WaterSpout"), projectile.damage, 3f, projectile.owner, 16f, 8f); + int num230 = Projectile.NewProjectile(projectile.Center.X - (float)(projectile.direction * 30), projectile.Center.Y - 4f, (float)-(float)projectile.direction * 0.01f, 0f, ModContent.ProjectileType(), projectile.damage, 3f, projectile.owner, 16f, 8f); Main.projectile[num230].netUpdate = true; } } diff --git a/Projectiles/Ranged/VanquisherArrow.cs b/Projectiles/Ranged/VanquisherArrow.cs index 060bcce0f0..0ae5d150f8 100644 --- a/Projectiles/Ranged/VanquisherArrow.cs +++ b/Projectiles/Ranged/VanquisherArrow.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class VanquisherArrow : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f, mod.ProjectileType("VanquisherArrow2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projCount = 18; } @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Ranged/VeriumBullet.cs b/Projectiles/Ranged/VeriumBullet.cs index 5551ffb4a5..8f8f17d877 100644 --- a/Projectiles/Ranged/VeriumBullet.cs +++ b/Projectiles/Ranged/VeriumBullet.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class VeriumBullet : ModProjectile { diff --git a/Projectiles/Ranged/Voidragon.cs b/Projectiles/Ranged/Voidragon.cs index 8db4bf5e9d..6a99092b58 100644 --- a/Projectiles/Ranged/Voidragon.cs +++ b/Projectiles/Ranged/Voidragon.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class Voidragon : ModProjectile { @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Ranged { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("PlasmaExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 1f); } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); for (int k = 0; k < 5; k++) diff --git a/Projectiles/Ranged/WaterSpout.cs b/Projectiles/Ranged/WaterSpout.cs index 98a31b89e5..892ea428b3 100644 --- a/Projectiles/Ranged/WaterSpout.cs +++ b/Projectiles/Ranged/WaterSpout.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Ranged +namespace CalamityMod.Projectiles { public class WaterSpout : ModProjectile { diff --git a/Projectiles/Rogue/AbyssalMirrorProjectile.cs b/Projectiles/Rogue/AbyssalMirrorProjectile.cs index 15ac13b962..ed3f44ee76 100644 --- a/Projectiles/Rogue/AbyssalMirrorProjectile.cs +++ b/Projectiles/Rogue/AbyssalMirrorProjectile.cs @@ -1,8 +1,8 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class AbyssalMirrorProjectile : ModProjectile { @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Rogue { if (!target.friendly && target.rarity != 2 && !CalamityPlayer.areThereAnyDamnBosses) { - target.AddBuff(mod.BuffType("SilvaStun"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Rogue/AccretionDisk.cs b/Projectiles/Rogue/AccretionDisk.cs index 5a11e44655..f48a7d91cb 100644 --- a/Projectiles/Rogue/AccretionDisk.cs +++ b/Projectiles/Rogue/AccretionDisk.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class AccretionDisk : ModProjectile { @@ -94,8 +94,8 @@ namespace CalamityMod.Projectiles.Rogue for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("AccretionDisk2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("AccretionDisk2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } @@ -105,10 +105,10 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/AccretionDisk2.cs b/Projectiles/Rogue/AccretionDisk2.cs index 4c87b2f761..c946bd3666 100644 --- a/Projectiles/Rogue/AccretionDisk2.cs +++ b/Projectiles/Rogue/AccretionDisk2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class AccretionDisk2 : ModProjectile { @@ -42,10 +42,10 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs index 91e2dac0d1..bf22a98316 100644 --- a/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs +++ b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class AdamantiteThrowingAxeProjectile : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("AdamantiteThrowingAxe")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/BallisticPoisonBomb.cs b/Projectiles/Rogue/BallisticPoisonBomb.cs index 9f17da09ce..894f5f5c04 100644 --- a/Projectiles/Rogue/BallisticPoisonBomb.cs +++ b/Projectiles/Rogue/BallisticPoisonBomb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BallisticPoisonBomb : ModProjectile { @@ -120,7 +120,7 @@ namespace CalamityMod.Projectiles.Rogue } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("BallisticPoisonBombSpike"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); } int num320 = Main.rand.Next(8, 13); int num3; @@ -129,7 +129,7 @@ namespace CalamityMod.Projectiles.Rogue Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); vector15.Normalize(); vector15 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, mod.ProjectileType("BallisticPoisonCloud") + Main.rand.Next(3), (int)((double)projectile.damage * 0.5), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType() + Main.rand.Next(3), (int)((double)projectile.damage * 0.5), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); num3 = num321; } } diff --git a/Projectiles/Rogue/BallisticPoisonBombSpike.cs b/Projectiles/Rogue/BallisticPoisonBombSpike.cs index e137e3d520..2518f08ff0 100644 --- a/Projectiles/Rogue/BallisticPoisonBombSpike.cs +++ b/Projectiles/Rogue/BallisticPoisonBombSpike.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BallisticPoisonBombSpike : ModProjectile { diff --git a/Projectiles/Rogue/BarrelShrapnel.cs b/Projectiles/Rogue/BarrelShrapnel.cs index 682e4c40b0..2e1dba8266 100644 --- a/Projectiles/Rogue/BarrelShrapnel.cs +++ b/Projectiles/Rogue/BarrelShrapnel.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BarrelShrapnel : ModProjectile { diff --git a/Projectiles/Rogue/BlastBarrelProjectile.cs b/Projectiles/Rogue/BlastBarrelProjectile.cs index ac789c47af..d20e5e1bdf 100644 --- a/Projectiles/Rogue/BlastBarrelProjectile.cs +++ b/Projectiles/Rogue/BlastBarrelProjectile.cs @@ -1,12 +1,12 @@ -using CalamityMod.Items.CalamityCustomThrowingDamage; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BlastBarrelProjectile : ModProjectile { @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Rogue { Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(30f)); Projectile.NewProjectile(projectile.Center, projectile.velocity + shrapnelVelocity, - mod.ProjectileType("BarrelShrapnel"), BlastBarrel.BaseDamage, 3f, projectile.owner); + ModContent.ProjectileType(), BlastBarrel.BaseDamage, 3f, projectile.owner); } else { diff --git a/Projectiles/Rogue/BlazingStarProj.cs b/Projectiles/Rogue/BlazingStarProj.cs index 1ab531ea7f..24320b0365 100644 --- a/Projectiles/Rogue/BlazingStarProj.cs +++ b/Projectiles/Rogue/BlazingStarProj.cs @@ -1,12 +1,11 @@ -using CalamityMod.Items.CalamityCustomThrowingDamage; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BlazingStarProj : ModProjectile { diff --git a/Projectiles/Rogue/BloodsoakedCrashax.cs b/Projectiles/Rogue/BloodsoakedCrashax.cs index 3d540b6a2d..ea86a47c8e 100644 --- a/Projectiles/Rogue/BloodsoakedCrashax.cs +++ b/Projectiles/Rogue/BloodsoakedCrashax.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BloodsoakedCrashax : ModProjectile { @@ -91,10 +91,10 @@ namespace CalamityMod.Projectiles.Rogue grind = 10; } Player player = Main.player[projectile.owner]; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); if (projectile.ai[1] == 1f && projectile.owner == Main.myPlayer && grind >= 1) //stealth strike attack { - int stealth = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Blood"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int stealth = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[stealth].Calamity().forceRogue = true; } if (!target.canGhostHeal) //canGhostHeal be like lol diff --git a/Projectiles/Rogue/BlueFlamePillar.cs b/Projectiles/Rogue/BlueFlamePillar.cs index 4d36f2b02d..5adee54242 100644 --- a/Projectiles/Rogue/BlueFlamePillar.cs +++ b/Projectiles/Rogue/BlueFlamePillar.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BlueFlamePillar : ModProjectile { diff --git a/Projectiles/Rogue/BouncingEyeballProjectile.cs b/Projectiles/Rogue/BouncingEyeballProjectile.cs index bea4850f20..b70e326f8f 100644 --- a/Projectiles/Rogue/BouncingEyeballProjectile.cs +++ b/Projectiles/Rogue/BouncingEyeballProjectile.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using static System.Math; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BouncingEyeballProjectile : ModProjectile { diff --git a/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs b/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs index cf2597d5c5..92187c1db4 100644 --- a/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs +++ b/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BouncingEyeballProjectileStealthStrike : ModProjectile { diff --git a/Projectiles/Rogue/BrackishFlask.cs b/Projectiles/Rogue/BrackishFlask.cs index dc02b502ba..a6031978e1 100644 --- a/Projectiles/Rogue/BrackishFlask.cs +++ b/Projectiles/Rogue/BrackishFlask.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BrackishFlask : ModProjectile { @@ -47,12 +47,12 @@ namespace CalamityMod.Projectiles.Rogue int i; if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("BrackishWaterBlast"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("BrackishWater"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("BrackishWater"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Rogue/BrackishWater.cs b/Projectiles/Rogue/BrackishWater.cs index 508e37ed66..30f9e3c6e2 100644 --- a/Projectiles/Rogue/BrackishWater.cs +++ b/Projectiles/Rogue/BrackishWater.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BrackishWater : ModProjectile { @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Rogue { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("BrackishWaterBlast"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } diff --git a/Projectiles/Rogue/BrackishWaterBlast.cs b/Projectiles/Rogue/BrackishWaterBlast.cs index 3c0cddf230..2f0d55877f 100644 --- a/Projectiles/Rogue/BrackishWaterBlast.cs +++ b/Projectiles/Rogue/BrackishWaterBlast.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BrackishWaterBlast : ModProjectile { diff --git a/Projectiles/Rogue/Brick.cs b/Projectiles/Rogue/Brick.cs index 3ba36551e5..3592b1fe62 100644 --- a/Projectiles/Rogue/Brick.cs +++ b/Projectiles/Rogue/Brick.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Brick : ModProjectile { diff --git a/Projectiles/Rogue/BrickFragment.cs b/Projectiles/Rogue/BrickFragment.cs index bc9865c261..e8f532bdab 100644 --- a/Projectiles/Rogue/BrickFragment.cs +++ b/Projectiles/Rogue/BrickFragment.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class BrickFragment : ModProjectile { diff --git a/Projectiles/Rogue/Brimblade.cs b/Projectiles/Rogue/Brimblade.cs index 97554efe5a..28484f1149 100644 --- a/Projectiles/Rogue/Brimblade.cs +++ b/Projectiles/Rogue/Brimblade.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Brimblade : ModProjectile { @@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); int numProj = 2; float rotation = MathHelper.ToRadians(20); if (projectile.owner == Main.myPlayer) @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Rogue for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.25f, perturbedSpeed.Y * 0.25f, mod.ProjectileType("Brimblade2"), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X * 0.25f, perturbedSpeed.Y * 0.25f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.7), projectile.knockBack * 0.5f, projectile.owner, 0f, 0f); } } for (int k = 0; k < 5; k++) diff --git a/Projectiles/Rogue/Brimblade2.cs b/Projectiles/Rogue/Brimblade2.cs index ffcb6c0a86..0f077b0b37 100644 --- a/Projectiles/Rogue/Brimblade2.cs +++ b/Projectiles/Rogue/Brimblade2.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Brimblade2 : ModProjectile { @@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 235, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Rogue/ButcherKnife.cs b/Projectiles/Rogue/ButcherKnife.cs index 207de21529..dcddb9c270 100644 --- a/Projectiles/Rogue/ButcherKnife.cs +++ b/Projectiles/Rogue/ButcherKnife.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ButcherKnife : ModProjectile { diff --git a/Projectiles/Rogue/CarvingFork.cs b/Projectiles/Rogue/CarvingFork.cs index 082f5156b7..4694a3a70d 100644 --- a/Projectiles/Rogue/CarvingFork.cs +++ b/Projectiles/Rogue/CarvingFork.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CarvingFork : ModProjectile { diff --git a/Projectiles/Rogue/CelestialReaperAfterimage.cs b/Projectiles/Rogue/CelestialReaperAfterimage.cs index df3ac5c9ac..28c3b743c3 100644 --- a/Projectiles/Rogue/CelestialReaperAfterimage.cs +++ b/Projectiles/Rogue/CelestialReaperAfterimage.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CelestialReaperAfterimage : ModProjectile { diff --git a/Projectiles/Rogue/CelestialReaperProjectile.cs b/Projectiles/Rogue/CelestialReaperProjectile.cs index e2ca9cf834..164ccc82db 100644 --- a/Projectiles/Rogue/CelestialReaperProjectile.cs +++ b/Projectiles/Rogue/CelestialReaperProjectile.cs @@ -1,10 +1,10 @@ -using CalamityMod.Items.CalamityCustomThrowingDamage; +using CalamityMod.Items; using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CelestialReaperProjectile : ModProjectile { @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Rogue framesNeeded /= 6f - projectile.penetrate + 1f; //1 is to prevent division by zero. The more hits, the more afterimages if (projectile.timeLeft % (int)framesNeeded == 0f) { - Projectile.NewProjectile(projectile.Center, projectile.velocity, mod.ProjectileType("CelestialReaperAfterimage"), CelestialReaper.BaseDamage, 2f, projectile.owner); + Projectile.NewProjectile(projectile.Center, projectile.velocity, ModContent.ProjectileType(), CelestialReaper.BaseDamage, 2f, projectile.owner); } } } @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Rogue for (float i = 0f; i < 7f; i += 1f) { float angle = MathHelper.TwoPi * i / 7f; - Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 12f, mod.ProjectileType("CelestialReaperAfterimage"), CelestialReaper.BaseDamage, 2f, projectile.owner); + Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 12f, ModContent.ProjectileType(), CelestialReaper.BaseDamage, 2f, projectile.owner); } } } diff --git a/Projectiles/Rogue/Celestus.cs b/Projectiles/Rogue/Celestus.cs index 783af58cd0..250879c92d 100644 --- a/Projectiles/Rogue/Celestus.cs +++ b/Projectiles/Rogue/Celestus.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Celestus : ModProjectile { @@ -114,11 +114,11 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); @@ -133,8 +133,8 @@ namespace CalamityMod.Projectiles.Rogue for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), mod.ProjectileType("Celestus2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), mod.ProjectileType("Celestus2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122); diff --git a/Projectiles/Rogue/Celestus2.cs b/Projectiles/Rogue/Celestus2.cs index 18ba184263..7d993ae48c 100644 --- a/Projectiles/Rogue/Celestus2.cs +++ b/Projectiles/Rogue/Celestus2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Celestus2 : ModProjectile { @@ -50,11 +50,11 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Rogue/CinquedeaProj.cs b/Projectiles/Rogue/CinquedeaProj.cs index 892076ff51..6a963eb77e 100644 --- a/Projectiles/Rogue/CinquedeaProj.cs +++ b/Projectiles/Rogue/CinquedeaProj.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CinquedeaProj : ModProjectile { diff --git a/Projectiles/Rogue/CobaltKunaiProjectile.cs b/Projectiles/Rogue/CobaltKunaiProjectile.cs index de8406c306..363e330016 100644 --- a/Projectiles/Rogue/CobaltKunaiProjectile.cs +++ b/Projectiles/Rogue/CobaltKunaiProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CobaltKunaiProjectile : ModProjectile { @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("CobaltKunai")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/ConsecratedWaterProjectile.cs b/Projectiles/Rogue/ConsecratedWaterProjectile.cs index f8a938ea53..e2e6975e2e 100644 --- a/Projectiles/Rogue/ConsecratedWaterProjectile.cs +++ b/Projectiles/Rogue/ConsecratedWaterProjectile.cs @@ -1,10 +1,10 @@ -using CalamityMod.Items.CalamityCustomThrowingDamage; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ConsecratedWaterProjectile : ModProjectile { @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Rogue //normal if (projectile.ai[1] == 0f) { - Projectile.NewProjectile(projectile.Bottom, Vector2.Zero, mod.ProjectileType("BlueFlamePillar"), ConsecratedWater.BaseDamage, 2f, projectile.owner); + Projectile.NewProjectile(projectile.Bottom, Vector2.Zero, ModContent.ProjectileType(), ConsecratedWater.BaseDamage, 2f, projectile.owner); } //stealth strike else if (projectile.ai[1] == 1f) @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Rogue //3 pillars instead of 1 for (float i = -1f; i <= 1f; i += 1f) { - Projectile.NewProjectile(projectile.Bottom + i * Main.rand.NextFloat(56f, 108f) * Vector2.UnitX, Vector2.Zero, mod.ProjectileType("BlueFlamePillar"), ConsecratedWater.BaseDamage, 2f, projectile.owner); + Projectile.NewProjectile(projectile.Bottom + i * Main.rand.NextFloat(56f, 108f) * Vector2.UnitX, Vector2.Zero, ModContent.ProjectileType(), ConsecratedWater.BaseDamage, 2f, projectile.owner); } } } diff --git a/Projectiles/Rogue/CosmicKunai.cs b/Projectiles/Rogue/CosmicKunai.cs index b686a848b8..5fb9197558 100644 --- a/Projectiles/Rogue/CosmicKunai.cs +++ b/Projectiles/Rogue/CosmicKunai.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CosmicKunai : ModProjectile { diff --git a/Projectiles/Rogue/CraniumSmasher.cs b/Projectiles/Rogue/CraniumSmasher.cs index d9b82c9b66..6d49fa34c5 100644 --- a/Projectiles/Rogue/CraniumSmasher.cs +++ b/Projectiles/Rogue/CraniumSmasher.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CraniumSmasher : ModProjectile { diff --git a/Projectiles/Rogue/CraniumSmasherExplosive.cs b/Projectiles/Rogue/CraniumSmasherExplosive.cs index 67f84f3e4c..a43b5ad75e 100644 --- a/Projectiles/Rogue/CraniumSmasherExplosive.cs +++ b/Projectiles/Rogue/CraniumSmasherExplosive.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CraniumSmasherExplosive : ModProjectile { diff --git a/Projectiles/Rogue/Crushax.cs b/Projectiles/Rogue/Crushax.cs index d49afce798..d25baed976 100644 --- a/Projectiles/Rogue/Crushax.cs +++ b/Projectiles/Rogue/Crushax.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Crushax : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 7; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Rogue/CrystalPiercerProjectile.cs b/Projectiles/Rogue/CrystalPiercerProjectile.cs index 6c0612ee18..3cbe5fd03a 100644 --- a/Projectiles/Rogue/CrystalPiercerProjectile.cs +++ b/Projectiles/Rogue/CrystalPiercerProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CrystalPiercerProjectile : ModProjectile { @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Rogue } if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("CrystalPiercer")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Rogue/Crystalline.cs b/Projectiles/Rogue/Crystalline.cs index 699af454a9..913d205f68 100644 --- a/Projectiles/Rogue/Crystalline.cs +++ b/Projectiles/Rogue/Crystalline.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Crystalline : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue for (int i = 0; i < numProj + 1; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("Crystalline2"), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Rogue/Crystalline2.cs b/Projectiles/Rogue/Crystalline2.cs index 7cf6c9a2fc..b7869918ba 100644 --- a/Projectiles/Rogue/Crystalline2.cs +++ b/Projectiles/Rogue/Crystalline2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Crystalline2 : ModProjectile { diff --git a/Projectiles/Rogue/CursedDagger.cs b/Projectiles/Rogue/CursedDagger.cs index 70b2018f97..1537d404d6 100644 --- a/Projectiles/Rogue/CursedDagger.cs +++ b/Projectiles/Rogue/CursedDagger.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class CursedDagger : ModProjectile { diff --git a/Projectiles/Rogue/DragonShit.cs b/Projectiles/Rogue/DragonShit.cs index 3fed2ea8b3..7d21f1606b 100644 --- a/Projectiles/Rogue/DragonShit.cs +++ b/Projectiles/Rogue/DragonShit.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using System; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class DragonShit : ModProjectile { diff --git a/Projectiles/Rogue/DuststormCloud.cs b/Projectiles/Rogue/DuststormCloud.cs index 0197f2e408..3763dd19bf 100644 --- a/Projectiles/Rogue/DuststormCloud.cs +++ b/Projectiles/Rogue/DuststormCloud.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class DuststormCloud : ModProjectile { diff --git a/Projectiles/Rogue/DuststormInABottle.cs b/Projectiles/Rogue/DuststormInABottle.cs index 2ad941bc8f..0e93182d63 100644 --- a/Projectiles/Rogue/DuststormInABottle.cs +++ b/Projectiles/Rogue/DuststormInABottle.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class DuststormInABottle : ModProjectile { @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Rogue Vector2 value17 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); value17.Normalize(); value17 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, mod.ProjectileType("DuststormCloud"), projectile.damage, 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, ModContent.ProjectileType(), projectile.damage, 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); } } } diff --git a/Projectiles/Rogue/EclipseMirrorBurst.cs b/Projectiles/Rogue/EclipseMirrorBurst.cs index 19abcd2292..1b70bcd518 100644 --- a/Projectiles/Rogue/EclipseMirrorBurst.cs +++ b/Projectiles/Rogue/EclipseMirrorBurst.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EclipseMirrorBurst : ModProjectile { diff --git a/Projectiles/Rogue/EclipsesFallMain.cs b/Projectiles/Rogue/EclipsesFallMain.cs index abe0e64a8a..6ea41abf01 100644 --- a/Projectiles/Rogue/EclipsesFallMain.cs +++ b/Projectiles/Rogue/EclipsesFallMain.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EclipsesFallMain : ModProjectile { @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue num16 = (float)num15 / num16; num13 *= num16; num14 *= num16; - Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("EclipsesSmol"), (int)((double)projectile.damage * 0.1 * Main.rand.Next(7, 10)), (int)((double)projectile.knockBack * 0.1 * Main.rand.Next(7, 10)), projectile.owner, 0f, 0f); + Projectile.NewProjectile(x, y, num13, num14, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.1 * Main.rand.Next(7, 10)), (int)((double)projectile.knockBack * 0.1 * Main.rand.Next(7, 10)), projectile.owner, 0f, 0f); } } diff --git a/Projectiles/Rogue/EclipsesSmol.cs b/Projectiles/Rogue/EclipsesSmol.cs index 46ac2113af..58b8377296 100644 --- a/Projectiles/Rogue/EclipsesSmol.cs +++ b/Projectiles/Rogue/EclipsesSmol.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EclipsesSmol : ModProjectile { diff --git a/Projectiles/Rogue/EclipsesStealth.cs b/Projectiles/Rogue/EclipsesStealth.cs index 6f9abce586..aed917b258 100644 --- a/Projectiles/Rogue/EclipsesStealth.cs +++ b/Projectiles/Rogue/EclipsesStealth.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EclipsesStealth : ModProjectile { @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue num16 = (float)num15 / num16; num13 *= num16; num14 *= num16; - Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("EclipsesSmol"), (int)((double)projectile.damage * 0.1 * Main.rand.Next(7, 10)), (int)((double)projectile.knockBack * 0.1 * Main.rand.Next(7, 10)), projectile.owner, 0f, 0f); + Projectile.NewProjectile(x, y, num13, num14, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.1 * Main.rand.Next(7, 10)), (int)((double)projectile.knockBack * 0.1 * Main.rand.Next(7, 10)), projectile.owner, 0f, 0f); } //very complicated and painful } } diff --git a/Projectiles/Rogue/EmpyreanKnives.cs b/Projectiles/Rogue/EmpyreanKnives.cs index c9b530ef77..e928930a3c 100644 --- a/Projectiles/Rogue/EmpyreanKnives.cs +++ b/Projectiles/Rogue/EmpyreanKnives.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EmpyreanKnives : ModProjectile { diff --git a/Projectiles/Rogue/EnchantedAxe.cs b/Projectiles/Rogue/EnchantedAxe.cs index 276c14583b..9930b14840 100644 --- a/Projectiles/Rogue/EnchantedAxe.cs +++ b/Projectiles/Rogue/EnchantedAxe.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EnchantedAxe : ModProjectile { @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Rogue } newAxeVelocity.Normalize(); newAxeVelocity *= 30f; - int p = Projectile.NewProjectile(projectile.position, newAxeVelocity, mod.ProjectileType("EnchantedAxe2"), 15, 2, projectile.owner, 0, 0); + int p = Projectile.NewProjectile(projectile.position, newAxeVelocity, ModContent.ProjectileType(), 15, 2, projectile.owner, 0, 0); Main.projectile[p].Calamity().stealthStrike = projectile.Calamity().stealthStrike; summonAxe = false; } @@ -103,14 +103,14 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.timeLeft % 5 == 1 && projectile.Calamity().stealthStrike) { float axeSpeed = 15f; - Projectile.NewProjectile(projectile.position, new Vector2(1f, 0f) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); - Projectile.NewProjectile(projectile.position, new Vector2(0f, 1f) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); - Projectile.NewProjectile(projectile.position, new Vector2(-1f, 0f) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); - Projectile.NewProjectile(projectile.position, new Vector2(0f, -1f) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); - Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(1f, 1f)) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); - Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(1f, -1f)) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); - Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(-1f, -1f)) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); - Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(-1f, 1f)) * axeSpeed, mod.ProjectileType("EnchantedAxe2"), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, new Vector2(1f, 0f) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, new Vector2(0f, 1f) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, new Vector2(-1f, 0f) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, new Vector2(0f, -1f) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(1f, 1f)) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(1f, -1f)) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(-1f, -1f)) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); + Projectile.NewProjectile(projectile.position, Vector2.Normalize(new Vector2(-1f, 1f)) * axeSpeed, ModContent.ProjectileType(), 20, 2, projectile.owner, 0, 0); } } diff --git a/Projectiles/Rogue/EnchantedAxe2.cs b/Projectiles/Rogue/EnchantedAxe2.cs index d00671ff2e..4148732e25 100644 --- a/Projectiles/Rogue/EnchantedAxe2.cs +++ b/Projectiles/Rogue/EnchantedAxe2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EnchantedAxe2 : ModProjectile { diff --git a/Projectiles/Rogue/EradicatorProjectile.cs b/Projectiles/Rogue/EradicatorProjectile.cs index a78580c022..695a71419f 100644 --- a/Projectiles/Rogue/EradicatorProjectile.cs +++ b/Projectiles/Rogue/EradicatorProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class EradicatorProjectile : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Rogue { if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("NebulaShot"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + int proj = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceRogue = true; } } diff --git a/Projectiles/Rogue/ExecutionersBlade.cs b/Projectiles/Rogue/ExecutionersBlade.cs index a0fbe8c964..de9961aa4b 100644 --- a/Projectiles/Rogue/ExecutionersBlade.cs +++ b/Projectiles/Rogue/ExecutionersBlade.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ExecutionersBlade : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void Kill(int timeLeft) diff --git a/Projectiles/Rogue/FeatherKnifeProjectile.cs b/Projectiles/Rogue/FeatherKnifeProjectile.cs index 8ace881b33..0b4f892a25 100644 --- a/Projectiles/Rogue/FeatherKnifeProjectile.cs +++ b/Projectiles/Rogue/FeatherKnifeProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class FeatherKnifeProjectile : ModProjectile { @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("FeatherKnife")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/FlameScytheProjectile.cs b/Projectiles/Rogue/FlameScytheProjectile.cs index 9f44776e4b..71ccb1363b 100644 --- a/Projectiles/Rogue/FlameScytheProjectile.cs +++ b/Projectiles/Rogue/FlameScytheProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class FlameScytheProjectile : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Rogue target.AddBuff(BuffID.OnFire, 300); if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[proj].Calamity().forceRogue = true; } } diff --git a/Projectiles/Rogue/Fork.cs b/Projectiles/Rogue/Fork.cs index 6f75996587..2881ccc021 100644 --- a/Projectiles/Rogue/Fork.cs +++ b/Projectiles/Rogue/Fork.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Fork : ModProjectile { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Rogue { Player player = Main.player[projectile.owner]; target.AddBuff(BuffID.Bleeding, 300); - target.AddBuff(mod.BuffType("BurningBlood"), 300); + target.AddBuff(ModContent.BuffType(), 300); player.AddBuff(BuffID.WellFed, 180); } diff --git a/Projectiles/Rogue/FossilShardThrown.cs b/Projectiles/Rogue/FossilShardThrown.cs index 67b67f9df1..0f45da9473 100644 --- a/Projectiles/Rogue/FossilShardThrown.cs +++ b/Projectiles/Rogue/FossilShardThrown.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class FossilShardThrown : ModProjectile { @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 60); + target.AddBuff(ModContent.BuffType(), 60); } public override void Kill(int timeLeft) diff --git a/Projectiles/Rogue/GacruxianHome.cs b/Projectiles/Rogue/GacruxianHome.cs index 06609fa19d..b0ae5a20ed 100644 --- a/Projectiles/Rogue/GacruxianHome.cs +++ b/Projectiles/Rogue/GacruxianHome.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class GacruxianHome : ModProjectile { @@ -34,11 +34,11 @@ namespace CalamityMod.Projectiles.Rogue stealthTrailTimer--; if (Main.rand.NextBool(4)) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); } if (stealthTrailTimer == 0 && projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, mod.ProjectileType("UltimusCleaverDust"), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceRogue = true; Main.projectile[proj].localNPCHitCooldown = 10; Main.projectile[proj].penetrate = 3; @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Rogue { for (int i = 0; i <= 10; i++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } } diff --git a/Projectiles/Rogue/GacruxianProj.cs b/Projectiles/Rogue/GacruxianProj.cs index 5f7e63f6e9..813075b24a 100644 --- a/Projectiles/Rogue/GacruxianProj.cs +++ b/Projectiles/Rogue/GacruxianProj.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class GacruxianProj : ModProjectile { @@ -29,17 +29,17 @@ namespace CalamityMod.Projectiles.Rogue sparkTrailTimer--; if (Main.rand.NextBool(4)) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); } if (sparkTrailTimer == 0) { if (projectile.Calamity().stealthStrike == true) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, mod.ProjectileType("GacruxianHome"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); } else { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, mod.ProjectileType("UltimusCleaverDust"), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[proj].Calamity().forceRogue = true; Main.projectile[proj].localNPCHitCooldown = 10; Main.projectile[proj].penetrate = 3; @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue { for (int i = 0; i <= 10; i++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType(), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } } } diff --git a/Projectiles/Rogue/GelDartProjectile.cs b/Projectiles/Rogue/GelDartProjectile.cs index 7c3892ef9f..b904ed68ee 100644 --- a/Projectiles/Rogue/GelDartProjectile.cs +++ b/Projectiles/Rogue/GelDartProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class GelDartProjectile : ModProjectile { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("GelDart")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Rogue/GhoulishGouger.cs b/Projectiles/Rogue/GhoulishGouger.cs index 17e0b400a3..8051b2dbd4 100644 --- a/Projectiles/Rogue/GhoulishGouger.cs +++ b/Projectiles/Rogue/GhoulishGouger.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class GhoulishGouger : ModProjectile { diff --git a/Projectiles/Rogue/GlaiveProj.cs b/Projectiles/Rogue/GlaiveProj.cs index e9709e247b..e4a7bb859a 100644 --- a/Projectiles/Rogue/GlaiveProj.cs +++ b/Projectiles/Rogue/GlaiveProj.cs @@ -1,12 +1,12 @@ -using CalamityMod.Items.CalamityCustomThrowingDamage; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class GlaiveProj : ModProjectile { diff --git a/Projectiles/Rogue/IceStarProjectile.cs b/Projectiles/Rogue/IceStarProjectile.cs index 4769244fcc..8751d7ab5b 100644 --- a/Projectiles/Rogue/IceStarProjectile.cs +++ b/Projectiles/Rogue/IceStarProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class IceStarProjectile : ModProjectile { diff --git a/Projectiles/Rogue/IchorSpear.cs b/Projectiles/Rogue/IchorSpear.cs index aa3fbafa50..a559983b5a 100644 --- a/Projectiles/Rogue/IchorSpear.cs +++ b/Projectiles/Rogue/IchorSpear.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class IchorSpear : ModProjectile { diff --git a/Projectiles/Rogue/IchorSpear2.cs b/Projectiles/Rogue/IchorSpear2.cs index cf55bb1888..4ee127ddef 100644 --- a/Projectiles/Rogue/IchorSpear2.cs +++ b/Projectiles/Rogue/IchorSpear2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class IchorSpear2 : ModProjectile { diff --git a/Projectiles/Rogue/InkBombProjectile.cs b/Projectiles/Rogue/InkBombProjectile.cs index a3cd77106e..c862b8c4d1 100644 --- a/Projectiles/Rogue/InkBombProjectile.cs +++ b/Projectiles/Rogue/InkBombProjectile.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class InkBombProjectile : ModProjectile { @@ -56,13 +56,13 @@ namespace CalamityMod.Projectiles.Rogue switch (projType) { case 0: - inkType = mod.ProjectileType("InkCloud"); + inkType = ModContent.ProjectileType(); break; case 1: - inkType = mod.ProjectileType("InkCloud2"); + inkType = ModContent.ProjectileType(); break; default: - inkType = mod.ProjectileType("InkCloud3"); + inkType = ModContent.ProjectileType(); break; } int inkID = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, Main.rand.NextFloat(-2f, 2f), Main.rand.NextFloat(-2f, 2f), inkType, 22, 7, Main.myPlayer); diff --git a/Projectiles/Rogue/InkCloud.cs b/Projectiles/Rogue/InkCloud.cs index 6d45837054..1652710115 100644 --- a/Projectiles/Rogue/InkCloud.cs +++ b/Projectiles/Rogue/InkCloud.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class InkCloud : ModProjectile { diff --git a/Projectiles/Rogue/InkCloud2.cs b/Projectiles/Rogue/InkCloud2.cs index 499c81cee2..55b9999fbb 100644 --- a/Projectiles/Rogue/InkCloud2.cs +++ b/Projectiles/Rogue/InkCloud2.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class InkCloud2 : ModProjectile { diff --git a/Projectiles/Rogue/InkCloud3.cs b/Projectiles/Rogue/InkCloud3.cs index c390c5a41e..ba986fa404 100644 --- a/Projectiles/Rogue/InkCloud3.cs +++ b/Projectiles/Rogue/InkCloud3.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class InkCloud3 : ModProjectile { diff --git a/Projectiles/Rogue/IronFrancisca.cs b/Projectiles/Rogue/IronFrancisca.cs index 29fa8159fd..38a0e1fc99 100644 --- a/Projectiles/Rogue/IronFrancisca.cs +++ b/Projectiles/Rogue/IronFrancisca.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class IronFrancisca : ModProjectile { @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.Next(2) == 0) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("IronFrancisca")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Rogue/Knife.cs b/Projectiles/Rogue/Knife.cs index 8e4270efaf..6d0d8aa043 100644 --- a/Projectiles/Rogue/Knife.cs +++ b/Projectiles/Rogue/Knife.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Knife : ModProjectile { diff --git a/Projectiles/Rogue/KylieBoomerang.cs b/Projectiles/Rogue/KylieBoomerang.cs index ad2ec8d4d6..c2ae7357cc 100644 --- a/Projectiles/Rogue/KylieBoomerang.cs +++ b/Projectiles/Rogue/KylieBoomerang.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class KylieBoomerang : ModProjectile { diff --git a/Projectiles/Rogue/LeadTomahawk.cs b/Projectiles/Rogue/LeadTomahawk.cs index 9bccc0ebb8..4fa387efee 100644 --- a/Projectiles/Rogue/LeadTomahawk.cs +++ b/Projectiles/Rogue/LeadTomahawk.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class LeadTomahawk : ModProjectile { @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.Next(2) == 0) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("LeadTomahawk")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Rogue/Lionfish.cs b/Projectiles/Rogue/Lionfish.cs index d22f5e737c..8845d3bf03 100644 --- a/Projectiles/Rogue/Lionfish.cs +++ b/Projectiles/Rogue/Lionfish.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Lionfish : ModProjectile { diff --git a/Projectiles/Rogue/Malachite.cs b/Projectiles/Rogue/Malachite.cs index 28a5f11cc9..8197c69004 100644 --- a/Projectiles/Rogue/Malachite.cs +++ b/Projectiles/Rogue/Malachite.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Malachite : ModProjectile { diff --git a/Projectiles/Rogue/MalachiteBolt.cs b/Projectiles/Rogue/MalachiteBolt.cs index d0e8841437..87bcd37601 100644 --- a/Projectiles/Rogue/MalachiteBolt.cs +++ b/Projectiles/Rogue/MalachiteBolt.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MalachiteBolt : ModProjectile { diff --git a/Projectiles/Rogue/MangroveChakramProjectile.cs b/Projectiles/Rogue/MangroveChakramProjectile.cs index 822dce4e95..aca7545369 100644 --- a/Projectiles/Rogue/MangroveChakramProjectile.cs +++ b/Projectiles/Rogue/MangroveChakramProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MangroveChakramProjectile : ModProjectile { diff --git a/Projectiles/Rogue/MeteorFist.cs b/Projectiles/Rogue/MeteorFist.cs index 4b33c97660..f2f0c1db3a 100644 --- a/Projectiles/Rogue/MeteorFist.cs +++ b/Projectiles/Rogue/MeteorFist.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MeteorFist : ModProjectile { diff --git a/Projectiles/Rogue/MoltenAmputator.cs b/Projectiles/Rogue/MoltenAmputator.cs index 069fefaa7b..124aa52a6b 100644 --- a/Projectiles/Rogue/MoltenAmputator.cs +++ b/Projectiles/Rogue/MoltenAmputator.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MoltenAmputator : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Rogue } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("MoltenBlobThrown"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); diff --git a/Projectiles/Rogue/MoltenBlobThrown.cs b/Projectiles/Rogue/MoltenBlobThrown.cs index 5bf41083af..635a919f4a 100644 --- a/Projectiles/Rogue/MoltenBlobThrown.cs +++ b/Projectiles/Rogue/MoltenBlobThrown.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MoltenBlobThrown : ModProjectile { diff --git a/Projectiles/Rogue/MonkeyDart.cs b/Projectiles/Rogue/MonkeyDart.cs index b84f564d57..d56b9c8d51 100644 --- a/Projectiles/Rogue/MonkeyDart.cs +++ b/Projectiles/Rogue/MonkeyDart.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MonkeyDart : ModProjectile { diff --git a/Projectiles/Rogue/MoonSigil.cs b/Projectiles/Rogue/MoonSigil.cs index 1ce73d33e9..975769915b 100644 --- a/Projectiles/Rogue/MoonSigil.cs +++ b/Projectiles/Rogue/MoonSigil.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MoonSigil : ModProjectile { diff --git a/Projectiles/Rogue/Mycoroot.cs b/Projectiles/Rogue/Mycoroot.cs index 8dcaead32a..5512df56d3 100644 --- a/Projectiles/Rogue/Mycoroot.cs +++ b/Projectiles/Rogue/Mycoroot.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Mycoroot : ModProjectile { diff --git a/Projectiles/Rogue/MythrilKnifeProjectile.cs b/Projectiles/Rogue/MythrilKnifeProjectile.cs index 99442d9e9d..341036e70e 100644 --- a/Projectiles/Rogue/MythrilKnifeProjectile.cs +++ b/Projectiles/Rogue/MythrilKnifeProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class MythrilKnifeProjectile : ModProjectile { @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("MythrilKnife")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Rogue/OPHammer.cs b/Projectiles/Rogue/OPHammer.cs index db4f6f6ebf..6574906f52 100644 --- a/Projectiles/Rogue/OPHammer.cs +++ b/Projectiles/Rogue/OPHammer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class OPHammer : ModProjectile { @@ -113,10 +113,10 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + target.AddBuff(ModContent.BuffType(), 300); if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("FuckYou"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[proj].Calamity().forceRogue = true; } } diff --git a/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs b/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs index a672fcd708..478cf9a7a8 100644 --- a/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs +++ b/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class OrichalcumSpikedGemstoneProjectile : ModProjectile { @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("OrichalcumSpikedGemstone")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/PalladiumJavelinProjectile.cs b/Projectiles/Rogue/PalladiumJavelinProjectile.cs index bfe8be4def..ebf4377296 100644 --- a/Projectiles/Rogue/PalladiumJavelinProjectile.cs +++ b/Projectiles/Rogue/PalladiumJavelinProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class PalladiumJavelinProjectile : ModProjectile { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("PalladiumJavelin")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/ProfanedTrident.cs b/Projectiles/Rogue/ProfanedTrident.cs index 0f98ffce39..660270c859 100644 --- a/Projectiles/Rogue/ProfanedTrident.cs +++ b/Projectiles/Rogue/ProfanedTrident.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ProfanedTrident : ModProjectile { diff --git a/Projectiles/Rogue/Pwnagehammer.cs b/Projectiles/Rogue/Pwnagehammer.cs index d50b4188ef..78584baac2 100644 --- a/Projectiles/Rogue/Pwnagehammer.cs +++ b/Projectiles/Rogue/Pwnagehammer.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Pwnagehammer : ModProjectile { diff --git a/Projectiles/Rogue/RotBallProjectile.cs b/Projectiles/Rogue/RotBallProjectile.cs index ef023fd193..98de13a41a 100644 --- a/Projectiles/Rogue/RotBallProjectile.cs +++ b/Projectiles/Rogue/RotBallProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class RotBallProjectile : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("RotBall")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/RoyalKnife.cs b/Projectiles/Rogue/RoyalKnife.cs index d0adebb802..a18f908449 100644 --- a/Projectiles/Rogue/RoyalKnife.cs +++ b/Projectiles/Rogue/RoyalKnife.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class RoyalKnife : ModProjectile { @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 600); + target.AddBuff(ModContent.BuffType(), 600); if (target.type == NPCID.TargetDummy) { return; @@ -111,7 +111,7 @@ namespace CalamityMod.Projectiles.Rogue } Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; - Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("RoyalHeal"), 0, 0f, projectile.owner, (float)num2, num); + Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num2, num); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/ScarletBlast.cs b/Projectiles/Rogue/ScarletBlast.cs index e10aebd005..d01c7ecf30 100644 --- a/Projectiles/Rogue/ScarletBlast.cs +++ b/Projectiles/Rogue/ScarletBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScarletBlast : ModProjectile { diff --git a/Projectiles/Rogue/ScarletDevilBullet.cs b/Projectiles/Rogue/ScarletDevilBullet.cs index 9267dfbc75..5343779a90 100644 --- a/Projectiles/Rogue/ScarletDevilBullet.cs +++ b/Projectiles/Rogue/ScarletDevilBullet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScarletDevilBullet : ModProjectile { diff --git a/Projectiles/Rogue/ScarletDevilProjectile.cs b/Projectiles/Rogue/ScarletDevilProjectile.cs index 49a1489973..42784f4b29 100644 --- a/Projectiles/Rogue/ScarletDevilProjectile.cs +++ b/Projectiles/Rogue/ScarletDevilProjectile.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScarletDevilProjectile : ModProjectile { @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue Vector2 perturbedSpeed = new Vector2(-projectile.velocity.X / 3, -projectile.velocity.Y / 3).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); for (int j = 0; j < 2; j++) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("ScarletDevilBullet"), (int)((double)projectile.damage * 0.03), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.03), 0f, projectile.owner, 0f, 0f); perturbedSpeed *= 1.05f; } } @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = projectile.height = 150; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ScarletBlast"), (int)((double)projectile.damage * 0.0075), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.0075), 0f, projectile.owner, 0f, 0f); if (target.type == NPCID.TargetDummy || !lifesteal) { return; diff --git a/Projectiles/Rogue/ScourgeVenomCloud.cs b/Projectiles/Rogue/ScourgeVenomCloud.cs index 73e59b73ea..429fe8fa82 100644 --- a/Projectiles/Rogue/ScourgeVenomCloud.cs +++ b/Projectiles/Rogue/ScourgeVenomCloud.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScourgeVenomCloud : ModProjectile { diff --git a/Projectiles/Rogue/ScourgeoftheDesert.cs b/Projectiles/Rogue/ScourgeoftheDesert.cs index 43f306fb27..75e97d3f45 100644 --- a/Projectiles/Rogue/ScourgeoftheDesert.cs +++ b/Projectiles/Rogue/ScourgeoftheDesert.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScourgeoftheDesert : ModProjectile { diff --git a/Projectiles/Rogue/ScourgeoftheDesert2.cs b/Projectiles/Rogue/ScourgeoftheDesert2.cs index cbfb7ffb1e..1cd4b0db4f 100644 --- a/Projectiles/Rogue/ScourgeoftheDesert2.cs +++ b/Projectiles/Rogue/ScourgeoftheDesert2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScourgeoftheDesert2 : ModProjectile { diff --git a/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs b/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs index f09abf4384..db7b0e3b61 100644 --- a/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs +++ b/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScourgeoftheSeasProjectile : ModProjectile { @@ -70,7 +70,7 @@ namespace CalamityMod.Projectiles.Rogue Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); vector15.Normalize(); vector15 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, mod.ProjectileType("ScourgeVenomCloud"), (int)((double)projectile.damage * 0.25), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); num3 = num321; } } diff --git a/Projectiles/Rogue/ScourgeoftheSeasStealth.cs b/Projectiles/Rogue/ScourgeoftheSeasStealth.cs index 860e18278a..c5d488b5ef 100644 --- a/Projectiles/Rogue/ScourgeoftheSeasStealth.cs +++ b/Projectiles/Rogue/ScourgeoftheSeasStealth.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ScourgeoftheSeasStealth : ModProjectile { @@ -178,11 +178,11 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - if (target.type == mod.NPCType("Cryogen") || target.type == mod.NPCType("Brimstone Elemental") || target.type == NPCID.SkeletronPrime) + if (target.type == ModContent.NPCType() || target.type == ModContent.NPCType() || target.type == NPCID.SkeletronPrime) { target.buffImmune[BuffID.Venom] = false; } - else if (target.buffImmune[BuffID.Venom] && !target.boss && target.aiStyle != 6 && target.type != mod.NPCType("EidolonWyrmHeadHuge")) + else if (target.buffImmune[BuffID.Venom] && !target.boss && target.aiStyle != 6 && target.type != ModContent.NPCType()) { target.buffImmune[BuffID.Venom] = false; } @@ -206,7 +206,7 @@ namespace CalamityMod.Projectiles.Rogue Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); vector15.Normalize(); vector15 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, mod.ProjectileType("ScourgeVenomCloud"), (int)((double)projectile.damage * 0.50), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.50), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); num3 = num321; } } diff --git a/Projectiles/Rogue/SeashellBoomerangProjectile.cs b/Projectiles/Rogue/SeashellBoomerangProjectile.cs index 6fd2e31db5..8ce67a3c0c 100644 --- a/Projectiles/Rogue/SeashellBoomerangProjectile.cs +++ b/Projectiles/Rogue/SeashellBoomerangProjectile.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class SeashellBoomerangProjectile : ModProjectile { diff --git a/Projectiles/Rogue/ShatteredExplosion.cs b/Projectiles/Rogue/ShatteredExplosion.cs index 8922960211..51d6834c7f 100644 --- a/Projectiles/Rogue/ShatteredExplosion.cs +++ b/Projectiles/Rogue/ShatteredExplosion.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ShatteredExplosion : ModProjectile { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Rogue/ShatteredSun.cs b/Projectiles/Rogue/ShatteredSun.cs index bc07dcbf8c..c51b2bc126 100644 --- a/Projectiles/Rogue/ShatteredSun.cs +++ b/Projectiles/Rogue/ShatteredSun.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ShatteredSun : ModProjectile { @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Rogue for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("ShatteredSun2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } projectile.active = false; } @@ -72,13 +72,13 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); } public override bool OnTileCollide(Vector2 oldVelocity) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); return true; } diff --git a/Projectiles/Rogue/ShatteredSun2.cs b/Projectiles/Rogue/ShatteredSun2.cs index ffc0eb66b0..1028c9c01f 100644 --- a/Projectiles/Rogue/ShatteredSun2.cs +++ b/Projectiles/Rogue/ShatteredSun2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ShatteredSun2 : ModProjectile { @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Rogue for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("ShatteredSun3"), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, 0f, 0f); } projectile.active = false; } @@ -60,13 +60,13 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); } public override bool OnTileCollide(Vector2 oldVelocity) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); return true; } diff --git a/Projectiles/Rogue/ShatteredSun3.cs b/Projectiles/Rogue/ShatteredSun3.cs index 72ac9edb89..08e16e4dba 100644 --- a/Projectiles/Rogue/ShatteredSun3.cs +++ b/Projectiles/Rogue/ShatteredSun3.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ShatteredSun3 : ModProjectile { @@ -76,13 +76,13 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); } public override bool OnTileCollide(Vector2 oldVelocity) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); return true; } diff --git a/Projectiles/Rogue/SlickCaneProjectile.cs b/Projectiles/Rogue/SlickCaneProjectile.cs index 5a03c14653..12610fa3fe 100644 --- a/Projectiles/Rogue/SlickCaneProjectile.cs +++ b/Projectiles/Rogue/SlickCaneProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class SlickCaneProjectile : ModProjectile { diff --git a/Projectiles/Rogue/SpearofPaleolith.cs b/Projectiles/Rogue/SpearofPaleolith.cs index 551fde0073..01e2581a26 100644 --- a/Projectiles/Rogue/SpearofPaleolith.cs +++ b/Projectiles/Rogue/SpearofPaleolith.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class SpearofPaleolith : ModProjectile { @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Rogue { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, mod.ProjectileType("FossilShardThrown"), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X * 0f, projectile.velocity.Y * 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); } shardRainTimer = 3; } @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ArmorCrunch"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Rogue/Stormfrontproj.cs b/Projectiles/Rogue/Stormfrontproj.cs index 078a68f459..a2ecdaa4cb 100644 --- a/Projectiles/Rogue/Stormfrontproj.cs +++ b/Projectiles/Rogue/Stormfrontproj.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Stormfrontproj : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.ai[0] >= sparkFreq) { Vector2 sparkS = new Vector2(Main.rand.NextFloat(-14f, 14f), Main.rand.NextFloat(-14f, 14f)); - Projectile.NewProjectile(projectile.Center, sparkS, mod.ProjectileType("Stormfrontspark"), projectile.damage, 3f, projectile.owner); + Projectile.NewProjectile(projectile.Center, sparkS, ModContent.ProjectileType(), projectile.damage, 3f, projectile.owner); projectile.ai[0] = 0; } if (Main.rand.Next(10) == 0) diff --git a/Projectiles/Rogue/Stormfrontspark.cs b/Projectiles/Rogue/Stormfrontspark.cs index 57c577c959..d3626f6690 100644 --- a/Projectiles/Rogue/Stormfrontspark.cs +++ b/Projectiles/Rogue/Stormfrontspark.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Stormfrontspark : ModProjectile { diff --git a/Projectiles/Rogue/TarragonThrowingDartProjectile.cs b/Projectiles/Rogue/TarragonThrowingDartProjectile.cs index 3e8b1e6faa..967aa44bc2 100644 --- a/Projectiles/Rogue/TarragonThrowingDartProjectile.cs +++ b/Projectiles/Rogue/TarragonThrowingDartProjectile.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class TarragonThrowingDartProjectile : ModProjectile { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("TarragonThrowingDart")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Rogue/TitaniumShurikenProjectile.cs b/Projectiles/Rogue/TitaniumShurikenProjectile.cs index 02513d4087..40c96d22ad 100644 --- a/Projectiles/Rogue/TitaniumShurikenProjectile.cs +++ b/Projectiles/Rogue/TitaniumShurikenProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class TitaniumShurikenProjectile : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("TitaniumShuriken")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/ToothBallProjectile.cs b/Projectiles/Rogue/ToothBallProjectile.cs index 733729fde2..cf756b9985 100644 --- a/Projectiles/Rogue/ToothBallProjectile.cs +++ b/Projectiles/Rogue/ToothBallProjectile.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class ToothBallProjectile : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("ToothBall")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/TriactisOPHammer.cs b/Projectiles/Rogue/TriactisOPHammer.cs index a678cda27d..c04eedb6d4 100644 --- a/Projectiles/Rogue/TriactisOPHammer.cs +++ b/Projectiles/Rogue/TriactisOPHammer.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class TriactisOPHammer : ModProjectile { @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Rogue { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("MageHammerBoom"), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), projectile.knockBack, projectile.owner, 0f, 0f); } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); for (int num621 = 0; num621 < 40; num621++) diff --git a/Projectiles/Rogue/UrchinStinger.cs b/Projectiles/Rogue/UrchinStinger.cs index e75a6ed302..3dbd97180d 100644 --- a/Projectiles/Rogue/UrchinStinger.cs +++ b/Projectiles/Rogue/UrchinStinger.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class UrchinStinger : ModProjectile { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("UrchinStinger")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/Valediction.cs b/Projectiles/Rogue/Valediction.cs index 24edea3386..ac639a073e 100644 --- a/Projectiles/Rogue/Valediction.cs +++ b/Projectiles/Rogue/Valediction.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Valediction : ModProjectile { @@ -150,7 +150,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override void Kill(int timeLeft) diff --git a/Projectiles/Rogue/Valediction2.cs b/Projectiles/Rogue/Valediction2.cs index 727abe1a44..8de39eb002 100644 --- a/Projectiles/Rogue/Valediction2.cs +++ b/Projectiles/Rogue/Valediction2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class Valediction2 : ModProjectile { @@ -175,7 +175,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override void Kill(int timeLeft) diff --git a/Projectiles/Rogue/WulfrumKnife.cs b/Projectiles/Rogue/WulfrumKnife.cs index 289b2a0ce4..5719986222 100644 --- a/Projectiles/Rogue/WulfrumKnife.cs +++ b/Projectiles/Rogue/WulfrumKnife.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class WulfrumKnife : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("WulfrumKnife")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } } diff --git a/Projectiles/Rogue/XerocPitchforkProjectile.cs b/Projectiles/Rogue/XerocPitchforkProjectile.cs index 9ba598cf09..0ac789823b 100644 --- a/Projectiles/Rogue/XerocPitchforkProjectile.cs +++ b/Projectiles/Rogue/XerocPitchforkProjectile.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles { public class XerocPitchforkProjectile : ModProjectile { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, mod.ItemType("XerocPitchfork")); + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Shrines/GladiatorSword.cs b/Projectiles/Shrines/GladiatorSword.cs index 07173dacb2..60f2831820 100644 --- a/Projectiles/Shrines/GladiatorSword.cs +++ b/Projectiles/Shrines/GladiatorSword.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class GladiatorSword : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Shrines public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("GladiatorSword"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.gladiatorSword) diff --git a/Projectiles/Shrines/GladiatorSword2.cs b/Projectiles/Shrines/GladiatorSword2.cs index e84c9898de..4c85680a1d 100644 --- a/Projectiles/Shrines/GladiatorSword2.cs +++ b/Projectiles/Shrines/GladiatorSword2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class GladiatorSword2 : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Shrines public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("GladiatorSword2"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.gladiatorSword) diff --git a/Projectiles/Shrines/LuxorsGiftMagic.cs b/Projectiles/Shrines/LuxorsGiftMagic.cs index eed4868af6..0272928f7c 100644 --- a/Projectiles/Shrines/LuxorsGiftMagic.cs +++ b/Projectiles/Shrines/LuxorsGiftMagic.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class LuxorsGiftMagic : ModProjectile { diff --git a/Projectiles/Shrines/LuxorsGiftMelee.cs b/Projectiles/Shrines/LuxorsGiftMelee.cs index 0aea6cc938..ebbffbc943 100644 --- a/Projectiles/Shrines/LuxorsGiftMelee.cs +++ b/Projectiles/Shrines/LuxorsGiftMelee.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class LuxorsGiftMelee : ModProjectile { diff --git a/Projectiles/Shrines/LuxorsGiftRanged.cs b/Projectiles/Shrines/LuxorsGiftRanged.cs index 376024a49d..66c6dcfd3b 100644 --- a/Projectiles/Shrines/LuxorsGiftRanged.cs +++ b/Projectiles/Shrines/LuxorsGiftRanged.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class LuxorsGiftRanged : ModProjectile { diff --git a/Projectiles/Shrines/LuxorsGiftRogue.cs b/Projectiles/Shrines/LuxorsGiftRogue.cs index a4f3c94bab..b64cf6742d 100644 --- a/Projectiles/Shrines/LuxorsGiftRogue.cs +++ b/Projectiles/Shrines/LuxorsGiftRogue.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class LuxorsGiftRogue : ModProjectile { diff --git a/Projectiles/Shrines/LuxorsGiftSummon.cs b/Projectiles/Shrines/LuxorsGiftSummon.cs index a4dcd4aeeb..6c053f538b 100644 --- a/Projectiles/Shrines/LuxorsGiftSummon.cs +++ b/Projectiles/Shrines/LuxorsGiftSummon.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class LuxorsGiftSummon : ModProjectile { @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Shrines float num634 = 1000f; float num635 = 2200f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("LuxorsGiftSummon"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (flag64) @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Shrines float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("LuxorsGiftSummon"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { diff --git a/Projectiles/Shrines/UnstableSpark.cs b/Projectiles/Shrines/UnstableSpark.cs index 315c62b782..2bc0eee0de 100644 --- a/Projectiles/Shrines/UnstableSpark.cs +++ b/Projectiles/Shrines/UnstableSpark.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Shrines +namespace CalamityMod.Projectiles { public class UnstableSpark : ModProjectile { diff --git a/Projectiles/Summon/AquaticStar.cs b/Projectiles/Summon/AquaticStar.cs index 76c1f36f1e..575b986142 100644 --- a/Projectiles/Summon/AquaticStar.cs +++ b/Projectiles/Summon/AquaticStar.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class AquaticStar : ModProjectile { @@ -61,10 +61,10 @@ namespace CalamityMod.Projectiles.Summon projectile.damage = damage2; } projectile.rotation += projectile.velocity.X * 0.04f; - bool flag64 = projectile.type == mod.ProjectileType("AquaticStar"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("AquaticStar"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) diff --git a/Projectiles/Summon/BlackHawkBullet.cs b/Projectiles/Summon/BlackHawkBullet.cs index e2a9ff7a5b..5e779573e0 100644 --- a/Projectiles/Summon/BlackHawkBullet.cs +++ b/Projectiles/Summon/BlackHawkBullet.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class BlackHawkBullet : ModProjectile { diff --git a/Projectiles/Summon/BlackHawkSummon.cs b/Projectiles/Summon/BlackHawkSummon.cs index abbaeffbc1..ebe3f99a88 100644 --- a/Projectiles/Summon/BlackHawkSummon.cs +++ b/Projectiles/Summon/BlackHawkSummon.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class BlackHawkSummon : ModProjectile { @@ -100,10 +100,10 @@ namespace CalamityMod.Projectiles.Summon float num634 = 1300f; float num635 = 2600f; float num636 = 600f; - bool flag64 = projectile.type == mod.ProjectileType("BlackHawkSummon"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("BlackHawkBuff"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -118,7 +118,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("BlackHawkSummon"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -261,7 +261,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor3 = 6f; - int num658 = mod.ProjectileType("BlackHawkBullet"); + int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); diff --git a/Projectiles/Summon/BloodClotMinion.cs b/Projectiles/Summon/BloodClotMinion.cs index 9f39a3d42a..3d0f5d6fee 100644 --- a/Projectiles/Summon/BloodClotMinion.cs +++ b/Projectiles/Summon/BloodClotMinion.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class BloodClotMinion : ModProjectile { @@ -73,10 +73,10 @@ namespace CalamityMod.Projectiles.Summon { projectile.frame = 0; } - bool flag64 = projectile.type == mod.ProjectileType("BloodClotMinion"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("BloodClot"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Summon for (int num534 = 0; num534 < 1000; num534 = num3 + 1) { if (num534 != projectile.whoAmI && Main.projectile[num534].active && Main.projectile[num534].owner == projectile.owner && - Main.projectile[num534].type == mod.ProjectileType("BloodClotMinion") && + Main.projectile[num534].type == ModContent.ProjectileType() && Math.Abs(projectile.position.X - Main.projectile[num534].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num534].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num534].position.X) diff --git a/Projectiles/Summon/BigBustyRose.cs b/Projectiles/Summon/BrimstoneElementalMinion.cs similarity index 94% rename from Projectiles/Summon/BigBustyRose.cs rename to Projectiles/Summon/BrimstoneElementalMinion.cs index 1617efa967..daecac3127 100644 --- a/Projectiles/Summon/BigBustyRose.cs +++ b/Projectiles/Summon/BrimstoneElementalMinion.cs @@ -4,11 +4,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class BigBustyRose : ModProjectile + public class BrimstoneElementalMinion : ModProjectile { public int dust = 3; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("BigBustyRose"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.brimstoneWaifu && !modPlayer.allWaifus) @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("BigBustyRose"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -222,7 +222,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor3 = 14f; - int num658 = mod.ProjectileType("BrimstoneHellfireballFriendly"); + int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { projectile.ai[1] += 1f; diff --git a/Projectiles/Summon/BigBustyRose.png b/Projectiles/Summon/BrimstoneElementalMinion.png similarity index 100% rename from Projectiles/Summon/BigBustyRose.png rename to Projectiles/Summon/BrimstoneElementalMinion.png diff --git a/Projectiles/Summon/BrimstoneFireSummon.cs b/Projectiles/Summon/BrimstoneFireSummon.cs index 2e85237ac5..988810f27a 100644 --- a/Projectiles/Summon/BrimstoneFireSummon.cs +++ b/Projectiles/Summon/BrimstoneFireSummon.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class BrimstoneFireSummon : ModProjectile { @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); target.immune[projectile.owner] = 9; } } diff --git a/Projectiles/Summon/BrimstoneLaserSummon.cs b/Projectiles/Summon/BrimstoneLaserSummon.cs index eeec34a282..07ec819763 100644 --- a/Projectiles/Summon/BrimstoneLaserSummon.cs +++ b/Projectiles/Summon/BrimstoneLaserSummon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class BrimstoneLaserSummon : ModProjectile { @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Summon/BrittleStar.cs b/Projectiles/Summon/BrittleStar.cs index f80b9249c8..37f0922620 100644 --- a/Projectiles/Summon/BrittleStar.cs +++ b/Projectiles/Summon/BrittleStar.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class BrittleStar : ModProjectile { @@ -61,10 +61,10 @@ namespace CalamityMod.Projectiles.Summon projectile.damage = damage2; } projectile.rotation += projectile.velocity.X * 0.04f; - bool flag64 = projectile.type == mod.ProjectileType("BrittleStar"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("BrittleStar"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) diff --git a/Projectiles/Summon/Calamari.cs b/Projectiles/Summon/Calamari.cs index 3e6fe48721..f7d1e6196b 100644 --- a/Projectiles/Summon/Calamari.cs +++ b/Projectiles/Summon/Calamari.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Calamari : ModProjectile { @@ -71,10 +71,10 @@ namespace CalamityMod.Projectiles.Summon { projectile.frame = 0; } - bool flag64 = projectile.type == mod.ProjectileType("Calamari"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Calamari"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.Summon for (int num534 = 0; num534 < 1000; num534 = num3 + 1) { if (num534 != projectile.whoAmI && Main.projectile[num534].active && Main.projectile[num534].owner == projectile.owner && - Main.projectile[num534].type == mod.ProjectileType("Calamari") && + Main.projectile[num534].type == ModContent.ProjectileType() && Math.Abs(projectile.position.X - Main.projectile[num534].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num534].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num534].position.X) @@ -323,7 +323,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor4 = 9f; - int num28 = mod.ProjectileType("CalamariInk"); + int num28 = ModContent.ProjectileType(); if (flag) { if (Math.Abs((vector - projectile.Center).ToRotation() - 1.57079637f) > 0.7853982f) diff --git a/Projectiles/Summon/CalamariInk.cs b/Projectiles/Summon/CalamariInk.cs index 579622359e..5b7e9cc199 100644 --- a/Projectiles/Summon/CalamariInk.cs +++ b/Projectiles/Summon/CalamariInk.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class CalamariInk : ModProjectile { @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(ModContent.BuffType(), 600); } public override void Kill(int timeLeft) diff --git a/Projectiles/Summon/Calamitamini.cs b/Projectiles/Summon/Calamitamini.cs index 03d486567f..ec232c88fc 100644 --- a/Projectiles/Summon/Calamitamini.cs +++ b/Projectiles/Summon/Calamitamini.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Calamitamini : ModProjectile { @@ -62,10 +62,10 @@ namespace CalamityMod.Projectiles.Summon float num634 = 1100f; float num635 = 2400f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("Calamitamini"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("CalamitasEyes"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("Calamitamini"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -247,7 +247,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor3 = 8f; - int num658 = mod.ProjectileType("BrimstoneLaserSummon"); + int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { projectile.ai[1] += 1f; diff --git a/Projectiles/Summon/Cataclymini.cs b/Projectiles/Summon/Cataclymini.cs index 803ac68ba6..30c304e7b0 100644 --- a/Projectiles/Summon/Cataclymini.cs +++ b/Projectiles/Summon/Cataclymini.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Cataclymini : ModProjectile { @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Summon float num634 = 1100f; float num635 = 2400f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("Cataclymini"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (flag64) @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("Cataclymini"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -246,7 +246,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor3 = 8f; - int num658 = mod.ProjectileType("BrimstoneFireSummon"); + int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { projectile.ai[1] += 1f; diff --git a/Projectiles/Summon/Catastromini.cs b/Projectiles/Summon/Catastromini.cs index 10e70308e5..8f0c426bc1 100644 --- a/Projectiles/Summon/Catastromini.cs +++ b/Projectiles/Summon/Catastromini.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Catastromini : ModProjectile { @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Summon float num634 = 1100f; float num635 = 2400f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("Catastromini"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (flag64) @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("Catastromini"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) diff --git a/Projectiles/Summon/ChaosFlame.cs b/Projectiles/Summon/ChaosFlame.cs index 4ecd18220d..0d507b97ce 100644 --- a/Projectiles/Summon/ChaosFlame.cs +++ b/Projectiles/Summon/ChaosFlame.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class ChaosFlame : ModProjectile { diff --git a/Projectiles/Summon/ChaosSpirit.cs b/Projectiles/Summon/ChaosSpirit.cs index 624d46f00d..0862d6c745 100644 --- a/Projectiles/Summon/ChaosSpirit.cs +++ b/Projectiles/Summon/ChaosSpirit.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class ChaosSpirit : ModProjectile { @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("ChaosSpirit"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.chaosSpirit) @@ -151,7 +151,7 @@ namespace CalamityMod.Projectiles.Summon float num517 = num507; num506 -= projectile.Center.X; num507 -= projectile.Center.Y; - int projectileType = mod.ProjectileType("ChaosFlame"); + int projectileType = ModContent.ProjectileType(); float num403 = Main.rand.Next(14, 19); //modify the speed the projectile are shot. Lower number = slower projectile. Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); float num404 = num516 - vector29.X; diff --git a/Projectiles/Summon/CloudyWaifu.cs b/Projectiles/Summon/CloudElementalMinion.cs similarity index 95% rename from Projectiles/Summon/CloudyWaifu.cs rename to Projectiles/Summon/CloudElementalMinion.cs index c030107054..b29505468b 100644 --- a/Projectiles/Summon/CloudyWaifu.cs +++ b/Projectiles/Summon/CloudElementalMinion.cs @@ -4,11 +4,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class CloudyWaifu : ModProjectile + public class CloudElementalMinion : ModProjectile { public int dust = 3; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("CloudyWaifu"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.cloudWaifu && !modPlayer.allWaifus) @@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("CloudyWaifu"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) diff --git a/Projectiles/Summon/CloudyWaifu.png b/Projectiles/Summon/CloudElementalMinion.png similarity index 100% rename from Projectiles/Summon/CloudyWaifu.png rename to Projectiles/Summon/CloudElementalMinion.png diff --git a/Projectiles/Summon/CloudyWaifuAttack.png b/Projectiles/Summon/CloudElementalMinionAttack.png similarity index 100% rename from Projectiles/Summon/CloudyWaifuAttack.png rename to Projectiles/Summon/CloudElementalMinionAttack.png diff --git a/Projectiles/Summon/Corroslime.cs b/Projectiles/Summon/Corroslime.cs index bb76ad56de..acc0f1e5b2 100644 --- a/Projectiles/Summon/Corroslime.cs +++ b/Projectiles/Summon/Corroslime.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Corroslime : ModProjectile { @@ -70,10 +70,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("Corroslime"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Corroslime"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) diff --git a/Projectiles/Summon/CosmicBlast.cs b/Projectiles/Summon/CosmicBlast.cs index a2e407251d..887878aceb 100644 --- a/Projectiles/Summon/CosmicBlast.cs +++ b/Projectiles/Summon/CosmicBlast.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class CosmicBlast : ModProjectile { @@ -88,11 +88,11 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Summon/CosmicBlastBig.cs b/Projectiles/Summon/CosmicBlastBig.cs index 59397ee16c..d043a10552 100644 --- a/Projectiles/Summon/CosmicBlastBig.cs +++ b/Projectiles/Summon/CosmicBlastBig.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class CosmicBlastBig : ModProjectile { @@ -102,11 +102,11 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("ExoFreeze"), 30); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 30); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(BuffID.CursedInferno, 120); target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); diff --git a/Projectiles/Summon/CosmicEnergy.cs b/Projectiles/Summon/CosmicEnergy.cs index 944b46cdd4..44999c9a7f 100644 --- a/Projectiles/Summon/CosmicEnergy.cs +++ b/Projectiles/Summon/CosmicEnergy.cs @@ -3,11 +3,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class CosmicEnergy : ModProjectile + public class CosmicEnergySpiral : ModProjectile { private bool justSpawned = true; @@ -51,10 +51,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("CosmicEnergy"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("CosmicEnergy"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("CosmicEnergy"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -248,7 +248,7 @@ namespace CalamityMod.Projectiles.Summon } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("CosmicBlast"), (int)((double)projectile.damage * 0.5), 2f, projectile.owner, (float)target, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 2f, projectile.owner, (float)target, 0f); } float num403 = 15f; Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); @@ -258,7 +258,7 @@ namespace CalamityMod.Projectiles.Summon num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num404, num405, mod.ProjectileType("CosmicBlastBig"), projectile.damage, 3f, projectile.owner, (float)target, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num404, num405, ModContent.ProjectileType(), projectile.damage, 3f, projectile.owner, (float)target, 0f); projectile.ai[0] = 100f; } } diff --git a/Projectiles/Summon/Cosmilamp.cs b/Projectiles/Summon/Cosmilamp.cs index 5754446e60..ce1be5efcd 100644 --- a/Projectiles/Summon/Cosmilamp.cs +++ b/Projectiles/Summon/Cosmilamp.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Cosmilamp : ModProjectile { @@ -67,10 +67,10 @@ namespace CalamityMod.Projectiles.Summon Main.dust[num1262].velocity *= 0.1f; Main.dust[num1262].scale = 0.7f; Main.dust[num1262].noGravity = true; - bool flag64 = projectile.type == mod.ProjectileType("Cosmilamp"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Cosmilamp"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Summon for (int num534 = 0; num534 < 1000; num534 = num3 + 1) { if (num534 != projectile.whoAmI && Main.projectile[num534].active && Main.projectile[num534].owner == projectile.owner && - Main.projectile[num534].type == mod.ProjectileType("Cosmilamp") && + Main.projectile[num534].type == ModContent.ProjectileType() && Math.Abs(projectile.position.X - Main.projectile[num534].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num534].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num534].position.X) diff --git a/Projectiles/Summon/Crimslime.cs b/Projectiles/Summon/Crimslime.cs index 05cc58ed97..0019dc3b24 100644 --- a/Projectiles/Summon/Crimslime.cs +++ b/Projectiles/Summon/Crimslime.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Crimslime : ModProjectile { @@ -70,10 +70,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("Crimslime"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Crimslime"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) diff --git a/Projectiles/Summon/DaedalusCrystal.cs b/Projectiles/Summon/DaedalusCrystal.cs index 89b979f307..303b131c7a 100644 --- a/Projectiles/Summon/DaedalusCrystal.cs +++ b/Projectiles/Summon/DaedalusCrystal.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class DaedalusCrystal : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("DaedalusCrystal"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.daedalusCrystal) @@ -143,7 +143,7 @@ namespace CalamityMod.Projectiles.Summon float num517 = num507; num506 -= projectile.Center.X; num507 -= projectile.Center.Y; - int projectileType = mod.ProjectileType("DaedalusCrystalShot"); + int projectileType = ModContent.ProjectileType(); float num403 = Main.rand.Next(10, 15); //modify the speed the projectile are shot. Lower number = slower projectile. Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); float num404 = num516 - vector29.X; diff --git a/Projectiles/Summon/DaedalusCrystalShot.cs b/Projectiles/Summon/DaedalusCrystalShot.cs index 1a35580356..e3275589cc 100644 --- a/Projectiles/Summon/DaedalusCrystalShot.cs +++ b/Projectiles/Summon/DaedalusCrystalShot.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class DaedalusCrystalShot : ModProjectile { diff --git a/Projectiles/Summon/DankCreeper.cs b/Projectiles/Summon/DankCreeper.cs index 10b2d737c8..af000db606 100644 --- a/Projectiles/Summon/DankCreeper.cs +++ b/Projectiles/Summon/DankCreeper.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class DankCreeper : ModProjectile { @@ -62,10 +62,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("DankCreeper"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("DankCreeper"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Summon for (int num534 = 0; num534 < 1000; num534 = num3 + 1) { if (num534 != projectile.whoAmI && Main.projectile[num534].active && Main.projectile[num534].owner == projectile.owner && - Main.projectile[num534].type == mod.ProjectileType("DankCreeper") && + Main.projectile[num534].type == ModContent.ProjectileType() && Math.Abs(projectile.position.X - Main.projectile[num534].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num534].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num534].position.X) diff --git a/Projectiles/Summon/Dreadmine.cs b/Projectiles/Summon/Dreadmine.cs index 5fec26c05c..b801ff214d 100644 --- a/Projectiles/Summon/Dreadmine.cs +++ b/Projectiles/Summon/Dreadmine.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Dreadmine : ModProjectile { diff --git a/Projectiles/Summon/DreadmineTurret.cs b/Projectiles/Summon/DreadmineTurret.cs index c3e08a8e02..dc5e850cf3 100644 --- a/Projectiles/Summon/DreadmineTurret.cs +++ b/Projectiles/Summon/DreadmineTurret.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class DreadmineTurret : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Summon int num = 0; for (int i = 0; i < 1000; i++) { - if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == mod.ProjectileType("Dreadmine")) + if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == ModContent.ProjectileType()) { num++; } @@ -109,7 +109,7 @@ namespace CalamityMod.Projectiles.Summon for (int k = 0; k < 1000; k++) { if (Main.projectile[k].active && Main.projectile[k].owner == Main.myPlayer && - Main.projectile[k].type == mod.ProjectileType("Dreadmine") && (center - Main.projectile[k].Center).Length() < 48f) + Main.projectile[k].type == ModContent.ProjectileType() && (center - Main.projectile[k].Center).Length() < 48f) { flag = false; break; @@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Summon } if (flag && Main.myPlayer == projectile.owner) { - Projectile.NewProjectile(center.X, center.Y, 0f, 0f, mod.ProjectileType("Dreadmine"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(center.X, center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Summon/ElementalAxe.cs b/Projectiles/Summon/ElementalAxe.cs index 4a2d6f9e96..ceb15bdb0a 100644 --- a/Projectiles/Summon/ElementalAxe.cs +++ b/Projectiles/Summon/ElementalAxe.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class ElementalAxe : ModProjectile { @@ -48,10 +48,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("ElementalAxe"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("ElementalAxe"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("ElementalAxe"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -258,10 +258,10 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 4; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); - target.AddBuff(mod.BuffType("GlacialState"), 120); - target.AddBuff(mod.BuffType("Plague"), 120); - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Summon/FlameBlast.cs b/Projectiles/Summon/FlameBlast.cs index ee8a28e625..94a854b13a 100644 --- a/Projectiles/Summon/FlameBlast.cs +++ b/Projectiles/Summon/FlameBlast.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class FlameBlast : ModProjectile { diff --git a/Projectiles/Summon/FlameBurst.cs b/Projectiles/Summon/FlameBurst.cs index 76662669a6..ac9bd0fefa 100644 --- a/Projectiles/Summon/FlameBurst.cs +++ b/Projectiles/Summon/FlameBurst.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class FlameBurst : ModProjectile { diff --git a/Projectiles/Summon/FrostMistFriendly.cs b/Projectiles/Summon/FrostMistFriendly.cs index f715d51327..5ccf087067 100644 --- a/Projectiles/Summon/FrostMistFriendly.cs +++ b/Projectiles/Summon/FrostMistFriendly.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class FrostMistFriendly : ModProjectile { diff --git a/Projectiles/Summon/FungalClump.cs b/Projectiles/Summon/FungalClumpMinion.cs similarity index 89% rename from Projectiles/Summon/FungalClump.cs rename to Projectiles/Summon/FungalClumpMinion.cs index d364744309..cced7b9de0 100644 --- a/Projectiles/Summon/FungalClump.cs +++ b/Projectiles/Summon/FungalClumpMinion.cs @@ -2,11 +2,11 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class FungalClump : ModProjectile + public class FungalClumpMinion : ModProjectile { public override void SetStaticDefaults() { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("FungalClump"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.fungalClump) @@ -101,7 +101,7 @@ namespace CalamityMod.Projectiles.Summon } Main.player[Main.myPlayer].lifeSteal -= num; int num2 = projectile.owner; - Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("FungalHeal"), 0, 0f, projectile.owner, (float)num2, num); + Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, ModContent.ProjectileType(), 0, 0f, projectile.owner, (float)num2, num); } } } diff --git a/Projectiles/Summon/FungalClump.png b/Projectiles/Summon/FungalClumpMinion.png similarity index 100% rename from Projectiles/Summon/FungalClump.png rename to Projectiles/Summon/FungalClumpMinion.png diff --git a/Projectiles/Summon/GhostFire.cs b/Projectiles/Summon/GhostFire.cs index b828f3426e..26f1cfb657 100644 --- a/Projectiles/Summon/GhostFire.cs +++ b/Projectiles/Summon/GhostFire.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class GhostFire : ModProjectile { diff --git a/Projectiles/Summon/GhostlyMine.cs b/Projectiles/Summon/GhostlyMine.cs index 1d5ffef5b6..e213861444 100644 --- a/Projectiles/Summon/GhostlyMine.cs +++ b/Projectiles/Summon/GhostlyMine.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class GhostlyMine : ModProjectile { diff --git a/Projectiles/Summon/GigaFlareFriendly.cs b/Projectiles/Summon/GigaFlareFriendly.cs index 4b2663211b..c2a0d8523c 100644 --- a/Projectiles/Summon/GigaFlareFriendly.cs +++ b/Projectiles/Summon/GigaFlareFriendly.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class GigaFlareFriendly : ModProjectile { @@ -98,8 +98,8 @@ namespace CalamityMod.Projectiles.Summon for (i = 0; i < 2; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("PhoenixFireFriendly"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("PhoenixFireFriendly"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); @@ -167,7 +167,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 200); + target.AddBuff(ModContent.BuffType(), 200); } } } diff --git a/Projectiles/Summon/Herring.cs b/Projectiles/Summon/Herring.cs index 3eec7aea81..69c0393184 100644 --- a/Projectiles/Summon/Herring.cs +++ b/Projectiles/Summon/Herring.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Herring : ModProjectile { @@ -79,10 +79,10 @@ namespace CalamityMod.Projectiles.Summon float num634 = 800f; float num635 = 1200f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("Herring"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Herring"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -97,7 +97,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("Herring"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { diff --git a/Projectiles/Summon/IceClasper.cs b/Projectiles/Summon/IceClasper.cs index 2935c858fc..442c499def 100644 --- a/Projectiles/Summon/IceClasper.cs +++ b/Projectiles/Summon/IceClasper.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class IceClasper : ModProjectile { @@ -75,10 +75,10 @@ namespace CalamityMod.Projectiles.Summon float num634 = 1000f; float num635 = 2200f; float num636 = 150f; - bool flag64 = projectile.type == mod.ProjectileType("IceClasper"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("IceClasper"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("IceClasper"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { diff --git a/Projectiles/Summon/MechwormBody.cs b/Projectiles/Summon/MechwormBody.cs index 344b84a2aa..4aea810226 100644 --- a/Projectiles/Summon/MechwormBody.cs +++ b/Projectiles/Summon/MechwormBody.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class MechwormBody : ModProjectile { diff --git a/Projectiles/Summon/MechwormBody2.cs b/Projectiles/Summon/MechwormBody2.cs index dba4f74489..6337a47b03 100644 --- a/Projectiles/Summon/MechwormBody2.cs +++ b/Projectiles/Summon/MechwormBody2.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class MechwormBody2 : ModProjectile { diff --git a/Projectiles/Summon/MechwormHead.cs b/Projectiles/Summon/MechwormHead.cs index 1a4b319c29..ba05ceafde 100644 --- a/Projectiles/Summon/MechwormHead.cs +++ b/Projectiles/Summon/MechwormHead.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class MechwormHead : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Summon playerMinionSlots = player9.maxMinions; } CalamityPlayer modPlayer = player9.Calamity(); - player9.AddBuff(mod.BuffType("Mechworm"), 3600); + player9.AddBuff(ModContent.BuffType(), 3600); if ((int)Main.time % 120 == 0) { projectile.netUpdate = true; diff --git a/Projectiles/Summon/MechwormTail.cs b/Projectiles/Summon/MechwormTail.cs index 91b121c1a6..fbfa7ac26f 100644 --- a/Projectiles/Summon/MechwormTail.cs +++ b/Projectiles/Summon/MechwormTail.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class MechwormTail : ModProjectile { diff --git a/Projectiles/Summon/MiniSandShark.cs b/Projectiles/Summon/MiniSandShark.cs index 2af1ea73f1..a1c6e13b87 100644 --- a/Projectiles/Summon/MiniSandShark.cs +++ b/Projectiles/Summon/MiniSandShark.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class MiniSandShark : ModProjectile { diff --git a/Projectiles/Summon/PhantomGuy.cs b/Projectiles/Summon/PhantomGuy.cs index a6f58a5ad7..8dba09b37b 100644 --- a/Projectiles/Summon/PhantomGuy.cs +++ b/Projectiles/Summon/PhantomGuy.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class PhantomGuy : ModProjectile { @@ -60,10 +60,10 @@ namespace CalamityMod.Projectiles.Summon float num634 = 1300f; float num635 = 2600f; float num636 = 600f; - bool flag64 = projectile.type == mod.ProjectileType("PhantomGuy"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Phantom"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("PhantomGuy"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -221,7 +221,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor3 = 6f; - int num658 = mod.ProjectileType("GhostFire"); + int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); diff --git a/Projectiles/Summon/PhoenixFireFriendly.cs b/Projectiles/Summon/PhoenixFireFriendly.cs index 189ff8b527..26f32ae567 100644 --- a/Projectiles/Summon/PhoenixFireFriendly.cs +++ b/Projectiles/Summon/PhoenixFireFriendly.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class PhoenixFireFriendly : ModProjectile { @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 100); + target.AddBuff(ModContent.BuffType(), 100); } } } diff --git a/Projectiles/Summon/ProfanedEnergy.cs b/Projectiles/Summon/ProfanedEnergy.cs index 637a1969df..8fd48d0a44 100644 --- a/Projectiles/Summon/ProfanedEnergy.cs +++ b/Projectiles/Summon/ProfanedEnergy.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class ProfanedEnergy : ModProjectile { @@ -138,11 +138,11 @@ namespace CalamityMod.Projectiles.Summon int projectileType = Main.rand.Next(2); if (projectileType == 0) { - projectileType = mod.ProjectileType("FlameBlast"); + projectileType = ModContent.ProjectileType(); } else { - projectileType = mod.ProjectileType("FlameBurst"); + projectileType = ModContent.ProjectileType(); } float num403 = Main.rand.Next(20, 30); //modify the speed the projectile are shot. Lower number = slower projectile. Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); diff --git a/Projectiles/Summon/ReaverOrb.cs b/Projectiles/Summon/ReaverOrb.cs index 2ec0caa829..19fb2cfe5d 100644 --- a/Projectiles/Summon/ReaverOrb.cs +++ b/Projectiles/Summon/ReaverOrb.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class ReaverOrb : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("ReaverOrb"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.reaverOrb) diff --git a/Projectiles/Summon/RedDevil.cs b/Projectiles/Summon/RedDevil.cs index 261165ed3d..e0d06174c8 100644 --- a/Projectiles/Summon/RedDevil.cs +++ b/Projectiles/Summon/RedDevil.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class RedDevil : ModProjectile { @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("RedDevil"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.redDevil) @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("RedDevil"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) diff --git a/Projectiles/Summon/SandBolt.cs b/Projectiles/Summon/SandBolt.cs index 2ea51ae097..79ee2b4edb 100644 --- a/Projectiles/Summon/SandBolt.cs +++ b/Projectiles/Summon/SandBolt.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SandBolt : ModProjectile { @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Summon { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("SandMark"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Summon/DrewsSandyWaifu.cs b/Projectiles/Summon/SandElementalHealer.cs similarity index 94% rename from Projectiles/Summon/DrewsSandyWaifu.cs rename to Projectiles/Summon/SandElementalHealer.cs index 65d5ff942b..8bb3f3741a 100644 --- a/Projectiles/Summon/DrewsSandyWaifu.cs +++ b/Projectiles/Summon/SandElementalHealer.cs @@ -4,11 +4,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class DrewsSandyWaifu : ModProjectile + public class SandElementalHealer : ModProjectile { public int dust = 3; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("DrewsSandyWaifu"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.sandBoobWaifu && !modPlayer.allWaifus) @@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("DrewsSandyWaifu"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -194,7 +194,7 @@ namespace CalamityMod.Projectiles.Summon } if (projectile.ai[0] == 0f) { - int num658 = mod.ProjectileType("CactusHealOrb"); + int num658 = ModContent.ProjectileType(); if (projectile.ai[1] == 0f && projectile.localAI[0] >= 120f) { projectile.ai[1] += 1f; diff --git a/Projectiles/Summon/DrewsSandyWaifu.png b/Projectiles/Summon/SandElementalHealer.png similarity index 100% rename from Projectiles/Summon/DrewsSandyWaifu.png rename to Projectiles/Summon/SandElementalHealer.png diff --git a/Projectiles/Summon/SandyWaifu.cs b/Projectiles/Summon/SandElementalMinion.cs similarity index 95% rename from Projectiles/Summon/SandyWaifu.cs rename to Projectiles/Summon/SandElementalMinion.cs index 663fe185b3..ca2648d5e8 100644 --- a/Projectiles/Summon/SandyWaifu.cs +++ b/Projectiles/Summon/SandElementalMinion.cs @@ -4,11 +4,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class SandyWaifu : ModProjectile + public class SandElementalMinion : ModProjectile { public int dust = 3; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("SandyWaifu"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.sandWaifu && !modPlayer.allWaifus) @@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("SandyWaifu"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) @@ -267,7 +267,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor3 = 11f; - int num658 = mod.ProjectileType("SandBolt"); + int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { projectile.ai[1] += 1f; diff --git a/Projectiles/Summon/SandyWaifu.png b/Projectiles/Summon/SandElementalMinion.png similarity index 100% rename from Projectiles/Summon/SandyWaifu.png rename to Projectiles/Summon/SandElementalMinion.png diff --git a/Projectiles/Summon/SandMark.cs b/Projectiles/Summon/SandMark.cs index 98cfea0324..3937081673 100644 --- a/Projectiles/Summon/SandMark.cs +++ b/Projectiles/Summon/SandMark.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SandMark : ModProjectile { @@ -131,7 +131,7 @@ namespace CalamityMod.Projectiles.Summon projectile.localAI[1] += 1f; if (projectile.localAI[1] == 60f && projectile.owner == Main.myPlayer) { - int storm = Projectile.NewProjectile(projectile.Center, Vector2.Zero, mod.ProjectileType("SandTornado"), projectile.damage, 2f, projectile.owner, 1f, 0f); + int storm = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, 2f, projectile.owner, 1f, 0f); Main.projectile[storm].minion = true; Main.projectile[storm].melee = false; } diff --git a/Projectiles/Summon/SandTornado.cs b/Projectiles/Summon/SandTornado.cs index 5a92f0a177..709b02600e 100644 --- a/Projectiles/Summon/SandTornado.cs +++ b/Projectiles/Summon/SandTornado.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SandTornado : ModProjectile { diff --git a/Projectiles/Summon/Sandnado.cs b/Projectiles/Summon/Sandnado.cs index 1165cc1b0c..f08aaea984 100644 --- a/Projectiles/Summon/Sandnado.cs +++ b/Projectiles/Summon/Sandnado.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Sandnado : ModProjectile { @@ -61,10 +61,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("Sandnado"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Sandnado"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -272,7 +272,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { float scaleFactor4 = 14f; - int num28 = mod.ProjectileType("MiniSandShark"); + int num28 = ModContent.ProjectileType(); if (flag) { if (!Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) diff --git a/Projectiles/Summon/SilvaCrystal.cs b/Projectiles/Summon/SilvaCrystal.cs index 928c000f51..85c267cb12 100644 --- a/Projectiles/Summon/SilvaCrystal.cs +++ b/Projectiles/Summon/SilvaCrystal.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SilvaCrystal : ModProjectile { @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("SilvaCrystal"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.silvaSummon) @@ -195,7 +195,7 @@ namespace CalamityMod.Projectiles.Summon vector156 = projectile.Center + vector155.RotatedByRandom(0.78539818525314331) * (Main.rand.NextFloat() * 0.5f + 0.75f); } float x4 = Main.rgbToHsl(new Color(Main.DiscoR, 203, 103)).X; - Projectile.NewProjectile(vector156.X, vector156.Y, 0f, 0f, mod.ProjectileType("SilvaCrystalExplosion"), projectile.damage, projectile.knockBack, projectile.owner, x4, (float)projectile.whoAmI); + Projectile.NewProjectile(vector156.X, vector156.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, x4, (float)projectile.whoAmI); num31 = num1083; } return; diff --git a/Projectiles/Summon/SilvaCrystalExplosion.cs b/Projectiles/Summon/SilvaCrystalExplosion.cs index ebc40b0876..3b83e4fb06 100644 --- a/Projectiles/Summon/SilvaCrystalExplosion.cs +++ b/Projectiles/Summon/SilvaCrystalExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SilvaCrystalExplosion : ModProjectile { @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Summon { Color newColor2 = Main.hslToRgb(projectile.ai[0], 1f, 0.5f); int num978 = (int)projectile.ai[1]; - if (num978 < 0 || num978 >= 1000 || (!Main.projectile[num978].active && Main.projectile[num978].type != mod.ProjectileType("SilvaCrystal"))) + if (num978 < 0 || num978 >= 1000 || (!Main.projectile[num978].active && Main.projectile[num978].type != ModContent.ProjectileType())) { projectile.ai[1] = -1f; } diff --git a/Projectiles/Summon/SirenSongFriendly.cs b/Projectiles/Summon/SirenSongFriendly.cs index 4f3b428c82..349aba3bb5 100644 --- a/Projectiles/Summon/SirenSongFriendly.cs +++ b/Projectiles/Summon/SirenSongFriendly.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SirenSongFriendly : ModProjectile { diff --git a/Projectiles/Summon/SlimeGod.cs b/Projectiles/Summon/SlimeGod.cs index c3c665f5b6..f116601098 100644 --- a/Projectiles/Summon/SlimeGod.cs +++ b/Projectiles/Summon/SlimeGod.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SlimeGod : ModProjectile { @@ -69,10 +69,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("SlimeGod"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("SlimeGod"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (!modPlayer.slimeGod) { projectile.active = false; diff --git a/Projectiles/Summon/SlimeGodAlt.cs b/Projectiles/Summon/SlimeGodAlt.cs index 5ba24133f7..9b877f1b14 100644 --- a/Projectiles/Summon/SlimeGodAlt.cs +++ b/Projectiles/Summon/SlimeGodAlt.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SlimeGodAlt : ModProjectile { @@ -69,10 +69,10 @@ namespace CalamityMod.Projectiles.Summon Main.player[projectile.owner].minionDamage); projectile.damage = damage2; } - bool flag64 = projectile.type == mod.ProjectileType("SlimeGodAlt"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("SlimeGod"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (!modPlayer.slimeGod) { projectile.active = false; diff --git a/Projectiles/Summon/SolarBeam.cs b/Projectiles/Summon/SolarBeam.cs index 5a4f986e93..9088dc5898 100644 --- a/Projectiles/Summon/SolarBeam.cs +++ b/Projectiles/Summon/SolarBeam.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SolarBeam : ModProjectile { diff --git a/Projectiles/Summon/SolarGod.cs b/Projectiles/Summon/SolarGod.cs index e9e8c3599b..cb52cb30b2 100644 --- a/Projectiles/Summon/SolarGod.cs +++ b/Projectiles/Summon/SolarGod.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SolarGod : ModProjectile { @@ -34,10 +34,10 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0f / 255f); - bool flag64 = projectile.type == mod.ProjectileType("SolarGod"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("SolarSpiritGod"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -141,7 +141,7 @@ namespace CalamityMod.Projectiles.Summon num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, mod.ProjectileType("SolarBeam"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); projectile.ai[0] = 30f; } } diff --git a/Projectiles/Summon/SolarPixie.cs b/Projectiles/Summon/SolarPixie.cs index 9cad40cf8e..b89c3490c4 100644 --- a/Projectiles/Summon/SolarPixie.cs +++ b/Projectiles/Summon/SolarPixie.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SolarPixie : ModProjectile { @@ -34,10 +34,10 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0f / 255f); - bool flag64 = projectile.type == mod.ProjectileType("SolarPixie"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("SolarSpirit"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) diff --git a/Projectiles/Summon/AngryChicken.cs b/Projectiles/Summon/SonOfYharon.cs similarity index 95% rename from Projectiles/Summon/AngryChicken.cs rename to Projectiles/Summon/SonOfYharon.cs index b9732ead73..27fe52928f 100644 --- a/Projectiles/Summon/AngryChicken.cs +++ b/Projectiles/Summon/SonOfYharon.cs @@ -4,11 +4,11 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class AngryChicken : ModProjectile + public class SonOfYharon : ModProjectile { public override void SetStaticDefaults() { @@ -69,10 +69,10 @@ namespace CalamityMod.Projectiles.Summon float num = (float)Main.rand.Next(90, 111) * 0.01f; num *= Main.essScale; Lighting.AddLight(projectile.Center, 1.2f * num, 0.8f * num, 0f * num); - bool flag64 = projectile.type == mod.ProjectileType("AngryChicken"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("AngryChicken"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("AngryChicken"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) diff --git a/Projectiles/Summon/AngryChicken.png b/Projectiles/Summon/SonOfYharon.png similarity index 100% rename from Projectiles/Summon/AngryChicken.png rename to Projectiles/Summon/SonOfYharon.png diff --git a/Projectiles/Summon/Spikecrag.cs b/Projectiles/Summon/Spikecrag.cs index c7d853da60..1ecfc8f23d 100644 --- a/Projectiles/Summon/Spikecrag.cs +++ b/Projectiles/Summon/Spikecrag.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Spikecrag : ModProjectile { @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Summon { float velocityX = Main.rand.NextFloat(-10f, 10f); float velocityY = Main.rand.NextFloat(-15f, -8f); - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), velocityX, velocityY, mod.ProjectileType("SpikecragSpike"), (int)((double)projectile.damage * 0.80), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), velocityX, velocityY, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.80), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Summon/SpikecragSpike.cs b/Projectiles/Summon/SpikecragSpike.cs index e2e21a791e..be5c69f319 100644 --- a/Projectiles/Summon/SpikecragSpike.cs +++ b/Projectiles/Summon/SpikecragSpike.cs @@ -1,7 +1,7 @@ using System; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class SpikecragSpike : ModProjectile { diff --git a/Projectiles/Summon/StormMarkSummon.cs b/Projectiles/Summon/StormMarkSummon.cs index 594a6fc937..d7e444f4ef 100644 --- a/Projectiles/Summon/StormMarkSummon.cs +++ b/Projectiles/Summon/StormMarkSummon.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class StormMarkSummon : ModProjectile { @@ -130,7 +130,7 @@ namespace CalamityMod.Projectiles.Summon projectile.localAI[1] += 1f; if (projectile.localAI[1] == 60f && projectile.owner == Main.myPlayer) { - int storm = Projectile.NewProjectile(projectile.Center, Vector2.Zero, mod.ProjectileType("Tornado"), projectile.damage, 2f, projectile.owner, 1f, 0f); + int storm = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, 2f, projectile.owner, 1f, 0f); Main.projectile[storm].minion = true; Main.projectile[storm].melee = false; } diff --git a/Projectiles/Summon/Urchin.cs b/Projectiles/Summon/Urchin.cs index aad45be107..cf82c318cf 100644 --- a/Projectiles/Summon/Urchin.cs +++ b/Projectiles/Summon/Urchin.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Urchin : ModProjectile { @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("Urchin"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.urchin) @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Summon } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - int spore = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("UrchinSpike"), projectile.damage, 1f, projectile.owner, 0f, 0f); + int spore = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), projectile.damage, 1f, projectile.owner, 0f, 0f); Main.projectile[spore].minion = true; Main.projectile[spore].minionSlots = 0f; } diff --git a/Projectiles/Summon/UrchinSpike.cs b/Projectiles/Summon/UrchinSpike.cs index d9d98f5572..aa3788c788 100644 --- a/Projectiles/Summon/UrchinSpike.cs +++ b/Projectiles/Summon/UrchinSpike.cs @@ -1,9 +1,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class UrchinSpike : ModProjectile { diff --git a/Projectiles/Summon/Valkyrie.cs b/Projectiles/Summon/Valkyrie.cs index daccbb571d..7264cbf40c 100644 --- a/Projectiles/Summon/Valkyrie.cs +++ b/Projectiles/Summon/Valkyrie.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class Valkyrie : ModProjectile { @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("Valkyrie"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.valkyrie) @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Summon float num637 = 0.05f; for (int num638 = 0; num638 < 1000; num638++) { - bool flag23 = Main.projectile[num638].type == mod.ProjectileType("Valkyrie"); + bool flag23 = Main.projectile[num638].type == ModContent.ProjectileType(); if (num638 != projectile.whoAmI && Main.projectile[num638].active && Main.projectile[num638].owner == projectile.owner && flag23 && Math.Abs(projectile.position.X - Main.projectile[num638].position.X) + Math.Abs(projectile.position.Y - Main.projectile[num638].position.Y) < (float)projectile.width) { if (projectile.position.X < Main.projectile[num638].position.X) diff --git a/Projectiles/Summon/SirenLure.cs b/Projectiles/Summon/WaterElementalMinion.cs similarity index 92% rename from Projectiles/Summon/SirenLure.cs rename to Projectiles/Summon/WaterElementalMinion.cs index 4bf406bf46..4dddd213c0 100644 --- a/Projectiles/Summon/SirenLure.cs +++ b/Projectiles/Summon/WaterElementalMinion.cs @@ -3,11 +3,11 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { - public class SirenLure : ModProjectile + public class WaterElementalMinion : ModProjectile { public int dust = 3; @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("SirenLure"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); if (!modPlayer.sirenWaifu && !modPlayer.allWaifus) @@ -159,14 +159,14 @@ namespace CalamityMod.Projectiles.Summon { projectile.spriteDirection = -1; } - int projectileType = mod.ProjectileType("WaterSpearFriendly"); + int projectileType = ModContent.ProjectileType(); if (Main.rand.NextBool(9)) { - projectileType = mod.ProjectileType("FrostMistFriendly"); + projectileType = ModContent.ProjectileType(); } else if (Main.rand.NextBool(9)) { - projectileType = mod.ProjectileType("SirenSongFriendly"); + projectileType = ModContent.ProjectileType(); } float num403 = Main.rand.Next(12, 20); Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); diff --git a/Projectiles/Summon/SirenLure.png b/Projectiles/Summon/WaterElementalMinion.png similarity index 100% rename from Projectiles/Summon/SirenLure.png rename to Projectiles/Summon/WaterElementalMinion.png diff --git a/Projectiles/Summon/WaterSpearFriendly.cs b/Projectiles/Summon/WaterSpearFriendly.cs index b4ed11c952..2409993b7f 100644 --- a/Projectiles/Summon/WaterSpearFriendly.cs +++ b/Projectiles/Summon/WaterSpearFriendly.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Summon +namespace CalamityMod.Projectiles { public class WaterSpearFriendly : ModProjectile { diff --git a/Projectiles/Summon/desktop.ini b/Projectiles/Summon/desktop.ini deleted file mode 100644 index 5c9af8eb7b..0000000000 --- a/Projectiles/Summon/desktop.ini +++ /dev/null @@ -1,2 +0,0 @@ -[LocalizedFileNames] -WaterSpear.png=@WaterSpear,0 diff --git a/Projectiles/SunkenSea/AquaStream.cs b/Projectiles/SunkenSea/AquaStream.cs index ce6d673ffa..885c0e616b 100644 --- a/Projectiles/SunkenSea/AquaStream.cs +++ b/Projectiles/SunkenSea/AquaStream.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class AquaStream : ModProjectile { diff --git a/Projectiles/SunkenSea/AquamarineBolt.cs b/Projectiles/SunkenSea/AquamarineBolt.cs index e2bebae5eb..14c51c01f3 100644 --- a/Projectiles/SunkenSea/AquamarineBolt.cs +++ b/Projectiles/SunkenSea/AquamarineBolt.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class AquamarineBolt : ModProjectile { diff --git a/Projectiles/SunkenSea/Aquashard.cs b/Projectiles/SunkenSea/Aquashard.cs index e4070c795f..bf55e940d8 100644 --- a/Projectiles/SunkenSea/Aquashard.cs +++ b/Projectiles/SunkenSea/Aquashard.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class Aquashard : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.SunkenSea } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("AquashardSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/SunkenSea/AquashardSplit.cs b/Projectiles/SunkenSea/AquashardSplit.cs index f9a2c030f7..f5bce7a5fd 100644 --- a/Projectiles/SunkenSea/AquashardSplit.cs +++ b/Projectiles/SunkenSea/AquashardSplit.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class AquashardSplit : ModProjectile { diff --git a/Projectiles/SunkenSea/ClamCrusherFlail.cs b/Projectiles/SunkenSea/ClamCrusherFlail.cs index cf7878adec..3ebd506408 100644 --- a/Projectiles/SunkenSea/ClamCrusherFlail.cs +++ b/Projectiles/SunkenSea/ClamCrusherFlail.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class ClamCrusherFlail : ModProjectile { @@ -193,11 +193,11 @@ namespace CalamityMod.Projectiles.SunkenSea { if (target.rarity != 2) { - target.AddBuff(mod.BuffType("SilvaStun"), 60); + target.AddBuff(ModContent.BuffType(), 60); } else if (projectile.ai[1] >= 45f && (projectile.ai[0] != 1f || projectile.ai[0] != 2f)) { - target.AddBuff(mod.BuffType("SilvaStun"), 30); + target.AddBuff(ModContent.BuffType(), 30); } } projectile.ai[0] = 1f; diff --git a/Projectiles/SunkenSea/ClamorRifleProj.cs b/Projectiles/SunkenSea/ClamorRifleProj.cs index 49d46035d2..d757bb1dc0 100644 --- a/Projectiles/SunkenSea/ClamorRifleProj.cs +++ b/Projectiles/SunkenSea/ClamorRifleProj.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class ClamorRifleProj : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.SunkenSea } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("ClamorRifleProjSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 118); diff --git a/Projectiles/SunkenSea/ClamorRifleProjSplit.cs b/Projectiles/SunkenSea/ClamorRifleProjSplit.cs index 52121b3f1c..743b7164b3 100644 --- a/Projectiles/SunkenSea/ClamorRifleProjSplit.cs +++ b/Projectiles/SunkenSea/ClamorRifleProjSplit.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class ClamorRifleProjSplit : ModProjectile { diff --git a/Projectiles/SunkenSea/CoralBubble.cs b/Projectiles/SunkenSea/CoralBubble.cs index 9cf8381eab..6a7fee5003 100644 --- a/Projectiles/SunkenSea/CoralBubble.cs +++ b/Projectiles/SunkenSea/CoralBubble.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class CoralBubble : ModProjectile { diff --git a/Projectiles/SunkenSea/CoralBubbleSmall.cs b/Projectiles/SunkenSea/CoralBubbleSmall.cs index e2602250f1..0378f4985d 100644 --- a/Projectiles/SunkenSea/CoralBubbleSmall.cs +++ b/Projectiles/SunkenSea/CoralBubbleSmall.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class CoralBubbleSmall : ModProjectile { diff --git a/Projectiles/SunkenSea/EutrophicScimitarProj.cs b/Projectiles/SunkenSea/EutrophicScimitarProj.cs index c34e6f0832..58e6429526 100644 --- a/Projectiles/SunkenSea/EutrophicScimitarProj.cs +++ b/Projectiles/SunkenSea/EutrophicScimitarProj.cs @@ -2,9 +2,9 @@ using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { class EutrophicScimitarProj : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.SunkenSea { if (target.rarity != 2 && !CalamityPlayer.areThereAnyDamnBosses) { - target.AddBuff(mod.BuffType("SilvaStun"), 15); + target.AddBuff(ModContent.BuffType(), 15); } } diff --git a/Projectiles/SunkenSea/EutrophicSpark.cs b/Projectiles/SunkenSea/EutrophicSpark.cs index 7de8f307ba..90f3b5791c 100644 --- a/Projectiles/SunkenSea/EutrophicSpark.cs +++ b/Projectiles/SunkenSea/EutrophicSpark.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class EutrophicSpark : ModProjectile { diff --git a/Projectiles/SunkenSea/PearlBurst.cs b/Projectiles/SunkenSea/PearlBurst.cs index 421de6feee..5dd1463a16 100644 --- a/Projectiles/SunkenSea/PearlBurst.cs +++ b/Projectiles/SunkenSea/PearlBurst.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class PearlBurst : ModProjectile { diff --git a/Projectiles/SunkenSea/PearlRain.cs b/Projectiles/SunkenSea/PearlRain.cs index 63eb670b0b..b58e35b16f 100644 --- a/Projectiles/SunkenSea/PearlRain.cs +++ b/Projectiles/SunkenSea/PearlRain.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class PearlRain : ModProjectile { diff --git a/Projectiles/SunkenSea/PendantProjectile1.cs b/Projectiles/SunkenSea/PendantProjectile1.cs index 440aa976fa..14b09fa320 100644 --- a/Projectiles/SunkenSea/PendantProjectile1.cs +++ b/Projectiles/SunkenSea/PendantProjectile1.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class PendantProjectile1 : ModProjectile { diff --git a/Projectiles/SunkenSea/PendantProjectile2.cs b/Projectiles/SunkenSea/PendantProjectile2.cs index 52456e02f6..add615c595 100644 --- a/Projectiles/SunkenSea/PendantProjectile2.cs +++ b/Projectiles/SunkenSea/PendantProjectile2.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class PendantProjectile2 : ModProjectile { diff --git a/Projectiles/SunkenSea/PendantProjectile3.cs b/Projectiles/SunkenSea/PendantProjectile3.cs index 393ad1e5b7..4e47f37a58 100644 --- a/Projectiles/SunkenSea/PendantProjectile3.cs +++ b/Projectiles/SunkenSea/PendantProjectile3.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class PendantProjectile3 : ModProjectile { diff --git a/Projectiles/SunkenSea/PoseidonTyphoon.cs b/Projectiles/SunkenSea/PoseidonTyphoon.cs index 1635d03d94..e9138ad4dd 100644 --- a/Projectiles/SunkenSea/PoseidonTyphoon.cs +++ b/Projectiles/SunkenSea/PoseidonTyphoon.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class PoseidonTyphoon : ModProjectile { diff --git a/Projectiles/SunkenSea/Prismalline.cs b/Projectiles/SunkenSea/Prismalline.cs index f4b5b26d12..610c9f4d81 100644 --- a/Projectiles/SunkenSea/Prismalline.cs +++ b/Projectiles/SunkenSea/Prismalline.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class Prismalline : ModProjectile { @@ -53,12 +53,12 @@ namespace CalamityMod.Projectiles.SunkenSea speed *= (float)Main.rand.Next(30, 61) * 0.1f * 2f; if (numSpecProj < 2 && !hitEnemy) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("Prismalline3"), (int)((double)projectile.damage * 1.25), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 1.25), projectile.knockBack, projectile.owner, 0f, 0f); ++numSpecProj; } else { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("Prismalline2"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/SunkenSea/Prismalline2.cs b/Projectiles/SunkenSea/Prismalline2.cs index fff9ee144d..611a56b5c9 100644 --- a/Projectiles/SunkenSea/Prismalline2.cs +++ b/Projectiles/SunkenSea/Prismalline2.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class Prismalline2 : ModProjectile { diff --git a/Projectiles/SunkenSea/Prismalline3.cs b/Projectiles/SunkenSea/Prismalline3.cs index d453815294..8ee09ecfa1 100644 --- a/Projectiles/SunkenSea/Prismalline3.cs +++ b/Projectiles/SunkenSea/Prismalline3.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class Prismalline3 : ModProjectile { diff --git a/Projectiles/SunkenSea/SeafoamBomb.cs b/Projectiles/SunkenSea/SeafoamBomb.cs index a03ea1ad40..72212b14aa 100644 --- a/Projectiles/SunkenSea/SeafoamBomb.cs +++ b/Projectiles/SunkenSea/SeafoamBomb.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class SeafoamBomb : ModProjectile { @@ -40,7 +40,7 @@ namespace CalamityMod.Projectiles.SunkenSea projectile.localNPCHitCooldown = 10; projectile.Damage(); Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("SeafoamBubble"), (int)((double)projectile.damage * 0.4), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.4), 0f, projectile.owner, 0f, 0f); for (int num625 = 0; num625 < 3; num625++) { float scaleFactor10 = 0.33f; diff --git a/Projectiles/SunkenSea/SeafoamBubble.cs b/Projectiles/SunkenSea/SeafoamBubble.cs index 452ccf8076..83a2d3ee5d 100644 --- a/Projectiles/SunkenSea/SeafoamBubble.cs +++ b/Projectiles/SunkenSea/SeafoamBubble.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class SeafoamBubble : ModProjectile { diff --git a/Projectiles/SunkenSea/SeashineSwordProj.cs b/Projectiles/SunkenSea/SeashineSwordProj.cs index cc66834112..40c567c440 100644 --- a/Projectiles/SunkenSea/SeashineSwordProj.cs +++ b/Projectiles/SunkenSea/SeashineSwordProj.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { class SeashineSwordProj : ModProjectile { diff --git a/Projectiles/SunkenSea/SerpentineBody.cs b/Projectiles/SunkenSea/SerpentineBody.cs index cadb99739c..f80a98ff5f 100644 --- a/Projectiles/SunkenSea/SerpentineBody.cs +++ b/Projectiles/SunkenSea/SerpentineBody.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class SerpentineBody : ModProjectile { diff --git a/Projectiles/SunkenSea/SerpentineHead.cs b/Projectiles/SunkenSea/SerpentineHead.cs index b51b65ef21..d5362af113 100644 --- a/Projectiles/SunkenSea/SerpentineHead.cs +++ b/Projectiles/SunkenSea/SerpentineHead.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class SerpentineHead : ModProjectile { diff --git a/Projectiles/SunkenSea/SerpentineTail.cs b/Projectiles/SunkenSea/SerpentineTail.cs index ef2c2d3ffd..6ffdca62dd 100644 --- a/Projectiles/SunkenSea/SerpentineTail.cs +++ b/Projectiles/SunkenSea/SerpentineTail.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class SerpentineTail : ModProjectile { diff --git a/Projectiles/SunkenSea/Shellfish.cs b/Projectiles/SunkenSea/Shellfish.cs index 6a932eafa0..32c49a4976 100644 --- a/Projectiles/SunkenSea/Shellfish.cs +++ b/Projectiles/SunkenSea/Shellfish.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class Shellfish : ModProjectile { @@ -56,10 +56,10 @@ namespace CalamityMod.Projectiles.SunkenSea } spawnDust = false; } - bool flag64 = projectile.type == mod.ProjectileType("Shellfish"); + bool flag64 = projectile.type == ModContent.ProjectileType(); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - player.AddBuff(mod.BuffType("Shellfish"), 3600); + player.AddBuff(ModContent.BuffType(), 3600); if (flag64) { if (player.dead) @@ -467,12 +467,12 @@ namespace CalamityMod.Projectiles.SunkenSea public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.buffImmune[mod.BuffType("ShellfishEating")] = false; - if (target.type == mod.NPCType("CeaselessVoid") || target.type == mod.NPCType("EidolonWyrmHeadHuge")) + target.buffImmune[ModContent.BuffType()] = false; + if (target.type == ModContent.NPCType() || target.type == ModContent.NPCType()) { - target.buffImmune[mod.BuffType("ShellfishEating")] = true; + target.buffImmune[ModContent.BuffType()] = true; } - target.AddBuff(mod.BuffType("ShellfishEating"), 600000); + target.AddBuff(ModContent.BuffType(), 600000); } } } diff --git a/Projectiles/SunkenSea/WhirlpoolProjectile.cs b/Projectiles/SunkenSea/WhirlpoolProjectile.cs index deda3ccd4a..426a6a9a46 100644 --- a/Projectiles/SunkenSea/WhirlpoolProjectile.cs +++ b/Projectiles/SunkenSea/WhirlpoolProjectile.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.SunkenSea +namespace CalamityMod.Projectiles { public class WhirlpoolProjectile : ModProjectile { @@ -32,28 +32,28 @@ namespace CalamityMod.Projectiles.SunkenSea switch (Main.rand.Next(1, 9)) { case 1: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0, -10, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 1.2f/*X Increment*/, 0.2f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0, -10, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, 1.2f/*X Increment*/, 0.2f/*Y Increment*/); break; case 2: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 5, -5, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 0.7f/*X Increment*/, 0.7f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 5, -5, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, 0.7f/*X Increment*/, 0.7f/*Y Increment*/); break; case 3: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 10, 0, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 0.2f/*X Increment*/, 1.2f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 10, 0, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, 0.2f/*X Increment*/, 1.2f/*Y Increment*/); break; case 4: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 5, 5, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -0.7f/*X Increment*/, 0.7f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 5, 5, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, -0.7f/*X Increment*/, 0.7f/*Y Increment*/); break; case 5: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -0, 10, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -1.2f/*X Increment*/, -0.2f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -0, 10, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, -1.2f/*X Increment*/, -0.2f/*Y Increment*/); break; case 6: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -5, 5, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -0.7f/*X Increment*/, -0.7f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -5, 5, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, -0.7f/*X Increment*/, -0.7f/*Y Increment*/); break; case 7: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -10, -0, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -0.2f/*X Increment*/, -1.2f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -10, -0, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, -0.2f/*X Increment*/, -1.2f/*Y Increment*/); break; case 8: - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -10, -10, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 0.7f/*X Increment*/, -0.7f/*Y Increment*/); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -10, -10, ModContent.ProjectileType(), 4, 0.0f, projectile.owner, 0.7f/*X Increment*/, -0.7f/*Y Increment*/); break; } } diff --git a/Projectiles/Typeless/AstralFallingSand.cs b/Projectiles/Typeless/AstralFallingSand.cs index 188866f137..d01302eab1 100644 --- a/Projectiles/Typeless/AstralFallingSand.cs +++ b/Projectiles/Typeless/AstralFallingSand.cs @@ -2,9 +2,9 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class AstralFallingSand : ModProjectile { @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Typeless if (Main.tile[tileX, tileY].type == TileID.MinecartTrack) return; - WorldGen.PlaceTile(tileX, tileY, mod.TileType("AstralSand"), false, true); + WorldGen.PlaceTile(tileX, tileY, ModContent.TileType(), false, true); WorldGen.SquareTileFrame(tileX, tileY); } } diff --git a/Projectiles/Typeless/AstralSpray.cs b/Projectiles/Typeless/AstralSpray.cs index 1fe5438b5a..25a96a0b3c 100644 --- a/Projectiles/Typeless/AstralSpray.cs +++ b/Projectiles/Typeless/AstralSpray.cs @@ -2,9 +2,9 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class AstralSpray : ModProjectile { diff --git a/Projectiles/Typeless/AstralStar.cs b/Projectiles/Typeless/AstralStar.cs index a2397a20a4..0579558d28 100644 --- a/Projectiles/Typeless/AstralStar.cs +++ b/Projectiles/Typeless/AstralStar.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class AstralStar : ModProjectile { @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Typeless if (Main.rand.NextBool(16)) { Vector2 value3 = Vector2.UnitX.RotatedByRandom(1.5707963705062866).RotatedBy((double)projectile.velocity.ToRotation(), default); - int num59 = Dust.NewDust(projectile.position, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); + int num59 = Dust.NewDust(projectile.position, projectile.width, projectile.height, ModContent.DustType(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); Main.dust[num59].velocity = value3 * 0.66f; Main.dust[num59].position = projectile.Center + value3 * 12f; } @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Typeless projectile.light = 0.9f; if (Main.rand.NextBool(10)) { - Dust.NewDust(projectile.position, projectile.width, projectile.height, mod.DustType("AstralOrange"), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); + Dust.NewDust(projectile.position, projectile.width, projectile.height, ModContent.DustType(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, default, 1.2f); } if (Main.rand.NextBool(20)) { @@ -89,7 +89,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override Color? GetAlpha(Color lightColor) @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Typeless projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); for (int num621 = 0; num621 < 5; num621++) { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.2f); + int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -117,10 +117,10 @@ namespace CalamityMod.Projectiles.Typeless } for (int num623 = 0; num623 < 5; num623++) { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1.7f); + int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.7f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default, 1f); + num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); Main.dust[num624].velocity *= 2f; } for (int num480 = 0; num480 < 3; num480++) diff --git a/Projectiles/Typeless/AtaxiaOrb.cs b/Projectiles/Typeless/AtaxiaOrb.cs index 3ddbe6368c..32ac47219a 100644 --- a/Projectiles/Typeless/AtaxiaOrb.cs +++ b/Projectiles/Typeless/AtaxiaOrb.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class AtaxiaOrb : ModProjectile { diff --git a/Projectiles/Typeless/BallisticPoisonCloud.cs b/Projectiles/Typeless/BallisticPoisonCloud.cs index 85c298c4c1..393e532f8a 100644 --- a/Projectiles/Typeless/BallisticPoisonCloud.cs +++ b/Projectiles/Typeless/BallisticPoisonCloud.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class BallisticPoisonCloud : ModProjectile { diff --git a/Projectiles/Typeless/BallisticPoisonCloud2.cs b/Projectiles/Typeless/BallisticPoisonCloud2.cs index b6dac364c0..833f86a0f9 100644 --- a/Projectiles/Typeless/BallisticPoisonCloud2.cs +++ b/Projectiles/Typeless/BallisticPoisonCloud2.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class BallisticPoisonCloud2 : ModProjectile { diff --git a/Projectiles/Typeless/BallisticPoisonCloud3.cs b/Projectiles/Typeless/BallisticPoisonCloud3.cs index b0ac1bcf78..83c6c58cfa 100644 --- a/Projectiles/Typeless/BallisticPoisonCloud3.cs +++ b/Projectiles/Typeless/BallisticPoisonCloud3.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class BallisticPoisonCloud3 : ModProjectile { diff --git a/Projectiles/Typeless/BloodBomb.cs b/Projectiles/Typeless/BloodBomb.cs index bd90118d6c..7458b4823a 100644 --- a/Projectiles/Typeless/BloodBomb.cs +++ b/Projectiles/Typeless/BloodBomb.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class BloodBomb : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Typeless { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("BloodBombExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Typeless/BloodBombExplosion.cs b/Projectiles/Typeless/BloodBombExplosion.cs index b43102dc48..99fcb00e98 100644 --- a/Projectiles/Typeless/BloodBombExplosion.cs +++ b/Projectiles/Typeless/BloodBombExplosion.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class BloodBombExplosion : ModProjectile { diff --git a/Projectiles/Typeless/ChaosBlaze.cs b/Projectiles/Typeless/ChaosBlaze.cs index de4ce8c603..4c0b2e4ff0 100644 --- a/Projectiles/Typeless/ChaosBlaze.cs +++ b/Projectiles/Typeless/ChaosBlaze.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class ChaosBlaze : ModProjectile { diff --git a/Projectiles/Typeless/ChaosFlare.cs b/Projectiles/Typeless/ChaosFlare.cs index 44e059bc0a..bb321113cc 100644 --- a/Projectiles/Typeless/ChaosFlare.cs +++ b/Projectiles/Typeless/ChaosFlare.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class ChaosFlare : ModProjectile { @@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); + target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(BuffID.OnFire, 180); } } diff --git a/Projectiles/Typeless/ChaosFlare2.cs b/Projectiles/Typeless/ChaosFlare2.cs index 046e1e39ec..7f0c650d5e 100644 --- a/Projectiles/Typeless/ChaosFlare2.cs +++ b/Projectiles/Typeless/ChaosFlare2.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class ChaosFlare2 : ModProjectile { diff --git a/Projectiles/Typeless/ChaosGeyser.cs b/Projectiles/Typeless/ChaosGeyser.cs index d2504f2b21..96fef858fe 100644 --- a/Projectiles/Typeless/ChaosGeyser.cs +++ b/Projectiles/Typeless/ChaosGeyser.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class ChaosGeyser : ModProjectile { diff --git a/Projectiles/Typeless/DarkEnergySpawn.cs b/Projectiles/Typeless/DarkEnergySpawn.cs index 2c4987b79f..4c37b0e276 100644 --- a/Projectiles/Typeless/DarkEnergySpawn.cs +++ b/Projectiles/Typeless/DarkEnergySpawn.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class DarkEnergySpawn : ModProjectile { @@ -30,9 +30,9 @@ namespace CalamityMod.Projectiles.Typeless if (projectile.ai[1] >= 0) { - NPC.NewNPC((int)projectile.Center.X - 200, (int)projectile.Center.Y - 200, mod.NPCType("DarkEnergy")); - NPC.NewNPC((int)projectile.Center.X + 200, (int)projectile.Center.Y - 200, mod.NPCType("DarkEnergy2")); - NPC.NewNPC((int)projectile.Center.X, (int)projectile.Center.Y + 200, mod.NPCType("DarkEnergy3")); + NPC.NewNPC((int)projectile.Center.X - 200, (int)projectile.Center.Y - 200, ModContent.NPCType()); + NPC.NewNPC((int)projectile.Center.X + 200, (int)projectile.Center.Y - 200, ModContent.NPCType()); + NPC.NewNPC((int)projectile.Center.X, (int)projectile.Center.Y + 200, ModContent.NPCType()); projectile.ai[1] = -30; } } diff --git a/Projectiles/Typeless/DragonDust.cs b/Projectiles/Typeless/DragonDust.cs index 0744e8b536..84201205b1 100644 --- a/Projectiles/Typeless/DragonDust.cs +++ b/Projectiles/Typeless/DragonDust.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class DragonDust : ModProjectile { @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 0; - target.AddBuff(mod.BuffType("HolyLight"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Typeless/FabsolDust.cs b/Projectiles/Typeless/FabsolDust.cs index 894e335d23..08f1c4434f 100644 --- a/Projectiles/Typeless/FabsolDust.cs +++ b/Projectiles/Typeless/FabsolDust.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class FabsolDust : ModProjectile { diff --git a/Projectiles/Typeless/FlareExplosion.cs b/Projectiles/Typeless/FlareExplosion.cs index 9dde97dda5..1ec57a6d06 100644 --- a/Projectiles/Typeless/FlareExplosion.cs +++ b/Projectiles/Typeless/FlareExplosion.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class FlareExplosion : ModProjectile { @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 60); + target.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/Projectiles/Typeless/FuckYou.cs b/Projectiles/Typeless/FuckYou.cs index b4c784587c..4e5d87b810 100644 --- a/Projectiles/Typeless/FuckYou.cs +++ b/Projectiles/Typeless/FuckYou.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class FuckYou : ModProjectile { diff --git a/Projectiles/Typeless/GalaxySmasherHammer.cs b/Projectiles/Typeless/GalaxySmasherHammer.cs index b97aafb760..ff2a857cf6 100644 --- a/Projectiles/Typeless/GalaxySmasherHammer.cs +++ b/Projectiles/Typeless/GalaxySmasherHammer.cs @@ -1,12 +1,12 @@ -using CalamityMod.Items.Weapons; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GalaxySmasherHammer : ModProjectile { @@ -166,10 +166,10 @@ namespace CalamityMod.Projectiles.Typeless Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); // Applies God Slayer Inferno on contact. - target.AddBuff(mod.BuffType("GodSlayerInferno"), 480); + target.AddBuff(ModContent.BuffType(), 480); // Three death lasers (aka "Nebula Shots") swarm the target. - int laserID = mod.ProjectileType("NebulaShot"); + int laserID = ModContent.ProjectileType(); int laserDamage = (int)(0.2f * GalaxySmasherMelee.BaseDamage); float laserKB = 2.5f; int numLasers = 3; diff --git a/Projectiles/Typeless/GhostlyBolt.cs b/Projectiles/Typeless/GhostlyBolt.cs index 76d6fe8980..77806c1a6f 100644 --- a/Projectiles/Typeless/GhostlyBolt.cs +++ b/Projectiles/Typeless/GhostlyBolt.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GhostlyBolt : ModProjectile { diff --git a/Projectiles/Typeless/GodKiller.cs b/Projectiles/Typeless/GodKiller.cs index 15c6185948..8f7685234c 100644 --- a/Projectiles/Typeless/GodKiller.cs +++ b/Projectiles/Typeless/GodKiller.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GodKiller : ModProjectile { @@ -134,7 +134,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 180); + target.AddBuff(ModContent.BuffType(), 180); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Typeless/GodSlayerBlaze.cs b/Projectiles/Typeless/GodSlayerBlaze.cs index 063dd1dfc5..d249536c9c 100644 --- a/Projectiles/Typeless/GodSlayerBlaze.cs +++ b/Projectiles/Typeless/GodSlayerBlaze.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GodSlayerBlaze : ModProjectile { @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Typeless projectile.ai[0] += 4f; int num462 = 0; float scale = 0.7f; - int dustType = Main.rand.NextBool(2) ? mod.DustType("AstralOrange") : mod.DustType("AstralBlue"); + int dustType = Main.rand.NextBool(2) ? ModContent.DustType() : ModContent.DustType(); if (projectile.ai[1] == 0f) { scale = 1.5f; @@ -76,9 +76,9 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { if (projectile.ai[1] == 1f) - target.AddBuff(mod.BuffType("AstralInfectionDebuff"), 300); + target.AddBuff(ModContent.BuffType(), 300); else - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Typeless/GodSlayerOrb.cs b/Projectiles/Typeless/GodSlayerOrb.cs index 90b8184d20..8f361c1c04 100644 --- a/Projectiles/Typeless/GodSlayerOrb.cs +++ b/Projectiles/Typeless/GodSlayerOrb.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GodSlayerOrb : ModProjectile { @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Typeless/GodSlayerPhantom.cs b/Projectiles/Typeless/GodSlayerPhantom.cs index d0cec6d1cf..35ccff99e0 100644 --- a/Projectiles/Typeless/GodSlayerPhantom.cs +++ b/Projectiles/Typeless/GodSlayerPhantom.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GodSlayerPhantom : ModProjectile { @@ -126,7 +126,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void Kill(int timeLeft) diff --git a/Projectiles/Typeless/GodSlayerShrapnel.cs b/Projectiles/Typeless/GodSlayerShrapnel.cs index 08e2ad80b5..78ccf15326 100644 --- a/Projectiles/Typeless/GodSlayerShrapnel.cs +++ b/Projectiles/Typeless/GodSlayerShrapnel.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GodSlayerShrapnel : ModProjectile { diff --git a/Projectiles/Typeless/GodSlayerShrapnelRound.cs b/Projectiles/Typeless/GodSlayerShrapnelRound.cs index eec735a4f6..429c29397a 100644 --- a/Projectiles/Typeless/GodSlayerShrapnelRound.cs +++ b/Projectiles/Typeless/GodSlayerShrapnelRound.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GodSlayerShrapnelRound : ModProjectile { @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Typeless } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("GodSlayerShrapnel"), (int)((double)projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Typeless/GoldenGun.cs b/Projectiles/Typeless/GoldenGun.cs index 332d255b3a..e03403e526 100644 --- a/Projectiles/Typeless/GoldenGun.cs +++ b/Projectiles/Typeless/GoldenGun.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GoldenGun : ModProjectile { diff --git a/Projectiles/Typeless/GrenadeRound.cs b/Projectiles/Typeless/GrenadeRound.cs index 1d934b6471..d101febf11 100644 --- a/Projectiles/Typeless/GrenadeRound.cs +++ b/Projectiles/Typeless/GrenadeRound.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class GrenadeRound : ModProjectile { diff --git a/Projectiles/Typeless/HolyEruption.cs b/Projectiles/Typeless/HolyEruption.cs index adf6336e08..6e5a948ac1 100644 --- a/Projectiles/Typeless/HolyEruption.cs +++ b/Projectiles/Typeless/HolyEruption.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class HolyEruption : ModProjectile { @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Typeless/HolyExplosion.cs b/Projectiles/Typeless/HolyExplosion.cs index 74d8264014..020a8c405d 100644 --- a/Projectiles/Typeless/HolyExplosion.cs +++ b/Projectiles/Typeless/HolyExplosion.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class HolyExplosion : ModProjectile { diff --git a/Projectiles/Typeless/HolyExplosionSupreme.cs b/Projectiles/Typeless/HolyExplosionSupreme.cs index c5cf447b7b..5be2acb9ac 100644 --- a/Projectiles/Typeless/HolyExplosionSupreme.cs +++ b/Projectiles/Typeless/HolyExplosionSupreme.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class HolyExplosionSupreme : ModProjectile { diff --git a/Projectiles/Typeless/HolyFlameBomb.cs b/Projectiles/Typeless/HolyFlameBomb.cs index 3eb6cd60b2..3ab73fa188 100644 --- a/Projectiles/Typeless/HolyFlameBomb.cs +++ b/Projectiles/Typeless/HolyFlameBomb.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class HolyFlameBomb : ModProjectile { @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("HolyLight"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Typeless/LunicBeam.cs b/Projectiles/Typeless/LunicBeam.cs index 14c24c006e..8debc4d58d 100644 --- a/Projectiles/Typeless/LunicBeam.cs +++ b/Projectiles/Typeless/LunicBeam.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class LunicBeam : ModProjectile { @@ -207,7 +207,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("MarkedforDeath"), 300); + target.AddBuff(ModContent.BuffType(), 300); } public override void Kill(int timeLeft) diff --git a/Projectiles/Typeless/MageHammerBoom.cs b/Projectiles/Typeless/MageHammerBoom.cs index 7e7f15bfa5..c68c763e40 100644 --- a/Projectiles/Typeless/MageHammerBoom.cs +++ b/Projectiles/Typeless/MageHammerBoom.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class MageHammerBoom : ModProjectile { diff --git a/Projectiles/Typeless/MagnumRound.cs b/Projectiles/Typeless/MagnumRound.cs index 88ab5f7a4a..e302203589 100644 --- a/Projectiles/Typeless/MagnumRound.cs +++ b/Projectiles/Typeless/MagnumRound.cs @@ -1,9 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class MagnumRound : ModProjectile { diff --git a/Projectiles/Typeless/MarkRound.cs b/Projectiles/Typeless/MarkRound.cs index 3e5b376b24..080b9257d7 100644 --- a/Projectiles/Typeless/MarkRound.cs +++ b/Projectiles/Typeless/MarkRound.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class MarkRound : ModProjectile { @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("MarkedforDeath"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Typeless/MomentumCapacitorOrb.cs b/Projectiles/Typeless/MomentumCapacitorOrb.cs index ad36e8eeb5..60c38647e4 100644 --- a/Projectiles/Typeless/MomentumCapacitorOrb.cs +++ b/Projectiles/Typeless/MomentumCapacitorOrb.cs @@ -1,11 +1,8 @@ using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class MomentumCapacitorOrb : ModProjectile { @@ -47,7 +44,7 @@ namespace CalamityMod.Projectiles.Typeless } for (int k = 0; k < Main.projectile.Length; k++) { - if (Main.projectile[k].type == mod.ProjectileType("SlickCaneProjectile")) continue; + if (Main.projectile[k].type == ModContent.ProjectileType()) continue; if (Main.projectile[k].owner == projectile.owner && Main.projectile[k].Calamity().rogue && !Main.projectile[k].Calamity().momentumCapacitatorBoost && Main.projectile[k].friendly) { diff --git a/Projectiles/Typeless/NanoblackMain.cs b/Projectiles/Typeless/NanoblackMain.cs index 841582a25f..d29f777432 100644 --- a/Projectiles/Typeless/NanoblackMain.cs +++ b/Projectiles/Typeless/NanoblackMain.cs @@ -1,12 +1,12 @@ -using CalamityMod.Items.Weapons; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class NanoblackMain : ModProjectile { @@ -143,7 +143,7 @@ namespace CalamityMod.Projectiles.Typeless private void SpawnEnergyBlade() { - int bladeID = mod.ProjectileType("NanoblackSplit"); + int bladeID = ModContent.ProjectileType(); int bladeDamage = NanoblackReaperMelee.BaseDamage / 5; float bladeKB = 3f; float spin = (projectile.direction <= 0) ? -1f : 1f; diff --git a/Projectiles/Typeless/NanoblackSplit.cs b/Projectiles/Typeless/NanoblackSplit.cs index 63c7f89c43..8b8285bd07 100644 --- a/Projectiles/Typeless/NanoblackSplit.cs +++ b/Projectiles/Typeless/NanoblackSplit.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class NanoblackSplit : ModProjectile { diff --git a/Projectiles/Typeless/Nanotech.cs b/Projectiles/Typeless/Nanotech.cs index c5c3e8d3e5..c2be1cfb20 100644 --- a/Projectiles/Typeless/Nanotech.cs +++ b/Projectiles/Typeless/Nanotech.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class Nanotech : ModProjectile { diff --git a/Projectiles/Typeless/NebulaDust.cs b/Projectiles/Typeless/NebulaDust.cs index 8779320765..9856d1b6a5 100644 --- a/Projectiles/Typeless/NebulaDust.cs +++ b/Projectiles/Typeless/NebulaDust.cs @@ -1,8 +1,8 @@ using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class NebulaDust : ModProjectile { diff --git a/Projectiles/Typeless/NebulaStar.cs b/Projectiles/Typeless/NebulaStar.cs index 82992ea5ae..2abee1edf8 100644 --- a/Projectiles/Typeless/NebulaStar.cs +++ b/Projectiles/Typeless/NebulaStar.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class NebulaStar : ModProjectile { @@ -180,7 +180,7 @@ namespace CalamityMod.Projectiles.Typeless Vector2 value10 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); value10.Normalize(); value10 *= 0.3f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value10.X, value10.Y, mod.ProjectileType("NebulaDust"), projectile.damage, 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value10.X, value10.Y, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner, 0f, 0f); } } diff --git a/Projectiles/Typeless/NobodyKnows.cs b/Projectiles/Typeless/NobodyKnows.cs index fbade8a6d3..3fbeacbed7 100644 --- a/Projectiles/Typeless/NobodyKnows.cs +++ b/Projectiles/Typeless/NobodyKnows.cs @@ -1,6 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class NobodyKnows : ModProjectile { diff --git a/Projectiles/Typeless/OmegaBlueTentacle.cs b/Projectiles/Typeless/OmegaBlueTentacle.cs index 5dee42a1ca..4b682efc60 100644 --- a/Projectiles/Typeless/OmegaBlueTentacle.cs +++ b/Projectiles/Typeless/OmegaBlueTentacle.cs @@ -4,9 +4,9 @@ using Terraria; using Terraria.DataStructures; using Terraria.Graphics.Shaders; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class OmegaBlueTentacle : ModProjectile { diff --git a/Projectiles/Typeless/PoisonousSeawater.cs b/Projectiles/Typeless/PoisonousSeawater.cs index c30a5b5070..cf308c161d 100644 --- a/Projectiles/Typeless/PoisonousSeawater.cs +++ b/Projectiles/Typeless/PoisonousSeawater.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class PoisonousSeawater : ModProjectile { diff --git a/Projectiles/Typeless/ReaverBlast.cs b/Projectiles/Typeless/ReaverBlast.cs index de61231b68..91d0aad30a 100644 --- a/Projectiles/Typeless/ReaverBlast.cs +++ b/Projectiles/Typeless/ReaverBlast.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class ReaverBlast : ModProjectile { diff --git a/Projectiles/Typeless/Seashell.cs b/Projectiles/Typeless/Seashell.cs index ba90585929..a0c5808ed9 100644 --- a/Projectiles/Typeless/Seashell.cs +++ b/Projectiles/Typeless/Seashell.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class Seashell : ModProjectile { diff --git a/Projectiles/Typeless/SkyFlareFriendly.cs b/Projectiles/Typeless/SkyFlareFriendly.cs index ee16adf028..8aa3186916 100644 --- a/Projectiles/Typeless/SkyFlareFriendly.cs +++ b/Projectiles/Typeless/SkyFlareFriendly.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class SkyFlareFriendly : ModProjectile { diff --git a/Projectiles/Typeless/SparkInfernal.cs b/Projectiles/Typeless/SparkInfernal.cs index 18b59ae747..03ab8166dc 100644 --- a/Projectiles/Typeless/SparkInfernal.cs +++ b/Projectiles/Typeless/SparkInfernal.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class SparkInfernal : ModProjectile { @@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("InfernadoMarkFriendly"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Typeless/StandingFire.cs b/Projectiles/Typeless/StandingFire.cs index 27df7b36ed..53e082ac24 100644 --- a/Projectiles/Typeless/StandingFire.cs +++ b/Projectiles/Typeless/StandingFire.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class StandingFire : ModProjectile { @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 7; - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Typeless/StellarContemptHammer.cs b/Projectiles/Typeless/StellarContemptHammer.cs index f2f5fd7b4a..f5fdf9f04c 100644 --- a/Projectiles/Typeless/StellarContemptHammer.cs +++ b/Projectiles/Typeless/StellarContemptHammer.cs @@ -1,12 +1,12 @@ -using CalamityMod.Items.Weapons; +using CalamityMod.Items; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class StellarContemptHammer : ModProjectile { @@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.Typeless // Applies Nightwither on contact at night. if (!Main.dayTime) - target.AddBuff(mod.BuffType("Nightwither"), 480); + target.AddBuff(ModContent.BuffType(), 480); // Do not drop lunar flares on dummies. if (target.type == NPCID.TargetDummy) diff --git a/Projectiles/Typeless/StickyFeatherAero.cs b/Projectiles/Typeless/StickyFeatherAero.cs index 55d894afeb..8f3cc1a600 100644 --- a/Projectiles/Typeless/StickyFeatherAero.cs +++ b/Projectiles/Typeless/StickyFeatherAero.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class StickyFeatherAero : ModProjectile { diff --git a/Projectiles/Typeless/StormBolt.cs b/Projectiles/Typeless/StormBolt.cs index ab58560c2b..8b566e0317 100644 --- a/Projectiles/Typeless/StormBolt.cs +++ b/Projectiles/Typeless/StormBolt.cs @@ -1,7 +1,7 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class StormBolt : ModProjectile { @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Typeless { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("StormMarkSummon"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Typeless/TarraEnergy.cs b/Projectiles/Typeless/TarraEnergy.cs index 3aa7c8b5eb..198596f37c 100644 --- a/Projectiles/Typeless/TarraEnergy.cs +++ b/Projectiles/Typeless/TarraEnergy.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class TarraEnergy : ModProjectile { diff --git a/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs b/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs index 76277f16f1..20e15c4c47 100644 --- a/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs +++ b/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class TheDeadlyMicrobeProjectile : ModProjectile { diff --git a/Projectiles/Typeless/TrueBattleSpawn.cs b/Projectiles/Typeless/TrueBattleSpawn.cs index 44fd3cc96a..4ed8bf3b57 100644 --- a/Projectiles/Typeless/TrueBattleSpawn.cs +++ b/Projectiles/Typeless/TrueBattleSpawn.cs @@ -1,8 +1,8 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class TrueBattleSpawn : ModProjectile { @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Typeless if (projectile.ai[1] >= 0) { - NPC.SpawnOnPlayer(player.whoAmI, mod.NPCType("CalamitasRun3")); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); projectile.ai[1] = -30; } } diff --git a/Projectiles/Typeless/VanquisherArrow2.cs b/Projectiles/Typeless/VanquisherArrow2.cs index 0c00843240..809b93ea35 100644 --- a/Projectiles/Typeless/VanquisherArrow2.cs +++ b/Projectiles/Typeless/VanquisherArrow2.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class VanquisherArrow2 : ModProjectile { @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Typeless public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Typeless/XerocBlast.cs b/Projectiles/Typeless/XerocBlast.cs index 9cfb1b6ead..91f5cb66a0 100644 --- a/Projectiles/Typeless/XerocBlast.cs +++ b/Projectiles/Typeless/XerocBlast.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class XerocBlast : ModProjectile { diff --git a/Projectiles/Typeless/XerocBubble.cs b/Projectiles/Typeless/XerocBubble.cs index ac3c2d816e..2d4d7bfe07 100644 --- a/Projectiles/Typeless/XerocBubble.cs +++ b/Projectiles/Typeless/XerocBubble.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class XerocBubble : ModProjectile { diff --git a/Projectiles/Typeless/XerocFire.cs b/Projectiles/Typeless/XerocFire.cs index 298e7fd0c1..f4246ce280 100644 --- a/Projectiles/Typeless/XerocFire.cs +++ b/Projectiles/Typeless/XerocFire.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class XerocFire : ModProjectile { diff --git a/Projectiles/Typeless/XerocOrb.cs b/Projectiles/Typeless/XerocOrb.cs index 531e688a7d..62bdd88797 100644 --- a/Projectiles/Typeless/XerocOrb.cs +++ b/Projectiles/Typeless/XerocOrb.cs @@ -2,9 +2,9 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class XerocOrb : ModProjectile { diff --git a/Projectiles/Typeless/XerocStar.cs b/Projectiles/Typeless/XerocStar.cs index 7bd1414a30..7744d4669c 100644 --- a/Projectiles/Typeless/XerocStar.cs +++ b/Projectiles/Typeless/XerocStar.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles { public class XerocStar : ModProjectile { diff --git a/Sounds/Custom/AdrenalineBurnout1.cs b/Sounds/Custom/AdrenalineBurnout1.cs index a4f25f8309..9c9fef4400 100644 --- a/Sounds/Custom/AdrenalineBurnout1.cs +++ b/Sounds/Custom/AdrenalineBurnout1.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/AdrenalineBurnout2.cs b/Sounds/Custom/AdrenalineBurnout2.cs index ee7a849e46..7e3a2f66ba 100644 --- a/Sounds/Custom/AdrenalineBurnout2.cs +++ b/Sounds/Custom/AdrenalineBurnout2.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/AngryDogGrowl.cs b/Sounds/Custom/AngryDogGrowl.cs index 4a8f28053e..ccd0bfd535 100644 --- a/Sounds/Custom/AngryDogGrowl.cs +++ b/Sounds/Custom/AngryDogGrowl.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/AtlasIdle0.cs b/Sounds/Custom/AtlasIdle0.cs index d28487510c..83bb4c9fd4 100644 --- a/Sounds/Custom/AtlasIdle0.cs +++ b/Sounds/Custom/AtlasIdle0.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/AtlasIdle1.cs b/Sounds/Custom/AtlasIdle1.cs index d56baef018..e78d0e72de 100644 --- a/Sounds/Custom/AtlasIdle1.cs +++ b/Sounds/Custom/AtlasIdle1.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/AtlasSad0.cs b/Sounds/Custom/AtlasSad0.cs index 92af198143..09d4e21cec 100644 --- a/Sounds/Custom/AtlasSad0.cs +++ b/Sounds/Custom/AtlasSad0.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/AtlasSad1.cs b/Sounds/Custom/AtlasSad1.cs index a536066a5d..a986477169 100644 --- a/Sounds/Custom/AtlasSad1.cs +++ b/Sounds/Custom/AtlasSad1.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/AtlasSwing.cs b/Sounds/Custom/AtlasSwing.cs index c25870d303..1595c4a47a 100644 --- a/Sounds/Custom/AtlasSwing.cs +++ b/Sounds/Custom/AtlasSwing.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/BazookaRocket.cs b/Sounds/Custom/BazookaRocket.cs index dfd6cf4bdc..dcfd624f8a 100644 --- a/Sounds/Custom/BazookaRocket.cs +++ b/Sounds/Custom/BazookaRocket.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/CorvinaScream.cs b/Sounds/Custom/CorvinaScream.cs index 5d902ec31c..65243bb57a 100644 --- a/Sounds/Custom/CorvinaScream.cs +++ b/Sounds/Custom/CorvinaScream.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/DevilMaskBreak.cs b/Sounds/Custom/DevilMaskBreak.cs index ee274186df..4235d1bf27 100644 --- a/Sounds/Custom/DevilMaskBreak.cs +++ b/Sounds/Custom/DevilMaskBreak.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/EidolonWyrmRoarClose.cs b/Sounds/Custom/EidolonWyrmRoarClose.cs index 5966c55d24..a56bf32c19 100644 --- a/Sounds/Custom/EidolonWyrmRoarClose.cs +++ b/Sounds/Custom/EidolonWyrmRoarClose.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/FullAdrenaline.cs b/Sounds/Custom/FullAdrenaline.cs index 6993f7794f..54001e721e 100644 --- a/Sounds/Custom/FullAdrenaline.cs +++ b/Sounds/Custom/FullAdrenaline.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/FullRage.cs b/Sounds/Custom/FullRage.cs index 0331603f79..616c5503da 100644 --- a/Sounds/Custom/FullRage.cs +++ b/Sounds/Custom/FullRage.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/GreatSandSharkRoar.cs b/Sounds/Custom/GreatSandSharkRoar.cs index 7c48a96723..9058d6fab4 100644 --- a/Sounds/Custom/GreatSandSharkRoar.cs +++ b/Sounds/Custom/GreatSandSharkRoar.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/IronHeartBigHurt.cs b/Sounds/Custom/IronHeartBigHurt.cs index b968920933..8e4035b4c1 100644 --- a/Sounds/Custom/IronHeartBigHurt.cs +++ b/Sounds/Custom/IronHeartBigHurt.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/IronHeartHurt.cs b/Sounds/Custom/IronHeartHurt.cs index f54cf60bf0..e994fee9f7 100644 --- a/Sounds/Custom/IronHeartHurt.cs +++ b/Sounds/Custom/IronHeartHurt.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/LegStomp.cs b/Sounds/Custom/LegStomp.cs index 03705d7d9b..2973bdf940 100644 --- a/Sounds/Custom/LegStomp.cs +++ b/Sounds/Custom/LegStomp.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/MaulerRoar.cs b/Sounds/Custom/MaulerRoar.cs index ef6d2acbc9..b14406c7db 100644 --- a/Sounds/Custom/MaulerRoar.cs +++ b/Sounds/Custom/MaulerRoar.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/ReaperEnragedRoar.cs b/Sounds/Custom/ReaperEnragedRoar.cs index 9e1f547ad5..bb66e0db3a 100644 --- a/Sounds/Custom/ReaperEnragedRoar.cs +++ b/Sounds/Custom/ReaperEnragedRoar.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/ReaperSearchRoar.cs b/Sounds/Custom/ReaperSearchRoar.cs index 0b839fc7dc..51f0e3873f 100644 --- a/Sounds/Custom/ReaperSearchRoar.cs +++ b/Sounds/Custom/ReaperSearchRoar.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/RogueStealth.cs b/Sounds/Custom/RogueStealth.cs index ba5ac0f049..f9a54a3af3 100644 --- a/Sounds/Custom/RogueStealth.cs +++ b/Sounds/Custom/RogueStealth.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/SilvaActivation.cs b/Sounds/Custom/SilvaActivation.cs index 0340b5dfd3..6672c03bef 100644 --- a/Sounds/Custom/SilvaActivation.cs +++ b/Sounds/Custom/SilvaActivation.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/SilvaDispel.cs b/Sounds/Custom/SilvaDispel.cs index d0d6b12a60..53730a1cbd 100644 --- a/Sounds/Custom/SilvaDispel.cs +++ b/Sounds/Custom/SilvaDispel.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/WyrmScream.cs b/Sounds/Custom/WyrmScream.cs index 6411ef1a0f..e1e27f1701 100644 --- a/Sounds/Custom/WyrmScream.cs +++ b/Sounds/Custom/WyrmScream.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/YharonRoar.cs b/Sounds/Custom/YharonRoar.cs index 2b2e5cad74..e0dd7b311d 100644 --- a/Sounds/Custom/YharonRoar.cs +++ b/Sounds/Custom/YharonRoar.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Custom/YharonRoarShort.cs b/Sounds/Custom/YharonRoarShort.cs index 35a1f4dc53..41cc85ed37 100644 --- a/Sounds/Custom/YharonRoarShort.cs +++ b/Sounds/Custom/YharonRoarShort.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Custom { diff --git a/Sounds/Item/BazookaFull.cs b/Sounds/Item/BazookaFull.cs index c5c66590b2..f20252f937 100644 --- a/Sounds/Item/BazookaFull.cs +++ b/Sounds/Item/BazookaFull.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/ClamImpact.cs b/Sounds/Item/ClamImpact.cs index 17f1c95138..eb0c50bfe3 100644 --- a/Sounds/Item/ClamImpact.cs +++ b/Sounds/Item/ClamImpact.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/ELRFire.cs b/Sounds/Item/ELRFire.cs index d57b4cb950..00a2feb927 100644 --- a/Sounds/Item/ELRFire.cs +++ b/Sounds/Item/ELRFire.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/FlareSound.cs b/Sounds/Item/FlareSound.cs index 78914e1205..2576e6a875 100644 --- a/Sounds/Item/FlareSound.cs +++ b/Sounds/Item/FlareSound.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/GatlingLaserFireEnd.cs b/Sounds/Item/GatlingLaserFireEnd.cs index 4b6ec830aa..489509e76e 100644 --- a/Sounds/Item/GatlingLaserFireEnd.cs +++ b/Sounds/Item/GatlingLaserFireEnd.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/GatlingLaserFireLoop.cs b/Sounds/Item/GatlingLaserFireLoop.cs index 1d91870dea..6e8e3d8a07 100644 --- a/Sounds/Item/GatlingLaserFireLoop.cs +++ b/Sounds/Item/GatlingLaserFireLoop.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/GatlingLaserFireStart.cs b/Sounds/Item/GatlingLaserFireStart.cs index 71753bd430..43a5563b67 100644 --- a/Sounds/Item/GatlingLaserFireStart.cs +++ b/Sounds/Item/GatlingLaserFireStart.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/GaussWeaponFire.cs b/Sounds/Item/GaussWeaponFire.cs index 16c7d06f53..1c194a4f89 100644 --- a/Sounds/Item/GaussWeaponFire.cs +++ b/Sounds/Item/GaussWeaponFire.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/Hydra.cs b/Sounds/Item/Hydra.cs index 2912d10a5c..4c7a84fe34 100644 --- a/Sounds/Item/Hydra.cs +++ b/Sounds/Item/Hydra.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/IronHeartDeath.cs b/Sounds/Item/IronHeartDeath.cs index c6a9d97aaa..a776b99d4a 100644 --- a/Sounds/Item/IronHeartDeath.cs +++ b/Sounds/Item/IronHeartDeath.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/KendraBark.cs b/Sounds/Item/KendraBark.cs index 0a7ead83b3..16e8ada53c 100644 --- a/Sounds/Item/KendraBark.cs +++ b/Sounds/Item/KendraBark.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/LargeMechGaussRifle.cs b/Sounds/Item/LargeMechGaussRifle.cs index 8a38060d6e..f67af114b6 100644 --- a/Sounds/Item/LargeMechGaussRifle.cs +++ b/Sounds/Item/LargeMechGaussRifle.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/LargeWeaponFire.cs b/Sounds/Item/LargeWeaponFire.cs index 6200be623a..c2b66f87ae 100644 --- a/Sounds/Item/LargeWeaponFire.cs +++ b/Sounds/Item/LargeWeaponFire.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/LaserCannon.cs b/Sounds/Item/LaserCannon.cs index 55d86ffe05..15c8e63fa2 100644 --- a/Sounds/Item/LaserCannon.cs +++ b/Sounds/Item/LaserCannon.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/LaserRifleFire.cs b/Sounds/Item/LaserRifleFire.cs index 61cda761ac..4df4770a4c 100644 --- a/Sounds/Item/LaserRifleFire.cs +++ b/Sounds/Item/LaserRifleFire.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/Magnum.cs b/Sounds/Item/Magnum.cs index fc5a188c3b..44d08ed6f7 100644 --- a/Sounds/Item/Magnum.cs +++ b/Sounds/Item/Magnum.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/MechGaussRifle.cs b/Sounds/Item/MechGaussRifle.cs index 9db467e20b..c153c6148f 100644 --- a/Sounds/Item/MechGaussRifle.cs +++ b/Sounds/Item/MechGaussRifle.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/OpalStrike.cs b/Sounds/Item/OpalStrike.cs index 1ff69f1a9f..0e516fa707 100644 --- a/Sounds/Item/OpalStrike.cs +++ b/Sounds/Item/OpalStrike.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/PlasmaBlast.cs b/Sounds/Item/PlasmaBlast.cs index 1832547f76..52399eec5f 100644 --- a/Sounds/Item/PlasmaBlast.cs +++ b/Sounds/Item/PlasmaBlast.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/PlasmaBolt.cs b/Sounds/Item/PlasmaBolt.cs index 527a3a3301..e2ce221953 100644 --- a/Sounds/Item/PlasmaBolt.cs +++ b/Sounds/Item/PlasmaBolt.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/PlasmaCasterFire.cs b/Sounds/Item/PlasmaCasterFire.cs index 268254c81f..af85b5a328 100644 --- a/Sounds/Item/PlasmaCasterFire.cs +++ b/Sounds/Item/PlasmaCasterFire.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/PulseRifleFire.cs b/Sounds/Item/PulseRifleFire.cs index f8668c6159..a1c538e310 100644 --- a/Sounds/Item/PulseRifleFire.cs +++ b/Sounds/Item/PulseRifleFire.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/TankCannon.cs b/Sounds/Item/TankCannon.cs index 871422338e..748ea6f261 100644 --- a/Sounds/Item/TankCannon.cs +++ b/Sounds/Item/TankCannon.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/Item/TeslaCannonFire.cs b/Sounds/Item/TeslaCannonFire.cs index 38f2549f63..e3ffd95df9 100644 --- a/Sounds/Item/TeslaCannonFire.cs +++ b/Sounds/Item/TeslaCannonFire.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.Item { diff --git a/Sounds/NPCHit/AngryDogHit.cs b/Sounds/NPCHit/AngryDogHit.cs index aab4a98254..83031a4f9f 100644 --- a/Sounds/NPCHit/AngryDogHit.cs +++ b/Sounds/NPCHit/AngryDogHit.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCHit/AstralEnemyHit.cs b/Sounds/NPCHit/AstralEnemyHit.cs index 819f63bd08..cbcfb7dcdf 100644 --- a/Sounds/NPCHit/AstralEnemyHit.cs +++ b/Sounds/NPCHit/AstralEnemyHit.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCHit/AstralEnemyHit2.cs b/Sounds/NPCHit/AstralEnemyHit2.cs index 93472c3d2e..6154713db3 100644 --- a/Sounds/NPCHit/AstralEnemyHit2.cs +++ b/Sounds/NPCHit/AstralEnemyHit2.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCHit/AstralEnemyHit3.cs b/Sounds/NPCHit/AstralEnemyHit3.cs index 9b9c4559d0..a27efdcb0e 100644 --- a/Sounds/NPCHit/AstralEnemyHit3.cs +++ b/Sounds/NPCHit/AstralEnemyHit3.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCHit/AstrumAureusHit.cs b/Sounds/NPCHit/AstrumAureusHit.cs index 46a3ad03dc..3591b9078b 100644 --- a/Sounds/NPCHit/AstrumAureusHit.cs +++ b/Sounds/NPCHit/AstrumAureusHit.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCHit/AtlasHurt0.cs b/Sounds/NPCHit/AtlasHurt0.cs index 04db56771f..6701628afc 100644 --- a/Sounds/NPCHit/AtlasHurt0.cs +++ b/Sounds/NPCHit/AtlasHurt0.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCHit/AtlasHurt1.cs b/Sounds/NPCHit/AtlasHurt1.cs index 9a4fd2a64c..60892394b5 100644 --- a/Sounds/NPCHit/AtlasHurt1.cs +++ b/Sounds/NPCHit/AtlasHurt1.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCHit/AtlasHurt2.cs b/Sounds/NPCHit/AtlasHurt2.cs index 7e25955b01..9b2ac5275a 100644 --- a/Sounds/NPCHit/AtlasHurt2.cs +++ b/Sounds/NPCHit/AtlasHurt2.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCHit { diff --git a/Sounds/NPCKilled/AstralEnemyDeath.cs b/Sounds/NPCKilled/AstralEnemyDeath.cs index 87ed76a1f3..d8d429d947 100644 --- a/Sounds/NPCKilled/AstralEnemyDeath.cs +++ b/Sounds/NPCKilled/AstralEnemyDeath.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCKilled { diff --git a/Sounds/NPCKilled/AtlasDeath.cs b/Sounds/NPCKilled/AtlasDeath.cs index b2854be375..11a565d421 100644 --- a/Sounds/NPCKilled/AtlasDeath.cs +++ b/Sounds/NPCKilled/AtlasDeath.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCKilled { diff --git a/Sounds/NPCKilled/Sunskater.cs b/Sounds/NPCKilled/Sunskater.cs index cf5d7e2cd7..9d3bf4574f 100644 --- a/Sounds/NPCKilled/Sunskater.cs +++ b/Sounds/NPCKilled/Sunskater.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework.Audio; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Sounds.NPCKilled { diff --git a/Tiles/AbyssGravel.cs b/Tiles/AbyssGravel.cs index ec78bd896c..7e47a860a7 100644 --- a/Tiles/AbyssGravel.cs +++ b/Tiles/AbyssGravel.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); TileMerge.MergeAbyssTiles(Type); - drop = mod.ItemType("AbyssGravel"); + drop = ModContent.ItemType(); AddMapEntry(new Color(0, 0, 0)); mineResist = 10f; minPick = 65; diff --git a/Tiles/AerialiteBrick.cs b/Tiles/AerialiteBrick.cs index e038834639..8e42889385 100644 --- a/Tiles/AerialiteBrick.cs +++ b/Tiles/AerialiteBrick.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles Main.tileBlockLight[Type] = true; soundType = 21; minPick = 50; - drop = mod.ItemType("AerialiteBrick"); + drop = ModContent.ItemType(); AddMapEntry(new Color(68, 58, 145)); } diff --git a/Tiles/AerialiteOre.cs b/Tiles/AerialiteOre.cs index 1efaeb21dc..088d35ce48 100644 --- a/Tiles/AerialiteOre.cs +++ b/Tiles/AerialiteOre.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -16,8 +16,8 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); - dustType = mod.DustType("AHSparkle"); - drop = mod.ItemType("AerialiteOre"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Aerialite Ore"); AddMapEntry(new Color(0, 255, 255), name); diff --git a/Tiles/ArenaTile.cs b/Tiles/ArenaTile.cs index b277ed3186..772cbc3a3a 100644 --- a/Tiles/ArenaTile.cs +++ b/Tiles/ArenaTile.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -30,7 +30,7 @@ namespace CalamityMod.Tiles { if (closer) { - if (!NPC.AnyNPCs(mod.NPCType("SupremeCalamitas"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { WorldGen.KillTile(i, j, false, false, false); if (!Main.tile[i, j].active() && Main.netMode != 0) diff --git a/Tiles/Astral/AstralChestLocked.cs b/Tiles/Astral/AstralChestLocked.cs index e93cf719d8..885e037eb4 100644 --- a/Tiles/Astral/AstralChestLocked.cs +++ b/Tiles/Astral/AstralChestLocked.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralChestLocked : ModTile { @@ -39,11 +39,11 @@ namespace CalamityMod.Tiles.Astral name = CreateMapEntryName(Name + "_Locked"); // With multiple map entries, you need unique translation keys. name.SetDefault("Locked Astral Chest"); AddMapEntry(new Color(174, 129, 92), name, MapChestName); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Astral Chest"; - chestDrop = mod.ItemType("AstralChest"); + chestDrop = ModContent.ItemType(); } public override ushort GetMapOption(int i, int j) => (ushort)(Main.tile[i, j].frameX / 36); @@ -224,7 +224,7 @@ namespace CalamityMod.Tiles.Astral player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Astral Chest"; if (player.showItemIconText == "Astral Chest") { - player.showItemIcon2 = mod.ItemType("AstralChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/Astral/AstralCrate.cs b/Tiles/Astral/AstralCrate.cs index 14218480cf..e6b79c5101 100644 --- a/Tiles/Astral/AstralCrate.cs +++ b/Tiles/Astral/AstralCrate.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralCrate : ModTile { @@ -22,18 +22,18 @@ namespace CalamityMod.Tiles.Astral ModTranslation name = CreateMapEntryName(); name.SetDefault("Astral Crate"); AddMapEntry(new Color(47, 66, 90), name); - dustType = mod.DustType("AstralBlue"); + dustType = ModContent.DustType(); } public override bool CreateDust(int i, int j, ref int type) { if (Main.rand.NextBool(2)) { - type = mod.DustType("AstralOrange"); + type = ModContent.DustType(); } else { - type = mod.DustType("AstralBlue"); + type = ModContent.DustType(); } return true; } @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.Astral public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AstralCrate")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/Astral/AstralDirt.cs b/Tiles/Astral/AstralDirt.cs index a2665ca51c..2dc5c53be3 100644 --- a/Tiles/Astral/AstralDirt.cs +++ b/Tiles/Astral/AstralDirt.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralDirt : ModTile { @@ -17,8 +17,8 @@ namespace CalamityMod.Tiles.Astral TileMerge.MergeAstralTiles(Type); TileMerge.MergeOreTiles(Type); - dustType = mod.DustType("AstralBasic"); - drop = mod.ItemType("AstralDirt"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(65, 56, 83)); @@ -39,9 +39,9 @@ namespace CalamityMod.Tiles.Astral Tile down = Main.tile[i, j + 1]; Tile left = Main.tile[i - 1, j]; Tile right = Main.tile[i + 1, j]; - if (WorldGen.genRand.Next(3) == 0 && (up.type == mod.TileType("AstralGrass") || down.type == mod.TileType("AstralGrass") || left.type == mod.TileType("AstralGrass") || right.type == mod.TileType("AstralGrass"))) + if (WorldGen.genRand.Next(3) == 0 && (up.type == ModContent.TileType() || down.type == ModContent.TileType() || left.type == ModContent.TileType() || right.type == ModContent.TileType())) { - WorldGen.SpreadGrass(i, j, Type, mod.TileType("AstralGrass"), false); + WorldGen.SpreadGrass(i, j, Type, ModContent.TileType(), false); } } diff --git a/Tiles/Astral/AstralGrass.cs b/Tiles/Astral/AstralGrass.cs index 57604f82a5..b655885f3f 100644 --- a/Tiles/Astral/AstralGrass.cs +++ b/Tiles/Astral/AstralGrass.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralGrass : ModTile { @@ -18,8 +18,8 @@ namespace CalamityMod.Tiles.Astral TileMerge.MergeAstralTiles(Type); TileMerge.MergeOreTiles(Type); - dustType = mod.DustType("AstralBasic"); - drop = mod.ItemType("AstralDirt"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(133, 109, 140)); @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.Astral //Grass framing (<3 terraria devs) TileID.Sets.NeedsGrassFraming[Type] = true; - TileID.Sets.NeedsGrassFramingDirt[Type] = mod.TileType("AstralDirt"); + TileID.Sets.NeedsGrassFramingDirt[Type] = ModContent.TileType(); SetModTree(new AstralTree()); } @@ -42,14 +42,14 @@ namespace CalamityMod.Tiles.Astral { if (fail && !effectOnly) { - Main.tile[i, j].type = (ushort)mod.TileType("AstralDirt"); + Main.tile[i, j].type = (ushort)ModContent.TileType(); } } public override int SaplingGrowthType(ref int style) { style = 0; - return mod.TileType("AstralTreeSapling"); + return ModContent.TileType(); } } } diff --git a/Tiles/Astral/AstralMonolith.cs b/Tiles/Astral/AstralMonolith.cs index d9361695b2..1e015a1864 100644 --- a/Tiles/Astral/AstralMonolith.cs +++ b/Tiles/Astral/AstralMonolith.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralMonolith : ModTile { @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.Astral TileMerge.MergeTile(Type, TileID.LivingWood); TileMerge.MergeTile(Type, TileID.LivingMahogany); - drop = mod.ItemType("AstralMonolith"); + drop = ModContent.ItemType(); AddMapEntry(new Color(45, 36, 63)); animationFrameHeight = 270; } @@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.Astral public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("AstralBasic"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -70,7 +70,7 @@ namespace CalamityMod.Tiles.Astral public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } diff --git a/Tiles/Astral/AstralNormalLargePiles.cs b/Tiles/Astral/AstralNormalLargePiles.cs index 4bb8744f6c..b3c76031bd 100644 --- a/Tiles/Astral/AstralNormalLargePiles.cs +++ b/Tiles/Astral/AstralNormalLargePiles.cs @@ -1,10 +1,10 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralNormalLargePiles : ModTile { @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.Astral TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); TileObjectData.addTile(Type); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/Astral/AstralNormalMediumPiles.cs b/Tiles/Astral/AstralNormalMediumPiles.cs index 01feef6d64..93db1194b5 100644 --- a/Tiles/Astral/AstralNormalMediumPiles.cs +++ b/Tiles/Astral/AstralNormalMediumPiles.cs @@ -1,10 +1,10 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralNormalMediumPiles : ModTile { @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.Astral TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); TileObjectData.addTile(Type); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/Astral/AstralNormalSmallPiles.cs b/Tiles/Astral/AstralNormalSmallPiles.cs index efd4368bc8..faedfe52e3 100644 --- a/Tiles/Astral/AstralNormalSmallPiles.cs +++ b/Tiles/Astral/AstralNormalSmallPiles.cs @@ -1,9 +1,9 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralNormalSmallPiles : ModTile { @@ -13,7 +13,7 @@ namespace CalamityMod.Tiles.Astral Main.tileNoFail[Type] = true; Main.tileObsidianKill[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); base.SetDefaults(); diff --git a/Tiles/Astral/AstralNormalStalactite.cs b/Tiles/Astral/AstralNormalStalactite.cs index 29dac383f4..301362397f 100644 --- a/Tiles/Astral/AstralNormalStalactite.cs +++ b/Tiles/Astral/AstralNormalStalactite.cs @@ -1,9 +1,9 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralNormalStalactite : ModTile { @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.Astral Main.tileObsidianKill[Type] = true; Main.tileBlockLight[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/Astral/AstralOre.cs b/Tiles/Astral/AstralOre.cs index b004ff0e1b..4ec165c89d 100644 --- a/Tiles/Astral/AstralOre.cs +++ b/Tiles/Astral/AstralOre.cs @@ -4,9 +4,9 @@ using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralOre : ModTile { @@ -24,7 +24,7 @@ namespace CalamityMod.Tiles.Astral minPick = 200; dustType = 173; - drop = mod.ItemType("AstralOre"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Astral Ore"); AddMapEntry(new Color(255, 153, 255), name); @@ -72,13 +72,13 @@ namespace CalamityMod.Tiles.Astral public override void FloorVisuals(Player player) { - player.AddBuff(mod.BuffType("AstralInfectionDebuff"), 1); + player.AddBuff(ModContent.BuffType(), 1); base.FloorVisuals(player); } public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/Astral/AstralShortPlants.cs b/Tiles/Astral/AstralShortPlants.cs index fd6a5336ea..7848a9f65f 100644 --- a/Tiles/Astral/AstralShortPlants.cs +++ b/Tiles/Astral/AstralShortPlants.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralShortPlants : ModTile { @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles.Astral Main.tileWaterDeath[Type] = true; Main.tileFrameImportant[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); soundStyle = 1; soundType = 6; diff --git a/Tiles/Astral/AstralStone.cs b/Tiles/Astral/AstralStone.cs index 9774f6243e..80a85e4a58 100644 --- a/Tiles/Astral/AstralStone.cs +++ b/Tiles/Astral/AstralStone.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralStone : ModTile { @@ -18,8 +18,8 @@ namespace CalamityMod.Tiles.Astral TileMerge.MergeAstralTiles(Type); TileMerge.MergeOreTiles(Type); - dustType = mod.DustType("AstralBasic"); - drop = mod.ItemType("AstralStone"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); soundType = 21; @@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.Astral public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt")); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType()); return false; } diff --git a/Tiles/Astral/AstralTallPlants.cs b/Tiles/Astral/AstralTallPlants.cs index f7a172f56c..63a88fd4b5 100644 --- a/Tiles/Astral/AstralTallPlants.cs +++ b/Tiles/Astral/AstralTallPlants.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralTallPlants : ModTile { @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles.Astral Main.tileWaterDeath[Type] = true; Main.tileFrameImportant[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); soundStyle = 1; soundType = 6; diff --git a/Tiles/Astral/AstralTree.cs b/Tiles/Astral/AstralTree.cs index 7d70b9b3d3..55063baafb 100644 --- a/Tiles/Astral/AstralTree.cs +++ b/Tiles/Astral/AstralTree.cs @@ -1,5 +1,5 @@ using Microsoft.Xna.Framework.Graphics; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { diff --git a/Tiles/Astral/AstralTreeSapling.cs b/Tiles/Astral/AstralTreeSapling.cs index ad644227fa..c55c3c36bd 100644 --- a/Tiles/Astral/AstralTreeSapling.cs +++ b/Tiles/Astral/AstralTreeSapling.cs @@ -4,10 +4,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralTreeSapling : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.Astral TileObjectData.newTile.CoordinateHeights = new[] { 16, 18 }; TileObjectData.newTile.CoordinateWidth = 16; TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.AnchorValidTiles = new[] { mod.TileType("AstralGrass") }; + TileObjectData.newTile.AnchorValidTiles = new[] { ModContent.TileType() }; TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newTile.DrawFlipHorizontal = true; TileObjectData.newTile.WaterPlacement = LiquidPlacement.NotAllowed; @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.Astral ModTranslation name = CreateMapEntryName(); name.SetDefault("Sapling"); AddMapEntry(new Color(200, 200, 200), name); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.Saplings }; } diff --git a/Tiles/Astral/AstralVines.cs b/Tiles/Astral/AstralVines.cs index c764a9ce09..5518cd3037 100644 --- a/Tiles/Astral/AstralVines.cs +++ b/Tiles/Astral/AstralVines.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.Astral +namespace CalamityMod.Tiles { public class AstralVines : ModTile { @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.Astral Main.tileLavaDeath[Type] = true; Main.tileNoFail[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); soundType = 6; soundStyle = 1; diff --git a/Tiles/AstralBar.cs b/Tiles/AstralBar.cs index 6674c1ff7d..079fce2e2b 100644 --- a/Tiles/AstralBar.cs +++ b/Tiles/AstralBar.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -19,8 +19,8 @@ namespace CalamityMod.Tiles TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); - dustType = mod.DustType("AstralBlue"); - drop = mod.ItemType("AstralBar"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(47, 66, 90)); } @@ -29,11 +29,11 @@ namespace CalamityMod.Tiles { if (Main.rand.NextBool(2)) { - type = mod.DustType("AstralOrange"); + type = ModContent.DustType(); } else { - type = mod.DustType("AstralBlue"); + type = ModContent.DustType(); } return true; } diff --git a/Tiles/AstralBrick.cs b/Tiles/AstralBrick.cs index f867bb8d72..29b7e02758 100644 --- a/Tiles/AstralBrick.cs +++ b/Tiles/AstralBrick.cs @@ -2,7 +2,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -17,13 +17,13 @@ namespace CalamityMod.Tiles Main.tileBlockLight[Type] = true; soundType = 21; minPick = 150; - drop = mod.ItemType("AstralBrick"); + drop = ModContent.ItemType(); AddMapEntry(new Color(128, 128, 158)); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("AstralBasic"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/AstralDesert/AstralDesertLargePiles.cs b/Tiles/AstralDesert/AstralDesertLargePiles.cs index 4508407c05..495f998d3f 100644 --- a/Tiles/AstralDesert/AstralDesertLargePiles.cs +++ b/Tiles/AstralDesert/AstralDesertLargePiles.cs @@ -1,10 +1,10 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class AstralDesertLargePiles : ModTile { @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.AstralDesert TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); TileObjectData.addTile(Type); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/AstralDesert/AstralDesertMediumPiles.cs b/Tiles/AstralDesert/AstralDesertMediumPiles.cs index 386ef747e8..d35e89cfdc 100644 --- a/Tiles/AstralDesert/AstralDesertMediumPiles.cs +++ b/Tiles/AstralDesert/AstralDesertMediumPiles.cs @@ -1,10 +1,10 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class AstralDesertMediumPiles : ModTile { @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.AstralDesert TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); TileObjectData.addTile(Type); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/AstralDesert/AstralDesertSmallPiles.cs b/Tiles/AstralDesert/AstralDesertSmallPiles.cs index 2efaea20c9..bcdc91afdf 100644 --- a/Tiles/AstralDesert/AstralDesertSmallPiles.cs +++ b/Tiles/AstralDesert/AstralDesertSmallPiles.cs @@ -1,9 +1,9 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class AstralDesertSmallPiles : ModTile { @@ -13,7 +13,7 @@ namespace CalamityMod.Tiles.AstralDesert Main.tileNoFail[Type] = true; Main.tileObsidianKill[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); base.SetDefaults(); diff --git a/Tiles/AstralDesert/AstralDesertStalactite.cs b/Tiles/AstralDesert/AstralDesertStalactite.cs index 83df713645..e45a4f8f12 100644 --- a/Tiles/AstralDesert/AstralDesertStalactite.cs +++ b/Tiles/AstralDesert/AstralDesertStalactite.cs @@ -1,9 +1,9 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class AstralDesertStalactite : ModTile { @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.AstralDesert Main.tileObsidianKill[Type] = true; Main.tileBlockLight[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/AstralDesert/AstralPalmSapling.cs b/Tiles/AstralDesert/AstralPalmSapling.cs index 2027f842a8..fed940f07e 100644 --- a/Tiles/AstralDesert/AstralPalmSapling.cs +++ b/Tiles/AstralDesert/AstralPalmSapling.cs @@ -4,10 +4,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class AstralPalmSapling : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.AstralDesert TileObjectData.newTile.CoordinateHeights = new[] { 16, 18 }; TileObjectData.newTile.CoordinateWidth = 16; TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.AnchorValidTiles = new[] { mod.TileType("AstralSand") }; + TileObjectData.newTile.AnchorValidTiles = new[] { ModContent.TileType() }; TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newTile.DrawFlipHorizontal = true; TileObjectData.newTile.WaterPlacement = LiquidPlacement.NotAllowed; @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.AstralDesert ModTranslation name = CreateMapEntryName(); name.SetDefault("Sapling"); AddMapEntry(new Color(200, 200, 200), name); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.Saplings }; } diff --git a/Tiles/AstralDesert/AstralPalmTree.cs b/Tiles/AstralDesert/AstralPalmTree.cs index 811476b238..55afe1a644 100644 --- a/Tiles/AstralDesert/AstralPalmTree.cs +++ b/Tiles/AstralDesert/AstralPalmTree.cs @@ -1,5 +1,5 @@ using Microsoft.Xna.Framework.Graphics; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { diff --git a/Tiles/AstralDesert/AstralSand.cs b/Tiles/AstralDesert/AstralSand.cs index b8467726fa..2ea7f446e4 100644 --- a/Tiles/AstralDesert/AstralSand.cs +++ b/Tiles/AstralDesert/AstralSand.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class AstralSand : ModTile { @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.AstralDesert TileMerge.MergeAstralTiles(Type); dustType = 108; - drop = mod.ItemType("AstralSand"); + drop = ModContent.ItemType(); AddMapEntry(new Color(149, 156, 155)); @@ -43,11 +43,11 @@ namespace CalamityMod.Tiles.AstralDesert if (j < Main.maxTilesY && !Main.tile[i, j + 1].active()) { Main.tile[i, j].active(false); - Projectile.NewProjectile(new Vector2(i * 16f + 8f, j * 16f + 8f), Vector2.Zero, mod.ProjectileType("AstralFallingSand"), 15, 0f); + Projectile.NewProjectile(new Vector2(i * 16f + 8f, j * 16f + 8f), Vector2.Zero, ModContent.ProjectileType(), 15, 0f); WorldGen.SquareTileFrame(i, j); return false; } - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt")); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType()); return false; } @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.AstralDesert public override int SaplingGrowthType(ref int style) { style = 0; - return mod.TileType("AstralPalmSapling"); + return ModContent.TileType(); } } diff --git a/Tiles/AstralDesert/AstralSandstone.cs b/Tiles/AstralDesert/AstralSandstone.cs index 3485250031..da8623dc43 100644 --- a/Tiles/AstralDesert/AstralSandstone.cs +++ b/Tiles/AstralDesert/AstralSandstone.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class AstralSandstone : ModTile { @@ -17,8 +17,8 @@ namespace CalamityMod.Tiles.AstralDesert TileMerge.MergeDesertTiles(Type); TileMerge.MergeAstralTiles(Type); - dustType = mod.DustType("AstralBasic"); - drop = mod.ItemType("AstralSandstone"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(79, 61, 97)); @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.AstralDesert public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("HardenedAstralSand"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } diff --git a/Tiles/AstralDesert/HardenedAstralSand.cs b/Tiles/AstralDesert/HardenedAstralSand.cs index abfa4af7d5..1be74a4126 100644 --- a/Tiles/AstralDesert/HardenedAstralSand.cs +++ b/Tiles/AstralDesert/HardenedAstralSand.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralDesert +namespace CalamityMod.Tiles { public class HardenedAstralSand : ModTile { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.AstralDesert dustType = 108; - drop = mod.ItemType("HardenedAstralSand"); + drop = ModContent.ItemType(); AddMapEntry(new Color(45, 36, 63)); @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.AstralDesert public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralSand"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } diff --git a/Tiles/AstralSnow/AstralIce.cs b/Tiles/AstralSnow/AstralIce.cs index ac52721f7e..bc69a36f0a 100644 --- a/Tiles/AstralSnow/AstralIce.cs +++ b/Tiles/AstralSnow/AstralIce.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralSnow +namespace CalamityMod.Tiles { public class AstralIce : ModTile { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.AstralSnow TileMerge.MergeAstralTiles(Type); dustType = 173; - drop = mod.ItemType("AstralIce"); + drop = ModContent.ItemType(); soundType = 2; soundStyle = 50; @@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.AstralSnow public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AstralDirt"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/AstralSnow/AstralIceLargePiles.cs b/Tiles/AstralSnow/AstralIceLargePiles.cs index 7549f22758..3f570ea95d 100644 --- a/Tiles/AstralSnow/AstralIceLargePiles.cs +++ b/Tiles/AstralSnow/AstralIceLargePiles.cs @@ -1,10 +1,10 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.AstralSnow +namespace CalamityMod.Tiles { public class AstralIceLargePiles : ModTile { @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.AstralSnow TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); TileObjectData.addTile(Type); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/AstralSnow/AstralIceMediumPiles.cs b/Tiles/AstralSnow/AstralIceMediumPiles.cs index c96bff1053..8e2766702f 100644 --- a/Tiles/AstralSnow/AstralIceMediumPiles.cs +++ b/Tiles/AstralSnow/AstralIceMediumPiles.cs @@ -1,10 +1,10 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.AstralSnow +namespace CalamityMod.Tiles { public class AstralIceMediumPiles : ModTile { @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.AstralSnow TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); TileObjectData.addTile(Type); - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); diff --git a/Tiles/AstralSnow/AstralIceSmallPiles.cs b/Tiles/AstralSnow/AstralIceSmallPiles.cs index fb54e58d94..36912e1aa6 100644 --- a/Tiles/AstralSnow/AstralIceSmallPiles.cs +++ b/Tiles/AstralSnow/AstralIceSmallPiles.cs @@ -1,9 +1,9 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralSnow +namespace CalamityMod.Tiles { public class AstralIceSmallPiles : ModTile { @@ -13,7 +13,7 @@ namespace CalamityMod.Tiles.AstralSnow Main.tileNoFail[Type] = true; Main.tileObsidianKill[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); base.SetDefaults(); diff --git a/Tiles/AstralSnow/AstralIceStalactite.cs b/Tiles/AstralSnow/AstralIceStalactite.cs index 5fd537d5a2..7ee59a37da 100644 --- a/Tiles/AstralSnow/AstralIceStalactite.cs +++ b/Tiles/AstralSnow/AstralIceStalactite.cs @@ -1,9 +1,9 @@  using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.AstralSnow +namespace CalamityMod.Tiles { public class AstralIceStalactite : ModTile { @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.AstralSnow Main.tileObsidianKill[Type] = true; Main.tileBlockLight[Type] = true; - dustType = mod.DustType("AstralBasic"); + dustType = ModContent.DustType(); AddMapEntry(new Color(79, 61, 97)); base.SetDefaults(); diff --git a/Tiles/AuricOre.cs b/Tiles/AuricOre.cs index 809a6f4f56..99b5d8acef 100644 --- a/Tiles/AuricOre.cs +++ b/Tiles/AuricOre.cs @@ -2,7 +2,7 @@ using CalamityMod.Utilities; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); dustType = 55; - drop = mod.ItemType("AuricOre"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Auric Ore"); AddMapEntry(new Color(255, 200, 0), name); diff --git a/Tiles/BlueCandle.cs b/Tiles/BlueCandle.cs index 2125112baa..c89e1df646 100644 --- a/Tiles/BlueCandle.cs +++ b/Tiles/BlueCandle.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles { Player player = Main.LocalPlayer; if (!player.dead && player.active) - player.AddBuff(mod.BuffType("BlueSpeedCandle"), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) @@ -48,7 +48,7 @@ namespace CalamityMod.Tiles public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BlueCandle")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/BossTrophy.cs b/Tiles/BossTrophy.cs index 6d0bc3ad23..c5eff3ea57 100644 --- a/Tiles/BossTrophy.cs +++ b/Tiles/BossTrophy.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -28,73 +28,73 @@ namespace CalamityMod.Tiles switch (frameX / 54) { case 0: - item = mod.ItemType("DesertScourgeTrophy"); + item = ModContent.ItemType(); break; case 1: - item = mod.ItemType("PerforatorTrophy"); + item = ModContent.ItemType(); break; case 2: - item = mod.ItemType("SlimeGodTrophy"); + item = ModContent.ItemType(); break; case 3: - item = mod.ItemType("CryogenTrophy"); + item = ModContent.ItemType(); break; case 4: - item = mod.ItemType("PlaguebringerGoliathTrophy"); + item = ModContent.ItemType(); break; case 5: - item = mod.ItemType("LeviathanTrophy"); + item = ModContent.ItemType(); break; case 6: - item = mod.ItemType("ProvidenceTrophy"); + item = ModContent.ItemType(); break; case 7: - item = mod.ItemType("CalamitasTrophy"); + item = ModContent.ItemType(); break; case 8: - item = mod.ItemType("HiveMindTrophy"); + item = ModContent.ItemType(); break; case 9: - item = mod.ItemType("CrabulonTrophy"); + item = ModContent.ItemType(); break; case 10: - item = mod.ItemType("YharonTrophy"); + item = ModContent.ItemType(); break; case 11: - item = mod.ItemType("SignusTrophy"); + item = ModContent.ItemType(); break; case 12: - item = mod.ItemType("WeaverTrophy"); + item = ModContent.ItemType(); break; case 13: - item = mod.ItemType("CeaselessVoidTrophy"); + item = ModContent.ItemType(); break; case 14: - item = mod.ItemType("DevourerofGodsTrophy"); + item = ModContent.ItemType(); break; case 15: - item = mod.ItemType("CatastropheTrophy"); + item = ModContent.ItemType(); break; case 16: - item = mod.ItemType("CataclysmTrophy"); + item = ModContent.ItemType(); break; case 17: - item = mod.ItemType("PolterghastTrophy"); + item = ModContent.ItemType(); break; case 18: - item = mod.ItemType("BumblebirbTrophy"); + item = ModContent.ItemType(); break; case 19: - item = mod.ItemType("AstrageldonTrophy"); + item = ModContent.ItemType(); break; case 20: - item = mod.ItemType("AstrumDeusTrophy"); + item = ModContent.ItemType(); break; case 21: - item = mod.ItemType("BrimstoneElementalTrophy"); + item = ModContent.ItemType(); break; case 22: - item = mod.ItemType("RavagerTrophy"); + item = ModContent.ItemType(); break; } if (item > 0) diff --git a/Tiles/BrimstoneSlag.cs b/Tiles/BrimstoneSlag.cs index b0800ff79a..c04cb23603 100644 --- a/Tiles/BrimstoneSlag.cs +++ b/Tiles/BrimstoneSlag.cs @@ -2,7 +2,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -18,12 +18,12 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); TileMerge.MergeHellTiles(Type); - TileMerge.MergeTile(Type, mod.TileType("CharredOre")); + TileMerge.MergeTile(Type, ModContent.TileType()); soundType = 21; mineResist = 3f; minPick = 180; - drop = mod.ItemType("BrimstoneSlag"); + drop = ModContent.ItemType(); AddMapEntry(new Color(53, 33, 56)); } diff --git a/Tiles/CalamityGlobalTile.cs b/Tiles/CalamityGlobalTile.cs index b7d457e7f4..4ef454630a 100644 --- a/Tiles/CalamityGlobalTile.cs +++ b/Tiles/CalamityGlobalTile.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -67,7 +67,7 @@ namespace CalamityMod.Tiles return false; } } - if (type == TileID.Vines || type == TileID.CrimsonVines || type == TileID.HallowedVines || type == mod.TileType("AstralVines")) + if (type == TileID.Vines || type == TileID.CrimsonVines || type == TileID.HallowedVines || type == ModContent.TileType()) { CustomTileFraming.VineFrame(i, j); return false; @@ -130,7 +130,7 @@ namespace CalamityMod.Tiles } } //CACTUS CHECK - if (Main.tile[xTile, yTile].type == (ushort)mod.TileType("AstralSand")) + if (Main.tile[xTile, yTile].type == (ushort)ModContent.TileType()) { astralCactus = true; } @@ -146,13 +146,13 @@ namespace CalamityMod.Tiles public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem) { - if (Main.tile[i, j].type != mod.TileType("LumenylCrystals") && Main.tile[i, j].type != mod.TileType("SeaPrismCrystals") && Main.tileSolid[Main.tile[i, j].type]) + if (Main.tile[i, j].type != ModContent.TileType() && Main.tile[i, j].type != ModContent.TileType() && Main.tileSolid[Main.tile[i, j].type]) { if (Main.tile[i + 1, j] != null) { if (Main.tile[i + 1, j].active()) { - if (Main.tile[i + 1, j].type == mod.TileType("LumenylCrystals") || (Main.tile[i + 1, j].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + if (Main.tile[i + 1, j].type == ModContent.TileType() || (Main.tile[i + 1, j].type == ModContent.TileType() && CalamityWorld.downedDesertScourge)) { WorldGen.KillTile(i + 1, j, false, false, false); if (!Main.tile[i + 1, j].active() && Main.netMode != NetmodeID.SinglePlayer) @@ -166,7 +166,7 @@ namespace CalamityMod.Tiles { if (Main.tile[i - 1, j].active()) { - if (Main.tile[i - 1, j].type == mod.TileType("LumenylCrystals") || (Main.tile[i - 1, j].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + if (Main.tile[i - 1, j].type == ModContent.TileType() || (Main.tile[i - 1, j].type == ModContent.TileType() && CalamityWorld.downedDesertScourge)) { WorldGen.KillTile(i - 1, j, false, false, false); if (!Main.tile[i - 1, j].active() && Main.netMode != NetmodeID.SinglePlayer) @@ -180,7 +180,7 @@ namespace CalamityMod.Tiles { if (Main.tile[i, j + 1].active()) { - if (Main.tile[i, j + 1].type == mod.TileType("LumenylCrystals") || (Main.tile[i, j + 1].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + if (Main.tile[i, j + 1].type == ModContent.TileType() || (Main.tile[i, j + 1].type == ModContent.TileType() && CalamityWorld.downedDesertScourge)) { WorldGen.KillTile(i, j + 1, false, false, false); if (!Main.tile[i, j + 1].active() && Main.netMode != NetmodeID.SinglePlayer) @@ -194,7 +194,7 @@ namespace CalamityMod.Tiles { if (Main.tile[i, j - 1].active()) { - if (Main.tile[i, j - 1].type == mod.TileType("LumenylCrystals") || (Main.tile[i, j - 1].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + if (Main.tile[i, j - 1].type == ModContent.TileType() || (Main.tile[i, j - 1].type == ModContent.TileType() && CalamityWorld.downedDesertScourge)) { WorldGen.KillTile(i, j - 1, false, false, false); if (!Main.tile[i, j - 1].active() && Main.netMode != NetmodeID.SinglePlayer) @@ -290,7 +290,7 @@ namespace CalamityMod.Tiles } if (expr_B64 == 8) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AnechoicCoating"), 1, false, 0, false, false); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType(), 1, false, 0, false, false); } if (expr_B64 == 9) { @@ -336,7 +336,7 @@ namespace CalamityMod.Tiles } else if (num9 == 2) //stew { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("SunkenStew"), 1, false, 0, false, false); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType(), 1, false, 0, false, false); } else if (num9 == 3) //sticky dynamite { @@ -450,7 +450,7 @@ namespace CalamityMod.Tiles } if (expr_B64 == 8) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AnechoicCoating"), 1, false, 0, false, false); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType(), 1, false, 0, false, false); } if (expr_B64 == 9) { diff --git a/Tiles/ChaosCandle.cs b/Tiles/ChaosCandle.cs index 1b43671936..ae5b0d294d 100644 --- a/Tiles/ChaosCandle.cs +++ b/Tiles/ChaosCandle.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles Main.tileLavaDeath[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.StyleOnTable1x1); TileObjectData.addTile(Type); - drop = mod.ItemType("ChaosCandle"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Chaos Candle"); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); @@ -38,14 +38,14 @@ namespace CalamityMod.Tiles Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("ChaosCandle"); + player.showItemIcon2 = ModContent.ItemType(); } public override void NearbyEffects(int i, int j, bool closer) { Player player = Main.LocalPlayer; if (!player.dead && player.active) - player.AddBuff(mod.BuffType("ChaosCandle"), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) @@ -57,7 +57,7 @@ namespace CalamityMod.Tiles /*public override void RightClick(int i, int j) { - Item.NewItem(i * 16, j * 16, 8, 8, mod.ItemType("ChaosCandle")); + Item.NewItem(i * 16, j * 16, 8, 8, ModContent.ItemType()); ?? KillTile( i, j); }*/ } diff --git a/Tiles/ChaoticBrick.cs b/Tiles/ChaoticBrick.cs index 6985266e4d..7dc34d85bb 100644 --- a/Tiles/ChaoticBrick.cs +++ b/Tiles/ChaoticBrick.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -12,7 +12,7 @@ namespace CalamityMod.Tiles Main.tileSolid[Type] = true; Main.tileBlockLight[Type] = true; dustType = 105; - drop = mod.ItemType("ChaoticBrick"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Chaotic Brick"); AddMapEntry(new Color(255, 0, 0), name); diff --git a/Tiles/ChaoticOre.cs b/Tiles/ChaoticOre.cs index 64b9fcc7b8..fa116903e9 100644 --- a/Tiles/ChaoticOre.cs +++ b/Tiles/ChaoticOre.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles TileMerge.MergeAbyssTiles(Type); dustType = 105; - drop = mod.ItemType("ChaoticOre"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Chaotic Ore"); AddMapEntry(new Color(255, 0, 0), name); @@ -50,7 +50,7 @@ namespace CalamityMod.Tiles { if (Main.netMode != 1) { - Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, 0.1f, mod.ProjectileType("LavaChunk"), 25, 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, 0.1f, ModContent.ProjectileType(), 25, 2f, Main.myPlayer, 0f, 0f); } } } @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AbyssGravel"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/CharredOre.cs b/Tiles/CharredOre.cs index 663de56302..0f9a23368b 100644 --- a/Tiles/CharredOre.cs +++ b/Tiles/CharredOre.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); TileMerge.MergeHellTiles(Type); - drop = mod.ItemType("CharredOre"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Charred Ore"); AddMapEntry(new Color(17, 16, 26), name); @@ -56,7 +56,7 @@ namespace CalamityMod.Tiles public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("BrimstoneSlag"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/Cinderplate.cs b/Tiles/Cinderplate.cs index 0cb91d3cad..3c4e67ec6e 100644 --- a/Tiles/Cinderplate.cs +++ b/Tiles/Cinderplate.cs @@ -2,7 +2,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles soundType = 21; mineResist = 1f; minPick = 180; - drop = mod.ItemType("Cinderplate"); + drop = ModContent.ItemType(); AddMapEntry(new Color(173, 52, 70)); } diff --git a/Tiles/CorruptionEffigy.cs b/Tiles/CorruptionEffigy.cs index 8a3ad2780c..88d34ad253 100644 --- a/Tiles/CorruptionEffigy.cs +++ b/Tiles/CorruptionEffigy.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -24,12 +24,12 @@ namespace CalamityMod.Tiles { Player player = Main.LocalPlayer; if (!player.dead && player.active) - player.AddBuff(mod.BuffType("CorruptionEffigyBuff"), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("CorruptionEffigy")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/CrimsonEffigy.cs b/Tiles/CrimsonEffigy.cs index 57183bc393..5bf2fd4ab2 100644 --- a/Tiles/CrimsonEffigy.cs +++ b/Tiles/CrimsonEffigy.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -24,12 +24,12 @@ namespace CalamityMod.Tiles { Player player = Main.LocalPlayer; if (!player.dead && player.active) - player.AddBuff(mod.BuffType("CrimsonEffigyBuff"), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("CrimsonEffigy")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/CryonicBrick.cs b/Tiles/CryonicBrick.cs index e6890085d8..6696f496b0 100644 --- a/Tiles/CryonicBrick.cs +++ b/Tiles/CryonicBrick.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles soundType = 21; minPick = 100; - drop = mod.ItemType("CryonicBrick"); + drop = ModContent.ItemType(); AddMapEntry(new Color(99, 131, 199)); } diff --git a/Tiles/CryonicOre.cs b/Tiles/CryonicOre.cs index 40f2356116..5d75b858ac 100644 --- a/Tiles/CryonicOre.cs +++ b/Tiles/CryonicOre.cs @@ -3,7 +3,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -19,8 +19,8 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); TileMerge.MergeSnowTiles(Type); - dustType = mod.DustType("MSparkle"); - drop = mod.ItemType("CryonicOre"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Cryonic Ore"); AddMapEntry(new Color(0, 0, 150), name); diff --git a/Tiles/DraedonsForge.cs b/Tiles/DraedonsForge.cs index 9cd0436e1e..401e9d4bf7 100644 --- a/Tiles/DraedonsForge.cs +++ b/Tiles/DraedonsForge.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("DraedonsForge")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/ExodiumOre.cs b/Tiles/ExodiumOre.cs index 9958163bc7..cab0f64cd0 100644 --- a/Tiles/ExodiumOre.cs +++ b/Tiles/ExodiumOre.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles soundType = 21; Main.tileValue[Type] = 760; Main.tileSpelunker[Type] = true; - drop = mod.ItemType("ExodiumClusterOre"); + drop = ModContent.ItemType(); base.SetDefaults(); } diff --git a/Tiles/FurnitureAbyss/AbyssBath.cs b/Tiles/FurnitureAbyss/AbyssBath.cs index 3c7d5a8dcf..d0107d2e69 100644 --- a/Tiles/FurnitureAbyss/AbyssBath.cs +++ b/Tiles/FurnitureAbyss/AbyssBath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssBath : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssBath")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssBed.cs b/Tiles/FurnitureAbyss/AbyssBed.cs index a6f9f8921e..182f2652a3 100644 --- a/Tiles/FurnitureAbyss/AbyssBed.cs +++ b/Tiles/FurnitureAbyss/AbyssBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssBed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("AbyssBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AbyssBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAbyss/AbyssBookcase.cs b/Tiles/FurnitureAbyss/AbyssBookcase.cs index 837048b977..a6a6c3fc01 100644 --- a/Tiles/FurnitureAbyss/AbyssBookcase.cs +++ b/Tiles/FurnitureAbyss/AbyssBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssBookcase : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssCandelabra.cs b/Tiles/FurnitureAbyss/AbyssCandelabra.cs index 8a8a522424..8f0f4655d7 100644 --- a/Tiles/FurnitureAbyss/AbyssCandelabra.cs +++ b/Tiles/FurnitureAbyss/AbyssCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssCandelabra : ModTile { @@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AbyssCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureAbyss/AbyssCandle.cs b/Tiles/FurnitureAbyss/AbyssCandle.cs index 85bc4e121c..c118fd38b5 100644 --- a/Tiles/FurnitureAbyss/AbyssCandle.cs +++ b/Tiles/FurnitureAbyss/AbyssCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssCandle : ModTile { @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("AbyssCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAbyss/AbyssChair.cs b/Tiles/FurnitureAbyss/AbyssChair.cs index a706f642e2..abe2dd5888 100644 --- a/Tiles/FurnitureAbyss/AbyssChair.cs +++ b/Tiles/FurnitureAbyss/AbyssChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssChair : ModTile { @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssChandelier.cs b/Tiles/FurnitureAbyss/AbyssChandelier.cs index 9485f0be58..2038059bc2 100644 --- a/Tiles/FurnitureAbyss/AbyssChandelier.cs +++ b/Tiles/FurnitureAbyss/AbyssChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssChandelier : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("AbyssChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureAbyss/AbyssChest.cs b/Tiles/FurnitureAbyss/AbyssChest.cs index bbb6d17b01..2954f1de2d 100644 --- a/Tiles/FurnitureAbyss/AbyssChest.cs +++ b/Tiles/FurnitureAbyss/AbyssChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssChest : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Abyss Chest"; - chestDrop = mod.ItemType("AbyssChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -186,7 +186,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Abyss Chest"; if (player.showItemIconText == "Abyss Chest") { - player.showItemIcon2 = mod.ItemType("AbyssChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureAbyss/AbyssClock.cs b/Tiles/FurnitureAbyss/AbyssClock.cs index ac100dff61..8b09da1960 100644 --- a/Tiles/FurnitureAbyss/AbyssClock.cs +++ b/Tiles/FurnitureAbyss/AbyssClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssClock : ModTile { @@ -113,7 +113,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("AbyssClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssDoorClosed.cs b/Tiles/FurnitureAbyss/AbyssDoorClosed.cs index 41286b6c14..49f48e165b 100644 --- a/Tiles/FurnitureAbyss/AbyssDoorClosed.cs +++ b/Tiles/FurnitureAbyss/AbyssDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssDoorClosed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("AbyssDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AbyssDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -72,7 +72,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AbyssDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAbyss/AbyssDoorOpen.cs b/Tiles/FurnitureAbyss/AbyssDoorOpen.cs index 5fd02521f0..c64f658727 100644 --- a/Tiles/FurnitureAbyss/AbyssDoorOpen.cs +++ b/Tiles/FurnitureAbyss/AbyssDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssDoorOpen : ModTile { @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("AbyssDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("AbyssDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AbyssDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAbyss/AbyssDresser.cs b/Tiles/FurnitureAbyss/AbyssDresser.cs index 1dad2fc506..e4e465e3e9 100644 --- a/Tiles/FurnitureAbyss/AbyssDresser.cs +++ b/Tiles/FurnitureAbyss/AbyssDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssDresser : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Abyss Dresser"; - dresserDrop = mod.ItemType("AbyssDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -178,7 +178,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("AbyssDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -220,7 +220,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("AbyssDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureAbyss/AbyssLamp.cs b/Tiles/FurnitureAbyss/AbyssLamp.cs index 07bdcc64c9..32182c8dc4 100644 --- a/Tiles/FurnitureAbyss/AbyssLamp.cs +++ b/Tiles/FurnitureAbyss/AbyssLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssLamp : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureAbyss/AbyssLantern.cs b/Tiles/FurnitureAbyss/AbyssLantern.cs index 0db656cd24..4258d2c676 100644 --- a/Tiles/FurnitureAbyss/AbyssLantern.cs +++ b/Tiles/FurnitureAbyss/AbyssLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssLantern : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureAbyss/AbyssPiano.cs b/Tiles/FurnitureAbyss/AbyssPiano.cs index a2ff7e08de..dd6e3ed559 100644 --- a/Tiles/FurnitureAbyss/AbyssPiano.cs +++ b/Tiles/FurnitureAbyss/AbyssPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssPiano : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssSink.cs b/Tiles/FurnitureAbyss/AbyssSink.cs index 270b4e128c..1225167f76 100644 --- a/Tiles/FurnitureAbyss/AbyssSink.cs +++ b/Tiles/FurnitureAbyss/AbyssSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssSink : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssSofa.cs b/Tiles/FurnitureAbyss/AbyssSofa.cs index ca1f2b2353..bec185d4b3 100644 --- a/Tiles/FurnitureAbyss/AbyssSofa.cs +++ b/Tiles/FurnitureAbyss/AbyssSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssSofa : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssTable.cs b/Tiles/FurnitureAbyss/AbyssTable.cs index 380139bce1..9a522a42a0 100644 --- a/Tiles/FurnitureAbyss/AbyssTable.cs +++ b/Tiles/FurnitureAbyss/AbyssTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssTable : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AbyssTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/AbyssTorch.cs b/Tiles/FurnitureAbyss/AbyssTorch.cs index 02d7260057..9f66e4e059 100644 --- a/Tiles/FurnitureAbyss/AbyssTorch.cs +++ b/Tiles/FurnitureAbyss/AbyssTorch.cs @@ -4,10 +4,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssTorch : ModTile { @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss name.SetDefault("Abyss Torch"); AddMapEntry(new Color(253, 221, 3), name); disableSmartCursor = true; - drop = mod.ItemType("AbyssTorch"); + drop = ModContent.ItemType(); adjTiles = new int[] { TileID.Torches }; torch = true; } diff --git a/Tiles/FurnitureAbyss/AbyssWorkbench.cs b/Tiles/FurnitureAbyss/AbyssWorkbench.cs index c3f57514de..5579505d83 100644 --- a/Tiles/FurnitureAbyss/AbyssWorkbench.cs +++ b/Tiles/FurnitureAbyss/AbyssWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class AbyssWorkbench : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("AbyssWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs b/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs index 7550a8a7f2..e200c039d8 100644 --- a/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs +++ b/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs @@ -1,9 +1,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class SmoothAbyssGravel : ModTile { @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss soundType = 21; mineResist = 2f; minPick = 65; - drop = mod.ItemType("SmoothAbyssGravel"); + drop = ModContent.ItemType(); AddMapEntry(new Color(49, 56, 77)); } diff --git a/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs b/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs index 18a5ba3c01..122505acbf 100644 --- a/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs +++ b/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAbyss +namespace CalamityMod.Tiles { public class SmoothAbyssGravelPlatform : ModTile { @@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - drop = mod.ItemType("SmoothAbyssGravelPlatform"); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurnitureAncient/AncientAltar.cs b/Tiles/FurnitureAncient/AncientAltar.cs index 0f9f7549dc..85980bf5ea 100644 --- a/Tiles/FurnitureAncient/AncientAltar.cs +++ b/Tiles/FurnitureAncient/AncientAltar.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientAltar : ModTile { @@ -55,7 +55,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientAltar")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientBasin.cs b/Tiles/FurnitureAncient/AncientBasin.cs index 2bfbd5f124..b9fbde91b3 100644 --- a/Tiles/FurnitureAncient/AncientBasin.cs +++ b/Tiles/FurnitureAncient/AncientBasin.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientBasin : ModTile { @@ -59,7 +59,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientBasin")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureAncient/AncientBath.cs b/Tiles/FurnitureAncient/AncientBath.cs index c97ed56090..37530cf30b 100644 --- a/Tiles/FurnitureAncient/AncientBath.cs +++ b/Tiles/FurnitureAncient/AncientBath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientBath : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientBath")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientBed.cs b/Tiles/FurnitureAncient/AncientBed.cs index 731194b31e..9f3014c569 100644 --- a/Tiles/FurnitureAncient/AncientBed.cs +++ b/Tiles/FurnitureAncient/AncientBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientBed : ModTile { @@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("AncientBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -77,7 +77,7 @@ namespace CalamityMod.Tiles.FurnitureAncient Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AncientBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAncient/AncientBookcase.cs b/Tiles/FurnitureAncient/AncientBookcase.cs index 22ddbd79a7..2a71a80951 100644 --- a/Tiles/FurnitureAncient/AncientBookcase.cs +++ b/Tiles/FurnitureAncient/AncientBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientBookcase : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientChair.cs b/Tiles/FurnitureAncient/AncientChair.cs index 07436d9669..001e05135b 100644 --- a/Tiles/FurnitureAncient/AncientChair.cs +++ b/Tiles/FurnitureAncient/AncientChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientChair : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureAncient ModTranslation name = CreateMapEntryName(); name.SetDefault("Ancient Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientChandelier.cs b/Tiles/FurnitureAncient/AncientChandelier.cs index c0f848032d..2cffff01d8 100644 --- a/Tiles/FurnitureAncient/AncientChandelier.cs +++ b/Tiles/FurnitureAncient/AncientChandelier.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.Enums; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientChandelier : ModTile { @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("AncientChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientDoorClosed.cs b/Tiles/FurnitureAncient/AncientDoorClosed.cs index 0316145924..20bed960dd 100644 --- a/Tiles/FurnitureAncient/AncientDoorClosed.cs +++ b/Tiles/FurnitureAncient/AncientDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientDoorClosed : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureAncient AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("AncientDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AncientDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -72,7 +72,7 @@ namespace CalamityMod.Tiles.FurnitureAncient Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AncientDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAncient/AncientDoorOpen.cs b/Tiles/FurnitureAncient/AncientDoorOpen.cs index 26ee03824c..342da2afcd 100644 --- a/Tiles/FurnitureAncient/AncientDoorOpen.cs +++ b/Tiles/FurnitureAncient/AncientDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientDoorOpen : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureAncient AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("AncientDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("AncientDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureAncient Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AncientDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAncient/AncientDresser.cs b/Tiles/FurnitureAncient/AncientDresser.cs index 21d1c6cb4a..3a243bb7ba 100644 --- a/Tiles/FurnitureAncient/AncientDresser.cs +++ b/Tiles/FurnitureAncient/AncientDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientDresser : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureAncient disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Ancient Dresser"; - dresserDrop = mod.ItemType("AncientDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -178,7 +178,7 @@ namespace CalamityMod.Tiles.FurnitureAncient } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("AncientDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -220,7 +220,7 @@ namespace CalamityMod.Tiles.FurnitureAncient } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("AncientDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureAncient/AncientLamp.cs b/Tiles/FurnitureAncient/AncientLamp.cs index cf730b28e3..d983b0f6a7 100644 --- a/Tiles/FurnitureAncient/AncientLamp.cs +++ b/Tiles/FurnitureAncient/AncientLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientLamp : ModTile { @@ -56,7 +56,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientLantern.cs b/Tiles/FurnitureAncient/AncientLantern.cs index 4c4ac40fc2..fa15774e8f 100644 --- a/Tiles/FurnitureAncient/AncientLantern.cs +++ b/Tiles/FurnitureAncient/AncientLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientLantern : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientMonolith.cs b/Tiles/FurnitureAncient/AncientMonolith.cs index dedabd4707..8941a4cecd 100644 --- a/Tiles/FurnitureAncient/AncientMonolith.cs +++ b/Tiles/FurnitureAncient/AncientMonolith.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientMonolith : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureAncient ModTranslation name = CreateMapEntryName(); name.SetDefault("Ancient Monolith"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } int animationFrameWidth = 36; @@ -149,7 +149,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("AncientMonolith")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientPiano.cs b/Tiles/FurnitureAncient/AncientPiano.cs index 3273c8978e..5be40fff1f 100644 --- a/Tiles/FurnitureAncient/AncientPiano.cs +++ b/Tiles/FurnitureAncient/AncientPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientPiano : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientSink.cs b/Tiles/FurnitureAncient/AncientSink.cs index 5c5f19cb2b..cfd90c2a01 100644 --- a/Tiles/FurnitureAncient/AncientSink.cs +++ b/Tiles/FurnitureAncient/AncientSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientSink : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientSofa.cs b/Tiles/FurnitureAncient/AncientSofa.cs index 0a03bb81b7..b34f9eb148 100644 --- a/Tiles/FurnitureAncient/AncientSofa.cs +++ b/Tiles/FurnitureAncient/AncientSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientSofa : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientTable.cs b/Tiles/FurnitureAncient/AncientTable.cs index 1f62eaba32..fead329155 100644 --- a/Tiles/FurnitureAncient/AncientTable.cs +++ b/Tiles/FurnitureAncient/AncientTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { class AncientTable : ModTile { @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AncientTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAncient/AncientWorkbench.cs b/Tiles/FurnitureAncient/AncientWorkbench.cs index cc0b71508a..7ffdae9ab5 100644 --- a/Tiles/FurnitureAncient/AncientWorkbench.cs +++ b/Tiles/FurnitureAncient/AncientWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAncient +namespace CalamityMod.Tiles { public class AncientWorkbench : ModTile { @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("AncientWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenAltar.cs b/Tiles/FurnitureAshen/AshenAltar.cs index 782d603061..5e8de0988f 100644 --- a/Tiles/FurnitureAshen/AshenAltar.cs +++ b/Tiles/FurnitureAshen/AshenAltar.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenAltar : ModTile { @@ -55,7 +55,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenAltar")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenBasin.cs b/Tiles/FurnitureAshen/AshenBasin.cs index 4e78242e68..e6a064e49e 100644 --- a/Tiles/FurnitureAshen/AshenBasin.cs +++ b/Tiles/FurnitureAshen/AshenBasin.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenBasin : ModTile { @@ -59,7 +59,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenBasin")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureAshen/AshenBath.cs b/Tiles/FurnitureAshen/AshenBath.cs index eef5b6e0f3..d13aad2f31 100644 --- a/Tiles/FurnitureAshen/AshenBath.cs +++ b/Tiles/FurnitureAshen/AshenBath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenBath : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenBath")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenBed.cs b/Tiles/FurnitureAshen/AshenBed.cs index c2970fd088..58099c329a 100644 --- a/Tiles/FurnitureAshen/AshenBed.cs +++ b/Tiles/FurnitureAshen/AshenBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenBed : ModTile { @@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("AshenBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -77,7 +77,7 @@ namespace CalamityMod.Tiles.FurnitureAshen Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AshenBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAshen/AshenBookcase.cs b/Tiles/FurnitureAshen/AshenBookcase.cs index 2714013770..693a08933d 100644 --- a/Tiles/FurnitureAshen/AshenBookcase.cs +++ b/Tiles/FurnitureAshen/AshenBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenBookcase : ModTile { @@ -49,7 +49,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenCandelabra.cs b/Tiles/FurnitureAshen/AshenCandelabra.cs index d1e419be94..50d3f40be7 100644 --- a/Tiles/FurnitureAshen/AshenCandelabra.cs +++ b/Tiles/FurnitureAshen/AshenCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenCandelabra : ModTile { @@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AshenCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureAshen/AshenCandle.cs b/Tiles/FurnitureAshen/AshenCandle.cs index 9473669624..026a48a3cb 100644 --- a/Tiles/FurnitureAshen/AshenCandle.cs +++ b/Tiles/FurnitureAshen/AshenCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenCandle : ModTile { @@ -24,7 +24,7 @@ namespace CalamityMod.Tiles.FurnitureAshen animationFrameHeight = 22; disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("AshenCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureAshen/AshenChair.cs b/Tiles/FurnitureAshen/AshenChair.cs index 2e506cb18e..080ff5f79e 100644 --- a/Tiles/FurnitureAshen/AshenChair.cs +++ b/Tiles/FurnitureAshen/AshenChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenChair : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureAshen ModTranslation name = CreateMapEntryName(); name.SetDefault("Ashen Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenChandelier.cs b/Tiles/FurnitureAshen/AshenChandelier.cs index ac53c72fb0..80d5e5c9f0 100644 --- a/Tiles/FurnitureAshen/AshenChandelier.cs +++ b/Tiles/FurnitureAshen/AshenChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenChandelier : ModTile { @@ -74,7 +74,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("AshenChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureAshen/AshenChest.cs b/Tiles/FurnitureAshen/AshenChest.cs index 3b0131e417..e423e7912f 100644 --- a/Tiles/FurnitureAshen/AshenChest.cs +++ b/Tiles/FurnitureAshen/AshenChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenChest : ModTile { @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.FurnitureAshen disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Ashen Chest"; - chestDrop = mod.ItemType("AshenChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -236,9 +236,9 @@ namespace CalamityMod.Tiles.FurnitureAshen player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Ashen Chest"; if (player.showItemIconText == "Ashen Chest") { - player.showItemIcon2 = mod.ItemType("AshenChest"); + player.showItemIcon2 = ModContent.ItemType(); if (Main.tile[left, top].frameX / 36 == 1) - player.showItemIcon2 = mod.ItemType("BrimstoneKey"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureAshen/AshenDoorClosed.cs b/Tiles/FurnitureAshen/AshenDoorClosed.cs index d58d3d0d46..ce6dcc1b88 100644 --- a/Tiles/FurnitureAshen/AshenDoorClosed.cs +++ b/Tiles/FurnitureAshen/AshenDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { // TODO: Smart Cursor Outlines and tModLoader support public class AshenDoorClosed : ModTile @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureAshen AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("AshenDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AshenDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -73,7 +73,7 @@ namespace CalamityMod.Tiles.FurnitureAshen Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AshenDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAshen/AshenDoorOpen.cs b/Tiles/FurnitureAshen/AshenDoorOpen.cs index 6bbf4726a4..78d6fdeb0b 100644 --- a/Tiles/FurnitureAshen/AshenDoorOpen.cs +++ b/Tiles/FurnitureAshen/AshenDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenDoorOpen : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureAshen AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("AshenDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("AshenDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureAshen Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("AshenDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureAshen/AshenDresser.cs b/Tiles/FurnitureAshen/AshenDresser.cs index de94a1fe85..0ffde43eff 100644 --- a/Tiles/FurnitureAshen/AshenDresser.cs +++ b/Tiles/FurnitureAshen/AshenDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenDresser : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureAshen disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Ashen Dresser"; - dresserDrop = mod.ItemType("AshenDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -178,7 +178,7 @@ namespace CalamityMod.Tiles.FurnitureAshen } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("AshenDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -220,7 +220,7 @@ namespace CalamityMod.Tiles.FurnitureAshen } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("AshenDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureAshen/AshenLamp.cs b/Tiles/FurnitureAshen/AshenLamp.cs index 8cbea07c23..478e09c8e3 100644 --- a/Tiles/FurnitureAshen/AshenLamp.cs +++ b/Tiles/FurnitureAshen/AshenLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenLamp : ModTile { @@ -50,7 +50,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureAshen/AshenLantern.cs b/Tiles/FurnitureAshen/AshenLantern.cs index b157c7d240..2b8d143754 100644 --- a/Tiles/FurnitureAshen/AshenLantern.cs +++ b/Tiles/FurnitureAshen/AshenLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenLantern : ModTile { @@ -50,7 +50,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureAshen/AshenMonolith.cs b/Tiles/FurnitureAshen/AshenMonolith.cs index 8b4783eac5..2dd72bc3a2 100644 --- a/Tiles/FurnitureAshen/AshenMonolith.cs +++ b/Tiles/FurnitureAshen/AshenMonolith.cs @@ -4,10 +4,10 @@ using System; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenMonolith : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAshen ModTranslation name = CreateMapEntryName(); AddMapEntry(new Color(191, 142, 111), name); name.SetDefault("Ashen Monolith"); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } int animationFrameWidth = 36; @@ -125,7 +125,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("AshenMonolith")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } public override void PostDraw(int i, int j, SpriteBatch spriteBatch) diff --git a/Tiles/FurnitureAshen/AshenPiano.cs b/Tiles/FurnitureAshen/AshenPiano.cs index a09bf2df60..89f443ab7c 100644 --- a/Tiles/FurnitureAshen/AshenPiano.cs +++ b/Tiles/FurnitureAshen/AshenPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenPiano : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenPlatform.cs b/Tiles/FurnitureAshen/AshenPlatform.cs index 1acbce6d8c..ab59729d96 100644 --- a/Tiles/FurnitureAshen/AshenPlatform.cs +++ b/Tiles/FurnitureAshen/AshenPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenPlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurnitureAshen TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("AshenPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurnitureAshen/AshenSink.cs b/Tiles/FurnitureAshen/AshenSink.cs index 4a5ea9d80a..ebc138e9f0 100644 --- a/Tiles/FurnitureAshen/AshenSink.cs +++ b/Tiles/FurnitureAshen/AshenSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenSink : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenSlab.cs b/Tiles/FurnitureAshen/AshenSlab.cs index 408a0f003a..7229f1d84c 100644 --- a/Tiles/FurnitureAshen/AshenSlab.cs +++ b/Tiles/FurnitureAshen/AshenSlab.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenSlab : ModTile { @@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.FurnitureAshen Main.tileSolid[Type] = true; Main.tileMergeDirt[Type] = false; Main.tileBlockLight[Type] = true; - drop = mod.ItemType("AshenSlab"); + drop = ModContent.ItemType(); soundType = 21; mineResist = 5f; minPick = 180; diff --git a/Tiles/FurnitureAshen/AshenSofa.cs b/Tiles/FurnitureAshen/AshenSofa.cs index aa15b8faec..97f17ffdb4 100644 --- a/Tiles/FurnitureAshen/AshenSofa.cs +++ b/Tiles/FurnitureAshen/AshenSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenSofa : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenTable.cs b/Tiles/FurnitureAshen/AshenTable.cs index 5438eb1ead..efc5ab19a1 100644 --- a/Tiles/FurnitureAshen/AshenTable.cs +++ b/Tiles/FurnitureAshen/AshenTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { class AshenTable : ModTile { @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("AshenTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/AshenWorkbench.cs b/Tiles/FurnitureAshen/AshenWorkbench.cs index 0948594b7a..bb77752ebf 100644 --- a/Tiles/FurnitureAshen/AshenWorkbench.cs +++ b/Tiles/FurnitureAshen/AshenWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class AshenWorkbench : ModTile { @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("AshenWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs b/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs index 3237ad6a44..e5d9106e8b 100644 --- a/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs +++ b/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureAshen +namespace CalamityMod.Tiles { public class SmoothBrimstoneSlag : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureAshen soundType = 21; mineResist = 5f; minPick = 180; - drop = mod.ItemType("SmoothBrimstoneSlag"); + drop = ModContent.ItemType(); AddMapEntry(new Color(61, 40, 61)); } diff --git a/Tiles/FurnitureBotanic/BotanicBathtub.cs b/Tiles/FurnitureBotanic/BotanicBathtub.cs index 0b32220919..5cde0f3870 100644 --- a/Tiles/FurnitureBotanic/BotanicBathtub.cs +++ b/Tiles/FurnitureBotanic/BotanicBathtub.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicBathtub : ModTile { @@ -24,8 +24,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicBathtub")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicBed.cs b/Tiles/FurnitureBotanic/BotanicBed.cs index 7606af02ab..4fe9063e31 100644 --- a/Tiles/FurnitureBotanic/BotanicBed.cs +++ b/Tiles/FurnitureBotanic/BotanicBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicBed : ModTile { @@ -27,8 +27,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("BotanicBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -77,7 +77,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("BotanicBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureBotanic/BotanicBench.cs b/Tiles/FurnitureBotanic/BotanicBench.cs index 55949a15cf..b3eecdde02 100644 --- a/Tiles/FurnitureBotanic/BotanicBench.cs +++ b/Tiles/FurnitureBotanic/BotanicBench.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicBench : ModTile { @@ -23,8 +23,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicBench")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicBookcase.cs b/Tiles/FurnitureBotanic/BotanicBookcase.cs index a1ae8e919a..c20b4d52d1 100644 --- a/Tiles/FurnitureBotanic/BotanicBookcase.cs +++ b/Tiles/FurnitureBotanic/BotanicBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicBookcase : ModTile { @@ -28,8 +28,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicCandelabra.cs b/Tiles/FurnitureBotanic/BotanicCandelabra.cs index 95a4da1443..40bc44d8ca 100644 --- a/Tiles/FurnitureBotanic/BotanicCandelabra.cs +++ b/Tiles/FurnitureBotanic/BotanicCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicCandelabra : ModTile { @@ -26,8 +26,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -54,7 +54,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("BotanicCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureBotanic/BotanicCandle.cs b/Tiles/FurnitureBotanic/BotanicCandle.cs index c162ee47cb..8f9e9ecb68 100644 --- a/Tiles/FurnitureBotanic/BotanicCandle.cs +++ b/Tiles/FurnitureBotanic/BotanicCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicCandle : ModTile { @@ -23,13 +23,13 @@ namespace CalamityMod.Tiles.FurnitureBotanic AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("BotanicCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureBotanic/BotanicChair.cs b/Tiles/FurnitureBotanic/BotanicChair.cs index f27f2b0759..5312d9e945 100644 --- a/Tiles/FurnitureBotanic/BotanicChair.cs +++ b/Tiles/FurnitureBotanic/BotanicChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicChair : ModTile { @@ -28,15 +28,15 @@ namespace CalamityMod.Tiles.FurnitureBotanic ModTranslation name = CreateMapEntryName(); name.SetDefault("Botanic Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicChandelier.cs b/Tiles/FurnitureBotanic/BotanicChandelier.cs index c5e572808c..a27d994d98 100644 --- a/Tiles/FurnitureBotanic/BotanicChandelier.cs +++ b/Tiles/FurnitureBotanic/BotanicChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicChandelier : ModTile { @@ -35,8 +35,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("BotanicChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureBotanic/BotanicChest.cs b/Tiles/FurnitureBotanic/BotanicChest.cs index 35e431f848..2b441ae40a 100644 --- a/Tiles/FurnitureBotanic/BotanicChest.cs +++ b/Tiles/FurnitureBotanic/BotanicChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicChest : ModTile { @@ -38,13 +38,13 @@ namespace CalamityMod.Tiles.FurnitureBotanic disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Botanic Chest"; - chestDrop = mod.ItemType("BotanicChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -187,7 +187,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Botanic Chest"; if (player.showItemIconText == "Botanic Chest") { - player.showItemIcon2 = mod.ItemType("BotanicChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureBotanic/BotanicClock.cs b/Tiles/FurnitureBotanic/BotanicClock.cs index 15fc94aa7f..d414e82c2c 100644 --- a/Tiles/FurnitureBotanic/BotanicClock.cs +++ b/Tiles/FurnitureBotanic/BotanicClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicClock : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic ModTranslation name = CreateMapEntryName(); name.SetDefault("Botanic Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -44,8 +44,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -115,7 +115,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("BotanicClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicDoorClosed.cs b/Tiles/FurnitureBotanic/BotanicDoorClosed.cs index a06c88f947..18ce0cf725 100644 --- a/Tiles/FurnitureBotanic/BotanicDoorClosed.cs +++ b/Tiles/FurnitureBotanic/BotanicDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicDoorClosed : ModTile { @@ -43,13 +43,13 @@ namespace CalamityMod.Tiles.FurnitureBotanic AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("BotanicDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("BotanicDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -73,7 +73,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("BotanicDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureBotanic/BotanicDoorOpen.cs b/Tiles/FurnitureBotanic/BotanicDoorOpen.cs index 210b5a4687..2756bed179 100644 --- a/Tiles/FurnitureBotanic/BotanicDoorOpen.cs +++ b/Tiles/FurnitureBotanic/BotanicDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicDoorOpen : ModTile { @@ -63,13 +63,13 @@ namespace CalamityMod.Tiles.FurnitureBotanic AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("BotanicDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -85,7 +85,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("BotanicDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -93,7 +93,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("BotanicDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureBotanic/BotanicDresser.cs b/Tiles/FurnitureBotanic/BotanicDresser.cs index 3fc9dba67f..61a013ee66 100644 --- a/Tiles/FurnitureBotanic/BotanicDresser.cs +++ b/Tiles/FurnitureBotanic/BotanicDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicDresser : ModTile { @@ -38,13 +38,13 @@ namespace CalamityMod.Tiles.FurnitureBotanic disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Botanic Dresser"; - dresserDrop = mod.ItemType("BotanicDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -179,7 +179,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("BotanicDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -221,7 +221,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("BotanicDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureBotanic/BotanicLamp.cs b/Tiles/FurnitureBotanic/BotanicLamp.cs index ccc4998538..0a4fd3fbd6 100644 --- a/Tiles/FurnitureBotanic/BotanicLamp.cs +++ b/Tiles/FurnitureBotanic/BotanicLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicLamp : ModTile { @@ -27,8 +27,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureBotanic/BotanicLantern.cs b/Tiles/FurnitureBotanic/BotanicLantern.cs index e37590ed0d..81fbf80112 100644 --- a/Tiles/FurnitureBotanic/BotanicLantern.cs +++ b/Tiles/FurnitureBotanic/BotanicLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicLantern : ModTile { @@ -27,8 +27,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureBotanic/BotanicPiano.cs b/Tiles/FurnitureBotanic/BotanicPiano.cs index 171f988d5b..3e59c8c0e7 100644 --- a/Tiles/FurnitureBotanic/BotanicPiano.cs +++ b/Tiles/FurnitureBotanic/BotanicPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicPiano : ModTile { @@ -23,8 +23,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicPlanter.cs b/Tiles/FurnitureBotanic/BotanicPlanter.cs index 1e72abf5b9..de210f9b86 100644 --- a/Tiles/FurnitureBotanic/BotanicPlanter.cs +++ b/Tiles/FurnitureBotanic/BotanicPlanter.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicPlanter : ModTile { @@ -25,8 +25,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -49,7 +49,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicPlanter")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureBotanic/BotanicPlatform.cs b/Tiles/FurnitureBotanic/BotanicPlatform.cs index e0111204fc..4c8c96a91d 100644 --- a/Tiles/FurnitureBotanic/BotanicPlatform.cs +++ b/Tiles/FurnitureBotanic/BotanicPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicPlatform : ModTile { @@ -29,16 +29,16 @@ namespace CalamityMod.Tiles.FurnitureBotanic TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("BotanicPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureBotanic/BotanicSink.cs b/Tiles/FurnitureBotanic/BotanicSink.cs index e4dbd177fe..c3da84cf87 100644 --- a/Tiles/FurnitureBotanic/BotanicSink.cs +++ b/Tiles/FurnitureBotanic/BotanicSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicSink : ModTile { @@ -24,8 +24,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicTable.cs b/Tiles/FurnitureBotanic/BotanicTable.cs index f0e781f647..be3f58d328 100644 --- a/Tiles/FurnitureBotanic/BotanicTable.cs +++ b/Tiles/FurnitureBotanic/BotanicTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { class BotanicTable : ModTile { @@ -28,8 +28,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BotanicTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureBotanic/BotanicWorkBench.cs b/Tiles/FurnitureBotanic/BotanicWorkBench.cs index 097ae9175f..0ee2e25875 100644 --- a/Tiles/FurnitureBotanic/BotanicWorkBench.cs +++ b/Tiles/FurnitureBotanic/BotanicWorkBench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureBotanic +namespace CalamityMod.Tiles { public class BotanicWorkBench : ModTile { @@ -28,8 +28,8 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("BloomTileLeaves"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("BotanicWorkBench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteBath.cs b/Tiles/FurnitureCosmilite/CosmiliteBath.cs index 4a9f6792ad..c1a24b2561 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteBath.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteBath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteBath : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteBath")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteBed.cs b/Tiles/FurnitureCosmilite/CosmiliteBed.cs index e3a163ba6d..a2bf44f675 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteBed.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteBed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("CosmiliteBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("CosmiliteBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteBookcase.cs b/Tiles/FurnitureCosmilite/CosmiliteBookcase.cs index 7d541d6352..7f715b6a66 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteBookcase.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteBookcase : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteBrick.cs b/Tiles/FurnitureCosmilite/CosmiliteBrick.cs index 32a8d05d78..99c64712ff 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteBrick.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteBrick.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteBrick : ModTile { @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite soundType = 21; mineResist = 5f; minPick = 275; - drop = mod.ItemType("CosmiliteBrick"); + drop = ModContent.ItemType(); AddMapEntry(new Color(76, 79, 133)); } diff --git a/Tiles/FurnitureCosmilite/CosmiliteCandelabra.cs b/Tiles/FurnitureCosmilite/CosmiliteCandelabra.cs index f3910bd235..3b772b0922 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteCandelabra.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteCandelabra : ModTile { @@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("CosmiliteCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureCosmilite/CosmiliteCandle.cs b/Tiles/FurnitureCosmilite/CosmiliteCandle.cs index 2a4bd4dd58..290340ae16 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteCandle.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteCandle : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("CosmiliteCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureCosmilite/CosmiliteChair.cs b/Tiles/FurnitureCosmilite/CosmiliteChair.cs index 7fc547c412..e744958151 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteChair.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteChair : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite ModTranslation name = CreateMapEntryName(); name.SetDefault("Cosmilite Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -46,7 +46,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteChandelier.cs b/Tiles/FurnitureCosmilite/CosmiliteChandelier.cs index 554645df2d..23e725a018 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteChandelier.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteChandelier : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("CosmiliteChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureCosmilite/CosmiliteChest.cs b/Tiles/FurnitureCosmilite/CosmiliteChest.cs index 6a90069a53..76f201e3dc 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteChest.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteChest : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Cosmilite Chest"; - chestDrop = mod.ItemType("CosmiliteChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -187,7 +187,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Cosmilite Chest"; if (player.showItemIconText == "Cosmilite Chest") { - player.showItemIcon2 = mod.ItemType("CosmiliteChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteClock.cs b/Tiles/FurnitureCosmilite/CosmiliteClock.cs index fdbaa8005f..a49866e9cd 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteClock.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteClock : ModTile { @@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite ModTranslation name = CreateMapEntryName(); name.SetDefault("Cosmilite Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -114,7 +114,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("CosmiliteClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs b/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs index e6a486c6a8..36d7750320 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteDoorClosed : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("CosmiliteDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CosmiliteDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -72,7 +72,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("CosmiliteDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs b/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs index 448889526b..34d6f2d632 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteDoorOpen : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("CosmiliteDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("CosmiliteDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("CosmiliteDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteDresser.cs b/Tiles/FurnitureCosmilite/CosmiliteDresser.cs index ddfe8b8dd2..6bc4475747 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteDresser.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteDresser : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Cosmilite Dresser"; - dresserDrop = mod.ItemType("CosmiliteDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -178,7 +178,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("CosmiliteDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -220,7 +220,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("CosmiliteDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteLamp.cs b/Tiles/FurnitureCosmilite/CosmiliteLamp.cs index fd35c19847..7ca2066269 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteLamp.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteLamp : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureCosmilite/CosmiliteLantern.cs b/Tiles/FurnitureCosmilite/CosmiliteLantern.cs index 37930eaa20..25955011b1 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteLantern.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteLantern : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureCosmilite/CosmilitePiano.cs b/Tiles/FurnitureCosmilite/CosmilitePiano.cs index 3919e8ac84..b5f655fe3d 100644 --- a/Tiles/FurnitureCosmilite/CosmilitePiano.cs +++ b/Tiles/FurnitureCosmilite/CosmilitePiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmilitePiano : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmilitePiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmilitePlatform.cs b/Tiles/FurnitureCosmilite/CosmilitePlatform.cs index 098aa1bad3..3079b587a2 100644 --- a/Tiles/FurnitureCosmilite/CosmilitePlatform.cs +++ b/Tiles/FurnitureCosmilite/CosmilitePlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmilitePlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurnitureCosmilite TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("CosmilitePlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurnitureCosmilite/CosmiliteSconce.cs b/Tiles/FurnitureCosmilite/CosmiliteSconce.cs index 683eaf056c..c547708c45 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteSconce.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteSconce.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteSconce : ModTile { @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteSconce")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureCosmilite/CosmiliteSink.cs b/Tiles/FurnitureCosmilite/CosmiliteSink.cs index 3dd3ebfa29..bb651e1b57 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteSink.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteSink : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteSofa.cs b/Tiles/FurnitureCosmilite/CosmiliteSofa.cs index 800e496628..203ff16f1e 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteSofa.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteSofa : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteTable.cs b/Tiles/FurnitureCosmilite/CosmiliteTable.cs index af9349f0ef..816bec3039 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteTable.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { class CosmiliteTable : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteWorkbench.cs b/Tiles/FurnitureCosmilite/CosmiliteWorkbench.cs index f23e97869d..2c916df3e7 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteWorkbench.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureCosmilite +namespace CalamityMod.Tiles { public class CosmiliteWorkbench : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("CosmiliteWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicBathtub.cs b/Tiles/FurnitureEutrophic/EutrophicBathtub.cs index 6263965dc9..344e456419 100644 --- a/Tiles/FurnitureEutrophic/EutrophicBathtub.cs +++ b/Tiles/FurnitureEutrophic/EutrophicBathtub.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicBathtub : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicBathtub")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicBed.cs b/Tiles/FurnitureEutrophic/EutrophicBed.cs index a2ae08297d..69c10caff9 100644 --- a/Tiles/FurnitureEutrophic/EutrophicBed.cs +++ b/Tiles/FurnitureEutrophic/EutrophicBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicBed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("EutrophicBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("EutrophicBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicBench.cs b/Tiles/FurnitureEutrophic/EutrophicBench.cs index 2133bbaa42..b542b69504 100644 --- a/Tiles/FurnitureEutrophic/EutrophicBench.cs +++ b/Tiles/FurnitureEutrophic/EutrophicBench.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicBench : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicBench")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicBookcase.cs b/Tiles/FurnitureEutrophic/EutrophicBookcase.cs index 0d15b9e40b..cefc962cfc 100644 --- a/Tiles/FurnitureEutrophic/EutrophicBookcase.cs +++ b/Tiles/FurnitureEutrophic/EutrophicBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicBookcase : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicCandelabra.cs b/Tiles/FurnitureEutrophic/EutrophicCandelabra.cs index 3dbe42391d..ae3357ba4e 100644 --- a/Tiles/FurnitureEutrophic/EutrophicCandelabra.cs +++ b/Tiles/FurnitureEutrophic/EutrophicCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicCandelabra : ModTile { @@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("EutrophicCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureEutrophic/EutrophicCandle.cs b/Tiles/FurnitureEutrophic/EutrophicCandle.cs index 3e4820f5b3..e4f41c7005 100644 --- a/Tiles/FurnitureEutrophic/EutrophicCandle.cs +++ b/Tiles/FurnitureEutrophic/EutrophicCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicCandle : ModTile { @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("EutrophicCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureEutrophic/EutrophicChair.cs b/Tiles/FurnitureEutrophic/EutrophicChair.cs index 7069661924..7623c68453 100644 --- a/Tiles/FurnitureEutrophic/EutrophicChair.cs +++ b/Tiles/FurnitureEutrophic/EutrophicChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicChair : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic ModTranslation name = CreateMapEntryName(); name.SetDefault("Eutrophic Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -46,7 +46,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicChandelier.cs b/Tiles/FurnitureEutrophic/EutrophicChandelier.cs index 8a11abd7ce..42882d3d0f 100644 --- a/Tiles/FurnitureEutrophic/EutrophicChandelier.cs +++ b/Tiles/FurnitureEutrophic/EutrophicChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicChandelier : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("EutrophicChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureEutrophic/EutrophicChest.cs b/Tiles/FurnitureEutrophic/EutrophicChest.cs index 7482271613..cf7e5019b7 100644 --- a/Tiles/FurnitureEutrophic/EutrophicChest.cs +++ b/Tiles/FurnitureEutrophic/EutrophicChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicChest : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Eutrophic Chest"; - chestDrop = mod.ItemType("EutrophicChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -186,7 +186,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Eutrophic Chest"; if (player.showItemIconText == "Eutrophic Chest") { - player.showItemIcon2 = mod.ItemType("EutrophicChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureEutrophic/EutrophicClock.cs b/Tiles/FurnitureEutrophic/EutrophicClock.cs index 12acaf55d6..90e7264df1 100644 --- a/Tiles/FurnitureEutrophic/EutrophicClock.cs +++ b/Tiles/FurnitureEutrophic/EutrophicClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicClock : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic ModTranslation name = CreateMapEntryName(); name.SetDefault("Eutrophic Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -131,7 +131,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("EutrophicClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicCrafting.cs b/Tiles/FurnitureEutrophic/EutrophicCrafting.cs index a688bf555f..2fa3bbdcd7 100644 --- a/Tiles/FurnitureEutrophic/EutrophicCrafting.cs +++ b/Tiles/FurnitureEutrophic/EutrophicCrafting.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicCrafting : ModTile { @@ -56,7 +56,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicCrafting")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs b/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs index c9d1bf0469..62c5e2aae9 100644 --- a/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs +++ b/Tiles/FurnitureEutrophic/EutrophicDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicDoorClosed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("EutrophicDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("EutrophicDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -72,7 +72,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("EutrophicDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs b/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs index d86dc249b4..3160fe1893 100644 --- a/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs +++ b/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicDoorOpen : ModTile { @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("EutrophicDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("EutrophicDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("EutrophicDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicDresser.cs b/Tiles/FurnitureEutrophic/EutrophicDresser.cs index c3e45bb976..181de8a12e 100644 --- a/Tiles/FurnitureEutrophic/EutrophicDresser.cs +++ b/Tiles/FurnitureEutrophic/EutrophicDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicDresser : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Eutrophic Dresser"; - dresserDrop = mod.ItemType("EutrophicDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -178,7 +178,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("EutrophicDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -220,7 +220,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("EutrophicDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureEutrophic/EutrophicLamp.cs b/Tiles/FurnitureEutrophic/EutrophicLamp.cs index ca980da31c..d9bb011e02 100644 --- a/Tiles/FurnitureEutrophic/EutrophicLamp.cs +++ b/Tiles/FurnitureEutrophic/EutrophicLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicLamp : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureEutrophic/EutrophicLantern.cs b/Tiles/FurnitureEutrophic/EutrophicLantern.cs index 4669281365..1528e69bd4 100644 --- a/Tiles/FurnitureEutrophic/EutrophicLantern.cs +++ b/Tiles/FurnitureEutrophic/EutrophicLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicLantern : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureEutrophic/EutrophicPiano.cs b/Tiles/FurnitureEutrophic/EutrophicPiano.cs index b836c31f27..5b897fbe51 100644 --- a/Tiles/FurnitureEutrophic/EutrophicPiano.cs +++ b/Tiles/FurnitureEutrophic/EutrophicPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicPiano : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicPlatform.cs b/Tiles/FurnitureEutrophic/EutrophicPlatform.cs index 7c15075ff0..7fc7fb9f29 100644 --- a/Tiles/FurnitureEutrophic/EutrophicPlatform.cs +++ b/Tiles/FurnitureEutrophic/EutrophicPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicPlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurnitureEutrophic TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("EutrophicPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurnitureEutrophic/EutrophicSink.cs b/Tiles/FurnitureEutrophic/EutrophicSink.cs index 8484ad3290..f418dcca2d 100644 --- a/Tiles/FurnitureEutrophic/EutrophicSink.cs +++ b/Tiles/FurnitureEutrophic/EutrophicSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicSink : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicTable.cs b/Tiles/FurnitureEutrophic/EutrophicTable.cs index c3d40195f3..6b81878ee3 100644 --- a/Tiles/FurnitureEutrophic/EutrophicTable.cs +++ b/Tiles/FurnitureEutrophic/EutrophicTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { class EutrophicTable : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("EutrophicTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/EutrophicWorkBench.cs b/Tiles/FurnitureEutrophic/EutrophicWorkBench.cs index 30ac53a111..041de1b44c 100644 --- a/Tiles/FurnitureEutrophic/EutrophicWorkBench.cs +++ b/Tiles/FurnitureEutrophic/EutrophicWorkBench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class EutrophicWorkBench : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("EutrophicWorkBench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureEutrophic/SmoothNavystone.cs b/Tiles/FurnitureEutrophic/SmoothNavystone.cs index c1040708d7..1b289cf019 100644 --- a/Tiles/FurnitureEutrophic/SmoothNavystone.cs +++ b/Tiles/FurnitureEutrophic/SmoothNavystone.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureEutrophic +namespace CalamityMod.Tiles { public class SmoothNavystone : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic TileID.Sets.ChecksForMerge[Type] = true; soundType = 21; minPick = 55; - drop = mod.ItemType("SmoothNavystone"); + drop = ModContent.ItemType(); AddMapEntry(new Color(39, 48, 53)); } diff --git a/Tiles/FurnitureOccult/OccultBathtub.cs b/Tiles/FurnitureOccult/OccultBathtub.cs index dc1ebbd89c..c17f2a80d5 100644 --- a/Tiles/FurnitureOccult/OccultBathtub.cs +++ b/Tiles/FurnitureOccult/OccultBathtub.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultBathtub : ModTile { @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultBathtub")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultBed.cs b/Tiles/FurnitureOccult/OccultBed.cs index 9758789340..8ff8ec751b 100644 --- a/Tiles/FurnitureOccult/OccultBed.cs +++ b/Tiles/FurnitureOccult/OccultBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultBed : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("OccultBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -77,7 +77,7 @@ namespace CalamityMod.Tiles.FurnitureOccult Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("OccultBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureOccult/OccultBookcase.cs b/Tiles/FurnitureOccult/OccultBookcase.cs index 742ac173b2..2da26ef0d4 100644 --- a/Tiles/FurnitureOccult/OccultBookcase.cs +++ b/Tiles/FurnitureOccult/OccultBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultBookcase : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultCandelabra.cs b/Tiles/FurnitureOccult/OccultCandelabra.cs index 1ba592434a..78187adf77 100644 --- a/Tiles/FurnitureOccult/OccultCandelabra.cs +++ b/Tiles/FurnitureOccult/OccultCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultCandelabra : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -54,7 +54,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("OccultCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureOccult/OccultCandle.cs b/Tiles/FurnitureOccult/OccultCandle.cs index bb9d2cdc9b..b59e9652bb 100644 --- a/Tiles/FurnitureOccult/OccultCandle.cs +++ b/Tiles/FurnitureOccult/OccultCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultCandle : ModTile { @@ -23,13 +23,13 @@ namespace CalamityMod.Tiles.FurnitureOccult AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("OccultCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureOccult/OccultChair.cs b/Tiles/FurnitureOccult/OccultChair.cs index 5992ae1019..74b5684249 100644 --- a/Tiles/FurnitureOccult/OccultChair.cs +++ b/Tiles/FurnitureOccult/OccultChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultChair : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureOccult ModTranslation name = CreateMapEntryName(); name.SetDefault("Otherworldly Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultChandelier.cs b/Tiles/FurnitureOccult/OccultChandelier.cs index d2fbbb2f5a..7e25185a40 100644 --- a/Tiles/FurnitureOccult/OccultChandelier.cs +++ b/Tiles/FurnitureOccult/OccultChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultChandelier : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("OccultChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureOccult/OccultChest.cs b/Tiles/FurnitureOccult/OccultChest.cs index e8470acf8c..1ec370d160 100644 --- a/Tiles/FurnitureOccult/OccultChest.cs +++ b/Tiles/FurnitureOccult/OccultChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultChest : ModTile { @@ -38,13 +38,13 @@ namespace CalamityMod.Tiles.FurnitureOccult disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Otherworldly Chest"; - chestDrop = mod.ItemType("OccultChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -187,7 +187,7 @@ namespace CalamityMod.Tiles.FurnitureOccult player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Occult Chest"; if (player.showItemIconText == "Occult Chest") { - player.showItemIcon2 = mod.ItemType("OccultChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureOccult/OccultClock.cs b/Tiles/FurnitureOccult/OccultClock.cs index bf922b3673..e3f578b5f3 100644 --- a/Tiles/FurnitureOccult/OccultClock.cs +++ b/Tiles/FurnitureOccult/OccultClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultClock : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureOccult ModTranslation name = CreateMapEntryName(); name.SetDefault("Otherworldly Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -115,7 +115,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("OccultClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultDoorClosed.cs b/Tiles/FurnitureOccult/OccultDoorClosed.cs index e2755e280d..a7dec864c5 100644 --- a/Tiles/FurnitureOccult/OccultDoorClosed.cs +++ b/Tiles/FurnitureOccult/OccultDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultDoorClosed : ModTile { @@ -43,13 +43,13 @@ namespace CalamityMod.Tiles.FurnitureOccult AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("OccultDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("OccultDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -73,7 +73,7 @@ namespace CalamityMod.Tiles.FurnitureOccult Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("OccultDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureOccult/OccultDoorOpen.cs b/Tiles/FurnitureOccult/OccultDoorOpen.cs index c600656ad6..7c69ac1822 100644 --- a/Tiles/FurnitureOccult/OccultDoorOpen.cs +++ b/Tiles/FurnitureOccult/OccultDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultDoorOpen : ModTile { @@ -63,13 +63,13 @@ namespace CalamityMod.Tiles.FurnitureOccult AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("OccultDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -85,7 +85,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("OccultDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -93,7 +93,7 @@ namespace CalamityMod.Tiles.FurnitureOccult Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("OccultDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureOccult/OccultDresser.cs b/Tiles/FurnitureOccult/OccultDresser.cs index 271e862301..84e5b5b5a8 100644 --- a/Tiles/FurnitureOccult/OccultDresser.cs +++ b/Tiles/FurnitureOccult/OccultDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultDresser : ModTile { @@ -38,13 +38,13 @@ namespace CalamityMod.Tiles.FurnitureOccult disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Otherworldly Dresser"; - dresserDrop = mod.ItemType("OccultDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -179,7 +179,7 @@ namespace CalamityMod.Tiles.FurnitureOccult } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("OccultDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -221,7 +221,7 @@ namespace CalamityMod.Tiles.FurnitureOccult } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("OccultDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureOccult/OccultLamp.cs b/Tiles/FurnitureOccult/OccultLamp.cs index ffa2de3611..ff9de8e2ad 100644 --- a/Tiles/FurnitureOccult/OccultLamp.cs +++ b/Tiles/FurnitureOccult/OccultLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultLamp : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureOccult/OccultLantern.cs b/Tiles/FurnitureOccult/OccultLantern.cs index ceef52f639..c0367a9849 100644 --- a/Tiles/FurnitureOccult/OccultLantern.cs +++ b/Tiles/FurnitureOccult/OccultLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultLantern : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureOccult/OccultPiano.cs b/Tiles/FurnitureOccult/OccultPiano.cs index b2389ee3ba..d64875350f 100644 --- a/Tiles/FurnitureOccult/OccultPiano.cs +++ b/Tiles/FurnitureOccult/OccultPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultPiano : ModTile { @@ -24,7 +24,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultPlatform.cs b/Tiles/FurnitureOccult/OccultPlatform.cs index 468d0c2e16..42955255a6 100644 --- a/Tiles/FurnitureOccult/OccultPlatform.cs +++ b/Tiles/FurnitureOccult/OccultPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultPlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurnitureOccult TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("OccultPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureOccult/OccultSink.cs b/Tiles/FurnitureOccult/OccultSink.cs index 55fe33b329..00973afae1 100644 --- a/Tiles/FurnitureOccult/OccultSink.cs +++ b/Tiles/FurnitureOccult/OccultSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultSink : ModTile { @@ -26,7 +26,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultSofa.cs b/Tiles/FurnitureOccult/OccultSofa.cs index 003b850b58..debbd4aa51 100644 --- a/Tiles/FurnitureOccult/OccultSofa.cs +++ b/Tiles/FurnitureOccult/OccultSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultSofa : ModTile { @@ -24,7 +24,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultStone.cs b/Tiles/FurnitureOccult/OccultStone.cs index bfd95d2395..e0bc453bb6 100644 --- a/Tiles/FurnitureOccult/OccultStone.cs +++ b/Tiles/FurnitureOccult/OccultStone.cs @@ -2,9 +2,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultStone : ModTile { @@ -24,14 +24,14 @@ namespace CalamityMod.Tiles.FurnitureOccult soundType = 21; mineResist = 10f; minPick = 200; - drop = mod.ItemType("OccultStone"); + drop = ModContent.ItemType(); AddMapEntry(new Color(60, 42, 61)); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileExtra"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureOccult/OccultTable.cs b/Tiles/FurnitureOccult/OccultTable.cs index 6544b31ab6..1ef138068f 100644 --- a/Tiles/FurnitureOccult/OccultTable.cs +++ b/Tiles/FurnitureOccult/OccultTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { class OccultTable : ModTile { @@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("OccultTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureOccult/OccultWorkbench.cs b/Tiles/FurnitureOccult/OccultWorkbench.cs index 20fc9993d5..84e44ac03b 100644 --- a/Tiles/FurnitureOccult/OccultWorkbench.cs +++ b/Tiles/FurnitureOccult/OccultWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureOccult +namespace CalamityMod.Tiles { public class OccultWorkBench : ModTile { @@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(125, 94, 128), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("OccultTileCloth"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureOccult public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("OccultWorkBench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlagueInfuser.cs b/Tiles/FurniturePlaguedPlate/PlagueInfuser.cs index 333a634691..ffde7921f4 100644 --- a/Tiles/FurniturePlaguedPlate/PlagueInfuser.cs +++ b/Tiles/FurniturePlaguedPlate/PlagueInfuser.cs @@ -2,10 +2,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlagueInfuser : ModTile { @@ -121,7 +121,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlagueInfuser")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs index 0e76025dfa..eb982b2185 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlate : ModTile { @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate soundType = 21; mineResist = 3f; minPick = 210; - drop = mod.ItemType("PlaguedPlate"); + drop = ModContent.ItemType(); AddMapEntry(new Color(51, 99, 75)); } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs index aae1c84d75..3db8cb31af 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateBasin : ModTile { @@ -57,7 +57,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateBasin")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateBathtub.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateBathtub.cs index eceb68443c..26172a16c9 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateBathtub.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateBathtub.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateBathtub : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateBathtub")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs index d4094e736b..7a8485623c 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateBed : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("PlaguedPlateBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -75,7 +75,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("PlaguedPlateBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateBookcase.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateBookcase.cs index fd3cdca19d..2ec3d8eda9 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateBookcase.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateBookcase : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs index b7d1590756..190f703e69 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateCandelabra : ModTile { @@ -52,7 +52,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("PlaguedPlateCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateCandle.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateCandle.cs index 17dceb1f8a..c5bddacd0f 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateCandle.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateCandle : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("PlaguedPlateCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateChair.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateChair.cs index 56aa63ccd9..b06cc5fe64 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateChair.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateChair : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate ModTranslation name = CreateMapEntryName(); name.SetDefault("Plagued Plate Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateChandelier.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateChandelier.cs index f447484eb0..3041602138 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateChandelier.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateChandelier : ModTile { @@ -61,7 +61,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("PlaguedPlateChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateChest.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateChest.cs index f0466dc46c..4df2b7defa 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateChest.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateChest : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Plagued Plate Chest"; - chestDrop = mod.ItemType("PlaguedPlateChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -186,7 +186,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Plagued Plate Chest"; if (player.showItemIconText == "Plagued Plate Chest") { - player.showItemIcon2 = mod.ItemType("PlaguedPlateChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateClock.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateClock.cs index 2401925f2e..a8f0ae5a62 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateClock.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateClock : ModTile { @@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate ModTranslation name = CreateMapEntryName(); name.SetDefault("Plagued Plate Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -113,7 +113,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("PlaguedPlateClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs index a4f2b803f0..831e1af470 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateDoorClosed : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("PlaguedPlateDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("PlaguedPlateDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -71,7 +71,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("PlaguedPlateDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs index 7dac1b0b5d..3a8ebf30cc 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateDoorOpen : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("PlaguedPlateDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -83,7 +83,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("PlaguedPlateDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -91,7 +91,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("PlaguedPlateDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateDresser.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateDresser.cs index 1a98270154..d254012e7b 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateDresser.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateDresser : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Plagued Plate Dresser"; - dresserDrop = mod.ItemType("PlaguedPlateDresser"); + dresserDrop = ModContent.ItemType(); } public override bool HasSmartInteract() @@ -182,7 +182,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("PlaguedPlateDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -224,7 +224,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("PlaguedPlateDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateLamp.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateLamp.cs index 17b57464eb..d4963dc0f4 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateLamp.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateLamp : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateLantern.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateLantern.cs index 1b47b26235..344acfb9ca 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateLantern.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateLantern : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlatePiano.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlatePiano.cs index 0ca063c218..75e397adbe 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlatePiano.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlatePiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlatePiano : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlatePiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlatePlatform.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlatePlatform.cs index 4ffb5d4faf..29440a9c66 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlatePlatform.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlatePlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlatePlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("PlaguedPlatePlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateSink.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateSink.cs index baf9f7f754..849332bcaa 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateSink.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateSink : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateSofa.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateSofa.cs index c03bd19861..054a6746a5 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateSofa.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateSofa : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateTable.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateTable.cs index 894a80d832..51282aab9e 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateTable.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { class PlaguedPlateTable : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PlaguedPlateTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs index 0dcd65349e..d6db69f054 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurniturePlaguedPlate +namespace CalamityMod.Tiles { public class PlaguedPlateWorkbench : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("PlaguedPlateWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedBasin.cs b/Tiles/FurnitureProfaned/ProfanedBasin.cs index c92f70c96f..d6bd9f089b 100644 --- a/Tiles/FurnitureProfaned/ProfanedBasin.cs +++ b/Tiles/FurnitureProfaned/ProfanedBasin.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedBasin : ModTile { @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedBasin")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedBath.cs b/Tiles/FurnitureProfaned/ProfanedBath.cs index 68bae4e595..b31e05b063 100644 --- a/Tiles/FurnitureProfaned/ProfanedBath.cs +++ b/Tiles/FurnitureProfaned/ProfanedBath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedBath : ModTile { @@ -24,7 +24,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedBath")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedBed.cs b/Tiles/FurnitureProfaned/ProfanedBed.cs index eb8efca45b..9f99e0215c 100644 --- a/Tiles/FurnitureProfaned/ProfanedBed.cs +++ b/Tiles/FurnitureProfaned/ProfanedBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedBed : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("ProfanedBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("ProfanedBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedBench.cs b/Tiles/FurnitureProfaned/ProfanedBench.cs index dc25384abe..35f67f7094 100644 --- a/Tiles/FurnitureProfaned/ProfanedBench.cs +++ b/Tiles/FurnitureProfaned/ProfanedBench.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedBench : ModTile { @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedBench")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedBookcase.cs b/Tiles/FurnitureProfaned/ProfanedBookcase.cs index e5cfa9bf8a..e93122aee4 100644 --- a/Tiles/FurnitureProfaned/ProfanedBookcase.cs +++ b/Tiles/FurnitureProfaned/ProfanedBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedBookcase : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedCandelabra.cs b/Tiles/FurnitureProfaned/ProfanedCandelabra.cs index 40bd6df17f..f7e251fe1e 100644 --- a/Tiles/FurnitureProfaned/ProfanedCandelabra.cs +++ b/Tiles/FurnitureProfaned/ProfanedCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedCandelabra : ModTile { @@ -26,7 +26,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("ProfanedCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureProfaned/ProfanedCandle.cs b/Tiles/FurnitureProfaned/ProfanedCandle.cs index c681d73609..c981f4ef7f 100644 --- a/Tiles/FurnitureProfaned/ProfanedCandle.cs +++ b/Tiles/FurnitureProfaned/ProfanedCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedCandle : ModTile { @@ -22,13 +22,13 @@ namespace CalamityMod.Tiles.FurnitureProfaned AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("ProfanedCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureProfaned/ProfanedChair.cs b/Tiles/FurnitureProfaned/ProfanedChair.cs index 37f0650f53..f828569bc5 100644 --- a/Tiles/FurnitureProfaned/ProfanedChair.cs +++ b/Tiles/FurnitureProfaned/ProfanedChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedChair : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned ModTranslation name = CreateMapEntryName(); name.SetDefault("Profaned Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -46,7 +46,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedChandelier.cs b/Tiles/FurnitureProfaned/ProfanedChandelier.cs index ec2e69bd60..3a1832abae 100644 --- a/Tiles/FurnitureProfaned/ProfanedChandelier.cs +++ b/Tiles/FurnitureProfaned/ProfanedChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedChandelier : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("ProfanedChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureProfaned/ProfanedChest.cs b/Tiles/FurnitureProfaned/ProfanedChest.cs index 2aebc8b7dd..3de3db8a5c 100644 --- a/Tiles/FurnitureProfaned/ProfanedChest.cs +++ b/Tiles/FurnitureProfaned/ProfanedChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedChest : ModTile { @@ -38,13 +38,13 @@ namespace CalamityMod.Tiles.FurnitureProfaned disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Profaned Chest"; - chestDrop = mod.ItemType("ProfanedChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -187,7 +187,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Profaned Chest"; if (player.showItemIconText == "Profaned Chest") { - player.showItemIcon2 = mod.ItemType("ProfanedChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureProfaned/ProfanedClock.cs b/Tiles/FurnitureProfaned/ProfanedClock.cs index 90c73e3111..1f77974475 100644 --- a/Tiles/FurnitureProfaned/ProfanedClock.cs +++ b/Tiles/FurnitureProfaned/ProfanedClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedClock : ModTile { @@ -32,7 +32,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned ModTranslation name = CreateMapEntryName(); name.SetDefault("Profaned Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -114,7 +114,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("ProfanedClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedCrystal.cs b/Tiles/FurnitureProfaned/ProfanedCrystal.cs index 0e2d51fd00..3171271dc6 100644 --- a/Tiles/FurnitureProfaned/ProfanedCrystal.cs +++ b/Tiles/FurnitureProfaned/ProfanedCrystal.cs @@ -1,9 +1,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedCrystal : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned soundType = 13; mineResist = 1f; minPick = 225; - drop = mod.ItemType("ProfanedCrystal"); + drop = ModContent.ItemType(); AddMapEntry(new Color(181, 136, 177)); } diff --git a/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs b/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs index 25f84be84e..d9b1375f06 100644 --- a/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs +++ b/Tiles/FurnitureProfaned/ProfanedDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedDoorClosed : ModTile { @@ -42,13 +42,13 @@ namespace CalamityMod.Tiles.FurnitureProfaned AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("ProfanedDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("ProfanedDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -72,7 +72,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("ProfanedDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs b/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs index 687450a4ef..6427d47f8e 100644 --- a/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs +++ b/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedDoorOpen : ModTile { @@ -62,13 +62,13 @@ namespace CalamityMod.Tiles.FurnitureProfaned AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("ProfanedDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("ProfanedDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("ProfanedDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedDresser.cs b/Tiles/FurnitureProfaned/ProfanedDresser.cs index c832ec7300..ef863e8aea 100644 --- a/Tiles/FurnitureProfaned/ProfanedDresser.cs +++ b/Tiles/FurnitureProfaned/ProfanedDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedDresser : ModTile { @@ -37,13 +37,13 @@ namespace CalamityMod.Tiles.FurnitureProfaned disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Profaned Dresser"; - dresserDrop = mod.ItemType("ProfanedDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -183,7 +183,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("ProfanedDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -225,7 +225,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("ProfanedDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureProfaned/ProfanedLamp.cs b/Tiles/FurnitureProfaned/ProfanedLamp.cs index e0a9a9f0f3..78dc852942 100644 --- a/Tiles/FurnitureProfaned/ProfanedLamp.cs +++ b/Tiles/FurnitureProfaned/ProfanedLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedLamp : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureProfaned/ProfanedLantern.cs b/Tiles/FurnitureProfaned/ProfanedLantern.cs index 70a1bf5f37..60781e09fd 100644 --- a/Tiles/FurnitureProfaned/ProfanedLantern.cs +++ b/Tiles/FurnitureProfaned/ProfanedLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedLantern : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureProfaned/ProfanedPiano.cs b/Tiles/FurnitureProfaned/ProfanedPiano.cs index 0cd18d4eb5..b79bd2721d 100644 --- a/Tiles/FurnitureProfaned/ProfanedPiano.cs +++ b/Tiles/FurnitureProfaned/ProfanedPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedPiano : ModTile { @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedPlatform.cs b/Tiles/FurnitureProfaned/ProfanedPlatform.cs index ae9c8cf91c..8d62d4511b 100644 --- a/Tiles/FurnitureProfaned/ProfanedPlatform.cs +++ b/Tiles/FurnitureProfaned/ProfanedPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedPlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurnitureProfaned TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("ProfanedPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureProfaned/ProfanedRock.cs b/Tiles/FurnitureProfaned/ProfanedRock.cs index 3c84c74d27..2b5a54fcde 100644 --- a/Tiles/FurnitureProfaned/ProfanedRock.cs +++ b/Tiles/FurnitureProfaned/ProfanedRock.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedRock : ModTile { @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned soundType = 21; mineResist = 15f; minPick = 225; - drop = mod.ItemType("ProfanedRock"); + drop = ModContent.ItemType(); AddMapEntry(new Color(84, 38, 33)); } int animationFrameWidth = 288; @@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureProfaned/ProfanedSink.cs b/Tiles/FurnitureProfaned/ProfanedSink.cs index d0d77bc3ba..a09a00a9ba 100644 --- a/Tiles/FurnitureProfaned/ProfanedSink.cs +++ b/Tiles/FurnitureProfaned/ProfanedSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedSink : ModTile { @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedSlab.cs b/Tiles/FurnitureProfaned/ProfanedSlab.cs index 53a1bd0ac3..b55525e134 100644 --- a/Tiles/FurnitureProfaned/ProfanedSlab.cs +++ b/Tiles/FurnitureProfaned/ProfanedSlab.cs @@ -1,9 +1,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedSlab : ModTile { @@ -15,12 +15,12 @@ namespace CalamityMod.Tiles.FurnitureProfaned TileMerge.MergeGeneralTiles(Type); TileMerge.MergeDecorativeTiles(Type); TileMerge.MergeSmoothTiles(Type); - TileMerge.MergeTile(Type, mod.TileType("ProfanedRock")); + TileMerge.MergeTile(Type, ModContent.TileType()); soundType = 21; mineResist = 10f; minPick = 225; - drop = mod.ItemType("ProfanedSlab"); + drop = ModContent.ItemType(); AddMapEntry(new Color(122, 66, 59)); animationFrameHeight = 90; } @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureProfaned/ProfanedTable.cs b/Tiles/FurnitureProfaned/ProfanedTable.cs index b52b93b93f..c0c2fa92c4 100644 --- a/Tiles/FurnitureProfaned/ProfanedTable.cs +++ b/Tiles/FurnitureProfaned/ProfanedTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { class ProfanedTable : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/ProfanedWorkbench.cs b/Tiles/FurnitureProfaned/ProfanedWorkbench.cs index 15998e4632..b20c8966be 100644 --- a/Tiles/FurnitureProfaned/ProfanedWorkbench.cs +++ b/Tiles/FurnitureProfaned/ProfanedWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class ProfanedWorkbench : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("ProfanedWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs index b0532f9ef3..18f01d764a 100644 --- a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs +++ b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureProfaned +namespace CalamityMod.Tiles { public class RunicProfanedBrick : ModTile { @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned soundType = 21; mineResist = 10f; minPick = 225; - drop = mod.ItemType("RunicProfanedBrick"); + drop = ModContent.ItemType(); AddMapEntry(new Color(122, 66, 59)); animationFrameHeight = 90; } @@ -29,7 +29,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureSilva/SilvaBasin.cs b/Tiles/FurnitureSilva/SilvaBasin.cs index 08fbfaee0c..d73a42b2fa 100644 --- a/Tiles/FurnitureSilva/SilvaBasin.cs +++ b/Tiles/FurnitureSilva/SilvaBasin.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaBasin : ModTile { @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -59,7 +59,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaBasin")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaBathtub.cs b/Tiles/FurnitureSilva/SilvaBathtub.cs index a3d066447d..22f2ff0d3b 100644 --- a/Tiles/FurnitureSilva/SilvaBathtub.cs +++ b/Tiles/FurnitureSilva/SilvaBathtub.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaBathtub : ModTile { @@ -24,7 +24,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaBathtub")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaBed.cs b/Tiles/FurnitureSilva/SilvaBed.cs index d54ea4675e..7146eb5da7 100644 --- a/Tiles/FurnitureSilva/SilvaBed.cs +++ b/Tiles/FurnitureSilva/SilvaBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaBed : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("SilvaBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -77,7 +77,7 @@ namespace CalamityMod.Tiles.FurnitureSilva Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("SilvaBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureSilva/SilvaBench.cs b/Tiles/FurnitureSilva/SilvaBench.cs index a02707cc93..581d52ab07 100644 --- a/Tiles/FurnitureSilva/SilvaBench.cs +++ b/Tiles/FurnitureSilva/SilvaBench.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaBench : ModTile { @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaBench")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaBookcase.cs b/Tiles/FurnitureSilva/SilvaBookcase.cs index 2aefb34090..63ae1bdbdb 100644 --- a/Tiles/FurnitureSilva/SilvaBookcase.cs +++ b/Tiles/FurnitureSilva/SilvaBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaBookcase : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaCandelabra.cs b/Tiles/FurnitureSilva/SilvaCandelabra.cs index 169581ee3e..0a676406c8 100644 --- a/Tiles/FurnitureSilva/SilvaCandelabra.cs +++ b/Tiles/FurnitureSilva/SilvaCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaCandelabra : ModTile { @@ -26,7 +26,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -54,7 +54,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("SilvaCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureSilva/SilvaCandle.cs b/Tiles/FurnitureSilva/SilvaCandle.cs index c0163ca8a4..a587d303ee 100644 --- a/Tiles/FurnitureSilva/SilvaCandle.cs +++ b/Tiles/FurnitureSilva/SilvaCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaCandle : ModTile { @@ -23,12 +23,12 @@ namespace CalamityMod.Tiles.FurnitureSilva AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("SilvaCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureSilva/SilvaChair.cs b/Tiles/FurnitureSilva/SilvaChair.cs index de7cdcfe94..7d8640848e 100644 --- a/Tiles/FurnitureSilva/SilvaChair.cs +++ b/Tiles/FurnitureSilva/SilvaChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaChair : ModTile { @@ -28,14 +28,14 @@ namespace CalamityMod.Tiles.FurnitureSilva ModTranslation name = CreateMapEntryName(); name.SetDefault("Silva Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaChandelier.cs b/Tiles/FurnitureSilva/SilvaChandelier.cs index e457610525..3404e888ab 100644 --- a/Tiles/FurnitureSilva/SilvaChandelier.cs +++ b/Tiles/FurnitureSilva/SilvaChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaChandelier : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("SilvaChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureSilva/SilvaChest.cs b/Tiles/FurnitureSilva/SilvaChest.cs index c1bd1fb3a2..ed046119c6 100644 --- a/Tiles/FurnitureSilva/SilvaChest.cs +++ b/Tiles/FurnitureSilva/SilvaChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaChest : ModTile { @@ -38,12 +38,12 @@ namespace CalamityMod.Tiles.FurnitureSilva disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Silva Chest"; - chestDrop = mod.ItemType("SilvaChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -187,7 +187,7 @@ namespace CalamityMod.Tiles.FurnitureSilva player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Silva Chest"; if (player.showItemIconText == "Silva Chest") { - player.showItemIcon2 = mod.ItemType("SilvaChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureSilva/SilvaClock.cs b/Tiles/FurnitureSilva/SilvaClock.cs index 05f43ad85e..8ea3a02d57 100644 --- a/Tiles/FurnitureSilva/SilvaClock.cs +++ b/Tiles/FurnitureSilva/SilvaClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaClock : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureSilva ModTranslation name = CreateMapEntryName(); name.SetDefault("Silva Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -115,7 +115,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("SilvaClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaCrystal.cs b/Tiles/FurnitureSilva/SilvaCrystal.cs index f4334872f9..fa43b57761 100644 --- a/Tiles/FurnitureSilva/SilvaCrystal.cs +++ b/Tiles/FurnitureSilva/SilvaCrystal.cs @@ -1,9 +1,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaCrystal : ModTile { @@ -15,13 +15,13 @@ namespace CalamityMod.Tiles.FurnitureSilva soundType = 21; mineResist = 2f; minPick = 275; - drop = mod.ItemType("SilvaCrystal"); + drop = ModContent.ItemType(); AddMapEntry(new Color(49, 100, 99)); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureSilva/SilvaDoorClosed.cs b/Tiles/FurnitureSilva/SilvaDoorClosed.cs index 625d8197fb..7f100338a5 100644 --- a/Tiles/FurnitureSilva/SilvaDoorClosed.cs +++ b/Tiles/FurnitureSilva/SilvaDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaDoorClosed : ModTile { @@ -43,12 +43,12 @@ namespace CalamityMod.Tiles.FurnitureSilva AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("SilvaDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SilvaDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -73,7 +73,7 @@ namespace CalamityMod.Tiles.FurnitureSilva Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("SilvaDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureSilva/SilvaDoorOpen.cs b/Tiles/FurnitureSilva/SilvaDoorOpen.cs index 74e03a86d0..d2af1b0098 100644 --- a/Tiles/FurnitureSilva/SilvaDoorOpen.cs +++ b/Tiles/FurnitureSilva/SilvaDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaDoorOpen : ModTile { @@ -63,12 +63,12 @@ namespace CalamityMod.Tiles.FurnitureSilva AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("SilvaDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -85,7 +85,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("SilvaDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -93,7 +93,7 @@ namespace CalamityMod.Tiles.FurnitureSilva Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("SilvaDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureSilva/SilvaDresser.cs b/Tiles/FurnitureSilva/SilvaDresser.cs index 21ef376f67..94f50f970c 100644 --- a/Tiles/FurnitureSilva/SilvaDresser.cs +++ b/Tiles/FurnitureSilva/SilvaDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaDresser : ModTile { @@ -38,12 +38,12 @@ namespace CalamityMod.Tiles.FurnitureSilva disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Silva Dresser"; - dresserDrop = mod.ItemType("SilvaDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -179,7 +179,7 @@ namespace CalamityMod.Tiles.FurnitureSilva } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("SilvaDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -221,7 +221,7 @@ namespace CalamityMod.Tiles.FurnitureSilva } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("SilvaDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureSilva/SilvaLamp.cs b/Tiles/FurnitureSilva/SilvaLamp.cs index 239b35fac4..c356a5a286 100644 --- a/Tiles/FurnitureSilva/SilvaLamp.cs +++ b/Tiles/FurnitureSilva/SilvaLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaLamp : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureSilva/SilvaLantern.cs b/Tiles/FurnitureSilva/SilvaLantern.cs index db02a83c15..237ac58365 100644 --- a/Tiles/FurnitureSilva/SilvaLantern.cs +++ b/Tiles/FurnitureSilva/SilvaLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaLantern : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureSilva/SilvaPiano.cs b/Tiles/FurnitureSilva/SilvaPiano.cs index 73568f58c9..f58b04a60c 100644 --- a/Tiles/FurnitureSilva/SilvaPiano.cs +++ b/Tiles/FurnitureSilva/SilvaPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaPiano : ModTile { @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaPlatform.cs b/Tiles/FurnitureSilva/SilvaPlatform.cs index 3b4ffcfc4b..3683fbd021 100644 --- a/Tiles/FurnitureSilva/SilvaPlatform.cs +++ b/Tiles/FurnitureSilva/SilvaPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaPlatform : ModTile { @@ -29,15 +29,15 @@ namespace CalamityMod.Tiles.FurnitureSilva TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("SilvaPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureSilva/SilvaSink.cs b/Tiles/FurnitureSilva/SilvaSink.cs index 9f19426bf3..da437b6cd5 100644 --- a/Tiles/FurnitureSilva/SilvaSink.cs +++ b/Tiles/FurnitureSilva/SilvaSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaSink : ModTile { @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaTable.cs b/Tiles/FurnitureSilva/SilvaTable.cs index 80f6846847..6c776456b1 100644 --- a/Tiles/FurnitureSilva/SilvaTable.cs +++ b/Tiles/FurnitureSilva/SilvaTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { class SilvaTable : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("SilvaTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureSilva/SilvaWorkBench.cs b/Tiles/FurnitureSilva/SilvaWorkBench.cs index 56b45f4107..4b723da77c 100644 --- a/Tiles/FurnitureSilva/SilvaWorkBench.cs +++ b/Tiles/FurnitureSilva/SilvaWorkBench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureSilva +namespace CalamityMod.Tiles { public class SilvaWorkBench : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("SilvaWorkBench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StaticRefiner.cs b/Tiles/FurnitureStatigel/StaticRefiner.cs index a0c39fcfb9..3172782583 100644 --- a/Tiles/FurnitureStatigel/StaticRefiner.cs +++ b/Tiles/FurnitureStatigel/StaticRefiner.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StaticRefiner : ModTile { @@ -112,7 +112,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StaticRefiner")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } diff --git a/Tiles/FurnitureStatigel/StatigelBath.cs b/Tiles/FurnitureStatigel/StatigelBath.cs index 4f2670e268..8006288067 100644 --- a/Tiles/FurnitureStatigel/StatigelBath.cs +++ b/Tiles/FurnitureStatigel/StatigelBath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelBath : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelBath")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelBed.cs b/Tiles/FurnitureStatigel/StatigelBed.cs index 4f0a8384ec..05615a7263 100644 --- a/Tiles/FurnitureStatigel/StatigelBed.cs +++ b/Tiles/FurnitureStatigel/StatigelBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelBed : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("StatigelBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -75,7 +75,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("StatigelBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureStatigel/StatigelBlock.cs b/Tiles/FurnitureStatigel/StatigelBlock.cs index 9835e58db6..d1272b984b 100644 --- a/Tiles/FurnitureStatigel/StatigelBlock.cs +++ b/Tiles/FurnitureStatigel/StatigelBlock.cs @@ -1,9 +1,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelBlock : ModTile { @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel TileMerge.MergeDecorativeTiles(Type); TileMerge.MergeSmoothTiles(Type); - drop = mod.ItemType("StatigelBlock"); + drop = ModContent.ItemType(); AddMapEntry(new Color(215, 74, 121)); } diff --git a/Tiles/FurnitureStatigel/StatigelBookcase.cs b/Tiles/FurnitureStatigel/StatigelBookcase.cs index 1e532df68b..681a2d92db 100644 --- a/Tiles/FurnitureStatigel/StatigelBookcase.cs +++ b/Tiles/FurnitureStatigel/StatigelBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelBookcase : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelCandelabra.cs b/Tiles/FurnitureStatigel/StatigelCandelabra.cs index fdbf36f04f..be947aa111 100644 --- a/Tiles/FurnitureStatigel/StatigelCandelabra.cs +++ b/Tiles/FurnitureStatigel/StatigelCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelCandelabra : ModTile { @@ -52,7 +52,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("StatigelCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureStatigel/StatigelCandle.cs b/Tiles/FurnitureStatigel/StatigelCandle.cs index 9785efa485..948f7dbedb 100644 --- a/Tiles/FurnitureStatigel/StatigelCandle.cs +++ b/Tiles/FurnitureStatigel/StatigelCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelCandle : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("StatigelCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStatigel/StatigelChair.cs b/Tiles/FurnitureStatigel/StatigelChair.cs index 4387ca72f6..5ff4ba053b 100644 --- a/Tiles/FurnitureStatigel/StatigelChair.cs +++ b/Tiles/FurnitureStatigel/StatigelChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelChair : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel ModTranslation name = CreateMapEntryName(); name.SetDefault("Statigel Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelChandelier.cs b/Tiles/FurnitureStatigel/StatigelChandelier.cs index 57f6fb636a..47430d2f18 100644 --- a/Tiles/FurnitureStatigel/StatigelChandelier.cs +++ b/Tiles/FurnitureStatigel/StatigelChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelChandelier : ModTile { @@ -60,7 +60,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("StatigelChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureStatigel/StatigelChest.cs b/Tiles/FurnitureStatigel/StatigelChest.cs index f003da0948..22ef23ee59 100644 --- a/Tiles/FurnitureStatigel/StatigelChest.cs +++ b/Tiles/FurnitureStatigel/StatigelChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelChest : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Statigel Chest"; - chestDrop = mod.ItemType("StatigelChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -186,7 +186,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Statigel Chest"; if (player.showItemIconText == "Statigel Chest") { - player.showItemIcon2 = mod.ItemType("StatigelChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureStatigel/StatigelClock.cs b/Tiles/FurnitureStatigel/StatigelClock.cs index 3cc2b6903c..a72bc00012 100644 --- a/Tiles/FurnitureStatigel/StatigelClock.cs +++ b/Tiles/FurnitureStatigel/StatigelClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelClock : ModTile { @@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel ModTranslation name = CreateMapEntryName(); name.SetDefault("Statigel Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -112,7 +112,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("StatigelClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelDoorClosed.cs b/Tiles/FurnitureStatigel/StatigelDoorClosed.cs index a99cd1a6d4..e0d8dab157 100644 --- a/Tiles/FurnitureStatigel/StatigelDoorClosed.cs +++ b/Tiles/FurnitureStatigel/StatigelDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelDoorClosed : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("StatigelDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("StatigelDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -71,7 +71,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("StatigelDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureStatigel/StatigelDoorOpen.cs b/Tiles/FurnitureStatigel/StatigelDoorOpen.cs index 1f96825da0..2c8a464893 100644 --- a/Tiles/FurnitureStatigel/StatigelDoorOpen.cs +++ b/Tiles/FurnitureStatigel/StatigelDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelDoorOpen : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("StatigelDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -83,7 +83,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("StatigelDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -91,7 +91,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("StatigelDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureStatigel/StatigelDresser.cs b/Tiles/FurnitureStatigel/StatigelDresser.cs index 05e09f64b7..8b02c4110c 100644 --- a/Tiles/FurnitureStatigel/StatigelDresser.cs +++ b/Tiles/FurnitureStatigel/StatigelDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelDresser : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Statigel Dresser"; - dresserDrop = mod.ItemType("StatigelDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -177,7 +177,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("StatigelDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -219,7 +219,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("StatigelDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureStatigel/StatigelLamp.cs b/Tiles/FurnitureStatigel/StatigelLamp.cs index 911cccca17..1989005694 100644 --- a/Tiles/FurnitureStatigel/StatigelLamp.cs +++ b/Tiles/FurnitureStatigel/StatigelLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelLamp : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureStatigel/StatigelLantern.cs b/Tiles/FurnitureStatigel/StatigelLantern.cs index 6dc9c57c27..20d42cdce1 100644 --- a/Tiles/FurnitureStatigel/StatigelLantern.cs +++ b/Tiles/FurnitureStatigel/StatigelLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelLantern : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureStatigel/StatigelPiano.cs b/Tiles/FurnitureStatigel/StatigelPiano.cs index e62eb97033..29a442b9d2 100644 --- a/Tiles/FurnitureStatigel/StatigelPiano.cs +++ b/Tiles/FurnitureStatigel/StatigelPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelPiano : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelPlatform.cs b/Tiles/FurnitureStatigel/StatigelPlatform.cs index 1f0eadf8c8..040027b303 100644 --- a/Tiles/FurnitureStatigel/StatigelPlatform.cs +++ b/Tiles/FurnitureStatigel/StatigelPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelPlatform : ModTile { @@ -28,8 +28,8 @@ namespace CalamityMod.Tiles.FurnitureStatigel TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("StatigelPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurnitureStatigel/StatigelSink.cs b/Tiles/FurnitureStatigel/StatigelSink.cs index 7543ea552f..7fc767b70c 100644 --- a/Tiles/FurnitureStatigel/StatigelSink.cs +++ b/Tiles/FurnitureStatigel/StatigelSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelSink : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelSofa.cs b/Tiles/FurnitureStatigel/StatigelSofa.cs index a119a01303..bc464504a8 100644 --- a/Tiles/FurnitureStatigel/StatigelSofa.cs +++ b/Tiles/FurnitureStatigel/StatigelSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelSofa : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelTable.cs b/Tiles/FurnitureStatigel/StatigelTable.cs index 92a5c902d0..7067f75c66 100644 --- a/Tiles/FurnitureStatigel/StatigelTable.cs +++ b/Tiles/FurnitureStatigel/StatigelTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { class StatigelTable : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StatigelTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStatigel/StatigelWorkbench.cs b/Tiles/FurnitureStatigel/StatigelWorkbench.cs index cdc23ba9ee..28741115bd 100644 --- a/Tiles/FurnitureStatigel/StatigelWorkbench.cs +++ b/Tiles/FurnitureStatigel/StatigelWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStatigel +namespace CalamityMod.Tiles { public class StatigelWorkbench : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("StatigelWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusBathtub.cs b/Tiles/FurnitureStratus/StratusBathtub.cs index c0661aea77..7806119c23 100644 --- a/Tiles/FurnitureStratus/StratusBathtub.cs +++ b/Tiles/FurnitureStratus/StratusBathtub.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusBathtub : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusBathtub")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusBed.cs b/Tiles/FurnitureStratus/StratusBed.cs index 637e503aeb..44b8915e77 100644 --- a/Tiles/FurnitureStratus/StratusBed.cs +++ b/Tiles/FurnitureStratus/StratusBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusBed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("StratusBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.FurnitureStratus Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("StratusBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureStratus/StratusBookcase.cs b/Tiles/FurnitureStratus/StratusBookcase.cs index b65067501f..a33313f05e 100644 --- a/Tiles/FurnitureStratus/StratusBookcase.cs +++ b/Tiles/FurnitureStratus/StratusBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusBookcase : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusBricks.cs b/Tiles/FurnitureStratus/StratusBricks.cs index bc68ed8aee..2246c16ed8 100644 --- a/Tiles/FurnitureStratus/StratusBricks.cs +++ b/Tiles/FurnitureStratus/StratusBricks.cs @@ -3,9 +3,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusBricks : ModTile { @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureStratus soundType = 21; mineResist = 5f; minPick = 250; - drop = mod.ItemType("StratusBricks"); + drop = ModContent.ItemType(); AddMapEntry(new Color(53, 57, 74)); } diff --git a/Tiles/FurnitureStratus/StratusCandelabra.cs b/Tiles/FurnitureStratus/StratusCandelabra.cs index 33532d40a4..d50f48511e 100644 --- a/Tiles/FurnitureStratus/StratusCandelabra.cs +++ b/Tiles/FurnitureStratus/StratusCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusCandelabra : ModTile { @@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("StratusCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureStratus/StratusCandle.cs b/Tiles/FurnitureStratus/StratusCandle.cs index 9a40aaa5c5..254f3e81db 100644 --- a/Tiles/FurnitureStratus/StratusCandle.cs +++ b/Tiles/FurnitureStratus/StratusCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusCandle : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureStratus AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("StratusCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureStratus/StratusChair.cs b/Tiles/FurnitureStratus/StratusChair.cs index 459fd34825..949a5b385f 100644 --- a/Tiles/FurnitureStratus/StratusChair.cs +++ b/Tiles/FurnitureStratus/StratusChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusChair : ModTile { @@ -27,7 +27,7 @@ namespace CalamityMod.Tiles.FurnitureStratus ModTranslation name = CreateMapEntryName(); name.SetDefault("Stratus Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -46,7 +46,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusChandelier.cs b/Tiles/FurnitureStratus/StratusChandelier.cs index 0da8e31998..b2ec7f0386 100644 --- a/Tiles/FurnitureStratus/StratusChandelier.cs +++ b/Tiles/FurnitureStratus/StratusChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusChandelier : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("StratusChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureStratus/StratusChest.cs b/Tiles/FurnitureStratus/StratusChest.cs index 30eadb0bfb..ce8b2c77c9 100644 --- a/Tiles/FurnitureStratus/StratusChest.cs +++ b/Tiles/FurnitureStratus/StratusChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusChest : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureStratus disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Stratus Chest"; - chestDrop = mod.ItemType("StratusChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -187,7 +187,7 @@ namespace CalamityMod.Tiles.FurnitureStratus player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Stratus Chest"; if (player.showItemIconText == "Stratus Chest") { - player.showItemIcon2 = mod.ItemType("StratusChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureStratus/StratusClock.cs b/Tiles/FurnitureStratus/StratusClock.cs index 16b6c36841..313bd00bb8 100644 --- a/Tiles/FurnitureStratus/StratusClock.cs +++ b/Tiles/FurnitureStratus/StratusClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusClock : ModTile { @@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.FurnitureStratus ModTranslation name = CreateMapEntryName(); name.SetDefault("Stratus Clock"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -113,7 +113,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("StratusClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusDoorClosed.cs b/Tiles/FurnitureStratus/StratusDoorClosed.cs index 254819ddbf..44b21b9667 100644 --- a/Tiles/FurnitureStratus/StratusDoorClosed.cs +++ b/Tiles/FurnitureStratus/StratusDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusDoorClosed : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureStratus AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("StratusDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("StratusDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -72,7 +72,7 @@ namespace CalamityMod.Tiles.FurnitureStratus Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("StratusDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureStratus/StratusDoorOpen.cs b/Tiles/FurnitureStratus/StratusDoorOpen.cs index 27f9aa06e8..bb6e28a2cc 100644 --- a/Tiles/FurnitureStratus/StratusDoorOpen.cs +++ b/Tiles/FurnitureStratus/StratusDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusDoorOpen : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureStratus AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("StratusDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("StratusDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureStratus Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("StratusDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureStratus/StratusDresser.cs b/Tiles/FurnitureStratus/StratusDresser.cs index 51b8c05903..39fe71fd61 100644 --- a/Tiles/FurnitureStratus/StratusDresser.cs +++ b/Tiles/FurnitureStratus/StratusDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusDresser : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureStratus disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Stratus Dresser"; - dresserDrop = mod.ItemType("StratusDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -178,7 +178,7 @@ namespace CalamityMod.Tiles.FurnitureStratus } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("StratusDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -220,7 +220,7 @@ namespace CalamityMod.Tiles.FurnitureStratus } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("StratusDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureStratus/StratusLamp.cs b/Tiles/FurnitureStratus/StratusLamp.cs index 00e01a561c..587a0ff715 100644 --- a/Tiles/FurnitureStratus/StratusLamp.cs +++ b/Tiles/FurnitureStratus/StratusLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusLamp : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureStratus/StratusLantern.cs b/Tiles/FurnitureStratus/StratusLantern.cs index d7e89f3ab4..7b8545c7a5 100644 --- a/Tiles/FurnitureStratus/StratusLantern.cs +++ b/Tiles/FurnitureStratus/StratusLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusLantern : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureStratus/StratusPiano.cs b/Tiles/FurnitureStratus/StratusPiano.cs index b83240786b..7a704dfd6a 100644 --- a/Tiles/FurnitureStratus/StratusPiano.cs +++ b/Tiles/FurnitureStratus/StratusPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusPiano : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusPlatform.cs b/Tiles/FurnitureStratus/StratusPlatform.cs index 086daa87ed..3ba5094c09 100644 --- a/Tiles/FurnitureStratus/StratusPlatform.cs +++ b/Tiles/FurnitureStratus/StratusPlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusPlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurnitureStratus TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("StratusPlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurnitureStratus/StratusSink.cs b/Tiles/FurnitureStratus/StratusSink.cs index a3cdbe9b98..6ab1090cc8 100644 --- a/Tiles/FurnitureStratus/StratusSink.cs +++ b/Tiles/FurnitureStratus/StratusSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusSink : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusSofa.cs b/Tiles/FurnitureStratus/StratusSofa.cs index a4012282f3..44e5b962c0 100644 --- a/Tiles/FurnitureStratus/StratusSofa.cs +++ b/Tiles/FurnitureStratus/StratusSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusSofa : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusTable.cs b/Tiles/FurnitureStratus/StratusTable.cs index 69dabcbff9..8bfe814f89 100644 --- a/Tiles/FurnitureStratus/StratusTable.cs +++ b/Tiles/FurnitureStratus/StratusTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { class StratusTable : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("StratusTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureStratus/StratusWorkbench.cs b/Tiles/FurnitureStratus/StratusWorkbench.cs index d1c7cc6715..4a2bfa4e9b 100644 --- a/Tiles/FurnitureStratus/StratusWorkbench.cs +++ b/Tiles/FurnitureStratus/StratusWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureStratus +namespace CalamityMod.Tiles { public class StratusWorkbench : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("StratusWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/SmoothVoidstone.cs b/Tiles/FurnitureVoid/SmoothVoidstone.cs index a6c9351c07..ae1fd8b37b 100644 --- a/Tiles/FurnitureVoid/SmoothVoidstone.cs +++ b/Tiles/FurnitureVoid/SmoothVoidstone.cs @@ -2,9 +2,9 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class SmoothVoidstone : ModTile { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureVoid soundType = 21; mineResist = 7f; minPick = 190; - drop = mod.ItemType("SmoothVoidstone"); + drop = ModContent.ItemType(); AddMapEntry(new Color(27, 24, 31)); } int animationFrameWidth = 288; diff --git a/Tiles/FurnitureVoid/SmoothVoidstonePlatform.cs b/Tiles/FurnitureVoid/SmoothVoidstonePlatform.cs index e9f5372567..52250e224e 100644 --- a/Tiles/FurnitureVoid/SmoothVoidstonePlatform.cs +++ b/Tiles/FurnitureVoid/SmoothVoidstonePlatform.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class SmoothVoidstonePlatform : ModTile { @@ -29,8 +29,8 @@ namespace CalamityMod.Tiles.FurnitureVoid TileObjectData.newTile.LavaDeath = true; TileObjectData.addTile(Type); AddMapEntry(new Color(191, 142, 111)); - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("SmoothVoidstonePlatform"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Platforms }; } diff --git a/Tiles/FurnitureVoid/VoidBath.cs b/Tiles/FurnitureVoid/VoidBath.cs index 5608b8a999..c3160ee285 100644 --- a/Tiles/FurnitureVoid/VoidBath.cs +++ b/Tiles/FurnitureVoid/VoidBath.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidBath : ModTile { @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidBath")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidBed.cs b/Tiles/FurnitureVoid/VoidBed.cs index c2b1c9b934..af6ee6917a 100644 --- a/Tiles/FurnitureVoid/VoidBed.cs +++ b/Tiles/FurnitureVoid/VoidBed.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidBed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 64, 32, mod.ItemType("VoidBed")); + Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType()); } public override bool NewRightClick(int i, int j) @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.FurnitureVoid Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("VoidBed"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureVoid/VoidBookcase.cs b/Tiles/FurnitureVoid/VoidBookcase.cs index 4526cf2c23..4822b85936 100644 --- a/Tiles/FurnitureVoid/VoidBookcase.cs +++ b/Tiles/FurnitureVoid/VoidBookcase.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidBookcase : ModTile { @@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidBookcase")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidCandelabra.cs b/Tiles/FurnitureVoid/VoidCandelabra.cs index 9f8db2d3a1..8a20867171 100644 --- a/Tiles/FurnitureVoid/VoidCandelabra.cs +++ b/Tiles/FurnitureVoid/VoidCandelabra.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidCandelabra : ModTile { @@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("VoidCandelabra")); + Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureVoid/VoidCandle.cs b/Tiles/FurnitureVoid/VoidCandle.cs index dc40a98460..4d3e232f74 100644 --- a/Tiles/FurnitureVoid/VoidCandle.cs +++ b/Tiles/FurnitureVoid/VoidCandle.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidCandle : ModTile { @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.FurnitureVoid AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("VoidCandle"); + drop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Tiles/FurnitureVoid/VoidChair.cs b/Tiles/FurnitureVoid/VoidChair.cs index 32aa4e9459..54a7b76456 100644 --- a/Tiles/FurnitureVoid/VoidChair.cs +++ b/Tiles/FurnitureVoid/VoidChair.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidChair : ModTile { @@ -28,7 +28,7 @@ namespace CalamityMod.Tiles.FurnitureVoid ModTranslation name = CreateMapEntryName(); name.SetDefault("Void Chair"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); disableSmartCursor = true; adjTiles = new int[] { TileID.Chairs }; } @@ -46,7 +46,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidChair")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidChandelier.cs b/Tiles/FurnitureVoid/VoidChandelier.cs index d41d51ef02..3bae13a56b 100644 --- a/Tiles/FurnitureVoid/VoidChandelier.cs +++ b/Tiles/FurnitureVoid/VoidChandelier.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidChandelier : ModTile { @@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 48, mod.ItemType("VoidChandelier")); + Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType()); } public override void HitWire(int i, int j) diff --git a/Tiles/FurnitureVoid/VoidChest.cs b/Tiles/FurnitureVoid/VoidChest.cs index 3d508674b1..d84c84422f 100644 --- a/Tiles/FurnitureVoid/VoidChest.cs +++ b/Tiles/FurnitureVoid/VoidChest.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidChest : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureVoid disableSmartCursor = true; adjTiles = new int[] { TileID.Containers }; chest = "Void Chest"; - chestDrop = mod.ItemType("VoidChest"); + chestDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -186,7 +186,7 @@ namespace CalamityMod.Tiles.FurnitureVoid player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Void Chest"; if (player.showItemIconText == "Void Chest") { - player.showItemIcon2 = mod.ItemType("VoidChest"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureVoid/VoidClock.cs b/Tiles/FurnitureVoid/VoidClock.cs index 15c8dd4b77..b8e21efa93 100644 --- a/Tiles/FurnitureVoid/VoidClock.cs +++ b/Tiles/FurnitureVoid/VoidClock.cs @@ -2,10 +2,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidClock : ModTile { @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.FurnitureVoid ModTranslation name = CreateMapEntryName(); name.SetDefault("Void Obelisk"); AddMapEntry(new Color(191, 142, 111), name); - dustType = mod.DustType("Pixel"); + dustType = ModContent.DustType(); adjTiles = new int[] { TileID.GrandfatherClocks }; } @@ -124,7 +124,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 48, 32, mod.ItemType("VoidClock")); + Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidCondenser.cs b/Tiles/FurnitureVoid/VoidCondenser.cs index a81f36eaa7..fb80c29c00 100644 --- a/Tiles/FurnitureVoid/VoidCondenser.cs +++ b/Tiles/FurnitureVoid/VoidCondenser.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidCondenser : ModTile { @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidCondenser")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidDoorClosed.cs b/Tiles/FurnitureVoid/VoidDoorClosed.cs index 99ec1ffe1a..787b002daf 100644 --- a/Tiles/FurnitureVoid/VoidDoorClosed.cs +++ b/Tiles/FurnitureVoid/VoidDoorClosed.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidDoorClosed : ModTile { @@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureVoid AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; - openDoorID = mod.TileType("VoidDoorOpen"); + openDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -64,7 +64,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("VoidDoor")); + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -72,7 +72,7 @@ namespace CalamityMod.Tiles.FurnitureVoid Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("VoidDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureVoid/VoidDoorOpen.cs b/Tiles/FurnitureVoid/VoidDoorOpen.cs index a9c8fb7e58..89cedaf382 100644 --- a/Tiles/FurnitureVoid/VoidDoorOpen.cs +++ b/Tiles/FurnitureVoid/VoidDoorOpen.cs @@ -3,10 +3,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidDoorOpen : ModTile { @@ -63,7 +63,7 @@ namespace CalamityMod.Tiles.FurnitureVoid AddMapEntry(new Color(191, 142, 111), name); disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; - closeDoorID = mod.TileType("VoidDoorClosed"); + closeDoorID = ModContent.TileType(); } public override bool CreateDust(int i, int j, ref int type) @@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 48, mod.ItemType("VoidDoor")); + Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType()); } public override void MouseOver(int i, int j) @@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.FurnitureVoid Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("VoidDoor"); + player.showItemIcon2 = ModContent.ItemType(); } } } diff --git a/Tiles/FurnitureVoid/VoidDresser.cs b/Tiles/FurnitureVoid/VoidDresser.cs index 66b7d9cebf..7a2599204b 100644 --- a/Tiles/FurnitureVoid/VoidDresser.cs +++ b/Tiles/FurnitureVoid/VoidDresser.cs @@ -5,10 +5,10 @@ using Terraria.DataStructures; using Terraria.Enums; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidDresser : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureVoid disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = "Void Dresser"; - dresserDrop = mod.ItemType("VoidDresser"); + dresserDrop = ModContent.ItemType(); } public override bool CreateDust(int i, int j, ref int type) @@ -178,7 +178,7 @@ namespace CalamityMod.Tiles.FurnitureVoid } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("VoidDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } @@ -220,7 +220,7 @@ namespace CalamityMod.Tiles.FurnitureVoid } if (player.showItemIconText == chest) { - player.showItemIcon2 = mod.ItemType("VoidDresser"); + player.showItemIcon2 = ModContent.ItemType(); player.showItemIconText = ""; } } diff --git a/Tiles/FurnitureVoid/VoidLamp.cs b/Tiles/FurnitureVoid/VoidLamp.cs index fddc2ec5ef..15a6b36b3a 100644 --- a/Tiles/FurnitureVoid/VoidLamp.cs +++ b/Tiles/FurnitureVoid/VoidLamp.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidLamp : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidLamp")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureVoid/VoidLantern.cs b/Tiles/FurnitureVoid/VoidLantern.cs index 5acd372172..dd8d472082 100644 --- a/Tiles/FurnitureVoid/VoidLantern.cs +++ b/Tiles/FurnitureVoid/VoidLantern.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidLantern : ModTile { @@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidLantern")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/FurnitureVoid/VoidPiano.cs b/Tiles/FurnitureVoid/VoidPiano.cs index 8594ebb83b..2bfdafd250 100644 --- a/Tiles/FurnitureVoid/VoidPiano.cs +++ b/Tiles/FurnitureVoid/VoidPiano.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidPiano : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidPiano")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidSink.cs b/Tiles/FurnitureVoid/VoidSink.cs index d85e89e1e6..7747057bee 100644 --- a/Tiles/FurnitureVoid/VoidSink.cs +++ b/Tiles/FurnitureVoid/VoidSink.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidSink : ModTile { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidSink")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidSofa.cs b/Tiles/FurnitureVoid/VoidSofa.cs index de33114c72..47a48670ec 100644 --- a/Tiles/FurnitureVoid/VoidSofa.cs +++ b/Tiles/FurnitureVoid/VoidSofa.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidSofa : ModTile { @@ -34,7 +34,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidSofa")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidTable.cs b/Tiles/FurnitureVoid/VoidTable.cs index 3bce39a77a..4cdcfa5783 100644 --- a/Tiles/FurnitureVoid/VoidTable.cs +++ b/Tiles/FurnitureVoid/VoidTable.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { class VoidTable : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("VoidTable")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidWorkbench.cs b/Tiles/FurnitureVoid/VoidWorkbench.cs index c4ec89dca1..f56f59ce39 100644 --- a/Tiles/FurnitureVoid/VoidWorkbench.cs +++ b/Tiles/FurnitureVoid/VoidWorkbench.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidWorkbench : ModTile { @@ -39,7 +39,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("VoidWorkbench")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/FurnitureVoid/VoidstoneSlab.cs b/Tiles/FurnitureVoid/VoidstoneSlab.cs index a827c429b6..4f4f230554 100644 --- a/Tiles/FurnitureVoid/VoidstoneSlab.cs +++ b/Tiles/FurnitureVoid/VoidstoneSlab.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.FurnitureVoid +namespace CalamityMod.Tiles { public class VoidstoneSlab : ModTile { @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureVoid soundType = 21; mineResist = 7f; minPick = 190; - drop = mod.ItemType("VoidstoneSlab"); + drop = ModContent.ItemType(); AddMapEntry(new Color(27, 24, 31)); animationFrameHeight = 270; } @@ -91,7 +91,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void PostDraw(int i, int j, SpriteBatch spriteBatch) { - if (Main.tile[i, j].type == mod.TileType("VoidstoneSlab")) + if (Main.tile[i, j].type == ModContent.TileType()) { int xPos = Main.tile[i, j].frameX; int yPos = Main.tile[i, j].frameY; diff --git a/Tiles/LumenylCrystals.cs b/Tiles/LumenylCrystals.cs index a055cbc6a8..22a075d3c5 100644 --- a/Tiles/LumenylCrystals.cs +++ b/Tiles/LumenylCrystals.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles soundType = 2; soundStyle = 27; dustType = 67; - drop = mod.ItemType("Lumenite"); + drop = ModContent.ItemType(); Main.tileSpelunker[Type] = true; } diff --git a/Tiles/MonsterBanner.cs b/Tiles/MonsterBanner.cs index 9b0317ad6d..db8f9ade4d 100644 --- a/Tiles/MonsterBanner.cs +++ b/Tiles/MonsterBanner.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles diff --git a/Tiles/PerennialBrick.cs b/Tiles/PerennialBrick.cs index 5512492589..d75ef1429b 100644 --- a/Tiles/PerennialBrick.cs +++ b/Tiles/PerennialBrick.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); TileMerge.MergeDecorativeTiles(Type); - drop = mod.ItemType("PerennialBrick"); + drop = ModContent.ItemType(); soundType = 21; minPick = 150; AddMapEntry(new Color(17, 133, 46)); diff --git a/Tiles/PerennialOre.cs b/Tiles/PerennialOre.cs index a5bfccb992..0fc3c5c520 100644 --- a/Tiles/PerennialOre.cs +++ b/Tiles/PerennialOre.cs @@ -1,7 +1,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -17,8 +17,8 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); - dustType = mod.DustType("CESparkle"); - drop = mod.ItemType("PerennialOre"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Perennial Ore"); AddMapEntry(new Color(200, 250, 100), name); diff --git a/Tiles/PinkCandle.cs b/Tiles/PinkCandle.cs index 353d9d0c5e..3ff106f675 100644 --- a/Tiles/PinkCandle.cs +++ b/Tiles/PinkCandle.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles { Player player = Main.LocalPlayer; if (!player.dead && player.active) - player.AddBuff(mod.BuffType("PinkHealthCandle"), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) @@ -48,7 +48,7 @@ namespace CalamityMod.Tiles public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PinkCandle")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/PlantyMush.cs b/Tiles/PlantyMush.cs index bfb0f3a3a1..8ab9c44b6e 100644 --- a/Tiles/PlantyMush.cs +++ b/Tiles/PlantyMush.cs @@ -2,7 +2,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles TileMerge.MergeAbyssTiles(Type); dustType = 2; - drop = mod.ItemType("PlantyMush"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Planty Mush"); AddMapEntry(new Color(0, 120, 0), name); @@ -48,11 +48,11 @@ namespace CalamityMod.Tiles int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); if (Main.tile[i, j + 1] != null) { - if (!Main.tile[i, j + 1].active() && Main.tile[i, j + 1].type != (ushort)mod.TileType("ViperVines")) + if (!Main.tile[i, j + 1].active() && Main.tile[i, j + 1].type != (ushort)ModContent.TileType()) { if (Main.tile[i, j + 1].liquid == 255 && - (Main.tile[i, j + 1].wall == (ushort)mod.WallType("MossyGravelWall") || - Main.tile[i, j + 1].wall == (ushort)mod.WallType("AbyssGravelWall")) && + (Main.tile[i, j + 1].wall == (ushort)ModContent.WallType() || + Main.tile[i, j + 1].wall == (ushort)ModContent.WallType()) && !Main.tile[i, j + 1].lava()) { bool flag13 = false; @@ -73,7 +73,7 @@ namespace CalamityMod.Tiles { int num53 = i; int num54 = j + 1; - Main.tile[num53, num54].type = (ushort)mod.TileType("ViperVines"); + Main.tile[num53, num54].type = (ushort)ModContent.TileType(); Main.tile[num53, num54].active(true); WorldGen.SquareTileFrame(num53, num54, true); if (Main.netMode == 2) @@ -88,7 +88,7 @@ namespace CalamityMod.Tiles public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AbyssGravel"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/PurpleCandle.cs b/Tiles/PurpleCandle.cs index 06bdccca79..d3e5906821 100644 --- a/Tiles/PurpleCandle.cs +++ b/Tiles/PurpleCandle.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles { Player player = Main.LocalPlayer; if (!player.dead && player.active) - player.AddBuff(mod.BuffType("PurpleDefenseCandle"), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) @@ -48,7 +48,7 @@ namespace CalamityMod.Tiles public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PurpleCandle")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/Tiles/RoxTile.cs b/Tiles/RoxTile.cs index 6485d20922..826b0e0d50 100644 --- a/Tiles/RoxTile.cs +++ b/Tiles/RoxTile.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("Roxcalibur")); + Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType()); } } } diff --git a/Tiles/SulphurousSand.cs b/Tiles/SulphurousSand.cs index fb5a7c857a..4fa8c63d4e 100644 --- a/Tiles/SulphurousSand.cs +++ b/Tiles/SulphurousSand.cs @@ -2,7 +2,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles TileMerge.MergeAbyssTiles(Type); dustType = 32; - drop = mod.ItemType("SulphurousSand"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Sulphurous Sand"); AddMapEntry(new Color(150, 100, 50), name); @@ -124,7 +124,7 @@ namespace CalamityMod.Tiles if (Main.tile[i, tileLocationY].liquid == 255 && Main.tile[i, tileLocationY - 1].liquid == 255 && Main.tile[i, tileLocationY - 2].liquid == 255 && Main.netMode != 1) { - Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, -0.1f, mod.ProjectileType("SulphuricAcidCannon"), 0, 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, -0.1f, ModContent.ProjectileType(), 0, 2f, Main.myPlayer, 0f, 0f); } if (i < 250 || i > Main.maxTilesX - 250) { @@ -188,7 +188,7 @@ namespace CalamityMod.Tiles public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AbyssGravel"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/SunkenSea/BrainCoral.cs b/Tiles/SunkenSea/BrainCoral.cs index 79adefd590..8c8f668b82 100644 --- a/Tiles/SunkenSea/BrainCoral.cs +++ b/Tiles/SunkenSea/BrainCoral.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class BrainCoral : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.SunkenSea if (Main.tile[i, tileLocationY].liquid == 255 && Main.tile[i, tileLocationY - 1].liquid == 255 && Main.tile[i, tileLocationY - 2].liquid == 255) { if (Main.netMode != NetmodeID.MultiplayerClient) - Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, -0.1f, mod.ProjectileType("CoralBubble"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, -0.1f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); } } } diff --git a/Tiles/SunkenSea/EutrophicSand.cs b/Tiles/SunkenSea/EutrophicSand.cs index a43d855ae5..d56a24392f 100644 --- a/Tiles/SunkenSea/EutrophicSand.cs +++ b/Tiles/SunkenSea/EutrophicSand.cs @@ -3,9 +3,9 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class EutrophicSand : ModTile { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.SunkenSea TileID.Sets.ChecksForMerge[Type] = true; dustType = 108; - drop = mod.ItemType("EutrophicSand"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Eutrophic Sand"); AddMapEntry(new Color(100, 100, 150), name); diff --git a/Tiles/SunkenSea/FanCoral.cs b/Tiles/SunkenSea/FanCoral.cs index 90575c6941..9efdb3e32e 100644 --- a/Tiles/SunkenSea/FanCoral.cs +++ b/Tiles/SunkenSea/FanCoral.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class FanCoral : ModTile { diff --git a/Tiles/SunkenSea/Navystone.cs b/Tiles/SunkenSea/Navystone.cs index 819d6a48c8..2b6ce5532d 100644 --- a/Tiles/SunkenSea/Navystone.cs +++ b/Tiles/SunkenSea/Navystone.cs @@ -3,9 +3,9 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class Navystone : ModTile { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.SunkenSea TileID.Sets.ChecksForMerge[Type] = true; dustType = 96; - drop = mod.ItemType("Navystone"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Navystone"); AddMapEntry(new Color(0, 50, 50), name); @@ -70,7 +70,7 @@ namespace CalamityMod.Tiles.SunkenSea { if (!Main.tile[i, j].lava() && Main.tile[i, j].slope() == 0 && !Main.tile[i, j].halfBrick()) { - Main.tile[i, j].type = (ushort)mod.TileType("SeaPrismCrystals"); + Main.tile[i, j].type = (ushort)ModContent.TileType(); Main.tile[i, j].active(true); if (Main.tile[i, j + 1].active() && Main.tileSolid[Main.tile[i, j + 1].type] && Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].halfBrick()) { @@ -102,7 +102,7 @@ namespace CalamityMod.Tiles.SunkenSea public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("EutrophicSand"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/SunkenSea/SeaAnemone.cs b/Tiles/SunkenSea/SeaAnemone.cs index ad390269f4..caa78efb1f 100644 --- a/Tiles/SunkenSea/SeaAnemone.cs +++ b/Tiles/SunkenSea/SeaAnemone.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class SeaAnemone : ModTile { diff --git a/Tiles/SunkenSea/SeaPrism.cs b/Tiles/SunkenSea/SeaPrism.cs index 3c02876eb9..a60f363f7b 100644 --- a/Tiles/SunkenSea/SeaPrism.cs +++ b/Tiles/SunkenSea/SeaPrism.cs @@ -3,9 +3,9 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class SeaPrism : ModTile { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.SunkenSea TileID.Sets.ChecksForMerge[Type] = true; dustType = 33; - drop = mod.ItemType("SeaPrism"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Sea Prism"); AddMapEntry(new Color(0, 150, 200), name); @@ -71,7 +71,7 @@ namespace CalamityMod.Tiles.SunkenSea { if (!Main.tile[i, j].lava() && Main.tile[i, j].slope() == 0 && !Main.tile[i, j].halfBrick()) { - Main.tile[i, j].type = (ushort)mod.TileType("SeaPrismCrystals"); + Main.tile[i, j].type = (ushort)ModContent.TileType(); Main.tile[i, j].active(true); if (Main.tile[i, j + 1].active() && Main.tileSolid[Main.tile[i, j + 1].type] && Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].halfBrick()) { @@ -103,7 +103,7 @@ namespace CalamityMod.Tiles.SunkenSea public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("Navystone"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/SunkenSea/SeaPrismCrystals.cs b/Tiles/SunkenSea/SeaPrismCrystals.cs index 0a44330fc7..4b6087a853 100644 --- a/Tiles/SunkenSea/SeaPrismCrystals.cs +++ b/Tiles/SunkenSea/SeaPrismCrystals.cs @@ -2,9 +2,9 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class SeaPrismCrystals : ModTile { @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.SunkenSea soundType = 2; soundStyle = 27; dustType = 67; - drop = mod.ItemType("PrismShard"); + drop = ModContent.ItemType(); Main.tileSpelunker[Type] = true; } diff --git a/Tiles/SunkenSea/SmallBrainCoral.cs b/Tiles/SunkenSea/SmallBrainCoral.cs index 8474ff7441..4a23865bec 100644 --- a/Tiles/SunkenSea/SmallBrainCoral.cs +++ b/Tiles/SunkenSea/SmallBrainCoral.cs @@ -1,10 +1,10 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class SmallBrainCoral : ModTile { @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.SunkenSea if (Main.tile[i, tileLocationY].liquid == 255 && Main.tile[i, tileLocationY - 1].liquid == 255 && Main.tile[i, tileLocationY - 2].liquid == 255) { if (Main.netMode != NetmodeID.MultiplayerClient) - Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, -0.1f, mod.ProjectileType("CoralBubbleSmall"), 0, 1f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, -0.1f, ModContent.ProjectileType(), 0, 1f, Main.myPlayer, 0f, 0f); } } } diff --git a/Tiles/SunkenSea/SmallTubeCoral.cs b/Tiles/SunkenSea/SmallTubeCoral.cs index 38054a0c3a..3de79979ed 100644 --- a/Tiles/SunkenSea/SmallTubeCoral.cs +++ b/Tiles/SunkenSea/SmallTubeCoral.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class SmallTubeCoral : ModTile { diff --git a/Tiles/SunkenSea/SunkenSeaStalactite.cs b/Tiles/SunkenSea/SunkenSeaStalactite.cs index 21c3912584..b80d629422 100644 --- a/Tiles/SunkenSea/SunkenSeaStalactite.cs +++ b/Tiles/SunkenSea/SunkenSeaStalactite.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class SunkenSeaStalactite : ModTile { diff --git a/Tiles/SunkenSea/TableCoral.cs b/Tiles/SunkenSea/TableCoral.cs index c48902dd77..bd9acd9b3c 100644 --- a/Tiles/SunkenSea/TableCoral.cs +++ b/Tiles/SunkenSea/TableCoral.cs @@ -2,10 +2,10 @@ using Terraria; using Terraria.DataStructures; using Terraria.Enums; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class TableCoral : ModTile { diff --git a/Tiles/SunkenSea/TubeCoral.cs b/Tiles/SunkenSea/TubeCoral.cs index ff2b12befa..892a252f7a 100644 --- a/Tiles/SunkenSea/TubeCoral.cs +++ b/Tiles/SunkenSea/TubeCoral.cs @@ -1,9 +1,9 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; -namespace CalamityMod.Tiles.SunkenSea +namespace CalamityMod.Tiles { public class TubeCoral : ModTile { diff --git a/Tiles/Tenebris.cs b/Tiles/Tenebris.cs index f7c4809bd4..d2039e9dec 100644 --- a/Tiles/Tenebris.cs +++ b/Tiles/Tenebris.cs @@ -3,7 +3,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles TileMerge.MergeAbyssTiles(Type); dustType = 44; - drop = mod.ItemType("Tenebris"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Tenebris"); AddMapEntry(new Color(0, 100, 100), name); @@ -75,9 +75,9 @@ namespace CalamityMod.Tiles { if (Main.tile[i, j].active()) { - if (Main.tile[i, j].type == mod.TileType("PlantyMush") && WorldGen.genRand.Next(5) == 0 && !Main.tile[i, j].lava()) + if (Main.tile[i, j].type == ModContent.TileType() && WorldGen.genRand.Next(5) == 0 && !Main.tile[i, j].lava()) { - Main.tile[i, j].type = (ushort)mod.TileType("Tenebris"); + Main.tile[i, j].type = (ushort)ModContent.TileType(); WorldGen.SquareTileFrame(i, j, true); if (Main.netMode == 2) { @@ -91,7 +91,7 @@ namespace CalamityMod.Tiles public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AbyssGravel"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } } diff --git a/Tiles/TranquilityCandle.cs b/Tiles/TranquilityCandle.cs index 3f955123f8..23eb207a93 100644 --- a/Tiles/TranquilityCandle.cs +++ b/Tiles/TranquilityCandle.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles Main.tileLavaDeath[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.StyleOnTable1x1); TileObjectData.addTile(Type); - drop = mod.ItemType("TranquilityCandle"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Tranquility Candle"); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); @@ -38,14 +38,14 @@ namespace CalamityMod.Tiles Player player = Main.LocalPlayer; player.noThrow = 2; player.showItemIcon = true; - player.showItemIcon2 = mod.ItemType("TranquilityCandle"); + player.showItemIcon2 = ModContent.ItemType(); } public override void NearbyEffects(int i, int j, bool closer) { Player player = Main.LocalPlayer; if (!player.dead && player.active) - player.AddBuff(mod.BuffType("TranquilityCandle"), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) @@ -57,7 +57,7 @@ namespace CalamityMod.Tiles /*public override void RightClick(int i, int j) { - Item.NewItem(i * 16, j * 16, 8, 8, mod.ItemType("TranquilityCandle")); + Item.NewItem(i * 16, j * 16, 8, 8, ModContent.ItemType()); ?? KillTile( i, j); }*/ } diff --git a/Tiles/UelibloomBrick.cs b/Tiles/UelibloomBrick.cs index 4465dc6a0f..39a7acc2ed 100644 --- a/Tiles/UelibloomBrick.cs +++ b/Tiles/UelibloomBrick.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles soundType = 21; minPick = 200; - drop = mod.ItemType("UelibloomBrick"); + drop = ModContent.ItemType(); AddMapEntry(new Color(174, 108, 46)); } diff --git a/Tiles/UelibloomOre.cs b/Tiles/UelibloomOre.cs index 5df191ae04..0a20aff79f 100644 --- a/Tiles/UelibloomOre.cs +++ b/Tiles/UelibloomOre.cs @@ -2,7 +2,7 @@ using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -16,8 +16,8 @@ namespace CalamityMod.Tiles TileMerge.MergeGeneralTiles(Type); - dustType = mod.DustType("TCESparkle"); - drop = mod.ItemType("UelibloomOre"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Uelibloom Ore"); AddMapEntry(new Color(0, 255, 0), name); diff --git a/Tiles/ViperVines.cs b/Tiles/ViperVines.cs index 7078640c07..b147be3743 100644 --- a/Tiles/ViperVines.cs +++ b/Tiles/ViperVines.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles { if (Main.tile[i, j + 1].active()) { - if (Main.tile[i, j + 1].type == mod.TileType("ViperVines")) + if (Main.tile[i, j + 1].type == ModContent.TileType()) { WorldGen.KillTile(i, j + 1, false, false, false); if (!Main.tile[i, j + 1].active() && Main.netMode != NetmodeID.SinglePlayer) @@ -52,7 +52,7 @@ namespace CalamityMod.Tiles { if (Main.tile[i, j + 1] != null) { - if (!Main.tile[i, j + 1].active() && Main.tile[i, j + 1].type != (ushort)mod.TileType("ViperVines")) + if (!Main.tile[i, j + 1].active() && Main.tile[i, j + 1].type != (ushort)ModContent.TileType()) { if (Main.tile[i, j + 1].liquid >= 128 && !Main.tile[i, j + 1].lava()) { @@ -74,7 +74,7 @@ namespace CalamityMod.Tiles { int num53 = i; int num54 = j + 1; - Main.tile[num53, num54].type = (ushort)mod.TileType("ViperVines"); + Main.tile[num53, num54].type = (ushort)ModContent.TileType(); Main.tile[num53, num54].frameX = (short)(WorldGen.genRand.Next(8) * 18); Main.tile[num53, num54].frameY = (short)(4 * 18); Main.tile[num53, num54 - 1].frameX = (short)(WorldGen.genRand.Next(12) * 18); diff --git a/Tiles/Voidstone.cs b/Tiles/Voidstone.cs index c57c6ec208..8ccf5cdd3c 100644 --- a/Tiles/Voidstone.cs +++ b/Tiles/Voidstone.cs @@ -3,7 +3,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Tiles { @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles soundType = 21; mineResist = 10f; minPick = 190; - drop = mod.ItemType("Voidstone"); + drop = ModContent.ItemType(); AddMapEntry(new Color(10, 10, 10)); } int animationFrameWidth = 288; @@ -234,7 +234,7 @@ namespace CalamityMod.Tiles public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - CustomTileFraming.FrameTileForCustomMerge(i, j, Type, mod.TileType("AbyssGravel"), false, false, false, false, resetFrame); + CustomTileFraming.FrameTileForCustomMerge(i, j, Type, ModContent.TileType(), false, false, false, false, resetFrame); return false; } diff --git a/Tiles/YellowCandle.cs b/Tiles/YellowCandle.cs index 237f80d9eb..bca85e46eb 100644 --- a/Tiles/YellowCandle.cs +++ b/Tiles/YellowCandle.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ObjectData; namespace CalamityMod.Tiles @@ -37,19 +37,19 @@ namespace CalamityMod.Tiles Player player = Main.LocalPlayer; if (!player.dead && player.active) { - player.AddBuff(mod.BuffType("YellowDamageCandle"), 20); + player.AddBuff(ModContent.BuffType(), 20); if (Main.netMode != NetmodeID.MultiplayerClient) { for (int m = 0; m < 200; m++) { if (Main.npc[m].active && !Main.npc[m].friendly) { - Main.npc[m].buffImmune[mod.BuffType("YellowDamageCandle")] = false; - if (Main.npc[m].type == mod.NPCType("CeaselessVoid") || Main.npc[m].type == mod.NPCType("EidolonWyrmHeadHuge")) + Main.npc[m].buffImmune[ModContent.BuffType()] = false; + if (Main.npc[m].type == ModContent.NPCType() || Main.npc[m].type == ModContent.NPCType()) { - Main.npc[m].buffImmune[mod.BuffType("YellowDamageCandle")] = true; + Main.npc[m].buffImmune[ModContent.BuffType()] = true; } - Main.npc[m].AddBuff(mod.BuffType("YellowDamageCandle"), 20, false); + Main.npc[m].AddBuff(ModContent.BuffType(), 20, false); } } } @@ -65,7 +65,7 @@ namespace CalamityMod.Tiles public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("YellowCandle")); + Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } } } diff --git a/UI/AstralArcanumUI.cs b/UI/AstralArcanumUI.cs index 2088c25906..c2cbabf359 100644 --- a/UI/AstralArcanumUI.cs +++ b/UI/AstralArcanumUI.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.UI { diff --git a/UI/BossHealthBarManager.cs b/UI/BossHealthBarManager.cs index 7238417705..0c0e28d899 100644 --- a/UI/BossHealthBarManager.cs +++ b/UI/BossHealthBarManager.cs @@ -7,7 +7,7 @@ using System.Linq; using Terraria; using Terraria.GameContent.Events; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.UI { @@ -114,44 +114,44 @@ namespace CalamityMod.UI OneToMany[NPCID.MoonLordHand] = MoonLord; OneToMany[NPCID.MoonLordCore] = MoonLord; - int[] StarWorm = new int[] { mod.NPCType("AstrumDeusHeadSpectral"), mod.NPCType("AstrumDeusHead") }; - OneToMany[mod.NPCType("AstrumDeusHeadSpectral")] = StarWorm; - OneToMany[mod.NPCType("AstrumDeusHead")] = StarWorm; + int[] StarWorm = new int[] { ModContent.NPCType(), ModContent.NPCType() }; + OneToMany[ModContent.NPCType()] = StarWorm; + OneToMany[ModContent.NPCType()] = StarWorm; - int[] Cal = new int[] { mod.NPCType("CalamitasRun3"), mod.NPCType("CalamitasRun"), mod.NPCType("CalamitasRun2") }; - OneToMany[mod.NPCType("CalamitasRun3")] = Cal; - OneToMany[mod.NPCType("CalamitasRun")] = Cal; - OneToMany[mod.NPCType("CalamitasRun2")] = Cal; + int[] Cal = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }; + OneToMany[ModContent.NPCType()] = Cal; + OneToMany[ModContent.NPCType()] = Cal; + OneToMany[ModContent.NPCType()] = Cal; - int[] Void = new int[] { mod.NPCType("CeaselessVoid"), mod.NPCType("DarkEnergy"), mod.NPCType("DarkEnergy2"), mod.NPCType("DarkEnergy3") }; - OneToMany[mod.NPCType("CeaselessVoid")] = Void; - OneToMany[mod.NPCType("DarkEnergy")] = Void; - OneToMany[mod.NPCType("DarkEnergy2")] = Void; - OneToMany[mod.NPCType("DarkEnergy3")] = Void; + int[] Void = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }; + OneToMany[ModContent.NPCType()] = Void; + OneToMany[ModContent.NPCType()] = Void; + OneToMany[ModContent.NPCType()] = Void; + OneToMany[ModContent.NPCType()] = Void; - int[] Perfs = new int[] { mod.NPCType("PerforatorHive"), mod.NPCType("PerforatorHeadSmall"), mod.NPCType("PerforatorHeadMedium"), - mod.NPCType("PerforatorHeadLarge") }; - OneToMany[mod.NPCType("PerforatorHive")] = Perfs; - OneToMany[mod.NPCType("PerforatorHeadSmall")] = Perfs; - OneToMany[mod.NPCType("PerforatorHeadMedium")] = Perfs; - OneToMany[mod.NPCType("PerforatorHeadLarge")] = Perfs; + int[] Perfs = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), + ModContent.NPCType() }; + OneToMany[ModContent.NPCType()] = Perfs; + OneToMany[ModContent.NPCType()] = Perfs; + OneToMany[ModContent.NPCType()] = Perfs; + OneToMany[ModContent.NPCType()] = Perfs; - int[] Rav = new int[] { mod.NPCType("ScavengerBody"), mod.NPCType("ScavengerClawRight"), mod.NPCType("ScavengerClawLeft"), - mod.NPCType("ScavengerLegRight"), mod.NPCType("ScavengerLegLeft"), mod.NPCType("ScavengerHead") }; - OneToMany[mod.NPCType("ScavengerBody")] = Rav; - OneToMany[mod.NPCType("ScavengerClawRight")] = Rav; - OneToMany[mod.NPCType("ScavengerClawLeft")] = Rav; - OneToMany[mod.NPCType("ScavengerLegRight")] = Rav; - OneToMany[mod.NPCType("ScavengerLegLeft")] = Rav; - OneToMany[mod.NPCType("ScavengerHead")] = Rav; + int[] Rav = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), + ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }; + OneToMany[ModContent.NPCType()] = Rav; + OneToMany[ModContent.NPCType()] = Rav; + OneToMany[ModContent.NPCType()] = Rav; + OneToMany[ModContent.NPCType()] = Rav; + OneToMany[ModContent.NPCType()] = Rav; + OneToMany[ModContent.NPCType()] = Rav; - int[] Slimes = new int[] { mod.NPCType("SlimeGodCore"), mod.NPCType("SlimeGod"), mod.NPCType("SlimeGodSplit"), - mod.NPCType("SlimeGodRun"), mod.NPCType("SlimeGodRunSplit") }; - OneToMany[mod.NPCType("SlimeGodCore")] = Slimes; - OneToMany[mod.NPCType("SlimeGod")] = Slimes; - OneToMany[mod.NPCType("SlimeGodSplit")] = Slimes; - OneToMany[mod.NPCType("SlimeGodRun")] = Slimes; - OneToMany[mod.NPCType("SlimeGodRunSplit")] = Slimes; + int[] Slimes = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), + ModContent.NPCType(), ModContent.NPCType() }; + OneToMany[ModContent.NPCType()] = Slimes; + OneToMany[ModContent.NPCType()] = Slimes; + OneToMany[ModContent.NPCType()] = Slimes; + OneToMany[ModContent.NPCType()] = Slimes; + OneToMany[ModContent.NPCType()] = Slimes; SetupExclusionList(); SetupMinibossHPBarList(); diff --git a/UI/UIBar.cs b/UI/UIBar.cs index 5aac86f959..935b15326a 100644 --- a/UI/UIBar.cs +++ b/UI/UIBar.cs @@ -3,7 +3,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.GameContent.UI.Elements; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.UI; namespace CalamityMod.UI diff --git a/UI/UIBar2.cs b/UI/UIBar2.cs index c9bf190108..58fb4ad01c 100644 --- a/UI/UIBar2.cs +++ b/UI/UIBar2.cs @@ -3,7 +3,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.GameContent.UI.Elements; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.UI; namespace CalamityMod.UI diff --git a/UI/UIHandler.cs b/UI/UIHandler.cs index 4504cb5e24..f6448a8b23 100644 --- a/UI/UIHandler.cs +++ b/UI/UIHandler.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework.Graphics; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.UI; namespace CalamityMod.UI diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index ee87b50694..c76df2c6ad 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -2,7 +2,7 @@ using System.Linq; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Utilities { diff --git a/Utilities/CustomTileFraming.cs b/Utilities/CustomTileFraming.cs index 3586611b10..41c812ede4 100644 --- a/Utilities/CustomTileFraming.cs +++ b/Utilities/CustomTileFraming.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Utilities { @@ -34,14 +34,14 @@ namespace CalamityMod.Utilities PlantCheckAgainst[TileID.HallowedPlants] = new int[1] { TileID.HallowedGrass }; PlantCheckAgainst[TileID.HallowedPlants2] = new int[1] { TileID.HallowedGrass }; PlantCheckAgainst[TileID.FleshWeeds] = new int[1] { TileID.FleshWeeds }; - PlantCheckAgainst[ModContent.GetInstance().TileType("AstralShortPlants")] = new int[1] { mod.TileType("AstralGrass") }; - PlantCheckAgainst[ModContent.GetInstance().TileType("AstralTallPlants")] = new int[1] { mod.TileType("AstralGrass") }; + PlantCheckAgainst[ModContent.GetInstance().TileType("AstralShortPlants")] = new int[1] { ModContent.TileType() }; + PlantCheckAgainst[ModContent.GetInstance().TileType("AstralTallPlants")] = new int[1] { ModContent.TileType() }; VineToGrass = new Dictionary(); VineToGrass[TileID.Vines] = TileID.Grass; VineToGrass[TileID.CrimsonVines] = TileID.FleshGrass; VineToGrass[TileID.HallowedVines] = TileID.HallowedGrass; - VineToGrass[(ushort)mod.TileType("AstralVines")] = (ushort)mod.TileType("AstralGrass"); + VineToGrass[(ushort)ModContent.TileType()] = (ushort)ModContent.TileType(); tileMergeTypes = new bool[TileLoader.TileCount][]; for (int i = 0; i < tileMergeTypes.Length; i++) @@ -49,27 +49,27 @@ namespace CalamityMod.Utilities tileMergeTypes[i] = new bool[TileLoader.TileCount]; } - tileMergeTypes[mod.TileType("AstralDirt")][mod.TileType("AstralOre")] = true; - tileMergeTypes[mod.TileType("AstralDirt")][mod.TileType("AstralStone")] = true; - tileMergeTypes[mod.TileType("AstralDirt")][mod.TileType("AstralSand")] = true; - //tileMergeTypes[mod.TileType("AstralDirt")][mod.TileType("AstralSnow")] = true; - tileMergeTypes[mod.TileType("AstralDirt")][mod.TileType("AstralMonolith")] = true; - tileMergeTypes[mod.TileType("AstralDirt")][mod.TileType("AstralIce")] = true; - //tileMergeTypes[mod.TileType("AstralSnow")][mod.TileType("AstralIce")] = true; - tileMergeTypes[mod.TileType("AstralSand")][mod.TileType("HardenedAstralSand")] = true; - tileMergeTypes[mod.TileType("HardenedAstralSand")][mod.TileType("AstralSandstone")] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + //tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + //tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; - tileMergeTypes[mod.TileType("BrimstoneSlag")][mod.TileType("CharredOre")] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; - tileMergeTypes[TileID.Sandstone][mod.TileType("EutrophicSand")] = true; - tileMergeTypes[mod.TileType("EutrophicSand")][mod.TileType("NavyStone")] = true; - tileMergeTypes[mod.TileType("NavyStone")][mod.TileType("SeaPrism")] = true; + tileMergeTypes[TileID.Sandstone][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; - tileMergeTypes[mod.TileType("AbyssGravel")][mod.TileType("ChaoticOre")] = true; - tileMergeTypes[mod.TileType("AbyssGravel")][mod.TileType("PlantyMush")] = true; - tileMergeTypes[mod.TileType("AbyssGravel")][mod.TileType("Voidstone")] = true; - tileMergeTypes[mod.TileType("AbyssGravel")][mod.TileType("SulphurousSand")] = true; - tileMergeTypes[mod.TileType("PlantyMush")][mod.TileType("Tenebris")] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; + tileMergeTypes[ModContent.TileType()][ModContent.TileType()] = true; } diff --git a/Utilities/DropHelper.cs b/Utilities/DropHelper.cs index ce952fbe14..640d2b6ffe 100644 --- a/Utilities/DropHelper.cs +++ b/Utilities/DropHelper.cs @@ -2,7 +2,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Utilities { @@ -171,7 +171,7 @@ namespace CalamityMod.Utilities public static bool DropRevBagAccessories(Player p) { CalamityMod mod = ModContent.GetInstance(); - return DropItemFromSetCondition(p, CalamityWorld.revenge, 0.05f, mod.ItemType("StressPills"), mod.ItemType("Laudanum"), mod.ItemType("HeartofDarkness")); + return DropItemFromSetCondition(p, CalamityWorld.revenge, 0.05f, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()); } /// @@ -190,9 +190,9 @@ namespace CalamityMod.Utilities CalamityMod mod = ModContent.GetInstance(); int dropped = 0; - dropped += DropItem(theBoss, mod.ItemType("MagnumRounds"), magnum); - dropped += DropItem(theBoss, mod.ItemType("GrenadeRounds"), bazooka); - dropped += DropItem(theBoss, mod.ItemType("ExplosiveShells"), hydra); + dropped += DropItem(theBoss, ModContent.ItemType(), magnum); + dropped += DropItem(theBoss, ModContent.ItemType(), bazooka); + dropped += DropItem(theBoss, ModContent.ItemType(), hydra); return dropped; } diff --git a/Utilities/TileMerge.cs b/Utilities/TileMerge.cs index fe1a0c9576..43f5464ea2 100644 --- a/Utilities/TileMerge.cs +++ b/Utilities/TileMerge.cs @@ -1,6 +1,6 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Utilities { @@ -39,12 +39,12 @@ namespace CalamityMod.Utilities MergeTile(type, TileID.Crimstone); MergeTile(type, TileID.Pearlstone); //Calam general tiles - MergeTile(type, mod.TileType("AstralDirt")); - MergeTile(type, mod.TileType("AstralStone")); - MergeTile(type, mod.TileType("Navystone")); - MergeTile(type, mod.TileType("EutrophicSand")); - MergeTile(type, mod.TileType("AbyssGravel")); - MergeTile(type, mod.TileType("Voidstone")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); } public static void MergeOreTiles(int type) @@ -69,14 +69,14 @@ namespace CalamityMod.Utilities MergeTile(type, TileID.Titanium); MergeTile(type, TileID.LunarOre); //Calam Ores - MergeTile(type, mod.TileType("AerialiteOre")); - MergeTile(type, mod.TileType("CryonicOre")); - MergeTile(type, mod.TileType("PerennialOre")); - MergeTile(type, mod.TileType("CharredOre")); - MergeTile(type, mod.TileType("ChaoticOre")); - MergeTile(type, mod.TileType("AstralOre")); - MergeTile(type, mod.TileType("UelibloomOre")); - MergeTile(type, mod.TileType("AuricOre")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); } /// @@ -105,13 +105,13 @@ namespace CalamityMod.Utilities MergeTile(type, TileID.FossilOre); MergeTile(type, TileID.DesertFossil); //Calam desert tiles - MergeTile(type, mod.TileType("AstralSand")); - MergeTile(type, mod.TileType("HardenedAstralSand")); - MergeTile(type, mod.TileType("AstralSandstone")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); //Sunken Sea tiles - MergeTile(type, mod.TileType("EutrophicSand")); - MergeTile(type, mod.TileType("Navystone")); - MergeTile(type, mod.TileType("SeaPrism")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); } /// @@ -129,7 +129,7 @@ namespace CalamityMod.Utilities MergeTile(type, TileID.FleshIce); MergeTile(type, TileID.HallowedIce); //Calam snow tiles - MergeTile(type, mod.TileType("AstralIce")); + MergeTile(type, ModContent.TileType()); } /// @@ -146,7 +146,7 @@ namespace CalamityMod.Utilities MergeTile(type, TileID.ObsidianBrick); MergeTile(type, TileID.HellstoneBrick); //Crag tiles - MergeTile(type, mod.TileType("BrimstoneSlag")); + MergeTile(type, ModContent.TileType()); } /// @@ -157,13 +157,13 @@ namespace CalamityMod.Utilities { Mod mod = ModContent.GetInstance(); //Sulphurous Sea - MergeTile(type, mod.TileType("SulphurousSand")); + MergeTile(type, ModContent.TileType()); //Abyss - MergeTile(type, mod.TileType("AbyssGravel")); - MergeTile(type, mod.TileType("Voidstone")); - MergeTile(type, mod.TileType("PlantyMush")); - MergeTile(type, mod.TileType("Tenebris")); - MergeTile(type, mod.TileType("ChaoticOre")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); } /// @@ -174,15 +174,15 @@ namespace CalamityMod.Utilities { Mod mod = ModContent.GetInstance(); //Astral - MergeTile(type, mod.TileType("AstralDirt")); - MergeTile(type, mod.TileType("AstralStone")); - MergeTile(type, mod.TileType("AstralMonolith")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); //Astral Desert - MergeTile(type, mod.TileType("AstralSand")); - MergeTile(type, mod.TileType("HardenedAstralSand")); - MergeTile(type, mod.TileType("AstralSandstone")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); //Astral Snow - MergeTile(type, mod.TileType("AstralIce")); + MergeTile(type, ModContent.TileType()); } /// @@ -196,10 +196,10 @@ namespace CalamityMod.Utilities MergeTile(type, TileID.MarbleBlock); MergeTile(type, TileID.GraniteBlock); //Calam - MergeTile(type, mod.TileType("SmoothNavystone")); - MergeTile(type, mod.TileType("SmoothBrimstoneSlag")); - MergeTile(type, mod.TileType("SmoothAbyssGravel")); - MergeTile(type, mod.TileType("SmoothVoidstone")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); } /// @@ -212,14 +212,14 @@ namespace CalamityMod.Utilities //Vanilla decor Main.tileBrick[type] = true; //Calam - MergeTile(type, mod.TileType("CryonicBrick")); - MergeTile(type, mod.TileType("PerennialBrick")); - MergeTile(type, mod.TileType("UelibloomBrick")); - MergeTile(type, mod.TileType("OccultStone")); - MergeTile(type, mod.TileType("ProfanedSlab")); - MergeTile(type, mod.TileType("RunicProfanedBrick")); - MergeTile(type, mod.TileType("AshenSlab")); - MergeTile(type, mod.TileType("VoidstoneSlab")); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); + MergeTile(type, ModContent.TileType()); } } } diff --git a/Walls/AbyssGravelWall.cs b/Walls/AbyssGravelWall.cs index 6315966cbd..27247d8c98 100644 --- a/Walls/AbyssGravelWall.cs +++ b/Walls/AbyssGravelWall.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { diff --git a/Walls/AerialiteBrickWall.cs b/Walls/AerialiteBrickWall.cs index fe18c12e4c..429871f6cd 100644 --- a/Walls/AerialiteBrickWall.cs +++ b/Walls/AerialiteBrickWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("AerialiteBrickWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(51, 45, 97)); } diff --git a/Walls/AshenSlabWall.cs b/Walls/AshenSlabWall.cs index a10e69ef31..ae24cd4431 100644 --- a/Walls/AshenSlabWall.cs +++ b/Walls/AshenSlabWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,8 +10,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("AshenSlabWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(30, 18, 36)); } diff --git a/Walls/AstralBrickWall.cs b/Walls/AstralBrickWall.cs index e2e7a7916a..82bda387b3 100644 --- a/Walls/AstralBrickWall.cs +++ b/Walls/AstralBrickWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,14 +10,14 @@ namespace CalamityMod.Walls { Main.wallHouse[Type] = true; Main.wallLargeFrames[Type] = 2; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("AstralBrickWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(74, 74, 97)); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("AstralBasic"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Walls/AstralDirtWall.cs b/Walls/AstralDirtWall.cs index f2989f2b28..0b01a26e65 100644 --- a/Walls/AstralDirtWall.cs +++ b/Walls/AstralDirtWall.cs @@ -1,7 +1,7 @@  using Microsoft.Xna.Framework; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -16,7 +16,7 @@ namespace CalamityMod.Walls public override void SetDefaults() { dustType = DustID.Shadowflame; //TODO - drop = mod.ItemType("AstralDirtWall"); + drop = ModContent.ItemType(); AddMapEntry(new Color(26, 22, 32)); } diff --git a/Walls/AstralGrassWall.cs b/Walls/AstralGrassWall.cs index c367ed017b..edddab0425 100644 --- a/Walls/AstralGrassWall.cs +++ b/Walls/AstralGrassWall.cs @@ -1,7 +1,7 @@  using Microsoft.Xna.Framework; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -16,7 +16,7 @@ namespace CalamityMod.Walls public override void SetDefaults() { dustType = DustID.Shadowflame; //TODO - drop = mod.ItemType("AstralGrassWall"); + drop = ModContent.ItemType(); WallID.Sets.Conversion.Grass[Type] = true; diff --git a/Walls/AstralIceWall.cs b/Walls/AstralIceWall.cs index bd4ffef95a..ec270e199e 100644 --- a/Walls/AstralIceWall.cs +++ b/Walls/AstralIceWall.cs @@ -1,7 +1,7 @@  using Microsoft.Xna.Framework; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -16,7 +16,7 @@ namespace CalamityMod.Walls public override void SetDefaults() { dustType = DustID.Shadowflame; //TODO - drop = mod.ItemType("AstralIceWall"); + drop = ModContent.ItemType(); AddMapEntry(new Color(83, 76, 92)); } diff --git a/Walls/AstralMonolithWall.cs b/Walls/AstralMonolithWall.cs index ab38d36a42..c88a41d546 100644 --- a/Walls/AstralMonolithWall.cs +++ b/Walls/AstralMonolithWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,14 +10,14 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("AstralMonolithWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(5, 5, 5)); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("AstralBasic"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Walls/AstralSandstoneWall.cs b/Walls/AstralSandstoneWall.cs index cbf82fde06..35688e047e 100644 --- a/Walls/AstralSandstoneWall.cs +++ b/Walls/AstralSandstoneWall.cs @@ -1,7 +1,7 @@  using Microsoft.Xna.Framework; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -16,7 +16,7 @@ namespace CalamityMod.Walls public override void SetDefaults() { dustType = DustID.Shadowflame; //TODO - drop = mod.ItemType("AstralSandstoneWall"); + drop = ModContent.ItemType(); WallID.Sets.Conversion.Sandstone[Type] = true; diff --git a/Walls/AstralStoneWall.cs b/Walls/AstralStoneWall.cs index a7c4c0dfa5..92a0859cca 100644 --- a/Walls/AstralStoneWall.cs +++ b/Walls/AstralStoneWall.cs @@ -1,7 +1,7 @@  using Microsoft.Xna.Framework; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -16,7 +16,7 @@ namespace CalamityMod.Walls public override void SetDefaults() { dustType = DustID.Shadowflame; //TODO - drop = mod.ItemType("AstralStoneWall"); + drop = ModContent.ItemType(); WallID.Sets.Conversion.Stone[Type] = true; diff --git a/Walls/BrimstoneSlagWall.cs b/Walls/BrimstoneSlagWall.cs index eb4f841a3d..37c728dd34 100644 --- a/Walls/BrimstoneSlagWall.cs +++ b/Walls/BrimstoneSlagWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,8 +10,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("BrimstoneSlagWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(24, 16, 29)); } diff --git a/Walls/ChaoticBrickWall.cs b/Walls/ChaoticBrickWall.cs index 872651866e..94f6de22c6 100644 --- a/Walls/ChaoticBrickWall.cs +++ b/Walls/ChaoticBrickWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,7 +9,7 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - drop = mod.ItemType("ChaoticBrickWall"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Chaotic Brick Wall"); AddMapEntry(new Color(255, 0, 0), name); diff --git a/Walls/CinderplateWall.cs b/Walls/CinderplateWall.cs index 5eeeaf07ff..6e84f90d3f 100644 --- a/Walls/CinderplateWall.cs +++ b/Walls/CinderplateWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("CinderplateWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(97, 22, 57)); } diff --git a/Walls/CosmiliteBrickWall.cs b/Walls/CosmiliteBrickWall.cs index ac665934aa..16eba4cfd6 100644 --- a/Walls/CosmiliteBrickWall.cs +++ b/Walls/CosmiliteBrickWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("CosmiliteBrickWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(34, 33, 59)); } diff --git a/Walls/CryonicBrickWall.cs b/Walls/CryonicBrickWall.cs index 40c7d4b065..a8575d8050 100644 --- a/Walls/CryonicBrickWall.cs +++ b/Walls/CryonicBrickWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,8 +10,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("CryonicBrickWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(72, 75, 122)); } diff --git a/Walls/EutrophicSandWall.cs b/Walls/EutrophicSandWall.cs index c9db330b63..4cf5470a98 100644 --- a/Walls/EutrophicSandWall.cs +++ b/Walls/EutrophicSandWall.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { diff --git a/Walls/EutrophicSandWallSafe.cs b/Walls/EutrophicSandWallSafe.cs index 79a0fd54d7..1daff5f3f4 100644 --- a/Walls/EutrophicSandWallSafe.cs +++ b/Walls/EutrophicSandWallSafe.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,7 +10,7 @@ namespace CalamityMod.Walls { Main.wallHouse[Type] = true; dustType = 108; - drop = mod.ItemType("EutrophicSandWallSafe"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Eutrophic Sand Wall Safe"); AddMapEntry(new Color(100, 100, 150), name); diff --git a/Walls/HardenedAstralSandWall.cs b/Walls/HardenedAstralSandWall.cs index 794e10d367..9650504b84 100644 --- a/Walls/HardenedAstralSandWall.cs +++ b/Walls/HardenedAstralSandWall.cs @@ -1,7 +1,7 @@  using Microsoft.Xna.Framework; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -16,7 +16,7 @@ namespace CalamityMod.Walls public override void SetDefaults() { dustType = DustID.Shadowflame; //TODO - drop = mod.ItemType("HardenedAstralSandWall"); + drop = ModContent.ItemType(); WallID.Sets.Conversion.HardenedSand[Type] = true; diff --git a/Walls/MossyGravelWall.cs b/Walls/MossyGravelWall.cs index 857b7fbab5..46c8debc21 100644 --- a/Walls/MossyGravelWall.cs +++ b/Walls/MossyGravelWall.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { diff --git a/Walls/NavystoneWall.cs b/Walls/NavystoneWall.cs index 27363b5105..897ae1d74b 100644 --- a/Walls/NavystoneWall.cs +++ b/Walls/NavystoneWall.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { diff --git a/Walls/NavystoneWallSafe.cs b/Walls/NavystoneWallSafe.cs index 4efb8905ae..36f1ccaaa2 100644 --- a/Walls/NavystoneWallSafe.cs +++ b/Walls/NavystoneWallSafe.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,7 +10,7 @@ namespace CalamityMod.Walls { Main.wallHouse[Type] = true; dustType = 96; - drop = mod.ItemType("NavystoneWallSafe"); + drop = ModContent.ItemType(); ModTranslation name = CreateMapEntryName(); name.SetDefault("Navystone Wall Safe"); AddMapEntry(new Color(0, 50, 50), name); diff --git a/Walls/OccultStoneWall.cs b/Walls/OccultStoneWall.cs index 30308bcff5..39e178634f 100644 --- a/Walls/OccultStoneWall.cs +++ b/Walls/OccultStoneWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("OccultStoneWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(23, 23, 26)); } diff --git a/Walls/PerennialBrickWall.cs b/Walls/PerennialBrickWall.cs index 590de16487..ccbe9d8ce9 100644 --- a/Walls/PerennialBrickWall.cs +++ b/Walls/PerennialBrickWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,8 +10,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("PerennialBrickWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(64, 116, 43)); } diff --git a/Walls/PlaguedPlateWall.cs b/Walls/PlaguedPlateWall.cs index 9f19da58f8..165c012b40 100644 --- a/Walls/PlaguedPlateWall.cs +++ b/Walls/PlaguedPlateWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("PlaguedPlateWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(23, 23, 26)); } diff --git a/Walls/ProfanedCrystalWall.cs b/Walls/ProfanedCrystalWall.cs index d20ddf7bb8..4fd26b4855 100644 --- a/Walls/ProfanedCrystalWall.cs +++ b/Walls/ProfanedCrystalWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,9 +10,9 @@ namespace CalamityMod.Walls { Main.wallHouse[Type] = true; Main.wallLargeFrames[Type] = 2; - dustType = mod.DustType("Sparkle"); + dustType = ModContent.DustType(); soundType = 13; - drop = mod.ItemType("ProfanedCrystalWall"); + drop = ModContent.ItemType(); AddMapEntry(new Color(125, 97, 123)); } diff --git a/Walls/ProfanedRockWall.cs b/Walls/ProfanedRockWall.cs index 9ecc5d4c7a..16d0773e2d 100644 --- a/Walls/ProfanedRockWall.cs +++ b/Walls/ProfanedRockWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,15 +9,15 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("ProfanedRockWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(41, 25, 31)); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Walls/ProfanedSlabWall.cs b/Walls/ProfanedSlabWall.cs index 7b242f1259..b29bd2f608 100644 --- a/Walls/ProfanedSlabWall.cs +++ b/Walls/ProfanedSlabWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,14 +10,14 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("ProfanedSlabWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(59, 27, 23)); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Walls/RunicProfanedBrickWall.cs b/Walls/RunicProfanedBrickWall.cs index e9d74fa3c2..f079bc6e40 100644 --- a/Walls/RunicProfanedBrickWall.cs +++ b/Walls/RunicProfanedBrickWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,15 +10,15 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("RunicProfanedBrickWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(43, 22, 27)); } public override bool CreateDust(int i, int j, ref int type) { Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 205, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Walls/SilvaWall.cs b/Walls/SilvaWall.cs index 9002264680..e755b24ad9 100644 --- a/Walls/SilvaWall.cs +++ b/Walls/SilvaWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,14 +9,14 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("SilvaWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(28, 32, 44)); } public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("SilvaTileGold"), 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType(), 0f, 0f, 1, new Color(255, 255, 255), 1f); Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 157, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Walls/SmoothAbyssGravelWall.cs b/Walls/SmoothAbyssGravelWall.cs index 4e975ad666..c0f8d1bde0 100644 --- a/Walls/SmoothAbyssGravelWall.cs +++ b/Walls/SmoothAbyssGravelWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("SmoothAbyssGravelWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(28, 32, 44)); } diff --git a/Walls/SmoothBrimstoneSlagWall.cs b/Walls/SmoothBrimstoneSlagWall.cs index 6555e9107c..2a88f032d7 100644 --- a/Walls/SmoothBrimstoneSlagWall.cs +++ b/Walls/SmoothBrimstoneSlagWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("SmoothBrimstoneSlagWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(30, 18, 36)); } diff --git a/Walls/SmoothNavystoneWall.cs b/Walls/SmoothNavystoneWall.cs index ee526d6b22..c009d3a626 100644 --- a/Walls/SmoothNavystoneWall.cs +++ b/Walls/SmoothNavystoneWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("SmoothNavystoneWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(27, 35, 36)); } diff --git a/Walls/SmoothVoidstoneWall.cs b/Walls/SmoothVoidstoneWall.cs index d0faa162da..bab048d3ed 100644 --- a/Walls/SmoothVoidstoneWall.cs +++ b/Walls/SmoothVoidstoneWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("SmoothVoidstoneWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(11, 11, 13)); } diff --git a/Walls/StatigelWall.cs b/Walls/StatigelWall.cs index 30b1546be0..230a3f8fb4 100644 --- a/Walls/StatigelWall.cs +++ b/Walls/StatigelWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("StatigelWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(162, 54, 90)); } diff --git a/Walls/StratusWall.cs b/Walls/StratusWall.cs index e15d34ecf6..1c426b39d5 100644 --- a/Walls/StratusWall.cs +++ b/Walls/StratusWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("StratusWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(45, 44, 55)); } diff --git a/Walls/UelibloomBrickWall.cs b/Walls/UelibloomBrickWall.cs index 62237fc3a0..da87a260cd 100644 --- a/Walls/UelibloomBrickWall.cs +++ b/Walls/UelibloomBrickWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("UelibloomBrickWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(97, 59, 35)); } diff --git a/Walls/VoidstoneSlabWall.cs b/Walls/VoidstoneSlabWall.cs index d2906fc4b2..92a4b9d92e 100644 --- a/Walls/VoidstoneSlabWall.cs +++ b/Walls/VoidstoneSlabWall.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -10,8 +10,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("VoidstoneSlabWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(19, 17, 22)); } diff --git a/Walls/VoidstoneWall.cs b/Walls/VoidstoneWall.cs index abc869f417..e311f088f5 100644 --- a/Walls/VoidstoneWall.cs +++ b/Walls/VoidstoneWall.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { @@ -9,8 +9,8 @@ namespace CalamityMod.Walls public override void SetDefaults() { Main.wallHouse[Type] = true; - dustType = mod.DustType("Sparkle"); - drop = mod.ItemType("VoidstoneWall"); + dustType = ModContent.DustType(); + drop = ModContent.ItemType(); AddMapEntry(new Color(5, 5, 5)); } diff --git a/Walls/VoidstoneWallUnsafe.cs b/Walls/VoidstoneWallUnsafe.cs index 9ebf7d37fe..8b2dfb501b 100644 --- a/Walls/VoidstoneWallUnsafe.cs +++ b/Walls/VoidstoneWallUnsafe.cs @@ -1,5 +1,5 @@ using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Walls { diff --git a/Waters/AbyssWater.cs b/Waters/AbyssWater.cs index acf70e4ef8..a49beb56c2 100644 --- a/Waters/AbyssWater.cs +++ b/Waters/AbyssWater.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { diff --git a/Waters/AbyssWaterflow.cs b/Waters/AbyssWaterflow.cs index aaa4723e64..3498ea0ad2 100644 --- a/Waters/AbyssWaterflow.cs +++ b/Waters/AbyssWaterflow.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { diff --git a/Waters/AstralWater.cs b/Waters/AstralWater.cs index 61c8de3d82..b309c6be31 100644 --- a/Waters/AstralWater.cs +++ b/Waters/AstralWater.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { diff --git a/Waters/AstralWaterflow.cs b/Waters/AstralWaterflow.cs index 783f53769c..20a32ba9fb 100644 --- a/Waters/AstralWaterflow.cs +++ b/Waters/AstralWaterflow.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { public class AstralWaterflow : ModWaterfallStyle diff --git a/Waters/SulphuricWater.cs b/Waters/SulphuricWater.cs index e2557dc2cd..d6afaf0a86 100644 --- a/Waters/SulphuricWater.cs +++ b/Waters/SulphuricWater.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { diff --git a/Waters/SulphuricWaterflow.cs b/Waters/SulphuricWaterflow.cs index e116dfb4b4..f39f57a7ab 100644 --- a/Waters/SulphuricWaterflow.cs +++ b/Waters/SulphuricWaterflow.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { diff --git a/Waters/SunkenSeaWater.cs b/Waters/SunkenSeaWater.cs index 16f9e35348..4dd1679b49 100644 --- a/Waters/SunkenSeaWater.cs +++ b/Waters/SunkenSeaWater.cs @@ -1,6 +1,6 @@ using Microsoft.Xna.Framework; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { diff --git a/Waters/SunkenSeaWaterflow.cs b/Waters/SunkenSeaWaterflow.cs index 46484b4281..65ea86902a 100644 --- a/Waters/SunkenSeaWaterflow.cs +++ b/Waters/SunkenSeaWaterflow.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.Waters { diff --git a/World/Abyss.cs b/World/Abyss.cs index 801da6a2ef..0cea4bb7af 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -1,6 +1,6 @@ using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.World { @@ -32,7 +32,7 @@ namespace CalamityMod.World tile.type == TileID.Sand && WorldGen.genRand.Next(4) == 0) { - tile.type = (ushort)mod.TileType("SulphurousSand"); + tile.type = (ushort)ModContent.TileType(); } else if (tile.active() && tile.type == TileID.PalmTree) @@ -46,7 +46,7 @@ namespace CalamityMod.World tile.type == TileID.Sand && WorldGen.genRand.Next(2) == 0) { - tile.type = (ushort)mod.TileType("SulphurousSand"); + tile.type = (ushort)ModContent.TileType(); } else if (tile.active() && tile.type == TileID.PalmTree) @@ -59,7 +59,7 @@ namespace CalamityMod.World if (tile.active() && tile.type == TileID.Sand) { - tile.type = (ushort)mod.TileType("SulphurousSand"); + tile.type = (ushort)ModContent.TileType(); } else if (tile.active() && tile.type == TileID.PalmTree) @@ -83,7 +83,7 @@ namespace CalamityMod.World tile.type == TileID.Sand && WorldGen.genRand.Next(4) == 0) { - tile.type = (ushort)mod.TileType("SulphurousSand"); + tile.type = (ushort)ModContent.TileType(); } else if (tile.active() && tile.type == TileID.PalmTree) @@ -97,7 +97,7 @@ namespace CalamityMod.World tile.type == TileID.Sand && WorldGen.genRand.Next(2) == 0) { - tile.type = (ushort)mod.TileType("SulphurousSand"); + tile.type = (ushort)ModContent.TileType(); } else if (tile.active() && tile.type == TileID.PalmTree) @@ -110,7 +110,7 @@ namespace CalamityMod.World if (tile.active() && tile.type == TileID.Sand) { - tile.type = (ushort)mod.TileType("SulphurousSand"); + tile.type = (ushort)ModContent.TileType(); } else if (tile.active() && tile.type == TileID.PalmTree) @@ -162,15 +162,15 @@ namespace CalamityMod.World { if (canConvert) { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } else if (!tile.active() && abyssIndex2 > rockLayer) { tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } } } @@ -180,15 +180,15 @@ namespace CalamityMod.World { if (canConvert) { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } else if (!tile.active() && abyssIndex2 > rockLayer) { tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } } } @@ -198,18 +198,18 @@ namespace CalamityMod.World { if (abyssIndex2 > (rockLayer + y * 0.262)) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else { - tile.type = (ushort)mod.TileType("AbyssGravel"); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } } else if (!tile.active() && @@ -218,18 +218,18 @@ namespace CalamityMod.World tile.active(true); if (abyssIndex2 > (rockLayer + y * 0.262)) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } } } @@ -258,15 +258,15 @@ namespace CalamityMod.World { if (canConvert) { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } else if (!tile.active() && abyssIndex2 > rockLayer) { tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } } } @@ -276,15 +276,15 @@ namespace CalamityMod.World { if (canConvert) { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } else if (!tile.active() && abyssIndex2 > rockLayer) { tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } } } @@ -294,18 +294,18 @@ namespace CalamityMod.World { if (abyssIndex2 > (rockLayer + y * 0.262)) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else { - tile.type = (ushort)mod.TileType("AbyssGravel"); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } } else if (!tile.active() && @@ -314,18 +314,18 @@ namespace CalamityMod.World tile.active(true); if (abyssIndex2 > (rockLayer + y * 0.262)) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + tile.type = (ushort)ModContent.TileType(); + tile.wall = (ushort)ModContent.WallType(); } else { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)ModContent.WallType(); + tile.type = (ushort)ModContent.TileType(); } } } @@ -341,8 +341,8 @@ namespace CalamityMod.World else if (y > 1500) maxAbyssIslands = 16; //Medium World - WorldGenerationMethods.SpecialHut((ushort)mod.TileType("SmoothVoidstone"), (ushort)mod.TileType("Voidstone"), - (ushort)mod.WallType("VoidstoneWallUnsafe"), 9, abyssChasmX, CalamityWorld.abyssChasmBottom); + WorldGenerationMethods.SpecialHut((ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.WallType(), 9, abyssChasmX, CalamityWorld.abyssChasmBottom); int islandLocationOffset = 30; int islandLocationY = rockLayer; diff --git a/World/CalamityWorld.cs b/World/CalamityWorld.cs index 0ad1a91ad5..6b9f5161e5 100644 --- a/World/CalamityWorld.cs +++ b/World/CalamityWorld.cs @@ -9,7 +9,7 @@ using Terraria.GameContent.Events; using Terraria.GameContent.Generation; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.ModLoader.IO; using Terraria.World.Generation; @@ -584,19 +584,19 @@ namespace CalamityMod.World public override void TileCountsAvailable(int[] tileCounts) { - calamityTiles = tileCounts[mod.TileType("CharredOre")] + tileCounts[mod.TileType("BrimstoneSlag")]; - sunkenSeaTiles = tileCounts[mod.TileType("EutrophicSand")] + tileCounts[mod.TileType("Navystone")] + tileCounts[mod.TileType("SeaPrism")]; - abyssTiles = tileCounts[mod.TileType("AbyssGravel")]; - sulphurTiles = tileCounts[mod.TileType("SulphurousSand")]; + calamityTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; + sunkenSeaTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; + abyssTiles = tileCounts[ModContent.TileType()]; + sulphurTiles = tileCounts[ModContent.TileType()]; #region Astral Stuff - int astralDesertTiles = tileCounts[mod.TileType("AstralSand")] + tileCounts[mod.TileType("AstralSandstone")] + tileCounts[mod.TileType("HardenedAstralSand")]; - int astralSnowTiles = tileCounts[mod.TileType("AstralIce")]; + int astralDesertTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; + int astralSnowTiles = tileCounts[ModContent.TileType()]; Main.sandTiles += astralDesertTiles; Main.snowTiles += astralSnowTiles; - astralTiles = astralDesertTiles + astralSnowTiles + tileCounts[mod.TileType("AstralDirt")] + tileCounts[mod.TileType("AstralStone")] + tileCounts[mod.TileType("AstralGrass")] + tileCounts[mod.TileType("AstralOre")]; + astralTiles = astralDesertTiles + astralSnowTiles + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; #endregion } #endregion @@ -827,9 +827,9 @@ namespace CalamityMod.World if (Main.player[playerIndex].active) { Player player = Main.player[playerIndex]; - if (player.FindBuffIndex(mod.BuffType("ExtremeGravity")) > -1) + if (player.FindBuffIndex(ModContent.BuffType()) > -1) { - player.ClearBuff(mod.BuffType("ExtremeGravity")); + player.ClearBuff(ModContent.BuffType()); } } } @@ -864,16 +864,16 @@ namespace CalamityMod.World break; case 6: ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss2")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss3")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 7: NPC.SpawnOnPlayer(closestPlayer, NPCID.EaterofWorldsHead); break; case 8: ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Astrageldon")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 9: ChangeTime(false); @@ -886,13 +886,13 @@ namespace CalamityMod.World break; case 11: ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Bumblefuck")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 12: NPC.SpawnWOF(Main.player[closestPlayer].position); break; case 13: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("HiveMind")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 14: ChangeTime(false); @@ -900,15 +900,15 @@ namespace CalamityMod.World break; case 15: ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("StormWeaverHead")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 16: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AquaticScourgeHead")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 17: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHead")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 18: int num1302 = NPC.NewNPC((int)Main.player[closestPlayer].Center.X, (int)Main.player[closestPlayer].Center.Y - 400, NPCID.CultistBoss, 0, 0f, 0f, 0f, 0f, 255); @@ -924,28 +924,28 @@ namespace CalamityMod.World Main.npc[doom].netUpdate = true; } } - NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)Main.rand.Next(-100, 101)), (int)(Main.player[closestPlayer].position.Y - 400f), mod.NPCType("CrabulonIdle"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)Main.rand.Next(-100, 101)), (int)(Main.player[closestPlayer].position.Y - 400f), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); break; case 20: NPC.SpawnOnPlayer(closestPlayer, NPCID.Plantera); break; case 21: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CeaselessVoid")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 22: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("PerforatorHive")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 23: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Cryogen")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 24: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("BrimstoneElemental")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 25: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CosmicWraith")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 26: - NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)Main.rand.Next(-100, 101)), (int)(Main.player[closestPlayer].position.Y - 400f), mod.NPCType("ScavengerBody"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)Main.rand.Next(-100, 101)), (int)(Main.player[closestPlayer].position.Y - 400f), ModContent.NPCType(), 0, 0f, 0f, 0f, 0f, 255); break; case 27: NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)Main.rand.Next(-100, 101)), (int)(Main.player[closestPlayer].position.Y - 400f), NPCID.DukeFishron, 0, 0f, 0f, 0f, 0f, 255); @@ -957,43 +957,43 @@ namespace CalamityMod.World ChangeTime(false); for (int x = 0; x < 10; x++) { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AstrumDeusHead")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AstrumDeusHeadSpectral")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 30: ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Polterghast")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 31: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("PlaguebringerGoliath")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 32: ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Calamitas")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 33: ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Siren")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 34: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGod")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGodRun")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGodCore")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 35: ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Providence")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 36: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SupremeCalamitas")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 37: ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Yharon")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; case 38: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DevourerofGodsHeadS")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); break; } } @@ -1030,21 +1030,21 @@ namespace CalamityMod.World { if (DoGSecondStageCountdown == 21540) { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CeaselessVoid")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } if (DoGSecondStageCountdown == 14340) { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("StormWeaverHead")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } if (DoGSecondStageCountdown == 7140) { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CosmicWraith")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } if (DoGSecondStageCountdown <= 60) { - if (!NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS"))) + if (!NPC.AnyNPCs(ModContent.NPCType())) { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DevourerofGodsHeadS")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); string key = "Mods.CalamityMod.EdgyBossText10"; Color messageColor = Color.Cyan; if (Main.netMode == NetmodeID.SinglePlayer) @@ -1104,8 +1104,8 @@ namespace CalamityMod.World int chance = (int)spawnRate; if (Main.rand.Next(chance) == 0) { - if (!NPC.AnyNPCs(mod.NPCType("ArmoredDiggerHead")) && Main.netMode != NetmodeID.MultiplayerClient) - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ArmoredDiggerHead")); + if (!NPC.AnyNPCs(ModContent.NPCType()) && Main.netMode != NetmodeID.MultiplayerClient) + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } } } @@ -1127,8 +1127,8 @@ namespace CalamityMod.World { if (Main.player[closestPlayer].chaosState) { - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge")) && Main.netMode != NetmodeID.MultiplayerClient) - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("EidolonWyrmHeadHuge")); + if (!NPC.AnyNPCs(ModContent.NPCType()) && Main.netMode != NetmodeID.MultiplayerClient) + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } } @@ -1188,7 +1188,7 @@ namespace CalamityMod.World if (Main.player[closestPlayer].ZoneDesert) { BossText(); - bossType = mod.NPCType("DesertScourgeHead"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1196,7 +1196,7 @@ namespace CalamityMod.World if (Main.player[closestPlayer].ZoneCrimson) { BossText(); - bossType = mod.NPCType("PerforatorHive"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1204,7 +1204,7 @@ namespace CalamityMod.World if (Main.player[closestPlayer].ZoneCorrupt) { BossText(); - bossType = mod.NPCType("HiveMind"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1212,7 +1212,7 @@ namespace CalamityMod.World if (Main.player[closestPlayer].ZoneGlowshroom) { BossText(); - bossType = mod.NPCType("CrabulonIdle"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1262,7 +1262,7 @@ namespace CalamityMod.World if (Main.player[closestPlayer].ZoneSnow && Main.player[closestPlayer].ZoneOverworldHeight) { BossText(); - bossType = mod.NPCType("Cryogen"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1270,7 +1270,7 @@ namespace CalamityMod.World if (!Main.dayTime && Main.player[closestPlayer].ZoneOverworldHeight) { BossText(); - bossType = mod.NPCType("Calamitas"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1279,7 +1279,7 @@ namespace CalamityMod.World !Main.dayTime && Main.player[closestPlayer].ZoneOverworldHeight) { BossText(); - bossType = mod.NPCType("Astrageldon"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1287,7 +1287,7 @@ namespace CalamityMod.World if (Main.player[closestPlayer].ZoneJungle && NPC.downedGolemBoss && Main.player[closestPlayer].ZoneOverworldHeight) { BossText(); - bossType = mod.NPCType("PlaguebringerGoliath"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1298,7 +1298,7 @@ namespace CalamityMod.World (Main.player[closestPlayer].ZoneHoly && Main.player[closestPlayer].ZoneOverworldHeight)) { BossText(); - bossType = mod.NPCType("ProfanedGuardianBoss"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } @@ -1306,7 +1306,7 @@ namespace CalamityMod.World if (Main.player[closestPlayer].ZoneJungle && Main.player[closestPlayer].ZoneOverworldHeight) { BossText(); - bossType = mod.NPCType("Bumblefuck"); + bossType = ModContent.NPCType(); bossSpawnCountdown = 3600; } } @@ -1377,54 +1377,54 @@ namespace CalamityMod.World break; } - if (bossType == mod.NPCType("DesertScourgeHead")) + if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneDesert) canSpawn = false; } - else if (bossType == mod.NPCType("PerforatorHive")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneCrimson) canSpawn = false; } - else if (bossType == mod.NPCType("HiveMind")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneCorrupt) canSpawn = false; } - else if (bossType == mod.NPCType("CrabulonIdle")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneGlowshroom) canSpawn = false; } - else if (bossType == mod.NPCType("Cryogen")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneSnow || !Main.player[closestPlayer].ZoneOverworldHeight) canSpawn = false; } - else if (bossType == mod.NPCType("Calamitas")) + else if (bossType == ModContent.NPCType()) { if (Main.dayTime || !Main.player[closestPlayer].ZoneOverworldHeight) canSpawn = false; } - else if (bossType == mod.NPCType("Astrageldon")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].Calamity().ZoneAstral || Main.dayTime || !Main.player[closestPlayer].ZoneOverworldHeight) canSpawn = false; } - else if (bossType == mod.NPCType("PlaguebringerGoliath")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneJungle || !Main.player[closestPlayer].ZoneOverworldHeight) canSpawn = false; } - else if (bossType == mod.NPCType("ProfanedGuardianBoss")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneUnderworldHeight && (!Main.player[closestPlayer].ZoneHoly || !Main.player[closestPlayer].ZoneOverworldHeight)) canSpawn = false; } - else if (bossType == mod.NPCType("Bumblefuck")) + else if (bossType == ModContent.NPCType()) { if (!Main.player[closestPlayer].ZoneJungle || !Main.player[closestPlayer].ZoneOverworldHeight) canSpawn = false; @@ -1434,15 +1434,15 @@ namespace CalamityMod.World { if (bossType == NPCID.Spazmatism) NPC.SpawnOnPlayer(closestPlayer, NPCID.Retinazer); - else if (bossType == mod.NPCType("ProfanedGuardianBoss")) + else if (bossType == ModContent.NPCType()) { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss2")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss3")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } - else if (bossType == mod.NPCType("DesertScourgeHead")) + else if (bossType == ModContent.NPCType()) { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); + NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType()); } if (bossType == NPCID.DukeFishron) NPC.NewNPC((int)Main.player[closestPlayer].Center.X - 300, (int)Main.player[closestPlayer].Center.Y - 300, bossType); diff --git a/World/Planets/MainPlanet.cs b/World/Planets/MainPlanet.cs index 70ae7a3008..7f6ee7af93 100644 --- a/World/Planets/MainPlanet.cs +++ b/World/Planets/MainPlanet.cs @@ -7,7 +7,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.GameContent.Generation; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.World.Generation; namespace CalamityMod.World.Planets diff --git a/World/Planets/Planetoid.cs b/World/Planets/Planetoid.cs index dbda167d2c..7098b3a709 100644 --- a/World/Planets/Planetoid.cs +++ b/World/Planets/Planetoid.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.World.Generation; namespace CalamityMod.World.Planets diff --git a/World/SmallBiomes.cs b/World/SmallBiomes.cs index 0e50d42249..d08861eedb 100644 --- a/World/SmallBiomes.cs +++ b/World/SmallBiomes.cs @@ -1,7 +1,7 @@ using System; using Terraria; using Terraria.ID; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; namespace CalamityMod.World { diff --git a/World/SunkenSea.cs b/World/SunkenSea.cs index ccbd3a2f34..80b52010c6 100644 --- a/World/SunkenSea.cs +++ b/World/SunkenSea.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using Terraria; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.World.Generation; namespace CalamityMod.World @@ -241,11 +241,11 @@ namespace CalamityMod.World if (num10 > 3.5f) //Adjust num10 for all cases if you want different tile frequencies; higher is less frequent, lower is more frequent { tile.ClearEverything(); - tile.wall = (ushort)mod.WallType("NavystoneWall"); + tile.wall = (ushort)ModContent.WallType(); tile.liquid = 192; if (num4 % 15 == 2) { - tile.ResetToType((ushort)mod.TileType("Navystone")); + tile.ResetToType((ushort)ModContent.TileType()); tile.active(true); tile.liquid = 0; } @@ -253,11 +253,11 @@ namespace CalamityMod.World } else if (num10 > 1.8f) { - tile.wall = (ushort)mod.WallType("NavystoneWall"); + tile.wall = (ushort)ModContent.WallType(); tile.liquid = 192; if (!flag || tile.active()) { - tile.ResetToType((ushort)mod.TileType("Navystone")); + tile.ResetToType((ushort)ModContent.TileType()); tile.active(true); Tile.SmoothSlope(num6, num7, true); tile.liquid = 0; @@ -268,12 +268,12 @@ namespace CalamityMod.World tile.liquid = 192; if (!flag || tile.active()) { - tile.ResetToType((ushort)mod.TileType("EutrophicSand")); + tile.ResetToType((ushort)ModContent.TileType()); tile.active(true); Tile.SmoothSlope(num6, num7, true); tile.liquid = 0; } - tile.wall = (ushort)mod.WallType("EutrophicSandWall"); + tile.wall = (ushort)ModContent.WallType(); } else if (num10 > 0.25f) { @@ -282,15 +282,15 @@ namespace CalamityMod.World { if (tile.active()) { - tile.ResetToType((ushort)mod.TileType("EutrophicSand")); + tile.ResetToType((ushort)ModContent.TileType()); tile.active(true); Tile.SmoothSlope(num6, num7, true); - tile.wall = (ushort)mod.WallType("EutrophicSandWall"); + tile.wall = (ushort)ModContent.WallType(); tile.liquid = 0; } else { - tile.wall = (ushort)mod.WallType("NavystoneWall"); + tile.wall = (ushort)ModContent.WallType(); tile.liquid = 192; } } @@ -344,7 +344,7 @@ namespace CalamityMod.World WorldUtils.Gen(point, new Shapes.Circle((int)((float)radius * outerRadiusPercentage)), Actions.Chain(new GenAction[] //Smallest is 6 { new Modifiers.Blotches(2, 0.3).Output(holeShape), - new Actions.SetTile((ushort)mod.TileType("Navystone"), true) //Place outer shell + new Actions.SetTile((ushort)ModContent.TileType(), true) //Place outer shell })); WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] //Smooth outer shell @@ -358,7 +358,7 @@ namespace CalamityMod.World WorldUtils.Gen(point, new Shapes.Circle((int)((float)radius * (outerRadiusPercentage * 0.6f))), Actions.Chain(new GenAction[] //Smallest is 4 { new Modifiers.Blotches(2, 0.3), - new Actions.SetTile((ushort)mod.TileType("SeaPrism"), true) //Place prism + new Actions.SetTile((ushort)ModContent.TileType(), true) //Place prism })); WorldUtils.Gen(point, new Shapes.Circle((int)((float)radius * (outerRadiusPercentage * 0.3f))), Actions.Chain(new GenAction[] //Smallest is 2 @@ -401,7 +401,7 @@ namespace CalamityMod.World WorldUtils.Gen(point, new Shapes.Circle((int)((float)radiusSmall * outerRadiusPercentage)), Actions.Chain(new GenAction[] //Smallest is 4 { new Modifiers.Blotches(2, 0.3).Output(holeShape), - new Actions.SetTile((ushort)mod.TileType("Navystone"), true) //Place outer shell + new Actions.SetTile((ushort)ModContent.TileType(), true) //Place outer shell })); WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] //Smooth outer shell @@ -415,7 +415,7 @@ namespace CalamityMod.World WorldUtils.Gen(point, new Shapes.Circle((int)((float)radiusSmall * (outerRadiusPercentage * 0.6f))), Actions.Chain(new GenAction[] //Smallest is 2 { new Modifiers.Blotches(2, 0.3), - new Actions.SetTile((ushort)mod.TileType("SeaPrism"), true) //Place prism + new Actions.SetTile((ushort)ModContent.TileType(), true) //Place prism })); WorldUtils.Gen(point, new Shapes.Circle((int)((float)radiusSmall * (outerRadiusPercentage * 0.3f))), Actions.Chain(new GenAction[] //Smallest is 1 @@ -438,9 +438,9 @@ namespace CalamityMod.World Tile tile = Main.tile[num3, num4]; Tile testTile = Main.tile[num3, num4 + 1]; Tile testTile2 = Main.tile[num3, num4 + 2]; - if (tile.type == mod.TileType("EutrophicSand") && (!WorldGen.SolidTile(testTile) || !WorldGen.SolidTile(testTile2))) //Tile variation + if (tile.type == ModContent.TileType() && (!WorldGen.SolidTile(testTile) || !WorldGen.SolidTile(testTile2))) //Tile variation { - tile.type = (ushort)mod.TileType("Navystone"); + tile.type = (ushort)ModContent.TileType(); } } } @@ -451,7 +451,7 @@ namespace CalamityMod.World int num5 = k + start.X; int num6 = l + start.Y; Tile tile2 = Main.tile[num5, num6]; - if (tile2.active() && (tile2.type == mod.TileType("SeaPrism") || tile2.type == mod.TileType("Navystone"))) + if (tile2.active() && (tile2.type == ModContent.TileType() || tile2.type == ModContent.TileType())) { bool flag = true; for (int m = -1; m >= -3; m--) @@ -489,19 +489,19 @@ namespace CalamityMod.World break; } } - if (tile2.type == mod.TileType("SeaPrism") || (tile2.type == mod.TileType("Navystone") && WorldGen.genRand.Next(8) == 0)) + if (tile2.type == ModContent.TileType() || (tile2.type == ModContent.TileType() && WorldGen.genRand.Next(8) == 0)) { if (flag3 ^ flag4) { if (tile2.slope() == 0 && !tile2.halfBrick()) { Tile tile3 = Main.tile[num5 + (flag3 ? -1 : 1), num6]; - tile3.type = (ushort)mod.TileType("SeaPrismCrystals"); - if (Main.tile[num5 - 1, num6].type == mod.TileType("SeaPrismCrystals")) + tile3.type = (ushort)ModContent.TileType(); + if (Main.tile[num5 - 1, num6].type == ModContent.TileType()) { Main.tile[num5 - 1, num6].frameY = (short)(2 * 18); } - else if (Main.tile[num5 + 1, num6].type == mod.TileType("SeaPrismCrystals")) + else if (Main.tile[num5 + 1, num6].type == ModContent.TileType()) { Main.tile[num5 + 1, num6].frameY = (short)(3 * 18); } @@ -514,12 +514,12 @@ namespace CalamityMod.World if (tile2.slope() == 0 && !tile2.halfBrick()) { Tile tile3 = Main.tile[num5, num6 + (flag ? -1 : 1)]; - tile3.type = (ushort)mod.TileType("SeaPrismCrystals"); - if (Main.tile[num5, num6 - 1].type == mod.TileType("SeaPrismCrystals")) + tile3.type = (ushort)ModContent.TileType(); + if (Main.tile[num5, num6 - 1].type == ModContent.TileType()) { Main.tile[num5, num6 - 1].frameY = (short)(0 * 18); } - else if (Main.tile[num5, num6 + 1].type == mod.TileType("SeaPrismCrystals")) + else if (Main.tile[num5, num6 + 1].type == ModContent.TileType()) { Main.tile[num5, num6 + 1].frameY = (short)(1 * 18); } @@ -531,39 +531,39 @@ namespace CalamityMod.World } if (!tile2.active()) { - if (tile2.wall == mod.WallType("NavystoneWall") || tile2.wall == mod.WallType("EutrophicSandWall")) + if (tile2.wall == ModContent.WallType() || tile2.wall == ModContent.WallType()) { if (WorldGen.genRand.Next(5) == 0) { - WorldGenerationMethods.PlaceTit(num5, num6, (ushort)mod.TileType("SunkenSeaStalactite")); + WorldGenerationMethods.PlaceTit(num5, num6, (ushort)ModContent.TileType()); } if (WorldGen.genRand.Next(8) == 0) { - WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("BrainCoral"), true, false, -1, 0); + WorldGen.PlaceTile(num5, num6, (ushort)ModContent.TileType(), true, false, -1, 0); } if (WorldGen.genRand.Next(6) == 0) { - WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("SmallBrainCoral"), true, false, -1, 0); + WorldGen.PlaceTile(num5, num6, (ushort)ModContent.TileType(), true, false, -1, 0); } if (WorldGen.genRand.Next(10) == 0) { - WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("FanCoral"), true, false, -1, 0); + WorldGen.PlaceTile(num5, num6, (ushort)ModContent.TileType(), true, false, -1, 0); } if (WorldGen.genRand.Next(6) == 0) { - WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("SeaAnemone"), true, false, -1, 0); + WorldGen.PlaceTile(num5, num6, (ushort)ModContent.TileType(), true, false, -1, 0); } if (WorldGen.genRand.Next(8) == 0) { - WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("TubeCoral"), true, false, -1, 0); + WorldGen.PlaceTile(num5, num6, (ushort)ModContent.TileType(), true, false, -1, 0); } if (WorldGen.genRand.Next(6) == 0) { - WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("SmallTubeCoral"), true, false, -1, 0); + WorldGen.PlaceTile(num5, num6, (ushort)ModContent.TileType(), true, false, -1, 0); } if (WorldGen.genRand.Next(4) == 0) { - WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("TableCoral"), true, false, -1, 0); + WorldGen.PlaceTile(num5, num6, (ushort)ModContent.TileType(), true, false, -1, 0); } } } diff --git a/World/WorldGenerationMethods.cs b/World/WorldGenerationMethods.cs index 81c86df98c..8e78d8a35b 100644 --- a/World/WorldGenerationMethods.cs +++ b/World/WorldGenerationMethods.cs @@ -6,7 +6,7 @@ using System.Reflection; using Terraria; using Terraria.ID; using Terraria.Localization; -using Terraria.ModLoader; +using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls; using Terraria.Utilities; using Terraria.World.Generation; @@ -22,8 +22,8 @@ namespace CalamityMod.World int MinX = (int)typeof(WorldGen).GetField("dMinX", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null) + 25; int MaxX = (int)typeof(WorldGen).GetField("dMaxX", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null) - 25; int MaxY = (int)typeof(WorldGen).GetField("dMaxY", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null) - 25; - int[] ChestTypes = new int[] { mod.TileType("AstralChestLocked") }; - int[] ItemTypes = new int[] { mod.ItemType("HeavenfallenStardisk") }; + int[] ChestTypes = new int[] { ModContent.TileType() }; + int[] ItemTypes = new int[] { ModContent.ItemType() }; progress.Message = "Calamity Mod: Biome Chests"; @@ -70,7 +70,7 @@ namespace CalamityMod.World while (itemIndex == emptySlots) { Mod mod = ModLoader.GetMod("CalamityMod"); - bool AstralChest = type == mod.TileType("AstralChestLocked"); + bool AstralChest = type == ModContent.TileType(); int cItem; cItem = WorldGen.genRand.NextBool() ? WorldGen.goldBar : WorldGen.silverBar; int addAmount = 0; @@ -91,7 +91,7 @@ namespace CalamityMod.World } if (AstralChest) { - chest.item[itemIndex].SetDefaults(mod.ItemType("AstralJelly"), false); + chest.item[itemIndex].SetDefaults(ModContent.ItemType(), false); chest.item[itemIndex].stack = WorldGen.genRand.Next(3, 6); itemIndex++; } @@ -103,7 +103,7 @@ namespace CalamityMod.World }; if (AstralChest) { - items[1] = mod.ItemType("RevivifyPotion"); + items[1] = ModContent.ItemType(); items[4] = ItemID.ShinePotion; items[5] = ItemID.HunterPotion; } @@ -120,8 +120,8 @@ namespace CalamityMod.World if (AstralChest) { items[1] = ItemID.MagicPowerPotion; - items[2] = mod.ItemType("ZenPotion"); - items[5] = mod.ItemType("CadencePotion"); + items[2] = ModContent.ItemType(); + items[5] = ModContent.ItemType(); } chest.item[itemIndex].SetDefaults(WorldGen.genRand.Next(items), false); chest.item[itemIndex].stack = WorldGen.genRand.Next(1, 3); @@ -174,7 +174,7 @@ namespace CalamityMod.World Main.tile[x + dx, y + dy].active(false); } - WorldGen.PlaceTile(x, y + 1, mod.TileType("RoxTile")); + WorldGen.PlaceTile(x, y + 1, ModContent.TileType()); return; } else @@ -233,7 +233,7 @@ namespace CalamityMod.World Mod mod = ModLoader.GetMod("CalamityMod"); int x = Main.maxTilesX; int y = Main.maxTilesY; - if (type == mod.TileType("ExodiumOre")) + if (type == ModContent.TileType()) { depthLimit = 0.14f; if (y > 1500) @@ -245,25 +245,25 @@ namespace CalamityMod.World { int tilesX = WorldGen.genRand.Next(0, x); int tilesY = WorldGen.genRand.Next((int)(y * depth), (int)(y * depthLimit)); - if (type == mod.TileType("AuricOre")) + if (type == ModContent.TileType()) { WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(12, 18), WorldGen.genRand.Next(12, 18), (ushort)type); } - else if (type == mod.TileType("UelibloomOre")) + else if (type == ModContent.TileType()) { if (Main.tile[tilesX, tilesY].type == 59) { WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); } } - else if (type == mod.TileType("PerennialOre")) + else if (type == ModContent.TileType()) { if (Main.tile[tilesX, tilesY].type == 0 || Main.tile[tilesX, tilesY].type == 1) { WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); } } - else if (type == mod.TileType("CryonicOre")) + else if (type == ModContent.TileType()) { if (Main.tile[tilesX, tilesY].type == 147 || Main.tile[tilesX, tilesY].type == 161 || Main.tile[tilesX, tilesY].type == 163 || Main.tile[tilesX, tilesY].type == 164 || Main.tile[tilesX, tilesY].type == 200) { @@ -291,7 +291,7 @@ namespace CalamityMod.World int y = 5; while (y < Main.worldSurface) { - if (Main.tile[x, y].active() && Main.tile[x, y].type == mod.TileType("AstralOre")) + if (Main.tile[x, y].active() && Main.tile[x, y].type == ModContent.TileType()) { astralOreCount++; if (astralOreCount > astralOreAllowed) @@ -315,10 +315,10 @@ namespace CalamityMod.World while (y < Main.worldSurface) { if (Main.tile[x, y].active() && - (Main.tile[x, y].type == mod.TileType("AstralSand") || Main.tile[x, y].type == mod.TileType("AstralSandstone") || - Main.tile[x, y].type == mod.TileType("HardenedAstralSand") || Main.tile[x, y].type == mod.TileType("AstralIce") || - Main.tile[x, y].type == mod.TileType("AstralDirt") || Main.tile[x, y].type == mod.TileType("AstralStone") || - Main.tile[x, y].type == mod.TileType("AstralGrass"))) + (Main.tile[x, y].type == ModContent.TileType() || Main.tile[x, y].type == ModContent.TileType() || + Main.tile[x, y].type == ModContent.TileType() || Main.tile[x, y].type == ModContent.TileType() || + Main.tile[x, y].type == ModContent.TileType() || Main.tile[x, y].type == ModContent.TileType() || + Main.tile[x, y].type == ModContent.TileType())) { astralTileCount++; if (astralTileCount > astralTilesAllowed) @@ -513,7 +513,7 @@ namespace CalamityMod.World { Main.tile[num2, num3].active(false); } - Main.tile[num2, num3].type = (ushort)mod.TileType("AstralOre"); + Main.tile[num2, num3].type = (ushort)ModContent.TileType(); } } } @@ -555,7 +555,7 @@ namespace CalamityMod.World } Main.tile[num12, num13].liquid = 0; } - if (Main.tile[num12, num13].type == (ushort)mod.TileType("AstralOre")) + if (Main.tile[num12, num13].type == (ushort)ModContent.TileType()) { if (!WorldGen.SolidTile(num12 - 1, num13) && !WorldGen.SolidTile(num12 + 1, num13) && !WorldGen.SolidTile(num12, num13 - 1) && !WorldGen.SolidTile(num12, num13 + 1)) { @@ -589,7 +589,7 @@ namespace CalamityMod.World { WorldGen.KillTile(num17, num18, false, false, false); } - Main.tile[num17, num18].type = (ushort)mod.TileType("AstralOre"); + Main.tile[num17, num18].type = (ushort)ModContent.TileType(); WorldGen.SquareTileFrame(num17, num18, true); } } @@ -614,7 +614,7 @@ namespace CalamityMod.World { WorldGen.KillTile(num22, num23, false, false, false); } - Main.tile[num22, num23].type = (ushort)mod.TileType("AstralOre"); + Main.tile[num22, num23].type = (ushort)ModContent.TileType(); WorldGen.SquareTileFrame(num22, num23, true); } } @@ -700,19 +700,19 @@ namespace CalamityMod.World { if (WallID.Sets.Conversion.Grass[wallType]) { - Main.tile[x, y].wall = (ushort)mod.WallType("AstralGrassWallUnsafe"); + Main.tile[x, y].wall = (ushort)ModContent.WallType(); } else if (WallID.Sets.Conversion.HardenedSand[wallType]) { - Main.tile[x, y].wall = (ushort)mod.WallType("HardenedAstralSandWallUnsafe"); + Main.tile[x, y].wall = (ushort)ModContent.WallType(); } else if (WallID.Sets.Conversion.Sandstone[wallType]) { - Main.tile[x, y].wall = (ushort)mod.WallType("AstralSandstoneWallUnsafe"); + Main.tile[x, y].wall = (ushort)ModContent.WallType(); } else if (WallID.Sets.Conversion.Stone[wallType]) { - Main.tile[x, y].wall = (ushort)mod.WallType("AstralStoneWallUnsafe"); + Main.tile[x, y].wall = (ushort)ModContent.WallType(); } else { @@ -725,36 +725,36 @@ namespace CalamityMod.World case WallID.DirtUnsafe4: case WallID.Cave6Unsafe: case WallID.Dirt: - Main.tile[x, y].wall = (ushort)mod.WallType("AstralDirtWallUnsafe"); + Main.tile[x, y].wall = (ushort)ModContent.WallType(); break; case WallID.IceUnsafe: - Main.tile[x, y].wall = (ushort)mod.WallType("AstralIceWallUnsafe"); + Main.tile[x, y].wall = (ushort)ModContent.WallType(); break; } } if (TileID.Sets.Conversion.Grass[type] && !TileID.Sets.GrassSpecial[type]) { - Main.tile[x, y].type = (ushort)mod.TileType("AstralGrass"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); } else if (TileID.Sets.Conversion.Stone[type] || Main.tileMoss[type]) { - Main.tile[x, y].type = (ushort)mod.TileType("AstralStone"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); } else if (TileID.Sets.Conversion.Sand[type]) { - Main.tile[x, y].type = (ushort)mod.TileType("AstralSand"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); } else if (TileID.Sets.Conversion.HardenedSand[type]) { - Main.tile[x, y].type = (ushort)mod.TileType("HardenedAstralSand"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); } else if (TileID.Sets.Conversion.Sandstone[type]) { - Main.tile[x, y].type = (ushort)mod.TileType("AstralSandstone"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); } else if (TileID.Sets.Conversion.Ice[type]) { - Main.tile[x, y].type = (ushort)mod.TileType("AstralIce"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); } else { @@ -762,33 +762,33 @@ namespace CalamityMod.World switch (type) { case TileID.Dirt: - Main.tile[x, y].type = (ushort)mod.TileType("AstralDirt"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); break; case TileID.Vines: - Main.tile[x, y].type = (ushort)mod.TileType("AstralVines"); + Main.tile[x, y].type = (ushort)ModContent.TileType(); break; case TileID.LargePiles: if (tile.frameX <= 1170) { - RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 0, 1170, 0, 18); + RecursiveReplaceToAstral(TileID.LargePiles, (ushort)ModContent.TileType(), x, y, 324, 0, 1170, 0, 18); } if (tile.frameX >= 1728) { - RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 1728, 1872, 0, 18); + RecursiveReplaceToAstral(TileID.LargePiles, (ushort)ModContent.TileType(), x, y, 324, 1728, 1872, 0, 18); } if (tile.frameX >= 1404 && tile.frameX <= 1710) { - RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralIceLargePiles"), x, y, 324, 1404, 1710, 0, 18); + RecursiveReplaceToAstral(TileID.LargePiles, (ushort)ModContent.TileType(), x, y, 324, 1404, 1710, 0, 18); } break; case TileID.LargePiles2: if (tile.frameX >= 1566 && tile.frameY < 36) { - RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)mod.TileType("AstralDesertLargePiles"), x, y, 324, 1566, 1872, 0, 18); + RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)ModContent.TileType(), x, y, 324, 1566, 1872, 0, 18); } if (tile.frameX >= 756 && tile.frameX <= 900) { - RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 756, 900, 0, 18); + RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)ModContent.TileType(), x, y, 324, 756, 900, 0, 18); } break; case TileID.SmallPiles: @@ -797,15 +797,15 @@ namespace CalamityMod.World ushort newType; if (tile.frameX >= 1476 && tile.frameX <= 1674) { - newType = (ushort)mod.TileType("AstralDesertMediumPiles"); + newType = (ushort)ModContent.TileType(); } else if (tile.frameX <= 558 || (tile.frameX >= 1368 && tile.frameX <= 1458)) { - newType = (ushort)mod.TileType("AstralNormalMediumPiles"); + newType = (ushort)ModContent.TileType(); } else if (tile.frameX >= 900 && tile.frameX <= 1098) { - newType = (ushort)mod.TileType("AstralIceMediumPiles"); + newType = (ushort)ModContent.TileType(); } else { @@ -833,15 +833,15 @@ namespace CalamityMod.World ushort newType3; if (tile.frameX >= 972 && tile.frameX <= 1062) { - newType3 = (ushort)mod.TileType("AstralDesertSmallPiles"); + newType3 = (ushort)ModContent.TileType(); } else if (tile.frameX <= 486) { - newType3 = (ushort)mod.TileType("AstralNormalSmallPiles"); + newType3 = (ushort)ModContent.TileType(); } else if (tile.frameX >= 648 && tile.frameX <= 846) { - newType3 = (ushort)mod.TileType("AstralIceSmallPiles"); + newType3 = (ushort)ModContent.TileType(); } else { @@ -861,15 +861,15 @@ namespace CalamityMod.World ushort newType2; if (tile.frameX >= 378 && tile.frameX <= 414) //DESERT { - newType2 = (ushort)mod.TileType("AstralDesertStalactite"); + newType2 = (ushort)ModContent.TileType(); } else if ((tile.frameX >= 54 && tile.frameX <= 90) || (tile.frameX >= 216 && tile.frameX <= 360)) { - newType2 = (ushort)mod.TileType("AstralNormalStalactite"); + newType2 = (ushort)ModContent.TileType(); } else if (tile.frameX <= 36) { - newType2 = (ushort)mod.TileType("AstralIceStalactite"); + newType2 = (ushort)ModContent.TileType(); } else { @@ -941,11 +941,11 @@ namespace CalamityMod.World #region WALL if (Main.tile[x, y] != null) { - if (wallType == mod.WallType("AstralDirtWall")) + if (wallType == ModContent.WallType()) { Main.tile[x, y].wall = WallID.DirtUnsafe; } - else if (wallType == mod.WallType("AstralGrassWall")) + else if (wallType == ModContent.WallType()) { switch (convert) { @@ -963,11 +963,11 @@ namespace CalamityMod.World break; } } - else if (wallType == mod.WallType("AstralIceWall")) + else if (wallType == ModContent.WallType()) { Main.tile[x, y].wall = WallID.IceUnsafe; } - else if (wallType == mod.WallType("AstralStoneWall")) + else if (wallType == ModContent.WallType()) { switch (convert) { @@ -991,83 +991,83 @@ namespace CalamityMod.World #region TILE if (Main.tile[x, y] != null) { - if (type == mod.TileType("AstralDirt")) + if (type == ModContent.TileType()) { tile.type = TileID.Dirt; } - else if (type == mod.TileType("AstralGrass")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, TileID.CorruptGrass, TileID.FleshGrass, TileID.HallowedGrass, TileID.Grass); } - else if (type == mod.TileType("AstralStone")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, TileID.Ebonstone, TileID.Crimstone, TileID.Pearlstone, TileID.Stone); } - else if (type == mod.TileType("AstralSand")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, TileID.Ebonsand, TileID.Crimsand, TileID.Pearlsand, TileID.Sand); } - else if (type == mod.TileType("AstralSandstone")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, TileID.CorruptSandstone, TileID.CrimsonSandstone, TileID.HallowSandstone, TileID.Sandstone); } - else if (type == mod.TileType("HardenedAstralSand")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, TileID.CorruptHardenedSand, TileID.CrimsonHardenedSand, TileID.HallowHardenedSand, TileID.HardenedSand); } - else if (type == mod.TileType("AstralIce")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, TileID.CorruptIce, TileID.FleshIce, TileID.HallowedIce, TileID.IceBlock); } - else if (type == mod.TileType("AstralVines")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, ushort.MaxValue, TileID.CrimsonVines, TileID.HallowedVines, TileID.Vines); } - else if (type == mod.TileType("AstralShortPlants")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, TileID.CorruptPlants, ushort.MaxValue, TileID.HallowedPlants, TileID.Plants); } - else if (type == mod.TileType("AstralTallPlants")) + else if (type == ModContent.TileType()) { SetTileFromConvert(x, y, convert, ushort.MaxValue, ushort.MaxValue, TileID.HallowedPlants2, TileID.Plants2); } - else if (type == mod.TileType("AstralNormalLargePiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles, x, y, 378, 0); } - else if (type == mod.TileType("AstralNormalMediumPiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 0, 18); } - else if (type == mod.TileType("AstralNormalSmallPiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 0, 0); } - else if (type == mod.TileType("AstralDesertLargePiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles2, x, y, 1566, 0); } - else if (type == mod.TileType("AstralDesertMediumPiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 1476, 18); } - else if (type == mod.TileType("AstralDesertSmallPiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 972, 0); } - else if (type == mod.TileType("AstralIceLargePiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles, x, y, 1404, 0); } - else if (type == mod.TileType("AstralIceMediumPiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 900, 18); } - else if (type == mod.TileType("AstralIceSmallPiles")) + else if (type == ModContent.TileType()) { RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 648, 0); } - else if (type == mod.TileType("AstralNormalStalactite")) + else if (type == ModContent.TileType()) { ushort originType = TileID.Stone; int frameXAdd = 54; @@ -1088,7 +1088,7 @@ namespace CalamityMod.World } ReplaceAstralStalactite((ushort)type, TileID.Stalactite, originType, x, y, frameXAdd, 0); } - else if (type == mod.TileType("AstralDesertStalactite")) + else if (type == ModContent.TileType()) { ushort originType = TileID.Sandstone; int frameXAdd = 378; @@ -1109,7 +1109,7 @@ namespace CalamityMod.World } ReplaceAstralStalactite((ushort)type, TileID.Stalactite, originType, x, y, frameXAdd, 0); } - else if (type == mod.TileType("AstralIceStalactite")) + else if (type == ModContent.TileType()) { ReplaceAstralStalactite((ushort)type, TileID.Stalactite, TileID.IceBlock, x, y, 0, 0); } @@ -1843,7 +1843,7 @@ namespace CalamityMod.World num6 = l; } Main.tile[k, l].active(true); - Main.tile[k, l].type = (ushort)mod.TileType("BrimstoneSlag"); + Main.tile[k, l].type = (ushort)ModContent.TileType(); WorldGen.SquareTileFrame(k, l, true); } } @@ -1879,10 +1879,10 @@ namespace CalamityMod.World } num14 += WorldGen.genRand.Next(-3, 4); num15 = WorldGen.genRand.Next(4, 8); - int num16 = mod.TileType("BrimstoneSlag"); + int num16 = ModContent.TileType(); if (WorldGen.genRand.Next(4) == 0) { - num16 = mod.TileType("CharredOre"); + num16 = ModContent.TileType(); } for (int n = m - num15; n <= m + num15; n++) { @@ -1953,7 +1953,7 @@ namespace CalamityMod.World { num24 += WorldGen.genRand.Next(0, 4); int num25 = WorldGen.genRand.Next(2, 5); - int num26 = mod.TileType("BrimstoneSlag"); + int num26 = ModContent.TileType(); for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) { for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) @@ -1980,28 +1980,28 @@ namespace CalamityMod.World { num35++; } - if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)mod.TileType("BrimstoneSlag")) + if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)ModContent.TileType()) { if (WorldGen.genRand.Next(10) == 0) { int num36 = WorldGen.genRand.Next(1, 3); for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) { - if (Main.tile[num37, num35].type == (ushort)mod.TileType("BrimstoneSlag")) + if (Main.tile[num37, num35].type == (ushort)ModContent.TileType()) { Main.tile[num37, num35].active(false); Main.tile[num37, num35].liquid = 255; Main.tile[num37, num35].lava(false); WorldGen.SquareTileFrame(num34, num35, true); } - if (Main.tile[num37, num35 + 1].type == (ushort)mod.TileType("BrimstoneSlag")) + if (Main.tile[num37, num35 + 1].type == (ushort)ModContent.TileType()) { Main.tile[num37, num35 + 1].active(false); Main.tile[num37, num35 + 1].liquid = 255; Main.tile[num37, num35 + 1].lava(false); WorldGen.SquareTileFrame(num34, num35 + 1, true); } - if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)mod.TileType("BrimstoneSlag")) + if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)ModContent.TileType()) { Main.tile[num37, num35 + 2].active(false); Main.tile[num37, num35 + 2].liquid = 255; @@ -2025,7 +2025,7 @@ namespace CalamityMod.World public static void UnderworldIslandHouse(int i, int j, int item) { Mod mod = ModLoader.GetMod("CalamityMod"); - ushort type = (ushort)mod.TileType("BrimstoneSlag"); //tile + ushort type = (ushort)ModContent.TileType(); //tile byte wall = (byte)14; //wall Vector2 vector = new Vector2((float)i, (float)j); int num = 1; @@ -2229,7 +2229,7 @@ namespace CalamityMod.World num6 = l; } Main.tile[k, l].active(true); - Main.tile[k, l].type = (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); + Main.tile[k, l].type = (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType()); SafeSquareTileFrame(k, l, true); } } @@ -2265,10 +2265,10 @@ namespace CalamityMod.World } num14 += WorldGen.genRand.Next(-3, 4); num15 = WorldGen.genRand.Next(4, 8); - int num16 = isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"); + int num16 = isVoid ? ModContent.TileType() : ModContent.TileType(); if (WorldGen.genRand.Next(4) == 0) { - num16 = hasChest ? mod.TileType("ChaoticOre") : mod.TileType("PlantyMush"); + num16 = hasChest ? ModContent.TileType() : ModContent.TileType(); } for (int n = m - num15; n <= m + num15; n++) { @@ -2301,7 +2301,7 @@ namespace CalamityMod.World } num14 += WorldGen.genRand.Next(-3, 4); //-3 4 num150 = 1; //4 8 - int num16 = mod.TileType("Tenebris"); + int num16 = ModContent.TileType(); for (int n = p - num150; n <= p + num150; n++) { for (int num17 = num14 - num150; num17 <= num14 + num150; num17++) @@ -2374,7 +2374,7 @@ namespace CalamityMod.World { num24 += WorldGen.genRand.Next(0, 4); int num25 = WorldGen.genRand.Next(2, 5); - int num26 = isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"); + int num26 = isVoid ? ModContent.TileType() : ModContent.TileType(); for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) { for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) @@ -2411,7 +2411,7 @@ namespace CalamityMod.World } if (flag) { - Main.tile[num30, num31].wall = (ushort)(isVoid ? mod.WallType("VoidstoneWallUnsafe") : mod.WallType("AbyssGravelWall")); + Main.tile[num30, num31].wall = (ushort)(isVoid ? ModContent.WallType() : ModContent.WallType()); WorldGen.SquareWallFrame(num30, num31, true); } } @@ -2423,28 +2423,28 @@ namespace CalamityMod.World { num35++; } - if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType())) { if (WorldGen.genRand.Next(10) == 0) { int num36 = WorldGen.genRand.Next(1, 3); for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) { - if (Main.tile[num37, num35].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + if (Main.tile[num37, num35].type == (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType())) { Main.tile[num37, num35].active(false); Main.tile[num37, num35].liquid = 255; Main.tile[num37, num35].lava(false); SafeSquareTileFrame(num34, num35, true); } - if (Main.tile[num37, num35 + 1].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + if (Main.tile[num37, num35 + 1].type == (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType())) { Main.tile[num37, num35 + 1].active(false); Main.tile[num37, num35 + 1].liquid = 255; Main.tile[num37, num35 + 1].lava(false); SafeSquareTileFrame(num34, num35 + 1, true); } - if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType())) { Main.tile[num37, num35 + 2].active(false); Main.tile[num37, num35 + 2].liquid = 255; @@ -2468,8 +2468,8 @@ namespace CalamityMod.World public static void AbyssIslandHouse(int i, int j, int itemChoice, bool isVoid) { Mod mod = ModLoader.GetMod("CalamityMod"); - ushort type = (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); //tile - ushort wall = (ushort)(isVoid ? mod.WallType("VoidstoneWallUnsafe") : mod.WallType("AbyssGravelWall")); //wall + ushort type = (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType()); //tile + ushort wall = (ushort)(isVoid ? ModContent.WallType() : ModContent.WallType()); //wall Vector2 vector = new Vector2((float)i, (float)j); int num = 1; if (WorldGen.genRand.Next(2) == 0) @@ -2563,34 +2563,34 @@ namespace CalamityMod.World switch (itemChoice) { case 0: - itemChoice = mod.ItemType("TorrentialTear"); + itemChoice = ModContent.ItemType(); break; //rain item case 1: - itemChoice = mod.ItemType("IronBoots"); + itemChoice = ModContent.ItemType(); break; //movement acc case 2: - itemChoice = mod.ItemType("DepthCharm"); + itemChoice = ModContent.ItemType(); break; //regen acc case 3: - itemChoice = mod.ItemType("Archerfish"); + itemChoice = ModContent.ItemType(); break; //ranged case 4: - itemChoice = mod.ItemType("AnechoicPlating"); + itemChoice = ModContent.ItemType(); break; //defense acc case 5: - itemChoice = mod.ItemType("BallOFugu"); + itemChoice = ModContent.ItemType(); break; //melee case 6: - itemChoice = mod.ItemType("StrangeOrb"); + itemChoice = ModContent.ItemType(); break; //light pet case 7: - itemChoice = mod.ItemType("HerringStaff"); + itemChoice = ModContent.ItemType(); break; //summon case 8: - itemChoice = mod.ItemType("BlackAnurian"); + itemChoice = ModContent.ItemType(); break; //magic case 9: - itemChoice = mod.ItemType("Lionfish"); + itemChoice = ModContent.ItemType(); break; //throwing default: itemChoice = 497; @@ -2940,42 +2940,42 @@ namespace CalamityMod.World switch (itemChoice) //0 to 9 { case 0: - item = mod.ItemType("TrinketofChi"); + item = ModContent.ItemType(); break; case 1: - item = WorldGen.crimson ? mod.ItemType("CrimsonEffigy") : mod.ItemType("CorruptionEffigy"); + item = WorldGen.crimson ? ModContent.ItemType() : ModContent.ItemType(); chestType = WorldGen.crimson ? 43 : 3; break; case 2: - item = mod.ItemType("OnyxExcavatorKey"); + item = ModContent.ItemType(); chestType = 44; break; case 3: - item = mod.ItemType("TundraLeash"); + item = ModContent.ItemType(); chestType = 47; break; case 4: - item = mod.ItemType("LuxorsGift"); + item = ModContent.ItemType(); chestType = 30; break; case 5: - item = mod.ItemType("FungalSymbiote"); + item = ModContent.ItemType(); chestType = 32; break; case 6: - item = mod.ItemType("UnstablePrism"); + item = ModContent.ItemType(); chestType = 50; break; case 7: - item = mod.ItemType("GladiatorsLocket"); + item = ModContent.ItemType(); chestType = 51; break; case 8: - item = mod.ItemType("Murasama"); + item = ModContent.ItemType(); chestType = 44; break; case 9: - item = mod.ItemType("BossRush"); + item = ModContent.ItemType(); chestType = 4; break; } @@ -3259,7 +3259,7 @@ namespace CalamityMod.World } if (WorldGen.SolidTile(x, y - 1) && !Main.tile[x, y].active() && !Main.tile[x, y + 1].active()) { - if (Main.tile[x, y - 1].type == (ushort)mod.TileType("Navystone")) + if (Main.tile[x, y - 1].type == (ushort)ModContent.TileType()) { if (WorldGen.genRand.Next(2) == 0 || Main.tile[x, y + 2].active()) { @@ -3287,7 +3287,7 @@ namespace CalamityMod.World { if (WorldGen.SolidTile(x, y + 1) && !Main.tile[x, y].active() && !Main.tile[x, y - 1].active()) { - if (Main.tile[x, y + 1].type == (ushort)mod.TileType("Navystone")) + if (Main.tile[x, y + 1].type == (ushort)ModContent.TileType()) { if (WorldGen.genRand.Next(2) == 0 || Main.tile[x, y - 2].active()) {